ISpanStemmer
- Namespace
- Rowles.LeanCorpus.Analysis.Stemmers
- Assembly
- Rowles.LeanCorpus.dll
Span-based stemming contract. Implementations reduce a word to its root form without allocating, by writing into a caller-provided buffer.
public interface ISpanStemmer
Methods
Stem(ReadOnlySpan<char>, Span<char>)
Stems
wordintooutput. Returns the length of the stemmed result, or -1 ifoutputis too small. The caller must ensureoutput.Length >= word.Lengthfor guaranteed success.