8/3/2021

The Application

  • This presentation is about the new application WordPredict.

  • Based on the input the application predicts your next word.

  • The following slides describes how to use the app and the algorithm behind it.

How to use

  • The app is very simple, you have to wait a few seconds until the app loads.

  • Once the app loaded, you will see a box on the left with an input box.

  • You can enter your text in the box and press the submit button.

  • Once the submit button is pressed you will get the predicted next word.

  • The app gives three options for the next words: the first one is the most likely next word, the second one is the second most likely and the third one is the third.

Algorithm

  • Once the input is entered, the app identifies the last two words of the sentence and makes a prediction based on the last two words.

  • Based on the sample data from twitter, blogs, and news, a database is created with 1, 2 and 3-grams.

  • The application takes the last two words of the sentence and looks for it in the 3 grams and if there are matches then the one with highest frequency is reported under the first prediction.

  • If there is no match, then the app looks for the last word in 2 grams and reports the one with the highest frequency.

  • If there is still no martch, then the app predicts the most common 3 words in 1 grams.

Link to the app