From ddbc8362febd9cea0b8bf8cd3e31df4bad10f457 Mon Sep 17 00:00:00 2001 From: duogenesis <136373989+duogenesis@users.noreply.github.com> Date: Tue, 4 Feb 2025 22:44:27 +1100 Subject: [PATCH] Moderation 2025-02-04 --- antiabuse/antirude/profile/__init__.py | 8 ++++++++ antiabuse/normalize/__init__.py | 25 +++++++++++++++---------- antiabuse/normalize/test_init.py | 10 ++++++++++ banned-club.sql | 11 +++++++++++ service/chat/__init__.py | 2 +- service/chat/rude/__init__.py | 12 ++++++++++++ 6 files changed, 57 insertions(+), 11 deletions(-) diff --git a/antiabuse/antirude/profile/__init__.py b/antiabuse/antirude/profile/__init__.py index 9c8a942..070a3b4 100644 --- a/antiabuse/antirude/profile/__init__.py +++ b/antiabuse/antirude/profile/__init__.py @@ -22,9 +22,12 @@ "dicked", "dicking", "edtwt", + "faggot", + "faggots", "groom me", "heil", "kike", + "kikes", "kill my self", "kill myself", "kill your self", @@ -45,7 +48,9 @@ "niggerlicious", "niggers", "niglet", + "niglets", "pajeet", + "pajeets", "rape", "rapeable", "rapebait" @@ -53,6 +58,7 @@ "rapes", "raping", "rapist", + "rapists", "self harm", "self-harm", "selfharm", @@ -68,7 +74,9 @@ "throatfucking", "tkd", "tnd", + "trannies", "tranny", + "trannys", "troon", "troons", "unrape", diff --git a/antiabuse/normalize/__init__.py b/antiabuse/normalize/__init__.py index a4d1009..66e525f 100644 --- a/antiabuse/normalize/__init__.py +++ b/antiabuse/normalize/__init__.py @@ -5,8 +5,10 @@ # Used to convert slang in an input string to a more standard form so that it's # easier to detect coarse language later on _normalization_map = { + "[a4]+n[a4]+[l1]+": "anal", + "[a4][s$]*h[o0][l1][e3]": "asshole", "a[s5$]{2}": "ass", - "b[a4]ck ?sh[o0]t[s$z]": "backshots", + "b[a4]ck ?sh[o0][tт][s$z]": "backshots", "b": "be", "b[i1y]?tch": "bitch", "b[o0][o0]b[i1][e3][s$z]": "boobies", @@ -17,12 +19,14 @@ "cok": "cock", "c+[uv]+m+": "cum", "c[uv]mming": "cumming", - "c[uv]m[s$z]h[o0]t": "cumshot", + "c[uv]m[s$z]h[o0][tт]": "cumshot", "c+[uv]+m+s+": "cums", + "d[i1]ck": "dick", "d[iy1]k[e3]": "dyke", "dyck": "dick", "ejaku[l1]ate": "ejaculate", - "f[a4]*g+[o0]*t": "faggot", + "f[a4]*[gб]+[o0]*[tт]": "faggot", + "f[a4]*[gб]+[o0]*[tᴛ][s$z]": "faggots", "fcked": "fucked", "fck": "fuck", "fcking": "fucking", @@ -41,15 +45,15 @@ "gr[o0][o0]mer": "groomer", "gr[o0][o0]m": "groom", "h[@a4]rm": "harm", - "k[iy1][l1][l1]": "kill", + "k[iy1][l1]+": "kill", "[l1]0[l1]icon": "lolicon", "[l1]0[l1]i": "loli", - "n[i1ye3]*g+(a|uh|e)": "nigga", - "n[i1ye3]*g+([e3]*r)?": "nigger", - "n[i1ye3]*g+[e3]*r[s$z]": "niggers", "n[i1ye3]gg[l1]et": "niglet", - "n[i1ye3]g+uh*": "nigga", - "n[ie]g{1,2}re{1,2}s+": "negress", + "n[i1ye3]*[gб]+(a|uh|e)": "nigga", + "n[i1ye3]*[gб]+([e3]*r)?": "nigger", + "n[i1ye3]*[gб]+[e3]*r[s$z]": "niggers", + "n[i1ye3][gб]+uh*": "nigga", + "n[ie][gб]{1,2}re{1,2}s+": "negress", "p[e3]d[o0]": "pedo", "pissin": "pissing", "p[iy1][s$][s$]": "piss", @@ -58,10 +62,11 @@ "r[@a4]p[e3]-?ab[l1]e": "rapeable", "r[@a4]p[e3]d": "raped", "r[@a4]p[e3]": "rape", - "r[@a4]p[i1]ng": "raping", + "r[@a4]p[i1]*ng": "raping", "r": "are", "raype": "rape", "s[e3][l1]f": "self", + "seg+[zs]+": "sex", "sht": "shit", "s[uv][i1]c[i1]d[e3]": "suicide", "sxy": "sexy", diff --git a/antiabuse/normalize/test_init.py b/antiabuse/normalize/test_init.py index becb69d..6f7c100 100644 --- a/antiabuse/normalize/test_init.py +++ b/antiabuse/normalize/test_init.py @@ -80,6 +80,16 @@ def test_normalize_string(self): self.assertEqual(normalize_string("r@ping"), "raping") + self.assertEqual(normalize_string("rapng"), "raping") + + self.assertEqual(normalize_string("an4l"), "anal") + + self.assertEqual(normalize_string("nggrs"), "niggers") + + self.assertEqual(normalize_string("fаббoтs"), "faggots") + + self.assertEqual(normalize_string("ahole"), "asshole") + if __name__ == '__main__': unittest.main() diff --git a/banned-club.sql b/banned-club.sql index e186a93..fd7d1cb 100644 --- a/banned-club.sql +++ b/banned-club.sql @@ -99,6 +99,8 @@ VALUES ('5 yo'), ('5yo'), ('6'), + ('"6 million"'), + ('6 million'), ('6y'), ('6 year old'), ('6 year-old'), @@ -430,6 +432,7 @@ VALUES ('boypussy'), ('boy rapist'), ('bpd hate'), + ('break me'), ('breast lover'), ('breedable'), ('breedablefemcel'), @@ -456,6 +459,7 @@ VALUES ('bulimia'), ('bully bait'), ('bullybait'), + ('bully me'), ('bum sex'), ('but fuck it we ball'), ('butt fucker'), @@ -731,6 +735,7 @@ VALUES ('dukys'), ('dumb bitch'), ('dumb slut'), + ('dykefag'), ('easily manipulated'), ('easy to manipulate'), ('eating a gun'), @@ -1238,6 +1243,7 @@ VALUES ('hatepoland'), ('hate queers'), ('hatequeers'), + ('hate rap3'), ('hater crimer'), ('hater nigga'), ('hate trannies'), @@ -1770,6 +1776,7 @@ VALUES ('israeli defence force'), ('israeli defense force'), ('israeli revenue service'), + ('israel shouldn''t exist'), ('i stalk'), ('i suck for money'), ('i take your money'), @@ -2078,6 +2085,7 @@ VALUES ('m16'), ('magic mushrooms'), ('major league goonette'), + ('make me bleed'), ('male manipulator'), ('man beater'), ('man hater'), @@ -2484,8 +2492,10 @@ VALUES ('raghead'), ('rag heads'), ('ragheads'), + ('rap3'), ('rap3 me'), ('rape'), + ('rape3'), ('rapeable'), ('rapebait'), ('rapebastard club'), @@ -2939,6 +2949,7 @@ VALUES ('violencepilled'), ('violent'), ('virgin suicide'), + ('vril'), ('/vt/ fucking sucks'), ('wafffen ss'), ('wafffen-ss'), diff --git a/service/chat/__init__.py b/service/chat/__init__.py index 6a8dd58..7f4ac71 100644 --- a/service/chat/__init__.py +++ b/service/chat/__init__.py @@ -38,7 +38,7 @@ class IntroRateLimit(Enum): NONE = 0 UNVERIFIED = 10 BASICS = 20 - PHOTOS = 100 + PHOTOS = 50 # TODO: Tables to migrate to monolithic DB: # diff --git a/service/chat/rude/__init__.py b/service/chat/rude/__init__.py index 8d78ed3..7d563f2 100644 --- a/service/chat/rude/__init__.py +++ b/service/chat/rude/__init__.py @@ -13,6 +13,7 @@ _strings = [ "abuse me", "abuse you", + "anaaaaaaaal", "anal", "anally", "anus", @@ -22,6 +23,7 @@ "ass fucker", "ass fucking", "ass hole", + "ass pounded", "ass-fuck", "ass-fucked", "ass-fucker", @@ -47,6 +49,8 @@ "blow your brains", "blowjob", "blowjobs", + "bobbers", + "boobers", "boobies", "boobs", "breading me", @@ -89,6 +93,7 @@ "cockmunch", "cockmuncher", "cocks", + "cocksleeve", "cocksuck", "cocksucked", "cocksucker", @@ -235,6 +240,7 @@ "hanged yourself", "hanging myself", "hanging yourself", + "head game", "heil", "his seed", "hit it raw", @@ -242,6 +248,7 @@ "hoe", "hoes", "homo", + "honkers", "horniest", "horny", "hotsex", @@ -278,6 +285,7 @@ "likes it raw", "loli", "lolicon", + "lube", "masterbate", "masterbation", "masterbations", @@ -384,6 +392,7 @@ "self-cutter", "semen", "sex", + "sextoy", "shag", "shagging", "shemale", @@ -397,6 +406,7 @@ "shitskin", "shota", "shotacon", + "sit on my face", "skank", "slit my wrist", "slit my wrists", @@ -493,6 +503,8 @@ "you retarded", "you will never be a woman", "you'll never be a woman", + "your hole", + "your holes", "your insides", "your lips", "your throat",