Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add examples and counter_examples field to regex filter entries #348

Open
tazlin opened this issue Jan 10, 2024 · 0 comments
Open

Add examples and counter_examples field to regex filter entries #348

tazlin opened this issue Jan 10, 2024 · 0 comments
Assignees

Comments

@tazlin
Copy link
Member

tazlin commented Jan 10, 2024

With the growing list of regex filter entries, it would benefit moderation (particularly from a regression testing and documentation point of view) to have two extra fields:

  • examples
    • A (comma delimited?) string of positive examples that the regex should catch.
  • counter_examples
    • A (comma delimited?) string of negative examples that the regex should not catch, such as substrings of larger words that should not count for detection. (See https://en.wikipedia.org/wiki/Scunthorpe_problem for a treatise on the underlying reason this field is needed).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants