Expand description
Cross-platform native spell checking: NSSpellChecker on macOS, ISpellChecker
on Windows, and hunspell with system dictionaries on other Unix.
Spellkit does not bundle dictionaries or implement its own spelling algorithm. Use it when you want OS dictionaries and a small API; use a crate like Spellbook when you want a portable engine and app-shipped word lists. Behavior can differ across operating systems where the backends differ.
§Example
use spellkit::Checker;
let checker = Checker::new().unwrap();
let errors: Vec<_> = checker.check("I beleeve I can fly").collect();
assert_eq!(errors.len(), 1);
assert_eq!(errors[0].text(), "beleeve");ⓘ
fn needs_send<T: Send>() {}
needs_send::<spellkit::Checker>();Structs§
- Checker
- Instance of the system spell checker.
- Spelling
Error - A spelling error.