Debian Codegraph @

/

debian rust-rust-stemmers 1.2.0-1debian librust-rust-stemmers-dev debian librust-rust-stemmers+default-dev debian librust-rust-stemmers-1-dev debian librust-rust-stemmers-1+default-dev debian librust-rust-stemmers-1.2-dev debian librust-rust-stemmers-1.2+default-dev debian librust-rust-stemmers-1.2.0-dev debian librust-rust-stemmers-1.2.0+default-dev cargo rust-stemmers 1.2.0 debianjsonmakefilemarkdownrustrust-c-abishelltoml 38 files · 1147 symbols
View dependency graph

Depends on

  • dh-cargo (dh-sequence-cargo)
  • cargo, debhelper-compat, librust-serde-1+default-dev, librust-serde-derive-1+default-dev, libstd-rust-dev, rustc
README (full)

Rust Stemmers

This crate implements some stemmer algorithms found in the snowball project which are compiled to rust using the rust-backend of the snowball compiler.

Supported Algorithms

  • Arabic
  • Danish
  • Dutch
  • English
  • French
  • German
  • Greek
  • Hungarian
  • Italian
  • Norwegian
  • Portuguese
  • Romanian
  • Russian
  • Spanish
  • Swedish
  • Tamil
  • Turkish

Usage

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");

Related Projects

  • The stemmer crate provides bindings to the C Snowball implementation.
dir algorithms/
dir debian/
dir examples/
dir src/
dir test_data/
file .cargo_vcs_info.json
file .gitignore
file Cargo.lock
file Cargo.toml
file Cargo.toml.orig
file LICENSE
file README.md