synonyms: Get Synonyms for a Word

View source: R/synonyms.R

synonymsR Documentation

Get Synonyms for a Word

Description

Get synonyms for a given word.

Usage

synonyms(word, pos)

Arguments

word

The input word.

pos

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

Value

A character vector holding the synonyms for the given word.

Author(s)

Ingo Feinerer

See Also

getSynonyms

Examples

if(initDict())
  synonyms("company", "NOUN")

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