Title: | Creates Synonyms From Target Words |
Version: | 0.1.0 |
Description: | Generates synonyms from a given word drawing from a synonym list from the 'moby' project http://moby-thesaurus.org/. |
Depends: | R (≥ 3.4.0) |
License: | GPL-3 |
Encoding: | UTF-8 |
LazyData: | true |
RoxygenNote: | 7.0.2 |
URL: | http://syn.njtierney.com/, https://github.com/ropenscilabs/syn |
BugReports: | https://github.com/ropenscilabs/syn/issues |
Suggests: | glue, covr, testthat (≥ 2.1.0), spelling |
Language: | en-US |
NeedsCompilation: | no |
Packaged: | 2019-12-16 03:42:35 UTC; ntie0001 |
Author: | Nicholas Tierney |
Maintainer: | Nicholas Tierney <nicholas.tierney@gmail.com> |
Repository: | CRAN |
Date/Publication: | 2019-12-20 12:10:02 UTC |
Ant: Get antonyms for one word
Description
Ant: Get antonyms for one word
Usage
ant(word, n_words = -1)
Arguments
word |
character, one word you want to find antonyms for. |
n_words |
integer, the number of words to return. |
Value
antonyms of the word you entered. Returns character(0)
if word not found
Examples
ant("good")
ant("evil", 25)
# No words for spelling mistakes
ant("spolling misteak")
Ants: Get antonyms for many words
Description
Ants: Get antonyms for many words
Usage
ants(words, n_words = -1)
Arguments
words |
word, character - many words you want to find antonyms. |
n_words |
integer, the number of words to look for. |
Value
named list of antonyms. Returns character(0)
if word not found
Examples
ants(c("good", "evil"), 10)
Return the number of words in a string
Description
Return the number of words in a string
Usage
n_words(x)
Arguments
x |
a string |
Value
vector of numbers
Examples
syn_end <- syn("end")
syn_end_words <- n_words(syn_end)
syn_end[syn_end_words <= 1]
syn
Description
syn provides a dependency free way to get synonyms and antonyms of words.
Usage
syn(word, n_words = -1)
Arguments
word |
character, one word you want to find synonyms for. |
n_words |
integer, the number of words to look for. An integer Default is all words |
Value
synonyms of the word you entered. Returns character(0)
if word not found.
See Also
It's main functions are:
Learn more about syn at https://syn.njtierney.com/
Examples
# put some examples here
syn("good")
syn("evil", 25)
# No words for spelling mistakes
syn("spolling misteak")
Syns: Get synonyms for many words
Description
Syns: Get synonyms for many words
Usage
syns(words, n_words = -1)
Arguments
words |
word, character - many words you want to find synonyms for |
n_words |
integer, the number of words to look for. An integer Default is all words |
Value
named list of synonyms. Returns character(0)
if word not found.
Examples
syns(c("good", "evil"), 10)
# No words for spelling mistakes
syns("spolling misteak")