This project is about word prediction: predict the next word in a sentence, knowing the previous words. It uses machine learning technics to train an algorithm in a specific natural language (in our case English). A web version of it that can be tested at https://rosengurtt.shinyapps.io/swiftkeywordprediction3/
In our tests the right word is predicted aproximately 17% of the time. The other 83% the word predicted is a good candidate, in the sense that it makes sense and the phrase is a perfectly valid one. When the user types partially a word, the tool uses the letters typed so far of the new word to make a better prediction. No word predictor can have a 100% accuracy or even close to that value. Otherwise, there would be no point in reading anything, because there would be nothing new to say. So we consider that our 17% hit rate is not as bad as it sounds.