I chose to seperate the three text files for my predictions, to see how the different sources would impact the suggestion.
The prediction works using the wordpredictor package, with an n of 5. It uses a markov model with Laplace Smoothing looking at the previous 4 words in order to make the prediction.
## $found ## [1] TRUE ## ## $words ## [1] "books" "corners" "projects" ## ## $probs ## [1] 0.25 0.25 0.25