readme/
readme.rs

1extern crate ispell;
2use ispell::SpellLauncher;
3
4fn main() {
5    let mut checker = SpellLauncher::new()
6        .aspell()
7        .command("aspell")
8        .dictionary("en")
9        .launch()
10        .unwrap();
11    let errors = checker.check("A simpel test to to see if it detetcs typing errors").unwrap();
12    for e in errors {
13        println!("'{}' (pos: {}) is misspelled!", &e.misspelled, e.position);
14        if !e.suggestions.is_empty() {
15            println!("Maybe you meant '{}'?", &e.suggestions[0]);
16        }
17    }
18}