1 Store keywords in a hashtable, with the key = hashcode, and value is a string array to store keywords with same hashcode in alphabetic order.
2 For incoming word, hash it, and search for the hashcode in the dictionary.
3 If the hashcode is found, search the string array for the incoming word.
It should be much fast to find an entry in hashtable, and the string array should be short for each hashcode.