get_rhymes | R Documentation |
Given a pronounciation dictionary with columns for tokens (words) and pronounciations, this function returns a vector of possible rhymes.
get_rhymes( word, pron, token = token, stress_vowel = stress_vowel, remainder = remainder )
word |
character. Word to find rhymes for |
pron |
A tibble assumed to contain a |
token |
character. Name of column containing token (word). |
stress_vowel |
character. Name of column containing pronounciation for the stressed vowel. Used for finding rhymes. |
remainder |
character. Name of column containing pronounciation for the remainer of the token, i.e. everything after the stressed vowel. Used for finding rhymes. |
A charactor vector with possible rhyming words.
pr <- data.frame(token = c("appellere", "akkumulere", "bygning"), sampa = c("A$pE$\"le:?$6", "a$ku$mu$\"le:?$6", "\"by$gneN"), rhyme_part = c("\"le:?$6", "\"le:?$6", "\"by$gneN"), stress_vowel = c("e:?", "e:?", "y"), remainder = c("$6", "$6", "$gneN")) get_rhymes(word = "appellere", pron = pr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.