Section navigation

Public classSealed StemmedAnalyser

Namespace
Rowles.LeanCorpus.Analysis.Analysers
Assembly
Rowles.LeanCorpus.dll

Extends the standard analysis pipeline with Porter stemming for improved recall. Pipeline: tokenise → lowercase → stop-word removal → Porter stem. Uses the composable Analyser pipeline for zero-allocation streaming.

public sealed class StemmedAnalyser : IAnalyser
Inheritance
StemmedAnalyser
Implements

Public constructor StemmedAnalyser()

Initialises a new StemmedAnalyser.

Public constructor StemmedAnalyser(KeywordMarkerFilter?)

Initialises a new StemmedAnalyser with optional keyword marker support.

Public method Analyse(ReadOnlySpan<char>, ISpanTokenSink)

Analyses the input text and emits tokens synchronously into sink. Callers that require a materialised List<T> should use CountingTokenSink as the sink argument.