1 unstable release
Uses old Rust 2015
0.1.0 | Dec 20, 2023 |
---|
#1927 in Algorithms
365KB
9K
SLoC
Forked from: https://github.com/CurrySoftware/rust-stemmers
With the custom experimental editions with unknown usefullness.
Rust Stemmers
This crate implements some stemmer algorithms found in the snowball project which are compiled to rust using a rust-backend for the snowball language.
Related Projects
- rust-backend for the snowball language which generated the code in src/snowball/algorithms.
- The stemmer crate provides bindings to the C Snowball implementation.
lib.rs
:
This library provides rust implementations for some stemmer algorithms written in the snowball language.
All algorithms expect the input to already be lowercased.
Usage
[dependencies]
rust-stemmers = "0.1"
extern crate rust_stemmers;
use rust_stemmers::{Algorithm, Stemmer};
fn main() {
let en_stemmer = Stemmer::create(Algorithm::English);
assert_eq!(en_stemmer.stem("fruitlessly"), "fruitless");
}