Using the app is intutive, the user only needs to start typing in the left hand text box. A prediction will render in the right hand frame.
The app works by
- Taking app takes the user's input and parsing it into a set of strings
- It looks up the last two words in a precalculated table of trigrams, and returns the highest frequency third word given the observation of the last two.
- If step 2 fails to find a matching trigram, a single word is looked up the bigram table
- If step 3 fails, the highest frequency unigram, “the” is used as a prediction