Next Word Prediction App

Author

Chaithra

Introduction

  • Predicts next word from a phrase

  • Built using N-gram model

  • Useful for text prediction systems

  • Lightweight and fast

Algorithm

  • Uses **Bigram + Trigram model**

  • Trigram → last 2 words

  • Bigram → fallback

  • Selects most frequent next word

Application

  • Enter phrase in input box

  • Click “Predict”

  • App returns next word

Example:
Input: “data science is”
Output: “fun”

Features

  • Fast and simple

  • Real-time prediction

  • Easy UI

  • Scalable with larger datasets

Experience & Future Work

  • Easy to use

  • Instant response

  • Future improvements:

  • Use Twitter/news data

  • Add 4-gram model

  • Improve accuracy

App Link: https://chaithraraikh.shinyapps.io/project2/