Learn R Programming

wordnet (version 0.1-18)

getLemma: Get Index Term Lemma

Description

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

Usage

getLemma(indexterm)

Value

A character vector holding the index term lemma.

Arguments

indexterm

The index term whose lemma is returned.

Author

Ingo Feinerer

References

wordnet::Wallace:2007

See Also

getIndexTerms

Examples

Run this code
if(initDict()) {
  filter <- getTermFilter("StartsWithFilter", "car", TRUE)
  terms <- getIndexTerms("NOUN", 5, filter)
  sapply(terms, getLemma)
}

Run the code above in your browser using DataLab