Rene Persau
2025-11-30
Problem Statement: Build a predictive text application that suggests the next word as users type, similar to smartphone keyboard suggestions.
Solution: An n-gram language model trained on millions of words from blogs, news articles, and Twitter data.
Key Features:
The algorithm uses a hierarchical backoff approach:
Input: "I want to"
→ Check 4-grams starting with "i want to"
→ If found, return most frequent next word
→ Otherwise, check 3-grams starting with "want to"
→ Continue down the hierarchy
Scoring: Predictions are ranked by frequency in training data, with longer n-grams receiving higher weights.
Input:
Output:
Try it: The app is deployed on shinyapps.io and ready to use!
✅ Working Prediction Algorithm: N-gram model with intelligent backoff
✅ Interactive Shiny App: User-friendly web interface
✅ Fast Performance: Optimized for real-time predictions
✅ Robust Training: Diverse corpus from multiple sources
This technology can be applied to:
Thank you for your attention!