Predicate that tests if two words are the same