This app is an interactive one that takes any string as input and produces the predicted next word as output. It does this by finding the most common 2-,3- and 4-grams that start with the most recent 1-,2- and 3-word phrases that the user has typed.
This app uses millions of tweets and blogs to help predict the user’s next word. It uses data.table for its data storage, including tables of ngrams and their frequencies combined with dictionaries that pair ngrams with integer lookups.