getLemma {wordnet}R Documentation

Get index term lemma

Description

Retrieve the lemma (i.e., word) of an index term.

Usage

getLemma(indexterm)

Arguments

indexterm The index term whose lemma is returned.

Value

A character vector holding the index term lemma.

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("StartsWithFilter", "car", TRUE)
    terms <- getIndexTerms(dict, "NOUN", 5, filter)
    sapply(terms, getLemma)
}

[Package wordnet version 0.1-1 Index]