readsight 1.0.0

Multilingual readability library — 86 languages, 17 formulas, TeX-based syllable counting via the Frank M. Liang algorithm.
Documentation
1
2
3
4
5
6
7
8
9
//! Syllable-counting trait.

/// Counts syllables and produces (possibly approximate) syllable splits.
pub trait SyllableCounter {
    /// Number of syllables in a word.
    fn count_syllables(&self, word: &str) -> i64;
    /// Split a word into syllable parts.
    fn split_syllables(&self, word: &str) -> Vec<String>;
}