The application predicts the next word considering the previous words(5) using LSTM and all the other supporting modules.