npm install request underscore
node main.js
Two method to guess next letter:
-
from to this wiki get a letter list, if there is no letter right, pop a letter from the list.
-
if there is at least one letter was right, go to the dict search this word, and count all the letters from matched words, the next letter is the max count one.
So the accuracy could be affected by the dict, bigger dict get better result.
This dict(words), is from /usr/share/dict/words.