Crate rust_stemmers [−] [src]
This library provides rust implementations for some stemmer algorithms written in the snowball language.
All algorithms expect the input to already be lowercased.
Usage
[dependencies]
rust-stemmers = "0.1"
extern crate rust_stemmers; use rust_stemmers::{Algorithm, Stemmer}; fn main() { let en_stemmer = Stemmer::create(Algorithm::English); assert_eq!(en_stemmer.stem("fruitlessly"), "fruitless"); }
Structs
Stemmer |
Wrapps a usable interface around the actual stemmer implementation |
Enums
Algorithm |
Enum of all supported algorithms. Check the Snowball-Website for details. |