Title: | Wrapper for the 'Datamuse' API to Find Rhyming and Associated Words |
---|---|
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/>. |
Authors: | Noah Landesberg [aut, cre] |
Maintainer: | Noah Landesberg <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.1.0 |
Built: | 2025-02-12 05:26:59 UTC |
Source: | https://github.com/landesbergn/rhymer |
Call Datamuse API and return data.
datamuse_api(path, limit = 10)
datamuse_api(path, limit = 10)
path |
path to append to Datamuse API endpoint. |
limit |
number of results to limit the API response to. |
data returned from API call.
datamuse_api("/words?rel_rhy=test") datamuse_api("/words?ml=test")
datamuse_api("/words?rel_rhy=test") datamuse_api("/words?ml=test")
Extract content from Datamuse API call.
get_content(full_path, return_type = "df", limit = 10)
get_content(full_path, return_type = "df", limit = 10)
full_path |
API path to append to Datamuse API endpoint. |
return_type |
type to return. Options are:
|
limit |
max number of rows to return from the content dataframe. |
content returned from API call.
get_content("/words?rel_rhy=test", limit = 5) get_content("/words?ml=test", limit = 20)
get_content("/words?rel_rhy=test", limit = 5) get_content("/words?ml=test", limit = 20)
Get dataframe for words with similar meaning.
get_means_like(word = "test", return_type = "df", limit = 10)
get_means_like(word = "test", return_type = "df", limit = 10)
word |
to get similar meaning with. |
return_type |
type to return. Options are:
|
limit |
max number of words to return. |
data with words of similar meaning.
get_means_like("test") get_means_like("test", limit = 10)
get_means_like("test") get_means_like("test", limit = 10)
Get data for rhyming words.
get_rhyme(word, return_type = "df", limit = 10, num_syl = NULL)
get_rhyme(word, return_type = "df", limit = 10, num_syl = NULL)
word |
to rhyme with. |
return_type |
type to return. Options are:
|
limit |
max number of words to return. |
num_syl |
number of syllables in rhymes to return. |
data with rhyming words.
get_rhyme("test") get_rhyme("test", limit = 10)
get_rhyme("test") get_rhyme("test", limit = 10)
Get data for words that sound similar.
get_sounds_like(word = "test", return_type = "df", limit = 10, num_syl = NULL)
get_sounds_like(word = "test", return_type = "df", limit = 10, num_syl = NULL)
word |
to get similar sounding words with. |
return_type |
type to return. Options are:
|
limit |
max number of words to return. |
num_syl |
number of syllables in rhymes to return. |
data containing word(s) that sound similar.
get_sounds_like("test") get_sounds_like("test", limit = 10)
get_sounds_like("test") get_sounds_like("test", limit = 10)
Get data for words that are spelled similarly.
get_spelled_like(word = "test", return_type = "df", limit = 10)
get_spelled_like(word = "test", return_type = "df", limit = 10)
word |
to get similarly spelled words with. |
return_type |
type to return. Options are:
|
limit |
max number of words to return. |
data with words that are spelled similarly.
get_spelled_like("test") get_spelled_like("test", limit = 10)
get_spelled_like("test") get_spelled_like("test", limit = 10)
Helper function to shape data to return to user.
return_content(api_content, return_type)
return_content(api_content, return_type)
api_content |
content returned from the API call. |
return_type |
type to return. Options are:
|
data as specified above.