Word Predictor

Sheela Rani
23-Aug-2015

alt text

Features

  • Simple to use
  • Auto corrects input
  • Gives option to use autocorrected words
  • Lists choices of five next words to pick from

How to use it

  • Wait till data loads
  • Keep typing in the input box
  • Click checkbox to use autocorrected words
  • The next suggested words appear automatically

    alt text

Behind the scenes: Spelling auto corrector

  • Uses one gram corpus for prediction model
  • R adist function is used to suggest correct spelling

Behind the scenes: Next word predictor

  • Based on Markov Chain MonteCarlo theorem
  • Uses Katz backoff algorithm to switch from 3-gram to 2-gram model
  • Uses Kneser-Ney smoothing

Future Enhancements

  • Use caching to improve performance