syllable_count

Function syllable_count 

Source
pub fn syllable_count(text: &str) -> usize
Expand description

Count the number of syllables in a given text

ยงExample

use acorn_lib::analyzer::readability::syllable_count;

let sentence = "The quick brown fox jumps over the lazy dog.";
assert_eq!(syllable_count(sentence), 11);