Crate spellbound

Source
Expand description

spellbound is a small crate that binds to the native platform’s spell checking APIs and provides a friendlier API.

This corresponds to ISpellChecker on Windows, NSSpellChecker on MacOS, and hunspell on other *nix platforms.

§Example

use spellbound::Checker;

let mut checker = Checker::new();

let errors: Vec<_> = checker.check("I beleeve I can fly").collect();

assert_eq!(errors.len(), 1);
assert_eq!(errors[0].text(), "beleeve");

Structs§

Checker
Instance of the system spell checker.
SpellingError
A spelling error.