Implements similar words functionality for dictionary.