syllabify | R Documentation |
This will take a transcription as input, and return it as a data frame.
syllabify(pron, alaska_rule = T)
pron |
The CMU dictionary pronunciation, either as a vector, or a string with labels separated by spaces |
alaska_rule |
Don't maximize onset on lax vowel + s sequences |
Returns a data frame with the following columns
A numeric index for each syllable
What part of the syllable each phone belongs to
The phone label from the transcription
The syllable stress
# String input
syllabify("AO0 S T R EY1 L Y AH0")
# Vector input
syllabify(c("AO0", "S", "T", "R", "EY1", "L", "Y", "AH0"))
# Hiatus
syllabify("HH AY0 EY1 T AH0 S")
# Deficient transcriptions (has warning)
syllabify(c("M"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.