Slide 1: Project Overview

  • A Shiny app that predicts the next word in a phrase.
  • Built using R, Shiny, dplyr, and tidytext.
  • Lightweight bigram-based prediction model.

Slide 2: Prediction Algorithm

  • Text cleaning and tokenization with tidytext.
  • Constructed bigram frequency table from corpus.
  • Predicts the next word using most common bigram match.

Slide 3: How the App Works

  1. User enters a phrase into the input box.
  2. On clicking Predict, the app processes the last word.
  3. The app returns the most likely next word based on bigram frequency.

Slide 4: Instructions

  • Try entering phrases like:
    • I love
    • The weather is
    • We need
  • Click Predict
  • See the predicted next word instantly.

Slide 5: Summary

  • ✅ Lightweight and fast
  • ✅ Easy to use interface
  • ✅ Hosted on shinyapps.io
  • ✅ Slide deck shared via RPubs
  • Ideal for MVPs or quick NLP demos