Crates.io | rust-stemmers |
lib.rs | rust-stemmers |
version | 1.2.0 |
source | src |
created_at | 2017-02-07 13:53:16.288229 |
updated_at | 2019-11-17 13:55:41.390017 |
description | A rust implementation of some popular snowball stemming algorithms |
homepage | |
repository | https://github.com/CurrySoftware/rust-stemmers |
max_upload_size | |
id | 8422 |
size | 9,802,415 |
This crate implements some stemmer algorithms found in the snowball project which are compiled to rust using the rust-backend of the snowball compiler.
Arabic
Danish
Dutch
English
French
German
Greek
Hungarian
Italian
Norwegian
Portuguese
Romanian
Russian
Spanish
Swedish
Tamil
Turkish
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");