https://github.com/antonbaumann/german-go-stemmer
An efficient implementation of the German porter-stemming algorithm in Golang.
https://github.com/antonbaumann/german-go-stemmer
language-processing nlp porter-stemmer snowball stemming stemming-algorithm
Last synced: about 2 months ago
JSON representation
An efficient implementation of the German porter-stemming algorithm in Golang.
- Host: GitHub
- URL: https://github.com/antonbaumann/german-go-stemmer
- Owner: antonbaumann
- License: mit
- Created: 2017-10-27T22:50:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-23T11:16:52.000Z (over 3 years ago)
- Last Synced: 2025-04-23T13:28:58.348Z (about 2 months ago)
- Topics: language-processing, nlp, porter-stemmer, snowball, stemming, stemming-algorithm
- Language: Go
- Homepage:
- Size: 217 KB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/antonbaumann/german-go-stemmer/actions?workflow=test)
[](https://codecov.io/gh/antonbaumann/german-go-stemmer)
[](https://goreportcard.com/report/github.com/antonbaumann/german-go-stemmer)# German Go Stemmer
An efficient implementation of the German stemming algorithm from [snowballstem.org](https://snowballstem.org/algorithms/german/stemmer.html) in Golang that does not need any dependency.## Install
```console
go get -u "github.com/antonbaumann/german-go-stemmer"
```
then import it
```go
import "github.com/antonbaumann/german-go-stemmer"
```
## Usage
You can stem queries
```go
stemmed := stemmer.Stem("wie wird das wetter morgen in münchen")
// "wett morg munch"
```or just words one by one
```go
stemmed := stemmer.StemWord("kategorischen")
// "kategor"
```or multiple keywords
```go
stemmed := stemmer.StemWords([]string{"kategorisch", "kategorische", "kategorischen"})
// []string {"kategor", "kategor", "kategor"}
```