Merge pull request #62 from manmohan659/fix/shorthand-u-veto

fix: veto covers 'who r u' / 'who are u' shorthand
This commit is contained in:
Manmohan 2026-04-22 19:11:05 -04:00 committed by GitHub
commit 8eaa96ce02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,9 +94,9 @@ _CATEGORY_REGEXES = [re.compile(p, re.IGNORECASE) for p in _CATEGORY_PATTERNS]
# ---------------------------------------------------------------------------
_IDENTITY_VETO_PATTERNS = [
# self-referential questions directed at the model
r"\bwho\s+are\s+you\b",
r"\bwhat\s+are\s+you\b",
r"\bwho\s+are\s+you\s+really\b",
r"\bwho\s+(?:r|ru|are)\s+(?:u|you)\b",
r"\bwhat\s+(?:r|ru|are)\s+(?:u|you)\b",
r"\bwho\s+(?:r|ru|are)\s+(?:u|you)\s+really\b",
r"\bwhat(?:'|\s+i)s\s+your\s+name\b",
r"\bintroduce\s+yourself\b",
r"\btell\s+me\s+about\s+(?:yourself|you|you\s+first)\b",