STEMWORDS(1)
π NAME π
stemwords β the Snowball word stemming utility, aka the little icon that chops your words down to their roots π
β¨ DESCRIPTION β¨
okay bestie, listen up, because this one is actually so simple and so useful π«Ά
stemwords [-l language] [-i input file] [-o output file] [-c character encoding] [-p[2]] [-h]
So the input file? It's literally just a list of words you want stemmed, one per line β¨. Words should be in lower case, but ngl if you're doing English, the A-Z letters get mapped to their a-z equivalents anyway, so like, it forgives you π. And if you don't hand it an input file at all? It just reads from stdin. Easy.
If you pass -c, the argument is the character encoding of the input and output files. If you skip it, UTF-8 is what it uses. Default slay π
.
Now here's the fun part, the -p situation πΈ:
- If
-pis given, the output file is each word from the input file, followed by"->", followed by its stemmed equivalent. So it's giving little before-and-after makeovers π - If
-p2is given, the output file is a two column layout: the input words in the first column, the stemmed equivalents in the second column. Very organized, very demure β¨ - Otherwise (no
-pat all), the output file is just the stemmed words, one per line. Clean, minimal, no notes π
no cap, that's genuinely the whole thing. three output moods, one tiny tool π
bestie, this page came to you from the Snowball girlies, version dated March 2010 π β go stem something and slay πβ¨π¦
π¦ where this page comes from
- debian bookworm: libstemmer-tools 2.2.0-2
- debian trixie: libstemmer-tools 2.2.0-4+b2
- ubuntu jammy: libstemmer-tools 2.2.0-1build1
- ubuntu noble: libstemmer-tools 2.2.0-4build1
- ubuntu questing: libstemmer-tools 2.2.0-4build1
- ubuntu resolute: libstemmer-tools 3.0.1-1
- ubuntu stonking: libstemmer-tools 3.1.1-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms