Package 'syn'

Title: Creates Synonyms From Target Words
Description: Generates synonyms from a given word drawing from a synonym list from the 'moby' project <http://moby-thesaurus.org/>.
Authors: Nicholas Tierney [aut, cre] , Amy Stringer [aut] , Mike Cheng [aut], Laura de Jong [aut], Thomas Lumley [ctb]
Maintainer: Nicholas Tierney <[email protected]>
License: GPL-3
Version: 0.1.1
Built: 2024-10-31 22:10:15 UTC
Source: https://github.com/njtierney/syn

Help Index


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.

Author(s)

Maintainer: Nicholas Tierney [email protected] (ORCID)

Authors:

Other contributors:

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")