Next Word Prediction App

Noel Temena

Data Analytics & Enterprise IT Analyst

About the App

This application will try to predict the next word you meant to type. Just type a word or a phrase on the text box and it will automatically predict the next word with the highest score. Scoring is based on word combination popularity. This app behaves the same as the SmartKey features found on a lot of smartphone.

How the word prediction works

  1. Count the number of words entered
  2. Using the given word, search the Ngram model(2word, 3word and 4word) file based from: Word count + 1 = Ngram file
  3. If word count is greater than 4 then use the BACKOFF algorithm
  4. Backoff algorithm start with processing the given words:

        > * determine the last 3 words
        > * determine the last 2 words
        > * determine the last word
    
  5. Using the last 3 words search the 2word Ngram file.

  6. Continue up to the last word if search results is NULL.

App Features

  • Average word search system response: 0.78 secs

  • No submit button is required after typing

  • Top 5 words are dynamically shown with corresponding scores

  • Random technical quotes are shown during the start of the application

Links

To run the app: https://noeltemena.shinyapps.io/ShinyWord/

width