commit | 6f4c4826f370b9ebf1721f48e8bf57cdcef98246 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <[email protected]> | Mon Jul 15 23:04:22 2024 +0000 |
committer | Gerrit Code Review <[email protected]> | Mon Jul 15 23:04:22 2024 +0000 |
tree | 311451f88d79244f36a7f42b5bd8909af18296b7 | |
parent | 0fe0ed3fe43aec11b270cc9b69b2f909e30ab85d [diff] | |
parent | 546f608e3982da3ad0eae4a3ede67bfa5a384c50 [diff] |
Merge "Remove rust test targets that cannot be run on Android." into main
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");