Auto Complete App

Shounak Shastri
29/09/2020

Introduction

The auto complete app predicts the next word the user is about to type.

The user can enter a word or paste a sentence in the textbox and the app will give a suggestion for the next word.

The app can predict pentagrams i.e. it can predict a word using upto 4 previous words for context.

The app displays “…thinking…” when it is trying to come up with a word.

Examples:

Working Examples

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 future plans

Known bugs and issues

  1. 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.

  2. The “…thinking…” status looks very similar to the predicted words

Plans for improvements

  1. Modify the code so that everytime there is a change in the textbox, the code should start in the pentagrams list.

  2. Change the colour of “…thinking…” so that it is not confused with the predicted words.

  3. Show multiple predictions. So instead of predicting 1 word, the app would give 5 most frequent words.

  4. Handling the error when there is nothing in the textbox.

Link to the app