Learn R Programming

wordnet (version 0.1-16)

synonyms: Get Synonyms for a Word

Description

Get synonyms for a given word.

Usage

synonyms(word, pos)

Value

A character vector holding the synonyms for the given word.

Arguments

word

The input word.

pos

Part of speech type. Must be either "ADJECTIVE", "ADVERB", "NOUN", or "VERB".

Author

Ingo Feinerer

See Also

getSynonyms

Examples

Run this code
if(initDict())
  synonyms("company", "NOUN")

Run the code above in your browser using DataLab