May contain rude/obscene words!
I just wanted to make a proof of concept.
This runs using a massive (20 000 entries) list of the most common English words. It takes what you have inputted and runs down the list of words and chooses the first word that starts with the same characters.
There are many ways that this could be improved, for example:
• Taking context (previous words) into account (Partially implemented: some common phrases like 'kill two birds with one stone' have been added)
• Using machine learning to make the ranking more accurate
• Remove duplicate entries (speeds up the comprehension)
• Doing the autocomplete computation server-side