Section navigation

Public classSealed LightEnglishStemmer

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

Lightweight English suffix stemmer for common inflections.

public sealed class LightEnglishStemmer : ISpanStemmer
Inheritance
LightEnglishStemmer
Implements

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

Stems word into output. Returns the length of the stemmed result, or -1 if output is too small. The caller must ensure output.Length >= word.Length for guaranteed success.

Public method Stem(string)

Convenience overload returning a stemmed string.