-
-
Save AWegnerGitHub/86baccdda80e206fa86c to your computer and use it in GitHub Desktop.
Patterns that Zephyr looks for in Stack Exchange chat rooms.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
patterns = [ | |
{ | |
'regex': "^((?:\[)?cv-pl[sz].*?(?:\])?|\[tag:cv-pl[sz](-.*)?])(?: )?((?:\[tag\:*)?[\w \-\(\)]+(?:\])?)?(?: )?(https?://.*\.com/(?:q(?:uestions)?|a(?:nswer)?)/\d+(?:/)?(?:\d+|(?:\w|-)+)?(?:/\d+)?(?:#\d+)?)", | |
'translation': "Close Vote Request" | |
}, | |
{ | |
'regex': "^((?:\[)?close-pl[sz].*?(?:\])?|\[tag:close-pl[sz](-.*)?])(?: )?((?:\[tag\:*)?[\w \-\(\)]+(?:\])?)?(?: )?(https?://.*\.com/(?:q(?:uestions)?|a(?:nswer)?)/\d+(?:/)?(?:\d+|(?:\w|-)+)?(?:/\d+)?(?:#\d+)?)", | |
'translation': "Close Vote Request" | |
}, | |
{ | |
'regex': "^((?:\[)?dv-pl[sz].*?(?:\])?|\[tag:dv-pl[sz](-.*)?])(?: )?((?:\[tag\:*)?[\w \-\(\)]+(?:\])?)?(?: )?(https?://.*\.com/(?:q(?:uestions)?|a(?:nswer)?)/\d+(?:/)?(?:\d+|(?:\w|-)+)?(?:/\d+)?(?:#\d+)?)", | |
'translation': "Delete Vote Request" | |
}, | |
{ | |
'regex': "^((?:\[)?delv-pl[sz].*?(?:\])?|\[tag:delv-pl[sz](-.*)?])(?: )?((?:\[tag\:*)?[\w \-\(\)]+(?:\])?)?(?: )?(https?://.*\.com/(?:q(?:uestions)?|a(?:nswer)?)/\d+(?:/)?(?:\d+|(?:\w|-)+)?(?:/\d+)?(?:#\d+)?)", | |
'translation': "Delete Vote Request" | |
}, | |
{ | |
'regex': "^((?:\[)?undelv-pl[sz].*?(?:\])?|\[tag:undelv-pl[sz](-.*)?])(?: )?((?:\[tag\:*)?[\w \-\(\)]+(?:\])?)?(?: )?(https?://.*\.com/(?:q(?:uestions)?|a(?:nswer)?)/\d+(?:/)?(?:\d+|(?:\w|-)+)?(?:/\d+)?(?:#\d+)?)", | |
'translation': "Undelete Vote Request" | |
}, | |
{ | |
'regex': "^((?:\[)?undv-pl[sz].*?(?:\])?|\[tag:undv-pl[sz](-.*)?])(?: )?((?:\[tag\:*)?[\w \-\(\)]+(?:\])?)?(?: )?(https?://.*\.com/(?:q(?:uestions)?|a(?:nswer)?)/\d+(?:/)?(?:\d+|(?:\w|-)+)?(?:/\d+)?(?:#\d+)?)", | |
'translation': "Undelete Vote Request" | |
}, | |
{ | |
'regex': "^((?:\[)?ro-pl[sz].*?(?:\])?|\[tag:ro-pl[sz](-.*)?])(?: )?((?:\[tag\:*)?[\w \-\(\)]+(?:\])?)?(?: )?(https?://.*\.com/(?:q(?:uestions)?|a(?:nswer)?)/\d+(?:/)?(?:\d+|(?:\w|-)+)?(?:/\d+)?(?:#\d+)?)", | |
'translation': "Reopen Vote Request" | |
}, | |
{ | |
'regex': "^((?:\[)?rov-pl[sz].*?(?:\])?|\[tag:rov-pl[sz](-.*)?])(?: )?((?:\[tag\:*)?[\w \-\(\)]+(?:\])?)?(?: )?(https?://.*\.com/(?:q(?:uestions)?|a(?:nswer)?)/\d+(?:/)?(?:\d+|(?:\w|-)+)?(?:/\d+)?(?:#\d+)?)", | |
'translation': "Reopen Vote Request" | |
}, | |
{ | |
'regex': "^((?:\[)?reopen-pl[sz].*?(?:\])?|\[tag:reopen-pl[sz](-.*)?])(?: )?((?:\[tag\:*)?[\w \-\(\)]+(?:\])?)?(?: )?(https?://.*\.com/(?:q(?:uestions)?|a(?:nswer)?)/\d+(?:/)?(?:\d+|(?:\w|-)+)?(?:/\d+)?(?:#\d+)?)", | |
'translation': "Reopen Vote Request" | |
}, | |
{ | |
'regex': "^((?:\[)?reject-pl[sz].*?(?:\])?|\[tag:reject-pl[sz](-.*)?])(?: )?((?:\[tag\:*)?[\w \-\(\)]+(?:\])?)?(?: )?(https?://.*\.com/(?:q(?:uestions)?|a(?:nswer)?)/\d+(?:/)?(?:\d+|(?:\w|-)+)?(?:/\d+)?(?:#\d+)?)", | |
'translation': "Review Reject Request" | |
}, | |
{ | |
'regex': "^((?:\[)?review-pl[sz].*?(?:\])?|\[tag:review-pl[sz](-.*)?])(?: )?((?:\[tag\:*)?[\w \-\(\)]+(?:\])?)?(?: )?(https?://.*\.com/(?:q(?:uestions)?|a(?:nswer)?)/\d+(?:/)?(?:\d+|(?:\w|-)+)?(?:/\d+)?(?:#\d+)?)", | |
'translation': "Review Request" | |
}, | |
{ | |
'regex': "^((?:\[)?rv-pl[sz].*?(?:\])?|\[tag:rv-pl[sz](-.*)?])(?: )?((?:\[tag\:*)?[\w \-\(\)]+(?:\])?)?(?: )?(https?://.*\.com/(?:q(?:uestions)?|a(?:nswer)?)/\d+(?:/)?(?:\d+|(?:\w|-)+)?(?:/\d+)?(?:#\d+)?)", | |
'translation': "Review Request" | |
}, | |
{ | |
'regex': "^((?:\[)?nuke-pl[sz].*?(?:\])?|\[tag:nuke-pl[sz](-.*)?])(?: )?((?:\[tag\:*)?[\w \-\(\)]+(?:\])?)?(?: )?(https?://.*\.com/(?:q(?:uestions)?|a(?:nswer)?)/\d+(?:/)?(?:\d+|(?:\w|-)+)?(?:/\d+)?(?:#\d+)?)", | |
'translation': "Close/Delete Request" | |
}, | |
{ | |
'regex': "^((?:\[)?flag-pl[sz].*?(?:\])?|\[tag:flag-pl[sz](-.*)?])(?: )?((?:\[tag\:*)?[\w \-\(\)]+(?:\])?)?(?: )?(https?://.*\.com/(?:q(?:uestions)?|a(?:nswer)?)/\d+(?:/)?(?:\d+|(?:\w|-)+)?(?:/\d+)?(?:#\d+)?)", | |
'translation': "Flag Request" | |
}, | |
{ | |
'regex': "^((?:\[)?spam.*?(?:\])?|\[tag:spam(-.*)?])(?: )?((?:\[tag\:*)?[\w \-\(\)]+(?:\])?)?(?: )?(https?://.*\.com/(?:q(?:uestions)?|a(?:nswer)?)/\d+(?:/)?(?:\d+|(?:\w|-)+)?(?:/\d+)?(?:#\d+)?)", | |
'translation': "Spam Flag Request" | |
}, | |
{ | |
'regex': "^((?:\[)?flag-naa.*?(?:\])?|\[tag:flag-naa(-.*)?])(?: )?((?:\[tag\:*)?[\w \-\(\)]+(?:\])?)?(?: )?(https?://.*\.com/(?:q(?:uestions)?|a(?:nswer)?)/\d+(?:/)?(?:\d+|(?:\w|-)+)?(?:/\d+)?(?:#\d+)?)", | |
'translation': "Flag Request -> Not an answer" | |
}, | |
{ | |
'regex': "^((?:\[)?link-only.*?(?:\])?|\[tag:link-only(-.*)?])(?: )?((?:\[tag\:*)?[\w \-\(\)]+(?:\])?)?(?: )?(https?://.*\.com/(?:q(?:uestions)?|a(?:nswer)?)/\d+(?:/)?(?:\d+|(?:\w|-)+)?(?:/\d+)?(?:#\d+)?)", | |
'translation': "Flag Request -> Link Only" | |
}, | |
{ | |
'regex': "^((?:\[)?naa.*?(?:\])?|\[tag:naa(-.*)?])(?: )?((?:\[tag\:*)?[\w \-\(\)]+(?:\])?)?(?: )?(https?://.*\.com/(?:q(?:uestions)?|a(?:nswer)?)/\d+(?:/)?(?:\d+|(?:\w|-)+)?(?:/\d+)?(?:#\d+)?)", | |
'translation': "Flag Request -> Not an answer" | |
}, | |
{ | |
'regex': "^((?:\[)?vlq.*?(?:\])?|\[tag:vlq(-.*)?])(?: )?((?:\[tag\:*)?[\w \-\(\)]+(?:\])?)?(?: )?(https?://.*\.com/(?:q(?:uestions)?|a(?:nswer)?)/\d+(?:/)?(?:\d+|(?:\w|-)+)?(?:/\d+)?(?:#\d+)?)", | |
'translation': "Flag Request -> Very Low Quality" | |
}, | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment