+ 1

How to write a code predict the rest of a word a user is typing

I want to write this code with c++

4th Mar 2018, 7:54 AM
Aysooda Akbari
Aysooda Akbari - avatar
1 Answer
+ 3
Set up a dictionary of words. Then when user has typed some letters look up if any of the known words in the dictionary start with those letters. If many then narrow it down when more letters are added. You can even make the dictionary dynamic, add words over time, or use statistical analysis to see which words are more likely.
4th Mar 2018, 8:49 AM
Jared Bird
Jared Bird - avatar