Main functions
rhymer has 4 main functions that allow you to get data on related words through the Datamuse API.
They are:
-
get_rhyme()- a function to get rhyming words
-
get_means_like()- a function to get words with similar meaning
-
get_sounds_like()- a function to get words that sound similar
-
get_spelled_like()- a function to get words that are spelled similarly
There is also a more flexible function get_other_related() that allows you to use the API to get data on other related words using a series of ‘codes’ described on the Datamuse API website.
Each function takes the basic arguments of:
-
wordthe word to base results on
-
return_typewhat type of data return (options are df for a data frame, vector for a vector, word for a single word, and random_word for a random word)
-
limitmax number of related words to return
get_rhyme() and get_sounds_like() also have special helpers for the number of syllables to return called num_syl.
