Data Science Capstone Project
TEST
2026-06-14
Next Word Prediction App
- Built using R and Shiny
- Predicts next word from user input
- Simple rule-based approach
- Similar to autocomplete
Problem Statement
- Goal: Predict next word in a phrase
- User provides input text
- App returns one predicted word
- Fast and interactive
Method Used
- Input text is split into words
- Last word is extracted
- Simple rules applied:
- “how” → “are”
- “i” → “am”
- others → default word
Shiny Application
- Text input box for user
- Predict button to generate output
- Displays one-word prediction
- Runs in browser using Shiny
Evaluation
- Tested with 5 sample phrases
- Prediction generated each time
- Output is always one word
- Works correctly for given rules
Conclusion
- Successfully built Shiny app
- Demonstrates basic NLP idea
- Simple but functional model
- Future: improve using advanced models