This was done as part of the Coursera Data Science Specialization project. Based on the corpus of text data given, n-grams were created. The tool predicts the next word in real-time based on the word chains given in the input. Model details are given under the 'Model' tab in the app.
Click here to play with the next word prediction tool.