This presentation is the companion to my Shiny App, a text prediction application based on the SwiftKey dataset. Those data were cleaned and sets of 2-grams through 6-grams were generated. Using the Modified Kneser-Ney algorithm a probability was calculated for each terminal word, based on the “root” of the n-gram. The database was then able to be reduced to the most probable word (since only a single guess is required). Together this makes for a very small and fast application.