refactorized get_antonyms and get definitions