2024-02-01

Introduction to the application

Welcome to our innovative application, crafted as part of the Coursera Data Science Capstone Course. Our mission is to bring you a cutting-edge experience by combining a predictive text model with a user-friendly Shiny app interface.

Imagine effortlessly predicting the next word as you type, mirroring the seamless functionality of modern smartphone keyboards like those powered by SwiftKey technology.

Get ready to witness a simplified and intuitive way of typing that adapts to your writing style with every keystroke.

Use it now and revolutionize your typing experience! https://sofsof1016.shinyapps.io/wordPred/.

How does it work ?

  • Start by entering a partially completed sentence to initiate the next word prediction.

  • The predicted words and the completed sentence are promptly displayed in the textbox.

  • Users have the flexibility to choose from up to 20 predicted words to seamlessly complete their sentences.

  • The selected predicted words are visually represented in the plot for easy reference and interaction.

Data describption

The model’s training utilize a unified document corpus from three primary sources: Blogs, News, and Twitter, with a focus exclusively on the English corpora among the available four languages.

Data description, exploration and summaries are covered in this report report.

Method description

The employed methodology employs a straightforward yet effective approach—a backoff model. This model examines 6-degree n-grams for prediction and gracefully reverts to a 5-degree n-gram in case the initial search yields no result.

This iterative process continues, stepping back successively through trigrams and bigrams. In the event of an unsuccessful bigram search, the model resorts to presenting the most frequently occurring words in the corpus at the unigram level.

This logical progression is inspired by the acclaimed Google N-Gram project, contributing to a robust and adaptable predictive text model.