- Visit https://dxrodri.shinyapps.io/WordPredictor/
- Wait for the app to initialize. Once the app is initialized, the app will display “Start Typing” message.
- The app will predict next probable word as your type. It will also suggest five probable words.
- For example, if you type “guys and gals are”, the app will predict the next word as terrific.
nextWord <- getNextWords(wordFrameGrams,SGT, "guys and gals are")
print(nextWord)
[1] "terrific"