Da Le
A lightweight Shiny product that predicts the next word after a user enters an English phrase.
The goal is practical: fast, simple, and understandable enough for a non-technical user.
The model is built from the Coursera SwiftKey English corpus:
Preprocessing steps:
The app uses an n-gram back-off model.
Example input:
I am going to
The algorithm checks contexts from longest to shortest:
am going to -> likely next wordgoing to -> likely next wordto -> likely next wordThis gives a good balance between coverage and speed.
The app is intentionally simple:
The app does not require statistical knowledge. It behaves like a small predictive keyboard prototype.
Typical examples:
I love -> younew york -> citythank you for -> theWhy this approach works:
Next improvements:
This product demonstrates a working data product pipeline: corpus processing, model compression, prediction logic, and a public Shiny interface.