getLemma: Get Index Term Lemma

View source: R/indexterm.R

getLemmaR 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. https://sites.google.com/site/mfwallace/jawbone

See Also

getIndexTerms

Examples

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

wordnet documentation built on Feb. 16, 2023, 10:19 p.m.