The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

Type: Package
URL: https://landesbergn.github.io/rhymer/index.html, https://github.com/landesbergn/rhymer
BugReports: https://github.com/landesbergn/rhymer/issues
Title: Wrapper for the 'Datamuse' API to Find Rhyming and Associated Words
Version: 1.2.2
Description: Wrapper for 'Datamuse' API to find rhyming and other associated words. This includes words of similar meaning, spelling, or other related words. Learn more about the 'Datamuse' API here https://www.datamuse.com/api/.
License: MIT + file LICENSE
Encoding: UTF-8
Depends: R (≥ 3.1.0)
Imports: jsonlite, httr
RoxygenNote: 7.3.2
Suggests: knitr, rmarkdown, testthat
VignetteBuilder: knitr
NeedsCompilation: no
Packaged: 2025-05-19 01:17:26 UTC; noah
Author: Noah Landesberg [aut, cre]
Maintainer: Noah Landesberg <noah.landesberg@gmail.com>
Repository: CRAN
Date/Publication: 2025-05-22 05:10:09 UTC

Call Datamuse API and return data.

Description

Call Datamuse API and return data.

Usage

datamuse_api(path, limit = 10)

Arguments

path

path to append to Datamuse API endpoint.

limit

number of results to limit the API response to.

Value

data returned from API call.

Examples

datamuse_api("/words?rel_rhy=test")

datamuse_api("/words?ml=test")

Extract content from Datamuse API call.

Description

Extract content from Datamuse API call.

Usage

get_content(full_path, return_type = "df", limit = 10)

Arguments

full_path

API path to append to Datamuse API endpoint.

return_type

type to return. Options are:

  • 'df' for data.frame.

  • 'word' for a single word.

  • 'random_word' or 'random word' or 'rand' for a random word.

  • 'vector' for a vector of words.

limit

max number of rows to return from the content dataframe.

Value

content returned from API call.

Examples

get_content("/words?rel_rhy=test", limit = 5)

get_content("/words?ml=test", limit = 20)

Get dataframe for words with similar meaning.

Description

Get dataframe for words with similar meaning.

Usage

get_means_like(word = "test", return_type = "df", limit = 10)

Arguments

word

to get similar meaning with.

return_type

type to return. Options are:

  • 'df' for data.frame.

  • 'word' for a single word.

  • 'random_word' or 'random word' or 'rand' for a random word.

  • 'vector' for a vector of words.

limit

max number of words to return.

Value

data with words of similar meaning.

Examples

get_means_like("test")

get_means_like("test", limit = 10)

Description

Get data for words that are related according to a supplied code.

Usage

get_other_related(word = "test", code = "jja", return_type = "df", limit = 10)

Arguments

word

to get similarly spelled words with.

code

related word code from http://www.datamuse.com/api/.

return_type

type to return. Options are:

  • 'df' for data.frame.

  • 'word' for a single word.

  • 'random_word' or 'random word' or 'rand' for a random word.

  • 'vector' for a vector of words.

limit

max number of words to return.

Value

data with words that are related.

Examples

get_other_related("test", code = "jja", limit = 3)

get_other_related("test", code = "cns", limit = 10)

Get data for rhyming words.

Description

Get data for rhyming words.

Usage

get_rhyme(word, return_type = "df", limit = 10, num_syl = NULL)

Arguments

word

to rhyme with.

return_type

type to return. Options are:

  • 'df' for data.frame.

  • 'word' for a single word.

  • 'random_word' or 'random word' or 'rand' for a random word.

  • 'vector' for a vector of words.

limit

max number of words to return.

num_syl

number of syllables in rhymes to return.

Value

data with rhyming words.

Examples

get_rhyme("test")

get_rhyme("test", limit = 10)

Get data for words that sound similar.

Description

Get data for words that sound similar.

Usage

get_sounds_like(word = "test", return_type = "df", limit = 10, num_syl = NULL)

Arguments

word

to get similar sounding words with.

return_type

type to return. Options are:

  • 'df' for data.frame.

  • 'word' for a single word.

  • 'random_word' or 'random word' or 'rand' for a random word.

  • 'vector' for a vector of words.

limit

max number of words to return.

num_syl

number of syllables in rhymes to return.

Value

data containing word(s) that sound similar.

Examples

get_sounds_like("test")

get_sounds_like("test", limit = 10)

Get data for words that are spelled similarly.

Description

Get data for words that are spelled similarly.

Usage

get_spelled_like(word = "test", return_type = "df", limit = 10)

Arguments

word

to get similarly spelled words with.

return_type

type to return. Options are:

  • 'df' for data.frame.

  • 'word' for a single word.

  • 'random_word' or 'random word' or 'rand' for a random word.

  • 'vector' for a vector of words.

limit

max number of words to return.

Value

data with words that are spelled similarly.

Examples

get_spelled_like("test")

get_spelled_like("test", limit = 10)

Helper function to shape data to return to user.

Description

Helper function to shape data to return to user.

Usage

return_content(api_content, return_type)

Arguments

api_content

content returned from the API call.

return_type

type to return. Options are:

  • 'df' for data.frame.

  • 'word' for a single word.

  • 'random_word' or 'random word' or 'rand' for a random word.

  • 'vector' for a vector of words.

Value

data as specified above.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.