Shounak Shastri
29/09/2020
How does the app work?
The auto complete app predicts the next word the user is about to type.
The app refers to accompanying files which contain ngram phrases and their frequency of occurance in the corpus.
The user enters the words and the app cleans it and checks it against its files.
The word is predicted based on the frequency of the phrases in its ngram tables
The phrases which occur more frequently are given more preference.
In the first image, the app is trying to figure out what the user is about to type and in the second image, once the app has the complete word, it predicts the next word.
Known bugs and issues
The app works for pentagrams if the sentence is copied and pasted in the textbox. But if it is being typed in real time, then the predictions are from the bigram training list.
The “…thinking…” status looks very similar to the predicted words
Plans for improvements
Modify the code so that everytime there is a change in the textbox, the code should start in the pentagrams list.
Change the colour of “…thinking…” so that it is not confused with the predicted words.
Show multiple predictions. So instead of predicting 1 word, the app would give 5 most frequent words.
Handling the error when there is nothing in the textbox.