This repl uses a trie to find and replace greek letters.
To view this on TripleLog, click here.
The HTML is a simple input/output to change a string of text.
Add CSS by editing the style.css file that is linked to in the head section or inline edit the style section in the head.
The trieMap.js file creates a trieMap with lots of replacements to look for. You can edit this map to make a different set of replacements.
The script.js file creates a trie and then has a function to search the trie and replace any matches. It looks for the longest match so it replaces theta not eta, but with the given map it also replaces a word like "pit" with "πt".
You can can edit the trieMap.js file to change the inputs/outputs of the trie.