Popularity
3.1
Declining
Activity
0.0
Stable
51
5
7

Programming language: Go
License: BSD 2-clause "Simplified" License

stemmer alternatives and similar packages

Based on the "Natural Language Processing" category.
Alternatively, view stemmer alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of stemmer or a related project?

Add another 'Natural Language Processing' Package

README

Stemmer package for Go

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

Installation

English stemmer:

go get github.com/dchest/stemmer/porter2

German stemmer:

go get github.com/dchest/stemmer/german

Dutch stemmer:

go get github.com/dchest/stemmer/dutch

This will also install the top-level stemmer package.

Example

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

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

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


*Note that all licence references and agreements mentioned in the stemmer README section above are relevant to that project's source code only.