Table of Contents

Public classSealed KeywordAnalyser

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

Analyser that treats the complete input as a single token. The returned token list is reused across calls; callers must not hold references to it beyond the current invocation.

Thread-safety: This class maintains instance-level buffers for performance. Each instance should be used by a single thread, or callers should create separate instances per thread.

public sealed class KeywordAnalyser : IAnalyser
KeywordAnalyser
Implements

Constructors

Public constructor KeywordAnalyser(int)

Initialises a new KeywordAnalyser.

Methods

Public method Analyse(ReadOnlySpan<char>)

Analyses the input text and returns a list of tokens.