Section navigation

Public classSealed GermanStemmer

Namespace
Rowles.LeanCorpus.Analysis.Stemmers
Assembly
Rowles.LeanCorpus.dll

German Snowball-inspired stemmer. Handles common German inflectional and derivational suffixes. Folds umlauts (ä→a, ö→o, ü→u) and ß→ss as a preliminary step, mirroring Snowball's approach for German.

public sealed class GermanStemmer : SnowballStemmer, ISpanStemmer
Inheritance
GermanStemmer
Implements
Inherited Members

Public property Steps

The suffix-removal rules, grouped by step.

Public method MaxOutputLength(string)

Maximum output length needed (overridden by stemmers that expand input).

Public method Preprocess(ReadOnlySpan<char>, Span<char>)

Optional pre-processing called before suffix removal. Copies word into output (possibly transforming it) and returns the new length. Return -1 to use the default (untransformed copy).