Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Stemmer packages for Go programming language. Includes English and German stemmers.
Go
branch: master
Failed to load latest commit information.
german Add German stemmer written by Holger Knauer.
porter2
AUTHORS Add German stemmer written by Holger Knauer.
LICENSE
README.md
stemmer.go Change license from MIT to BSD-like.

README.md

Stemmer package for Go

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

Installation

English stemmer:

go get github.com/dchest/stemmer/porter2

German stemmer:

go get github.com/dchest/stemmer/german

This will also install the top-level stemmer package.

Example

import (
    "github.com/dchest/stemmer/porter2"
    "github.com/dchest/stemmer/german"
)

// 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

Tests

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

License

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

Something went wrong with that request. Please try again.