2026-06-10

Introduction

SwiftKey Next Word Predictor

  • Built using R and Shiny
  • Predicts the next word from a user phrase
  • Demonstrates a simple predictive text model

Application

How to use the app:

  1. Enter a phrase
  2. Click Predict
  3. View the predicted next word

Examples:

  • I love → you
  • How are → you
  • Good morning → everyone

Prediction Algorithm

Algorithm Steps:

  • Convert input to lowercase
  • Remove extra spaces
  • Compare phrase against known phrases
  • Return a matching prediction
  • Return a default word if no match exists

Features

Application Features:

  • Simple user interface
  • Fast response time
  • Browser-based application
  • Hosted on shinyapps.io

Conclusion

Summary:

  • Built a working Shiny application
  • Implemented next-word prediction
  • Successfully deployed online
  • Can be expanded using larger n-gram language models

Thank You