add service to check validity of word and fix bug in fuzzy matching