R/indexterm.R

Defines functions getSynonyms getSynsets getLemma

Documented in getLemma getSynonyms getSynsets

getLemma <-
function(indexterm)
{
    .jcall(indexterm, "S", "getLemma")
}

getSynsets <-
function(indexterm)
{
    .jcall(indexterm, "[Lcom/nexagis/jawbone/Synset;", "getSynsets")
}

getSynonyms <-
function(indexterm)
{
    synsets <-
        .jcall(indexterm, "[Lcom/nexagis/jawbone/Synset;", "getSynsets")
    sort(unique(unlist(lapply(synsets, getWord))))
}

Try the wordnet package in your browser

Any scripts or data that you put into this service are public.

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