
EnglishStemmer
- Namespace
- Rowles.LeanCorpus.Analysis.Stemmers
- Assembly
- Rowles.LeanCorpus.dll
English stemmer wrapping the existing Porter stemmer implementation.
public sealed class EnglishStemmer : ISpanStemmer
- Inheritance
-
EnglishStemmer
- Implements
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.
Stem(string)
Convenience overload returning a stemmed string.