Table of Contents

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 : ITokenFilter
KeywordMarkerFilter
Implements

Constructors

Public constructor KeywordMarkerFilter(IEnumerable<string>)

Initialises a new KeywordMarkerFilter with the specified keyword set.

Methods

Public method Apply(List<Token>)

Applies the filter to the token list, modifying it in place.

Internal methodInternal IsKeyword(ReadOnlySpan<char>)

Returns true when the supplied text is marked as a keyword.

Internal methodInternal IsKeyword(string)

Returns true when the supplied text is marked as a keyword.