Crate rust_stemmers

Source
Expand description

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 = "^1.0"
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§

  • Wrapps a usable interface around the actual stemmer implementation

Enums§