pub trait WordChecker: Send + Sync {
// Required methods
fn check(&self, word: &str) -> bool;
fn suggest(&self, word: &str, limit: usize) -> Vec<String>;
}Expand description
A word checker that can verify spelling and suggest corrections.
This trait abstracts the dictionary implementation, allowing different backends (spellbook, hunspell, embedded, mock, etc.).