1
 2
 3
 4
 5
 6
 7
 8
 9
10
use std::borrow::Cow;

pub trait Dictionary {
    fn correct_ident<'s, 'w>(
        &'s self,
        _ident: crate::tokens::Identifier<'w>,
    ) -> Option<Cow<'s, str>>;

    fn correct_word<'s, 'w>(&'s self, word: crate::tokens::Word<'w>) -> Option<Cow<'s, str>>;
}