Next Word Predictor

Type less. The app suggests your next word as you type.

Hein Htet Linn Nyan

2026-09-25

The problem and the product

  • Typing on a phone is slow.
  • Many words can be guessed from the words just before them.
  • A good suggestion saves a tap on almost every word.

Next Word Predictor shows the three most likely next words as you type. One click adds a word.

How the model works

  • Learned from 93,046 distinct words in blogs, news and Twitter.
  • Counts which words follow each 1-, 2- and 3-word phrase.
  • Looks up the last three words you typed.
  • If that phrase was never seen, drops the oldest word and tries again (“backoff”).
  • Tuned for the app: equal text from each source, rare phrases removed, words stored as numbers.

How well it works

Tested on text the model never saw:

26%

right word in the top three

16%

right word as first guess

9 ms

per prediction

2.6 MB

model file

The basic model scored 24% in the top three on the same test.

Try the app

https://heinhtet.shinyapps.io/shiny_app/

  1. Type a phrase, e.g. “thanks for the”.
  2. Three suggested words appear as buttons, best guess first.
  3. Click one to add it, and keep typing.
  4. The bars show how confident the model is in each word.

Small, fast and simple: ready to build into a keyboard.