Ant: Get antonyms for one word

ant(word, n_words = -1)

Arguments

word

character, one word you want to find antonyms for.

n_words

integer, the number of words to return.

Value

antonyms of the word you entered. Returns character(0) if word not found

Examples

ant("good")
#> [1] "bad" "evil"
ant("evil", 25)
#> [1] "good"
# No words for spelling mistakes ant("spolling misteak")
#> character(0)