| nsyllable | R Documentation | 
Returns a count of the number of syllables in texts. For English
words, the syllable count is exact and looked up from the CMU pronunciation
dictionary, from the default syllable dictionary data_int_syllables.
For any word not in the dictionary, the syllable count is estimated by
counting vowel clusters.
nsyllable(x, language = "en", syllable_dictionary = NULL, use.names = FALSE)
| x | character vector whose syllables will be counted. This will count all syllables in a character vector without regard to separating tokens, so it is recommended that x be individual terms. | 
| language | specify the language for syllable counts by ISO 639-1 code. The
default is English, using the data object  | 
| syllable_dictionary | optional named integer vector of syllable counts
where the names are lower case tokens.  This can be used to override the
language setting, when set to  | 
| use.names | logical; if  | 
an integer vector of the counts of the syllables in each element,
named with the element if use.names = TRUE
# character
nsyllable(c("cat", "syllable", "supercalifragilisticexpialidocious",
            "Brexit", "Administration"), use.names = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.