compute_syllable_counts: Compute Syllable Counts

Description Usage Arguments Value Examples

View source: R/compute_syllable_counts.R

Description

A computational approach to determine syllable counts. The function uses regular expressions and linguistical logic to compute the number of syllables in a term.

Usage

1

Arguments

x

A character vector of terms.

...

ignored.

Value

Returns a vector of syllable counts.

Examples

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)

syllable documentation built on May 30, 2017, 12:52 a.m.