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. http://mfwallace.googlepages.com/jawbone.html

See Also

getIndexTerms

Examples

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

[Package wordnet version 0.1-1 Index]