Description Usage Arguments Details Value Author(s)
Replaces terms by their synonyms, if these synonyms were also found in the text.
1 | wn.replace(terms,protect=NULL)
|
terms |
A character vector of terms. |
protect |
A numerical vector indicating the index of terms in |
Should be performed twice if some terms should not be replaced by synonyms or by a certain synonym.
First time with protect=NULL
.
Second time with protect
being a numerical vector indicating the index of terms that should not be replaced.\
Uses the wordnet package to find synonyms.
$terms |
Returns the input text with replaced synonyms. |
$replacements |
A matrix with two columns, where the first column contains a term for which a synonym was found in the same text and the second column contains the synonym found. |
Ingo Feinerer and Angela Bohn angela.bohn at gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.