getWord: Get Synset Word

View source: R/synsets.R

getWordR Documentation

Get Synset Word

Description

Get the words in a synset.

Usage

getWord(synset)

Arguments

synset

The synset whose words are returned.

Value

A character vector holding the words.

Author(s)

Ingo Feinerer

References

M. Wallace (2007). Jawbone Java WordNet API. https://sites.google.com/site/mfwallace/jawbone

See Also

getSynsets

Examples

if(initDict()) {
  filter <- getTermFilter("ExactMatchFilter", "hot", TRUE)
  terms <- getIndexTerms("ADJECTIVE", 5, filter)
  synsets <- getSynsets(terms[[1]])
  related <- getRelatedSynsets(synsets[[1]], "!")
  sapply(related, getWord)
}

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