Skip to main content

Crate snowball_stemmers_rs

Crate snowball_stemmers_rs 

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 snowball_stemmers_rs;

use snowball_stemmers_rs::{Algorithm, Stemmer};

fn main() {
   let en_stemmer = Stemmer::create(Algorithm::English);
   assert_eq!(en_stemmer.stem("fishing"), "fish");
}

Structs§

Stemmer
Interface around the Snowball stemmer implementation

Enums§

Algorithm
Enum of all supported algorithms. Check the Snowball-Website for details.