Hi ,
First of all, Thanks for the great post and commentary. The example in the word2phrase.c - getWordHash function seems wrong to me.
Line 108 in word2phrase.c
hash = ((((h * 257) + a) * 257) + t) % 30E6
i guess the correct version should be :
hash = (((((hash * 257) + h) * 257) + a)*257+t) % 30E6
Please correct me if i am wrong.