getSynonyms {wordnet}R Documentation

Get Synonyms for an Index Term

Description

Get synonyms for a given index term.

Usage

getSynonyms(indexterm)

Arguments

indexterm

The input index term.

Value

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

Author(s)

Ingo Feinerer

References

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

See Also

getIndexTerms

Examples

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

[Package wordnet version 0.1-17 Index]