syllables: Calculate number of syllables in a word.

Description Usage Arguments Value Examples

Description

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

Usage

1
syllables(word, all_pronunciations = FALSE)

Arguments

word

single word

all_pronunciations

If TRUE, return the syllable counts for all pronunciations, otherwise only return syllable count for the first pronunciation. Default: FALSE

Value

Integer vector of counts of syllables in word. Returns NA_Integer if word is not in the CMU Pronouncing Dictionary.

Examples

1
2
syllables("average")
syllables("antidisestablishmentarianism")

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