Goal
This app predicts the next word from a phrase.
User enters text → app returns one predicted word.
Algorithm
- Convert text to lowercase
- Take last word
- Match with predefined phrases
- Return predicted next word
- Default: “the”
How to Use
- Enter a phrase
- Click “Predict”
- See result
Example:
machine → learning
User Experience
- Fast and simple
- Always returns a word
- Easy to use
Why This Matters
- Useful for text prediction
- Can improve typing tools
- Future: n-grams, bigger data