Debian Codegraph @

README.md

raw symbols SCIP
1 # Rust Stemmers
2
3 This crate implements some stemmer algorithms found in the [snowball project](http://snowballstem.org/) which are compiled to rust using the rust-backend of the [snowball compiler](https://github.com/snowballstem/snowball).
4
5 # Supported Algorithms
6
7 - Arabic
8 - Danish
9 - Dutch
10 - English
11 - French
12 - German
13 - Greek
14 - Hungarian
15 - Italian
16 - Norwegian
17 - Portuguese
18 - Romanian
19 - Russian
20 - Spanish
21 - Swedish
22 - Tamil
23 - Turkish
24
25
26 # Usage
27
28 ```rust
29 extern crate rust_stemmers;
30 use rust_stemmers::{Algorithm, Stemmer};
31
32 // Create a stemmer for the english language
33 let en_stemmer = Stemmer::create(Algorithm::English);
34
35 // Stemm the word "fruitlessly"
36 // Please be aware that all algorithms expect their input to only contain lowercase characters.
37 assert_eq!(en_stemmer.stem("fruitlessly"), "fruitless");
38 ```
39
40 # Related Projects
41
42 - The [stemmer](https://github.com/lise-henry/stemmer-rs) crate provides bindings to the C Snowball implementation.
43