August 2026

The problem and the promise

Writing is repetitive. A useful prediction at the right moment can make it faster.

  • NextWord accepts a phrase and predicts one likely next word.
  • It turns a familiar smartphone feature into a clear, interactive demonstration.
  • The design focuses on speed, simplicity and understandable results.
  • Example: “I want to” becomes “I want to learn”.

How the prediction works

  1. The user’s phrase is cleaned, converted to lowercase and split into words.
  2. The model searches for matching 4-gram patterns first.
  3. If no match exists, it backs off to 3-gram, then 2-gram context.
  4. The most frequent matching next word is returned.
  5. A frequency fallback keeps the app responsive for unfamiliar phrases.

Why this approach? Longer context is usually more specific, while backoff improves coverage.

The product experience

  • One clear text field for any phrase.
  • Six ready-made examples for quick testing.
  • One-click prediction with the completed phrase shown immediately.
  • A short model note explains which context level produced the answer.
  • Responsive styling works on desktop and smaller screens.

Live application: Open the live NextWord app

Value, limits and next steps

Value

  • Demonstrates an end-to-end data product: text input, modelling logic and a deployed interface.
  • Makes prediction behaviour visible rather than presenting a black box.

Current limit

  • The demonstration corpus is intentionally small, so unfamiliar phrases use a fallback.

Next step

  • Train on a larger cleaned corpus, prune rare n-grams and benchmark prediction accuracy.

Try NextWord and see what comes next.