The Shiny interactive web app prompts a user to input text. It then predicts the next word based on the last few words input. The prediction is obtained using the Simple Backoff method.
The implementation first looks for the highest probability word grouping that begins with the last three words input by the user. If no match is found it backs off to using the last two words, possibly backing off to using only the final word. If no words match then the method returns the most common word, the.
General functionality is summarized below.
- Predicts next word using the final 1-3 words input by the user
- Spell checks all user inputs and suggests a replacement
- Displays a few common words and word combinations
- Filters profanity and obscenities