Description Usage Arguments Value Examples
View source: R/compute_syllable_counts.R
A computational approach to determine syllable counts. The function uses regular expressions and linguistical logic to compute the number of syllables in a term.
1 |
x |
A character vector of terms. |
... |
ignored. |
Returns a vector of syllable counts.
1 2 3 4 5 6 7 | terms <- c("other", "about", "many", "into", "number", "people", "water",
"over", "only", "little", "very", "after", "sentence", "before",
"any", "follow", "also", "around", "another", "even", "because",
"different", "picture", "again", "away", "animal", "letter",
"mother", "answer", "study", "America")
stats::setNames(compute_syllable_counts(terms), terms)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.