
ArabicStemmer
- Namespace
- Rowles.LeanCorpus.Analysis.Stemmers
- Assembly
- Rowles.LeanCorpus.dll
Arabic light stemmer. Removes common Arabic prefixes and suffixes without performing full morphological analysis or root extraction. Based on the Khoja and Garside (1999) light-stemming approach. Expects lowercased, fully vowelised or unvowelised Unicode Arabic input. Hamza normalisation (أ إ آ → ا) should be applied upstream.
public sealed class ArabicStemmer : ISpanStemmer
- Inheritance
-
ArabicStemmer
- 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.