The Text predition app is a lightweight tool that improves text input efficiency by anticipating the next word. When predictions are correct users can select words instead of typing them.
2024-12
The Text predition app is a lightweight tool that improves text input efficiency by anticipating the next word. When predictions are correct users can select words instead of typing them.
Predictions are based on word sequences found in nearly half a million lines of sample text. The samples consist of English language blogs, news stories and twitter/X posts. Here’s what the app does:
To give users choice, the app lists the top seven words by frequency.
Note: if there are fewer than seven matches for the last two words, the app uses the last word only to complete the list.
Social media posts can be full of spelling mistakes and profanity. To keep predictions clean and running smoothly I prepared the sample data before use:
I'm becomes I am)Note: The rationale and code for data preparation can be found at https://sagarana.github.io/data_science_capstone/capstone_data_preparation.html
The Shiny app is intentionally simple to make it easier to incorporate into other interfaces. It showcases two ways to engage with the predictions (list and word cloud), though only one is likely to be used in any given context. Code for the Shiny app is available here on GitHub.
The app is a start, but potential improvements could make it even more useful:
tab and enter keysThanks for your engagement!