Description Usage Arguments Details Value References Examples
syllable.sum
- Count the number of syllables per
row of text.
syllable.count
- Count the number of syllables in
a single text string.
polysyllable.sum
- Count the number of
polysyllables per row of text.
combo_syllable.sum
- Count the number of both
syllables and polysyllables per row of text.
1 2 3 4 5 6 7 8 | syllable.sum(text.var, parallel = FALSE)
syllable.count(text, remove.bracketed = TRUE,
algorithm.report = FALSE)
polysyllable.sum(text.var, parallel = FALSE)
combo_syllable.sum(text.var, parallel = FALSE)
|
text.var |
The text variable |
parallel |
logical. If TRUE attempts to run the function on multiple cores. Note that this may not mean a speed boost if you have one core or if the data set is smaller as the cluster takes time to create. |
text |
A single character vector of text. |
remove.bracketed |
logical. If TRUE brackets are removed from the analysis. |
algorithm.report |
logical. If TRUE generates a report of words not found in the dictionary (i.e. syllables were calculated with an algorithm). |
The worker function of all the syllable functions is
syllable.count
, though it is not
intended for direct use on a transcript. This function
relies on a combined dictionary lookup (based on the
Nettalk Corpus (Sejnowski & Rosenberg, 1987)) and backup
algorithm method.
syllable.sum
- returns a vector of syllable counts
per row.
syllable.count
- returns a dataframe of syllable
counts and algorithm/dictionary uses and, optionally, a
report of words not found in the dictionary.
polysyllable.sum
- returns a vector of
polysyllable counts per row.
combo_syllable.sum
- returns a dataframe of
syllable and polysyllable counts per row.
Sejnowski, T.J., and Rosenberg, C.R. (1987). "Parallel networks that learn to pronounce English text" in Complex Systems, 1, 145-168.
1 2 3 4 5 | syllable.count("Robots like Dason lie.")
syllable.count("Robots like Dason lie.", algorithm.report = TRUE)
syllable.sum(DATA$state)
polysyllable.sum(DATA$state)
combo_syllable.sum(DATA$state)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.