commit | c7b322df3f6d9da4b06279c1b6af02cd8f472d6a | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Tue Oct 08 18:00:49 2024 +0000 |
committer | James Farrell <[email protected]> | Tue Oct 08 18:00:49 2024 +0000 |
tree | f27d12d6936ff122ab821bd782c419e206c5669c | |
parent | be87f453a22155be39168e5973829034e3551903 [diff] |
Make LICENSE file match crate archive contents. Bug: http://b/339424309 Test: treehugger Change-Id: I086583efcc0b6e6679925432322d23b7f3084c5f
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");