skyspell_core 2.0.0

skyspell core library
Documentation
1
2
3
4
5
6
7
8
9
10
use anyhow::Result;

pub trait Dictionary {
    // Check if the word is found in the dictionary
    fn check(&self, word: &str) -> Result<bool>;
    // Suggest replacement for error string
    fn suggest(&self, error: &str) -> Vec<String>;
    fn lang(&self) -> &str;
    fn provider(&self) -> &str;
}