synonyms: Search For Synonyms

Description Usage Arguments Value References Examples

Description

Search for synonyms that match term(s).

Usage

1
2
3
4
5
  synonyms(terms, return.list = TRUE, multiwords = TRUE,
    report.null = TRUE)

  syn(terms, return.list = TRUE, multiwords = TRUE,
    report.null = TRUE)

Arguments

terms

The terms to find synonyms for.

return.list

logical. If TRUE returns the output for multiple synonyms as a list by search term rather than a vector.

multiwords

logical. IF TRUE retains vector elements that contain phrases (defined as having one or more spaces) rather than a single word.

report.null

logical. If TRUE reports the words that no match was found at the head of the output.

Value

Returns a list of vectors or vector of possible words that match term(s).

References

The synonyms dictionary (see SYNONYM) was generated by web scraping the Reverso Online Dictionary. The word list fed to Reverso is the unique words from the combination of DICTIONARY and labMT.

Examples

1
2
3
4
synonyms(c("the", "cat", "job", "environment", "read", "teach"))
head(syn(c("the", "cat", "job", "environment", "read", "teach"),
    return.list = FALSE), 30)
syn(c("the", "cat", "job", "environment", "read", "teach"), multiwords = FALSE)

trinker/qdap2 documentation built on May 31, 2019, 9:47 p.m.