builders.TextInSet
Matches when the normalized event text is in phrases.
Usage
builders.TextInSet(
phrases,
strip_trailing=TRAILING_PUNCT,
)Normalization mirrors a bare-message check: strip, drop trailing punctuation, strip again, lowercase.
Parameter Attributes
phrases: frozenset[str]strip_trailing: str = TRAILING_PUNCT