Auto-completion function in R Shiny using ngram-prediction and a stupid back-off algorithm (Brants et. al 2007).
Presentation: https://emcarlss.github.io/Text_completer/
App is available at. https://emcarlss.shinyapps.io/Text_completer/
Relies on the javascript widget awesomeplete: https://projects.verou.me/awesomplete/
References:
Brants, Popat, Xu, Och, Dean (2007), "Large Language Models in Machine Translation", Proceedings of the 2007 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning, pp. 858–867, Prague, June 2007 Available at: https://aclanthology.org/D07-1090.pdf