A rust implementation of some popular snowball stemming algorithms
Rust
136
45 commits
updated Apr 27, 2024
This crate implements some stemmer algorithms found in the snowball project which are compiled to rust using the rust-backend of the snowball compiler.
extern crate rust_stemmers;
use rust_stemmers::{Algorithm, Stemmer};
// Create a stemmer for the english language
let en_stemmer = Stemmer::create(Algorithm::English);
// Stemm the word "fruitlessly"
// Please be aware that all algorithms expect their input to only contain lowercase characters.
assert_eq!(en_stemmer.stem("fruitlessly"), "fruitless");
Rust
100.0%
A rust implementation of some popular snowball stemming algorithms
Rust
136
45 commits
updated Apr 27, 2024
This crate implements some stemmer algorithms found in the snowball project which are compiled to rust using the rust-backend of the snowball compiler.
extern crate rust_stemmers;
use rust_stemmers::{Algorithm, Stemmer};
// Create a stemmer for the english language
let en_stemmer = Stemmer::create(Algorithm::English);
// Stemm the word "fruitlessly"
// Please be aware that all algorithms expect their input to only contain lowercase characters.
assert_eq!(en_stemmer.stem("fruitlessly"), "fruitless");
Rust
100.0%