
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
KeywordMarkerFilter(IEnumerable<string>)
Initialises a new KeywordMarkerFilter with the specified keyword set.
Methods
Apply(List<Token>)
Applies the filter to the token list, modifying it in place.
IsKeyword(ReadOnlySpan<char>)
Returns true when the supplied text is marked as a keyword.
IsKeyword(string)
Returns true when the supplied text is marked as a keyword.