A simple practical spellcheker.
This crates wraps hunspell's source directly. To do so it uses the cc-rs
crate when building. As such the same limitations applies, for example a compiler must be
installed on the system.
```rust let spell = rspell::Spell::new("en_US").unwrap();
assert!(!spell.checkword("colour").correct()); assert!(spell.checkword("color").correct());
for bad in spell.check("Wht color is this flg?") { println!( "{} (offset: {}): possible corrections: {:?}", bad.word, bad.offset, bad.suggestions ); } ```
cc-rs
crateThis project is licensed under either of - Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) - MIT license (http://opensource.org/licenses/MIT)
Hunspell's licensing applies to hunspell's source files.