skillfed

PyStemmer

Snowball stemming algorithms, for information retrieval

pystemmer v3.1.0 2.5M downloads/30d#3,043 on PyPI282
Permissive license MIT, BSD Active released

What it is and what it does

PyStemmer wraps the Snowball project's libstemmer library to provide efficient word stemming in Python. Stemming reduces words to a common base form by removing morphological endings—for example, 'cycling', 'cycled', and 'cycles' all stem to a shared root. This is primarily useful for search engines and information retrieval systems where matching variants of the same word improves recall.

The package supports stemming algorithms for many languages including Arabic, Armenian, Basque, Catalan, Czech, Danish, Dutch, English, Finnish, French, German, Greek, Hindi, Hungarian, Indonesian, Italian, Lithuanian, Norwegian, Persian, Polish, Portuguese, Romanian, Russian, Spanish, Swedish, Tamil, Turkish, and Yiddish. It also provides access to the classic Porter stemming algorithm for English, which may be useful for reproducing historical information retrieval experiments. The package has no runtime dependencies and installs via pre-built wheels on most common platforms.

Use it for:

  • Build a search engine that matches query variants to documents containing morphological forms of the same word
  • Normalize text for information retrieval systems to improve recall across morphological variants
  • Preprocess multilingual text corpora for natural language processing or machine learning pipelines
  • Implement the classic Porter algorithm for English stemming in academic or historical IR experiments

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

PyStemmer provides word stemming algorithms for multiple languages, reducing words to their morphological base form to improve search and information retrieval.

Yes. PyStemmer is stable (Production/Stable status), actively maintained, has no runtime dependencies, and solves a well-defined problem in search and information retrieval. Medium install friction is acceptable for a compiled library with broad platform coverage. No known vulnerabilities. Install if you need stemming for search, IR, or NLP preprocessing.

Install

pystemmer on PyPI

pip

pip install pystemmer

uv

uv add pystemmer

poetry

poetry add pystemmer

Installing PyStemmer

Before you install

Medium install friction due to compiled C extensions, but wheels are available for common platforms (macOS, Linux, Windows across x86_64, ARM, and other architectures). Active maintenance with a recent release 84 days ago.

License in practice

Dual-licensed under MIT and BSD, both permissive licenses allowing commercial and private use with minimal restrictions.

Quickstart

pip install pystemmer

import pystemmer
# Use the package for stemming operations

Requires a C compiler or pre-built wheel for your platform; wheels cover common architectures but less common platforms may need to build from source.

Verify before relying

  • Whether the package supports Python 3.13 and 3.14 (listed in classifiers but requires_python is unspecified)
  • Specific API and usage patterns for accessing stemming algorithms across supported languages
  • Performance characteristics and typical stemming speed for large document collections

Package facts

License MIT, BSD (permissive)
Python support not specified
Install friction medium — platform-specific wheel
Runtime dependencies none
Maintenance actively maintained — 84 days since the last release
Last repo commit
First released
Downloads 2,490,220/month — #3,043 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pystemmer-3.1.0-cp310-cp310-macosx_10_9_x86_64.whl; pystemmer-3.1.0-cp310-cp310-macosx_11_0_arm64.whl; pystemmer-3.1.0-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; pystemmer-3.1.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; pystemmer-3.1.0-cp310-cp310-musllinux_1_2_aarch64.whl; pystemmer-3.1.0-cp310-cp310-musllinux_1_2_x86_64.whl; pystemmer-3.1.0-cp310-cp310-win32.whl; pystemmer-3.1.0-cp310-cp310-win_amd64.whl; pystemmer-3.1.0-cp310-cp310-win_arm64.whl; pystemmer-3.1.0-cp311-cp311-macosx_10_9_x86_64.whl; pystemmer-3.1.0-cp311-cp311-macosx_11_0_arm64.whl; pystemmer-3.1.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; pystemmer-3.1.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; pystemmer-3.1.0-cp311-cp311-musllinux_1_2_aarch64.whl; pystemmer-3.1.0-cp311-cp311-musllinux_1_2_x86_64.whl; pystemmer-3.1.0-cp311-cp311-win32.whl; pystemmer-3.1.0-cp311-cp311-win_amd64.whl; pystemmer-3.1.0-cp311-cp311-win_arm64.whl; pystemmer-3.1.0-cp312-cp312-macosx_10_13_x86_64.whl; pystemmer-3.1.0-cp312-cp312-macosx_11_0_arm64.whl

Keywords: python, information retrieval, language processing, morphological analysis, stemming algorithms, stemmers

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseLicense :: OSI Approved :: MIT LicenseNatural Language :: ArabicNatural Language :: ArmenianNatural Language :: BasqueNatural Language :: CatalanNatural Language :: CzechNatural Language :: DanishNatural Language :: DutchNatural Language :: EnglishNatural Language :: EsperantoNatural Language :: EstonianNatural Language :: FinnishNatural Language :: FrenchNatural Language :: GermanNatural Language :: GreekNatural Language :: HindiNatural Language :: HungarianNatural Language :: IndonesianNatural Language :: IrishNatural Language :: ItalianNatural Language :: LithuanianNatural Language :: NepaliNatural Language :: NorwegianNatural Language :: PersianNatural Language :: PolishNatural Language :: PortugueseNatural Language :: RomanianNatural Language :: RussianNatural Language :: SerbianNatural Language :: SpanishNatural Language :: SwedishNatural Language :: TamilNatural Language :: TurkishNatural Language :: YiddishOperating System :: OS IndependentProgramming Language :: CProgramming Language :: OtherProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: DatabaseTopic :: Internet :: WWW/HTTP :: Indexing/SearchTopic :: Text Processing :: IndexingTopic :: Text Processing :: Linguistic

Tags

word stemming algorithmsmorphological analysis pythoninformation retrieval stemminglanguage stemming librarytext normalization stemmingporter stemmer pythonmultilingual stemming
nlpsearch-indexingmultilingual

More Database packages