Stemmer packages for Go programming language. Includes English, German and Dutch stemmers.
Switch branches/tags
Nothing to show
Clone or download
dchest Merge pull request #1 from ewoutp/dutch
Added Dutch stemmer
Latest commit 66719a2 Dec 7, 2016

Stemmer package for Go

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


English stemmer:

go get

German stemmer:

go get

Dutch 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

// Dutch.
dt := dutch.Stemmer
dt.Stem("lichamelijke") // => licham
dt.Stem("opglimpende")  // => opglimp


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).