2026-06-07

Project Overview

Developing Data Products Final Project

This project demonstrates a simple Natural Language Processing (NLP) application that predicts the next word based on a user-entered phrase.

Objectives:

  • Build an interactive Shiny application
  • Implement a simple prediction algorithm
  • Deploy the application online using shinyapps.io

Problem Statement

The goal of this application is to:

  • Predict the next word from a user-entered phrase
  • Demonstrate a basic NLP workflow
  • Provide a simple and interactive user experience
  • Showcase deployment using Shiny

Prediction Algorithm

Algorithm Steps:

  1. User enters a phrase
  2. Text is converted to lowercase
  3. Input is matched against predefined patterns
  4. Corresponding prediction is returned

Example Predictions:

  • i love → you
  • how are → you
  • machine learning → model
  • data science → project

Application Features

Key Features:

  • Interactive text input
  • Predict button
  • Instant prediction output
  • Lightweight and fast execution
  • Deployed online using shinyapps.io

Application Demo

Future Improvements

Possible Enhancements:

  • Use large text datasets
  • Implement n-gram language models
  • Improve prediction accuracy
  • Add multiple prediction suggestions
  • Include probability scores

Conclusion

Summary:

  • Developed a Next Word Prediction App
  • Built using R and Shiny
  • Successfully deployed online
  • Demonstrates fundamental NLP concepts

Thank You!