commit | be87f453a22155be39168e5973829034e3551903 | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Thu Sep 26 14:47:53 2024 +0000 |
committer | James Farrell <[email protected]> | Thu Sep 26 14:47:53 2024 +0000 |
tree | 69213af2037fdc50d472d2a670e6bf3d54820ea7 | |
parent | 7a89518f5b3d41ba4569c499865b5dd260876b23 [diff] |
Update Android.bp by running cargo_embargo Test: ran cargo_embargo Change-Id: I73300023df1e18fa339a17ce43b7253d9d94590d
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");