snowball

Library Listed

Rust implementation of Snowball stemming algorithms for 33 languages

Checked · Sources

Downloads
21,654
Dependents
3
Stars
891
Forks
216
Contributors
43
Commits
2,116
Latest release
0.1.0 ·

About

From the project README ·

Snowball is a small string processing language for creating stemming algorithms for use in Information Retrieval, plus a collection of stemming algorithms implemented using it.

Snowball was originally designed and built by Martin Porter. Martin retired from development in 2014 and Snowball is now maintained as a community project. Martin originally chose the name Snowball as a tribute to SNOBOL, the excellent string handling language from the 1960s. It now also serves as a metaphor for how the project grows by gathering contributions over time.

The Snowball compiler translates a Snowball program into source code in another language - currently Ada, C, C++, C#, Dart, Go, Java, Javascript, Object Pascal, PHP, Python, Rust and Zig are supported.

This repository contains the source code for the snowball compiler and the stemming algorithms. The snowball compiler is written in ISO C - you'll need a C compiler which support C99 to build it (but the C code it generates should work with any ISO C compiler).

See https://snowballstem.org/ for more information about Snowball.

Read the full README

What is Stemming?

Stemming maps different forms of the same word to a common "stem" - for example, the English stemmer maps connection, connections, connective, connected, and connecting to connect. So a search for connected would also find documents which only have the other forms.

This stem form is often a word itself, but this is not always the case as this is not a requirement for text search systems, which are the intended field of use. We also aim to conflate words with the same meaning, rather than all words with a common linguistic root (so awe and awful don't have the same stem), and over-stemming is more problematic than under-stemming so we tend not to stem in cases that are hard to resolve. If you want to always reduce words to a root form and/or get a root form which is itself a word then Snowball's stemming algorithms likely aren't the right answer.

Building Snowball

GNU make is required to build Snowball.

The build system is currently structured as two separate stages for many of the target languages.

The first stage builds the Snowball compiler and runs it to create target language code (and it can also run tests on each stemmer). The expectation is that you then create "distribution" tarballs of this code with make dist (or create one for a specific target language, e.g. with make dist_libstemmer_c for C). These tarballs are created in the dist/ subdirectory.

To actually build the libstemmer library you then unpack and build the distribution tarball, e.g. for C::

tar xf dist/libstemmer_c-3.2.0.tar.gz
cd libstemmer_c-3.2.0
make

Cross-compiling

If cross-compiling starting from the git repo, the Snowball compiler needs to be built with a native compiler then libstemmer with the cross-compiler. For example::

make CC=cc dist_libstemmer_c
tar xf dist/libstemmer_c-3.2.0.tar.gz
cd libstemmer_c-3.2.0
make CC=riscv64-unknown-linux-gnu-gcc

If you are cross-compiling to or from Microsoft Windows, you'll need to also work around an assumption in libstemmer's Makefile which sets EXEEXT based on the OS you are building on::

ifeq ($(OS),Windows_NT)
EXEEXT=.exe
endif

For example, if cross-compiling from Linux to Microsoft Windows, use something like this for the libstemmer build::

make CC=x86_64-w64-mingw32-gcc EXEEXT=.exe

When going the other way, you'll need to use EXEEXT=.

Runs on
GPU support unknown
What shows it
  • no dependency or feature matches a backend row
Native code
None found
  • No native code found
Python bindings
No Python binding crate found
License
BSD-3-Clause

Compare with similar projects

Order: strongest tier first, then most downloads, then name, with unmeasured values last. A library counts downloads over 30 days. An app counts binary downloads per release. An app with none counts its crate downloads over 30 days. ML Rust runs this catalogue, so its closest project always gets a row.

snowball beside the projects that share a topic with it
ProjectDownloadsDependentsStarsLatest releaseRuns on (GPU)Native codeLicense
snowball This page Listed

Rust implementation of Snowball stemming algorithms for 33 languages

21,654 downloads over 30 days 3 891 0.1.0 GPU support unknown No native code found BSD-3-Clause
tiktoken-rs Featured

Library for encoding and decoding with the tiktoken library in Rust

3,939,182 downloads over 30 days 449 410 0.12.1 GPU support unknown No native code found MIT
rust-stemmers Listed Dormant

A rust implementation of some popular snowball stemming algorithms

5,399,112 downloads over 30 days 128 136 1.2.0 GPU support unknown No native code found BSD-3-Clause OR MIT
splintr Listed

Tokenizer for Rust and Python: pure Rust by default, with 18 bundled vocabularies and four backends covering BPE, SentencePiece and WordPiece. Its output matches Hugging Face tokenizers id for id on 14 model families, including GPT-2, Qwen, Whisper, T5 and BERT.

Python bindings

8,204 downloads over 30 days 7 63 0.22.2 GPU support unknown Binds native code: pcre2-sys (feature pcre2) MIT

Pre-built Snowball stemmers for Rust (tracks snowball main)

504,939 downloads over 30 days 4 4 2.20261016.1 GPU support unknown No native code found BSD-3-Clause
xberg New

High-performance document intelligence library for Rust. Extract text, metadata, and structured data from PDFs, Office documents, images, and 107 formats and 371 programming languages via tree-sitter code intelligence with async/sync APIs.

26,095 downloads over 30 days 2 9,565 1.3.10 CUDA, Metal Binds native code: libheif-sys, libz-sys, xberg_libwpd, xberg_tesseract, clipper-sys and 4 more. Build uses a native toolchain: cc, bindgen (feature bindings), cmake (feature build-tesseract), pkg-config (feature dynamic-linking), vcpkg (feature dynamic-linking) MIT
rustberta-snli App Archived

🦀 A Rust implementation of a RoBERTa classification model for the SNLI dataset

Not measured Not applicable 13 Not measured Not measured Not measured None stated
Why ListedNo archive, New or Featured rule places it, so it is Listed.

What it lacks for Featured

  • It has 2 active dependents and 2 new dependents in 365 days. Featured needs 11 active dependents or 9 new dependents in 365 days. The repository route reads 891 stars, 216 forks and 43 contributors. It needs 4,539 stars, 434 forks and 79 contributors together.
  • The check finds no release commit or manifest that ties the crate to the repository.

What else the check found

  • The last activity is on 17 Oct 2026, 23 days ago. The rules expect an update within 365 days. Dormancy rule

Check notes

  • release commit 219294267e4bc35e6e42c0bf36df41c7f55ecd02 is absent from the repo

Exact rules: Listed, Featured library. The check on applied thresholds version 9.

Every rule outcome, as the check records it
  • expected-interval: version 0.1.0 base 80, capped at 1 releases = 50, raised to the 365-day floor: E = 365 days
  • dormancy: last activity 2026-10-17, 23 days ago, E = 365: active
  • featured: not featured: active_users 2 < 11 and new_adopters 2 < 9 and repository route stars 891 (needs 4539), forks 216 (needs 434), contributors 43 (needs 79); repository link not verified
  • listed: listed: no archive, new or featured rule applies

Measurements and sources

Each signal row shows the raw value, its source and the fetch date. The Sources list gathers every distinct source on this page. Movement needs more history.

Sources6 sources
Adoption2 active dependents, 2 new dependents in 365 days1 not measured
Adoption measurements
SignalValueSourceFetchedCounts
Active dependents2crates.io database dumpYes
New dependents (365 days)2crates.io database dumpYes
Peak active dependents2crates.io database dumpYes
Active dependents as a share of the peak1crates.io database dumpYes
Binary downloads per releaseNot measuredYes
MaintenanceLatest human commit: 23 days ago3 not measured
Maintenance measurements
SignalValueSourceFetchedCounts
Latest human commit2026-10-17GitHub repositoryYes
Latest release2025-07-24crates.io database dumpYes
First release2025-07-24crates.io database dumpYes
Latest version0.1.0crates.io database dumpYes
Days the oldest outside issue waits for a reply61GitHub repositoryYes
Maintainer replies over 365 days126GitHub repositoryYes
Repository archivedfalseGitHub repositoryYes
Repository gonefalseGitHub repositoryYes
Release commit or manifest in the repofalsecrates.io packageYes
Published docstruecrates.io database dumpYes
Latest release fails cargo checkNot measuredYes
Build check dateNot measuredYes
Build check toolchainNot measuredYes
SecurityUnpatched vulnerabilities: none
Security measurements
SignalValueSourceFetchedCounts
Unpatched vulnerabilities past the grace windownoneRustSec advisory databaseYes
RustSec unmaintained advisorynoneRustSec advisory databaseYes
Deprecation noticenonecrates.io database dumpYes
Deprecated requirementnonecrates.io database dumpYes
Distribution1 releases, 21,654 downloads over 30 days5 not measured
Distribution measurements
SignalValueSourceFetchedCounts
Releases1crates.io database dumpYes
Downloads over 30 days21654crates.io database dumpYes
Binary downloads over the last 3 releasesNot measuredYes
Homebrew installs on request over 365 daysNot measuredYes
Repology repository familiesNot measuredYes
Docker pull growth over 90 daysNot measuredYes
Docker pulls at the growth baselineNot measuredYes
Every version a prereleasefalsecrates.io database dumpYes
Every version 0.0.xfalsecrates.io database dumpYes
Every version yankedfalsecrates.io database dumpYes
Crate deleted from crates.iofalsecrates.io database dumpYes
Repository891 stars, 216 forks, 43 contributors, 2,116 commits. Stars alone never qualify a project.
Repository measurements
SignalValueSourceFetchedCounts
GitHub stars891GitHub repositoryYes — one part of the repository route
GitHub forks216GitHub repositoryYes — one part of the repository route
Contributors with a GitHub account43GitHub contributorsYes — one part of the repository route
Commits on the default branch2116GitHub repositoryNo
Repository's main crate left out of the entrynonecrates.io database dumpYes
Facts that never count
Facts that never count measurements
SignalValueSourceFetchedCounts
LicenseBSD-3-Clausecrates.io database dumpNo
Runs on, from listed crates and their direct dependenciesGPU support unknowncrates.io database dumpNo
What shows each backendno dependency or feature matches a backend rowcrates.io database dumpNo
Native code, from listed crates and their dependenciesNo native code foundcrates.io database dumpNo
Python bindings, from direct dependencies of listed cratesNo Python binding crate foundcrates.io database dumpNo
Crates that depend on a listed crate directly3crates.io database dumpNo

Corrections and review history

Report a correction

No correction applies to this entry.

Judgments

A judgment enters only through an approved issue and a merged pull request.

No judgment applies to this entry.