syllables_phonemes: Calculate number of syllables in each phoneme string.

Description Usage Arguments Value Examples

Description

The number of syllables is the count of the number of stressed phonemes in the word.

Usage

1

Arguments

phons

Vector of phoneme strings e.g. c("K AE1 R IY0", "K EH1 R IY0")

Value

Integer vector of counts of syllables in each phoneme string.

Examples

1
2
syllables_phonemes(phonemes("average", keep_stresses = TRUE))
syllables_phonemes(c("G R EY1 T", "F AE0 N T AE1 S T IH0 K"))

coolbutuseless/phon documentation built on May 31, 2019, 5:40 a.m.