Porter's stemmer for rust
-
Clone and compile the code
git clone https://github.com/mrordinaire/rust-stem.git cd rust-stem make
-
Example code
use stem::*; let word = "pencils"; let s = stem::get(s); // stem == "pencil"
-
Compile
rustc example.rs -L /path/to/folder/containing/libstem*.so