getIndexTerms {wordnet}R Documentation

Get index terms

Description

Get index terms from a WordNet dictionary as specified by a filter.

Usage

getIndexTerms(dict, pos, maxLimit, filter)

Arguments

dict A WordNet dictionary.
pos Part of speech type. Must be either ADJECTIVE, ADVERB, NOUN, or VERB.
maxLimit Maximum number of results.
filter A term filter.

Value

A list of index terms.

Author(s)

Ingo Feinerer

References

M. Wallace (2007). Jawbone Java WordNet API. http://mfwallace.googlepages.com/jawbone.html

See Also

getTermFilter

Examples

validInstallation <- initDict()
if (validInstallation) {
    dict <- getDictInstance()
    filter <- getTermFilter("StartsWithFilter", "car", TRUE)
    getIndexTerms(dict, "NOUN", 5, filter)
}

[Package wordnet version 0.1-1 Index]