hyphenator is a simple Rust library for segmenting words into syllables, using a simple vowel-consonant combination approach to split words into syllables.
To use the hyphenator, add this to your Cargo.toml
:
[dependencies]
hyphenator = "0.1.0"
use hyphenator::split;
fn main() {
let word = "Hyphenator";
let results = split(word);
println!("{:?}", results[0]);
}