english

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 3 Imported by: 66

README

Snowball English

This package implements the English language Snowball stemmer.

Implementation

The English language stemmer comprises preprocessing, a number of steps, and postprocessing. Each of these is defined in a separate file in this package. All of the steps operate on a SnowballWord from the snowballword package and modify the word in place.

Caveats

There is a single difference between this implementation and the original. Here, all apostrophes on the left hand side of a word are stripped off before the word is stemmed.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStopWord added in v0.9.0

func IsStopWord(word string) bool

Return `true` if the input `word` is an English stop word.

func Stem

func Stem(word string, stemStopwWords bool) string

Stem an English word. This is the only exported function in this package.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL