Generic Class Used for Finding Similar Words in a Dictionary