commit | 0fe0ed3fe43aec11b270cc9b69b2f909e30ab85d | [log] [tgz] |
---|---|---|
author | Inna Palant <[email protected]> | Thu May 16 21:08:11 2024 +0000 |
committer | Inna Palant <[email protected]> | Thu May 16 21:08:11 2024 +0000 |
tree | a669be166028e797fb4e6df59b90dbea419aec99 | |
parent | 3028480fe920c237189885e35fed49e24a7e8091 [diff] | |
parent | 3c2c110ff94248b105a241a651d084ba00100c03 [diff] |
Merge remote-tracking branch 'origin/upstream'
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");