commit | 0b439f33da14957138b75f405e6386f9f26731ff | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Tue Oct 08 23:12:56 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Tue Oct 08 23:12:56 2024 +0000 |
tree | f27d12d6936ff122ab821bd782c419e206c5669c | |
parent | 9cc760d76188d492d114bed95502a7d5664224c1 [diff] | |
parent | c7b322df3f6d9da4b06279c1b6af02cd8f472d6a [diff] |
Snap for 12472708 from c7b322df3f6d9da4b06279c1b6af02cd8f472d6a to sdk-release Change-Id: I0c137b90f742e3d51408791b7f00026b5d949b5d
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");