Refactor the antonyms method