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 -p is 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 -p2 is 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 -p at 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 πŸ’–βœ¨πŸ¦‹