R/rhymer.R
get_other_related.Rd
Get data for words that are related according to a supplied code.
get_other_related(word = "test", code = "jja", return_type = "df", limit = 10)
to get similarly spelled words with.
related word code from http://www.datamuse.com/api/.
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.
max number of words to return.
data with words that are related.
get_other_related("test", code = "jja", limit = 3)
#> word score
#> 1 results 1001
#> 2 tube 1000
#> 3 scores 999
get_other_related("test", code = "cns", limit = 10)
#> word score numSyllables
#> 1 taste 1739 1
#> 2 toast 1613 1
#> 3 teste 388 1
#> 4 tossed 291 1
#> 5 toste 16 1
#> 6 teast NA 1