Section navigation

Public classSealed ElisionFilter

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

Removes configured elided articles before straight or curly apostrophes.

public sealed class ElisionFilter : ISpanTokenFilter
Inheritance
ElisionFilter
Implements

Public constructor ElisionFilter(IEnumerable<string>?, bool)

Initialises a new ElisionFilter.

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

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