Section navigation

Public classSealed KeywordMarkerFilter

Namespace
Rowles.LeanCorpus.Analysis.Filters
Assembly
Rowles.LeanCorpus.dll

Identifies tokens that should be treated as keywords by compatible analysers.

public sealed class KeywordMarkerFilter : ISpanTokenFilter
Inheritance
KeywordMarkerFilter
Implements

Public constructor KeywordMarkerFilter(IEnumerable<string>)

Initialises a new KeywordMarkerFilter with the specified keyword set.

Public method Apply(ReadOnlySpan<char>, int, int, string, int, byte[]?, ISpanTokenSink)

Applies the filter to a token and emits the transformed token into sink.