|
|
| !"confirmed" in user_groups & | | !"confirmed" in user_groups & |
| page_namespace == 0 & ( | | page_namespace == 0 & ( |
| bad_word := "(?i)\bANUS\b|\bASS(H|\b)(?!'N)|\bBAS(D|T)ARD|\bBITCH|\bBOOBS?\b|BLOW\s+JOBS?|\bBUTTHOLE\b|\bCOCK\b|\bCRAP\b|\bCUNTS?\b|\bDICK(S|HEAD)\b|DILDOS?\b|\bDUMB\b|DOUCHE|\bFAG(G|\b)|FAT\s+ASS|FUC?K(?:ED|ER|ER|IN|ING)?S?\b|\bGAY(?![- ](MARRIAGE|RIGHTS|PRIDE))(?:ER|EST|ASS)?\b|\bMAST[EU]RBAT|\bNIGG|\bPEDO(?:PH|F)ILE|P\s?ENIS\b|\bPUSSY\b|\bRAP(?:E|ING)\b|\bRETARD\b|\bSLUT(?:S|TY)?\b|\bSHIT\b|\bSUCK(?:|S|ING|ED)\b|\bTITS\b|VAGINA|\bWHORE|YOLO\s+SWAG"; | | bad_word := "(?i)\bANUS\b|\bASS(H|\b)(?!'N)|\bBAS(D|T)ARD|\bBITCH|\bBOOBS?\b|BLOW\s+JOBS?|\bBUTTHOLE\b|\bCOCK\b|\bCRAP\b|\bCUNTS?\b|\bDICK(S|HEAD)\b|DILDOS?\b|\bDUMB\b|DOUCHE|\bFAG(G|\b)|FAT\s+ASS|FUC?K(?:ED|ER|ER|IN|ING)?S?\b|\bGAY(?![- ](MARRIAGE|RIGHTS|PRIDE))(?:ER|EST|ASS)?\b|\bMAST[EU]RBAT|\bNIGG|\bPA?EDO(?:PH|F)ILE|P\s?ENIS\b|\bPUSSY\b|\bRAP(?:E|ING)\b|\bRETARD\b|\bSLUT(?:S|TY)?\b|\bSHIT\b|\bSUCK(?:|S|ING|ED)\b|\bTITS\b|VAGINA|\bWHORE|YOLO\s+SWAG"; |
| bad_count := rcount(bad_word, added_lines); | | bad_count := rcount(bad_word, added_lines); |
| bad_count > 1 & ( | | bad_count > 1 & ( |
| real_bad_count := bad_count - rcount(bad_word, added_links); | | real_bad_count := bad_count - rcount(bad_word, added_links); |
| real_bad_count > 1 & | | real_bad_count > 1 & |
| real_bad_count * 200 > edit_delta & | | real_bad_count * 200 > edit_delta & |
| real_bad_count * 1500 > length(rmwhitespace(added_lines)) | | real_bad_count * 1500 > length(rmwhitespace(added_lines)) |
| ) & | | ) & |
|
| |
|
| !(removed_lines rlike "\w\*\*?\w") & | | !(removed_lines rlike "\w\*\*?\w") & |
| !( ( page_title + old_wikitext ) irlike bad_word) | | !( ( page_title + old_wikitext ) irlike bad_word) |
| ) | | ) |