Learn R Programming

wordnet (version 0.1-16)

getSynonyms: Get Synonyms for an Index Term

Description

Get synonyms for a given index term.

Usage

getSynonyms(indexterm)

Value

A character vector holding the synonyms for the given index term.

Arguments

indexterm

The input index term.

Author

Ingo Feinerer

References

M. Wallace (2007). Jawbone Java WordNet API. https://sites.google.com/site/mfwallace/jawbone

See Also

getIndexTerms

Examples

Run this code
if(initDict()) {
  filter <- getTermFilter("ExactMatchFilter", "company", TRUE)
  terms <- getIndexTerms("NOUN", 5, filter)
  getSynonyms(terms[[1]])
}

Run the code above in your browser using DataLab