NextWord — Predict the next word

Data Science Capstone | Product pitch
November 2026

THE PRODUCT
The next word.
Already on your mind.

A fast, accessible language prediction experience.

One short phrase in. One relevant next word out.
Powered by a compact R n-gram model and an interactive Shiny app.

Understanding the opportunity

01 / THE OPPORTUNITY

Every keystroke is a chance to help.

People write messages, reports and posts all day. A useful keyboard should reduce typing effort without adding complexity.

2.36MTwitter entries
1.01MNews entries
899KBlog entries

Training opportunity: the provided SwiftKey English corpora cover conversational, professional and long-form writing. Each style teaches different word patterns.

Corpus totals describe the source files, not the size of the bundled demo model. Source: Coursera / SwiftKey.

How the prediction engine works

02 / THE ALGORITHM

A practical, explainable 4-gram backoff model.

01

Clean

Lowercase and tokenize the phrase.

→
02

Match

Look for the last 3 words in a 4-gram table.

→
03

Back off

Try 3-, 2-, then 1-gram tables if needed.

→
04

Predict

Return the most frequent continuation.

“I am looking forward to the”→ weekend

Lightweight frequency tables are precomputed offline, so the deployed app never has to retrain during a user request.

The app: a prediction in seconds

03 / THE USER EXPERIENCE

Designed for anyone, not just data scientists.

nextword.
ENTER AN ENGLISH PHRASE
The weather is going to be
Predict next word
PREDICTED NEXT WORD
beautiful

Try it: Type a phrase → press Predict next word → see one suggestion.
Example buttons and a clear action make repeat testing easy.

Ready to test. Built to improve.

04 / THE INVESTMENT CASE

Simple today. Measurably better tomorrow.

What works now

✓ One-click, one-word prediction

✓ Fallback for unseen text

✓ Compact model; no per-request retraining

✓ No application-level storage of user text

Next milestones

01   Train on a representative SwiftKey sample

02   Benchmark on held-out phrases

03   Improve top-1 accuracy and speed

04   Iterate with real user feedback

Our ask: try five real-world phrases and judge relevance, speed and ease of use.
This delivery includes a labelled demo model plus the reproducible SwiftKey retraining script. No accuracy metrics are claimed without evaluation.