Struct spellcheck::Speller[][src]

pub struct Speller {
    pub letters: String,
    pub n_words: HashMap<String, u32>,
}

Fields

The letters of the alphabet.

A frequency map of words to the number of times they were found during training.

Methods

impl Speller
[src]

A function that trains the language model with the words in the supplied text. Multiple invocation of this function can extend the training of the model.

A function that returns the correction for the specified word.

Auto Trait Implementations

impl Send for Speller

impl Sync for Speller