2026-06-17

Why this app?

Sometimes you spend too much time for writting messages althgouth it doesn’t need it

This app will help you to predict the next words based on the phrase of a pair of words!

How does it works?

The app was build on a base of 3 files with English text, then it was analyzed and splitted into triplets of words and the probability of the last one was calculated

When you input a phrase, the result reflects the third word with the highest probability

Algorithm overview

The algorithm of the app includes the following steps:

  • Load and Sample the Data (10% of all data was taken)
  • Clean the Text
  • Build the Trigram Model (data was splitted into triplets)
  • Calculate Conditional Probabilities
  • User Input
  • Search the Trigram Table
  • Select the Most Probable Prediction
  • Display the Result

Instructions

When you input a phrase of 2 words - you can immediately see the third one!