Open Source Text Processing Project: dchest-stemmer

Deep Learning Specialization on Coursera

Stemmer package for Go

Project Website: None

Github Link:


Stemmer package provides an interface for stemmers and includes English and German stemmers as sub-packages:

porter2 sub-package implements English (Porter2) stemmer as described in

german sub-package implements German stemmer as described in


English stemmer:

go get
German stemmer:

go get
This will also install the top-level stemmer package.


import (

// English.
eng := porter2.Stemmer
eng.Stem(“delicious”) // => delici
eng.Stem(“deliciously”) // => delici

// German.
ger := german.Stemmer
ger.Stem(“abhängen”) // => abhang
ger.Stem(“abhängiger”) // => abhang

Included test_output.txt and test_voc.txt are from the referenced original implementations, used only when running tests with go test.


2-clause BSD-like (see LICENSE and AUTHORS files).

Leave a Reply

Your email address will not be published. Required fields are marked *