py-rust-stemmers
Fast and parallel snowball stemmer
What it is and what it does
py-rust-stemmers wraps the Rust-based rust-stemmers library to bring Snowball stemming algorithms into Python with high performance. It exposes three main methods: stem_word() for single words, stem_words() for sequential batch processing, and stem_words_parallel() for parallel batch processing of larger word lists. The package is compiled to native code using maturin, eliminating the Python GIL and leveraging Rust's speed for text normalization tasks.
The library is designed for text preprocessing pipelines where word reduction to a common stem form improves downstream search, clustering, or classification. It requires Python 3.10 or later and has no runtime dependencies beyond the compiled extension itself. Installation is straightforward on common platforms via prebuilt wheels, though less common architectures may require building from source.
Use it for:
- Preprocess large document collections for search indexing by reducing words to stems in parallel batches
- Normalize user queries in real-time search systems using the single-word stemmer for low-latency responses
- Batch-stem word vocabularies during NLP model training or feature engineering pipelines
- Reduce memory footprint in text classification by conflating morphological variants before vectorization
- Build stemmed inverted indexes for full-text search engines with parallel processing of corpus text
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides fast, parallel word stemming using Snowball algorithms via a Rust backend, with methods for single words, sequential lists, and parallel batch processing.
Yes, with a license verification step. The package is actively maintained, has no known vulnerabilities, and offers genuine performance benefits for text stemming at scale via parallelism and Rust compilation. Install friction is moderate but manageable via prebuilt wheels on standard platforms. Before production use, confirm the actual license terms (metadata is unclear despite the MIT claim in the description).
Install
py-rust-stemmers on PyPI
pip
pip install py-rust-stemmersuv
uv add py-rust-stemmerspoetry
poetry add py-rust-stemmersInstalling py-rust-stemmers
Before you install
Medium install friction due to compiled wheels; prebuilt binaries available for Python 3.10 and 3.11 on Linux, macOS, and Windows. Package is actively maintained with recent release activity.
License in practice
License treatment is unclear—no SPDX identifier or raw license metadata provided in the package record, despite the description mentioning MIT. Verify the actual license terms before use in proprietary or restricted contexts.
Quickstart
pip install py-rust-stemmers
from py_rust_stemmers import SnowballStemmer
s = SnowballStemmer('english')
stemmed = s.stem_word('running')
stemmed_words = s.stem_words(['running', 'jumps', 'easily'])
stemmed_parallel = s.stem_words_parallel(['running', 'jumps', 'easily'])
Requires Python 3.10 or later.
Verify before relying
- Actual license terms and enforceability (description claims MIT but metadata is absent)
- Performance improvement magnitude for parallel stemming relative to sequential on typical workloads
- Language support breadth beyond English (Snowball supports multiple languages but not documented here)
- Minimum word-list size threshold where parallel processing becomes beneficial
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 84 days since the last release |
| First released | |
| Downloads | 5,173,435/month — #2,150 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: py_rust_stemmers-0.1.8-cp310-cp310-macosx_10_12_x86_64.whl; py_rust_stemmers-0.1.8-cp310-cp310-macosx_11_0_arm64.whl; py_rust_stemmers-0.1.8-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; py_rust_stemmers-0.1.8-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; py_rust_stemmers-0.1.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; py_rust_stemmers-0.1.8-cp310-cp310-manylinux_2_28_x86_64.whl; py_rust_stemmers-0.1.8-cp310-cp310-musllinux_1_2_aarch64.whl; py_rust_stemmers-0.1.8-cp310-cp310-musllinux_1_2_armv7l.whl; py_rust_stemmers-0.1.8-cp310-cp310-musllinux_1_2_x86_64.whl; py_rust_stemmers-0.1.8-cp310-cp310-win_amd64.whl; py_rust_stemmers-0.1.8-cp311-cp311-macosx_10_12_x86_64.whl; py_rust_stemmers-0.1.8-cp311-cp311-macosx_11_0_arm64.whl; py_rust_stemmers-0.1.8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; py_rust_stemmers-0.1.8-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; py_rust_stemmers-0.1.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; py_rust_stemmers-0.1.8-cp311-cp311-manylinux_2_28_x86_64.whl; py_rust_stemmers-0.1.8-cp311-cp311-musllinux_1_2_aarch64.whl; py_rust_stemmers-0.1.8-cp311-cp311-musllinux_1_2_armv7l.whl; py_rust_stemmers-0.1.8-cp311-cp311-musllinux_1_2_x86_64.whl; py_rust_stemmers-0.1.8-cp311-cp311-win_amd64.whl
Tags
More Linguistic packages
Detects and normalizes text encoding from…
permissive · top 100 on PyPI
tiktokentiktoken is a fast BPE tokenizer that converts…
permissive · top 1,000 on PyPI
chardetDetects character encoding and language in byte…
permissive · top 1,000 on PyPI
text-unidecodeConverts Unicode text to ASCII by…
copyleft · top 1,000 on PyPI
larkLark is a parsing library that builds abstract…
permissive · top 1,000 on PyPI
tree-sitterPython bindings to the tree-sitter parsing…
permissive · top 1,000 on PyPI
PyStemmerPyStemmer provides word stemming algorithms for…
permissive · top 5,000 on PyPI
snowballstemmerProvides stemming algorithms for 34 languages,…
permissive · top 1,000 on PyPI
unicode-segmentation-rsProvides Unicode text segmentation (graphemes,…
unclear · top 15,000 on PyPI
SastrawiSastrawi reduces inflected Indonesian words to…
permissive · top 15,000 on PyPI
stemStem is a Python controller library for…
copyleft · top 15,000 on PyPI
pyspellcheckerDetects misspelled words and suggests…
permissive · top 5,000 on PyPI
sea-g2pConverts text to phonemes for Vietnamese, Thai,…
permissive · top 15,000 on PyPI
moviepilot-rustProvides Rust-accelerated parsing and filtering…
unclear · top 15,000 on PyPI
bm25sBM25S implements the BM25 ranking algorithm in…
permissive · top 5,000 on PyPI
rustworkxA high-performance graph library for Python,…
permissive · top 5,000 on PyPI