Struct rust_stemmers::Stemmer
[−]
[src]
pub struct Stemmer { /* fields omitted */ }Wrapps a usable interface around the actual stemmer implementation
Methods
impl Stemmer[src]
impl Stemmerpub fn create(lang: Algorithm) -> Self[src]
pub fn create(lang: Algorithm) -> SelfCreate a new stemmer from an algorithm
pub fn stem<'a>(&self, input: &'a str) -> Cow<'a, str>[src]
pub fn stem<'a>(&self, input: &'a str) -> Cow<'a, str>Stem a single word Please note, that the input is expected to be all lowercase (if that is applicable).