2026-06-07

Slide 1: Introduction

Welcome to the Next Word Prediction App!

  • Goal: To create a smart keyboard-like text prediction model.
  • Concept: The app analyzes what you type and instantly guesses the most logical next word.
  • Outcome: A web-based Shiny application that provides an interactive user experience.

Slide 2: The Algorithm Behind It

How does the prediction work?

  • N-Gram Model Concept: The foundation relies on breaking down text into sequences (Unigrams, Bigrams, Trigrams).
  • Conditional Logic: The backend reads the user’s string, cleans it, and matches it against specific conditions to trigger the right prediction.
  • Efficiency: The code is structured to process the text and return results instantly.

Slide 3: How to Use the App

The interface is built to be extremely simple and user-friendly.

  • Step 1: Open the application URL.
  • Step 2: Locate the text input box on the left panel.
  • Step 3: Type a phrase (e.g., “how are” or “i am”).
  • Step 4: Click the red “Predict Next Word” button.

Slide 4: App Design & Experience

A good algorithm needs a good user interface.

  • Clean UI: Developed using R Shiny with custom CSS to give it a modern, colorful look.
  • Interactive: Highlights the predicted word in a distinct green box for better readability.
  • Performance: Hosted on shinyapps.io, ensuring smooth and reliable access.

Slide 5: Conclusion & Links