Crate waken_snowball

Crate waken_snowball 

Source
Expand description

Snowball Stemmer Library for Rust

This library provides Rust implementations of the Snowball stemming algorithms for multiple languages. It’s generated from the official Snowball compiler.

§Example

use waken_snowball::{Algorithm, stem};

// Stem a single word
let stemmed = stem(Algorithm::English, "running");
assert_eq!(stemmed, "run");

// Create a reusable stemmer
let stemmer = Algorithm::English.stemmer();
let result = stemmer.stem("jumping");
assert_eq!(result, "jump");

Re-exports§

pub use snowball::SnowballEnv;
pub use snowball::Among;

Modules§

algorithms
snowball

Structs§

Stemmer
A stemmer for a specific algorithm

Enums§

Algorithm
Supported stemming algorithms

Functions§

algorithms
Get a list of all supported algorithms
stem
Stem a word using the specified algorithm