Description Usage Arguments Value Examples
This will take a transcription as input, and return it as a data frame.
1 | 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
1 2 3 4 5 6 7 8 9 10 11 |
# A tibble: 8 x 4
syll part phone stress
<dbl> <chr> <chr> <chr>
1 1 nucleus AO 0
2 2 onset S 1
3 2 onset T 1
4 2 onset R 1
5 2 nucleus EY 1
6 2 coda L 1
7 3 onset Y 0
8 3 nucleus AH 0
# A tibble: 8 x 4
syll part phone stress
<dbl> <chr> <chr> <chr>
1 1 nucleus AO 0
2 2 onset S 1
3 2 onset T 1
4 2 onset R 1
5 2 nucleus EY 1
6 2 coda L 1
7 3 onset Y 0
8 3 nucleus AH 0
# A tibble: 6 x 4
syll part phone stress
<dbl> <chr> <chr> <chr>
1 1 onset HH 0
2 1 nucleus AY 0
3 2 nucleus EY 1
4 3 onset T 0
5 3 nucleus AH 0
6 3 coda S 0
# A tibble: 1 x 4
syll part phone stress
<dbl> <chr> <chr> <chr>
1 1 onset M <NA>
Warning message:
In syllabify_list(pron, alaska_rule) : transcription 'M' is defective
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.