commit | 5ca64177eb4aee01021c15c68f658007d7fa600a | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Sun Nov 03 07:13:21 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Sun Nov 03 07:13:21 2024 +0000 |
tree | 6ebba5a27a080841f7a6b8cb7bb997d2b4fa40c1 | |
parent | b92efce4ac5f537725b0fe28638a2b7d1fda0d61 [diff] | |
parent | 19b4f4109017a0921d84bf62fda956aebbae6aa7 [diff] |
Snap for 12583183 from 19b4f4109017a0921d84bf62fda956aebbae6aa7 to busytown-mac-infra-release Change-Id: Ib9d63c1e39856d146372b0069c20b3a75e19f4ea
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");