ant: Ant: Get antonyms for one word

Description Usage Arguments Value Examples

View source: R/ant.R

Description

Ant: Get antonyms for one word

Usage

1
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

1
2
3
4
ant("good")
ant("evil", 25)
# No words for spelling mistakes
ant("spolling misteak")

Example output

[1] "bad"  "evil"
[1] "good"
character(0)

syn documentation built on Dec. 20, 2019, 5:07 p.m.

Related to ant in syn...