This is an Shiny predictive text app built using the stupid back-off algorithm. It was trained on three million lines of news articles, blogs, Twitter tweets, and one million lines of text from books.
You can find the final result online at https://jrmilks.shinyapps.io/Text_prediction/
Enjoy!