snowball-stemmers-js
v3.1.2
Published
Snowball stemmers compiled to JavaScript — 38 algorithms, zero dependencies, auto-rebuilt on snowball releases
Maintainers
Readme
snowball-stemmers-js
Snowball stemmers compiled to JavaScript — 38 algorithms, zero runtime dependencies, auto-rebuilt whenever snowball publishes a new release.
The algorithms are the canonical Snowball stemmers (BSD-3-Clause), generated by the snowball compiler at build time — not a hand-maintained port.
Usage
const { newStemmer, stem } = require("snowball-stemmers-js")
newStemmer("english").stemWord("installing") // "instal"
stem("de", "Häusern") // "Haus"
stem("fr", "installations") // "install"Languages accept the snowball algorithm name ("german") or the common
ISO-639-1 code ("de"). All 38 algorithms:
arabic, armenian, basque, catalan, czech, danish, dutch, dutch_porter, earlymodernenglish, english, esperanto, estonian, finnish, french, german, greek, hindi, hungarian, indonesian, irish, italian, lithuanian, lovins, nepali, norwegian, persian, polish, porter, portuguese, romanian, russian, serbian, sesotho, spanish, swedish, tamil, turkish, yiddish
How it stays current
A daily workflow compares snowball's latest tag against the pinned
SNOWBALL_REF; when snowball releases, it rebuilds the JavaScript, bumps the
package version to match, commits, and tags — the Release workflow then
publishes to npm with provenance.
License
BSD-3-Clause (the snowball stemmer algorithms). Generated by the snowball
compiler; see NOTICE-equivalent attribution in the snowball repository.
