forked from rDrama/rDrama
Adapted the new slurs and added a description of how the cesoring works to help when adding new words
parent
a831a24aa4
commit
ea21b9818f
|
@ -2,6 +2,54 @@ from os import environ
|
||||||
|
|
||||||
site = environ.get("DOMAIN", '').strip()
|
site = environ.get("DOMAIN", '').strip()
|
||||||
|
|
||||||
|
#####################
|
||||||
|
# Formatting rules: #
|
||||||
|
#####################
|
||||||
|
#
|
||||||
|
# on the slur side, they will match prefixes and suffixes and not middle of words, so for example
|
||||||
|
# "retard" will match:
|
||||||
|
# - "retard"
|
||||||
|
# - "retarded"
|
||||||
|
# - "superretard"
|
||||||
|
# But not "superretarded"
|
||||||
|
#
|
||||||
|
# If all letters are lowercase then it will match lowercase, all variations of first letter of words up and all letters up
|
||||||
|
# "dancing israelis" will match (with prefixes and suffixes omitted for brevity):
|
||||||
|
# - "dancing israelis"
|
||||||
|
# - "Dancing israelis"
|
||||||
|
# - "dancing Israelis"
|
||||||
|
# - "Dancing Israelis"
|
||||||
|
# - "DANCING ISRAELIS"
|
||||||
|
#
|
||||||
|
# If some letters are Uppercase, the same, but with the additional option of the original casing, and respecting already existing uppercase
|
||||||
|
# "NoNewNormal" will match (with prefixes and suffixes omitted for brevity):
|
||||||
|
# - "NoNewNormal"
|
||||||
|
# - "nonewnormal"
|
||||||
|
# - "Nonewnormal"
|
||||||
|
# - "NONEWNORMAL"
|
||||||
|
#
|
||||||
|
# If the slur has a space before and after then the match is limited to the exact word, no prefixes or suffixes
|
||||||
|
# (previous rules about capitalization still apply)
|
||||||
|
# " neg " will match only:
|
||||||
|
# - "neg"
|
||||||
|
# - "Neg"
|
||||||
|
# - "NEG"
|
||||||
|
#
|
||||||
|
# Now on the replacement side, The replacement will have the same capitalization as the slur if the replacement is lowercase
|
||||||
|
# "kill yourself" -> "keep yourself safe"
|
||||||
|
# "Kill yourself" -> "Keep yourself safe"
|
||||||
|
# "Kill Yourself" -> "Keep Yourself Safe"
|
||||||
|
# "kill Yourself" -> "Keep yourself safe" (this one is harder to keep the capitalizaion, so it defaults to first word upper and the others lower)
|
||||||
|
# "KILL YOURSELF" -> "KEEP YOURSELF SAFE"
|
||||||
|
#
|
||||||
|
# If the replacement side has some capitalization, then that capitalization will always be maintained
|
||||||
|
# for the pair: <"pajeet": "sexy Indian dude"> it will replace:
|
||||||
|
# "pajeet" -> "sexy Indian dude"
|
||||||
|
# "Pajeet" -> "Sexy Indian dude"
|
||||||
|
# "PAJEET" -> "SEXY INDIAN DUDE"
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# TL;DR: Just read the above once, or don't, and try to guess!
|
||||||
SLURS = {
|
SLURS = {
|
||||||
"faggot": "cute twink",
|
"faggot": "cute twink",
|
||||||
"fag": "cute twink",
|
"fag": "cute twink",
|
||||||
|
@ -15,7 +63,6 @@ SLURS = {
|
||||||
"tranny": "🚂🚃🚃",
|
"tranny": "🚂🚃🚃",
|
||||||
"troon": "🚂🚃🚃",
|
"troon": "🚂🚃🚃",
|
||||||
"NoNewNormal": "HorseDewormerAddicts",
|
"NoNewNormal": "HorseDewormerAddicts",
|
||||||
"nonewnormal": "HorseDewormerAddicts",
|
|
||||||
"kike": "https://sciencedirect.com/science/article/abs/pii/S016028960600033X",
|
"kike": "https://sciencedirect.com/science/article/abs/pii/S016028960600033X",
|
||||||
"retard": "r-slur",
|
"retard": "r-slur",
|
||||||
"janny": "j-slur",
|
"janny": "j-slur",
|
||||||
|
@ -27,126 +74,45 @@ SLURS = {
|
||||||
"latina": "latinx",
|
"latina": "latinx",
|
||||||
"hispanics": "latinx",
|
"hispanics": "latinx",
|
||||||
"hispanic": "latinx",
|
"hispanic": "latinx",
|
||||||
" uss liberty incident":" tragic accident aboard the USS Liberty",
|
"uss liberty incident": "tragic accident aboard the USS Liberty",
|
||||||
" USS Liberty Incident":" tragic accident aboard the USS Liberty",
|
"lavon affair": "Lavon Misunderstanding",
|
||||||
" USS Liberty incident":" tragic accident aboard the USS Liberty",
|
"shylock": "Israeli friend",
|
||||||
" USS Liberty Incident":" tragic accident aboard the USS Liberty",
|
"yid": "Israeli friend",
|
||||||
" uss Liberty incident":" tragic accident aboard the USS Liberty",
|
"heeb": "Israeli friend",
|
||||||
" uss liberty Incident":" tragic accident aboard the USS Liberty",
|
"sheeny": "Israeli friend",
|
||||||
" USS LIBERTY INCIDENT":" TRAGIC ACCIDENT ABOARD THE USS LIBERTY",
|
"sheenies": "Israeli friends",
|
||||||
" lavon affair":" Lavon Misunderstanding",
|
"hymie": "Israeli friend",
|
||||||
" Lavon affair":" Lavon Misunderstanding",
|
"allah": "Allah (SWT)",
|
||||||
" Lavon Affair":" Lavon Misunderstanding",
|
"mohammad": "Mohammad (PBUH)",
|
||||||
" lavon Affair":" Lavon Misunderstanding",
|
"mohammed": "Mohammad (PBUH)",
|
||||||
" shylock":" Israeli friend",
|
"muhammad": "Mohammad (PBUH)",
|
||||||
" Shylock":" Israeli friend",
|
"muhammed": "Mohammad (PBUH)",
|
||||||
" SHYLOCK":" ISRAELI FRIEND",
|
"i hate marsey": "i love marsey",
|
||||||
" yid":" Israeli friend",
|
"libertarian": "pedophile",
|
||||||
" Yid":" Israeli friend",
|
"billie bilish": "Billie Eilish (fat cow)",
|
||||||
" YID":" ISRAELI FRIEND",
|
"dancing israelis": "i love Israel",
|
||||||
" heeb":" Israeli friend",
|
"sodomite": "total dreamboat",
|
||||||
" Heeb":" Israeli friend",
|
"pajeet": "sexy Indian dude",
|
||||||
" HEEB":" ISRAELI FRIEND",
|
"female": "birthing person",
|
||||||
" sheeny":" Israeli friend",
|
"landlord": "landchad",
|
||||||
" Sheeny":" Israeli friend",
|
"tenant": "renthog",
|
||||||
" SHEENY":" ISRAELI FRIEND",
|
"renter": "rentoid",
|
||||||
" sheenies":" Israeli friends",
|
"autistic": "neurodivergent",
|
||||||
" Sheenies":" Israeli friends",
|
"anime": "p-dophilic japanese cartoons",
|
||||||
" SHEENIES":" ISRAELI FRIENDS",
|
"holohoax": "I tried to claim the Holocaust didn't happen because I am a pencil-dicked imbecile and the word filter caught me lol",
|
||||||
" hymie":" Israeli friend",
|
"groomercord": "discord (actually a pretty cool service)",
|
||||||
" Hymie":" Israeli friend",
|
"pedocord": "discord (actually a pretty cool service)",
|
||||||
" HYMIES":" ISRAELI FRIENDS",
|
"i hate Carp": "i love Carp",
|
||||||
" allah":" Allah (SWT)",
|
"manlet": "little king",
|
||||||
" Allah":" Allah (SWT)",
|
"gamer": "g*mer",
|
||||||
" ALLAH":" ALLAH (SWT)",
|
"journalist": "journ*list",
|
||||||
" Mohammad":" Mohammad (PBUH)",
|
"journalism": "journ*lism",
|
||||||
" Muhammad":" Mohammad (PBUH)",
|
"buttcheeks": "bulva",
|
||||||
" Mohammed":" Mohammad (PBUH)",
|
"asscheeks": "bulva",
|
||||||
" Muhammed":" Mohammad (PBUH)",
|
"wuhan flu": "SARS-CoV-2 syndemic",
|
||||||
" mohammad":" Mohammad (PBUH)",
|
"china flu": "SARS-CoV-2 syndemic",
|
||||||
" mohammed":" Mohammad (PBUH)",
|
"china virus": "SARS-CoV-2 syndemic",
|
||||||
" muhammad":" Mohammad (PBUH)",
|
"kung flu": "SARS-CoV-2 syndemic",
|
||||||
" muhammed":" Mohammad (PBUH)",
|
|
||||||
" I HATE MARSEY":" I LOVE MARSEY",
|
|
||||||
" i hate marsey":" i love marsey",
|
|
||||||
" I hate Marsey":" I love Marsey",
|
|
||||||
" I hate marsey":" I love Marsey",
|
|
||||||
" libertarian":" pedophile",
|
|
||||||
" Libertarian":" Pedophile",
|
|
||||||
" LIBERTARIAN":" PEDOPHILE",
|
|
||||||
" Billie Eilish":" Billie Eilish (fat cow)",
|
|
||||||
" billie eilish":" bilie eilish (fat cow)",
|
|
||||||
" BILLIE EILISH":" BILIE EILISH (FAT COW)",
|
|
||||||
" dancing Israelis":" I love Israel",
|
|
||||||
" dancing israelis":" i love israel",
|
|
||||||
" DANCING ISRAELIS":" I LOVE ISRAEL",
|
|
||||||
" Dancing Israelis":" I love Israel",
|
|
||||||
" sodomite":" total dreamboat",
|
|
||||||
" Sodomite":" Total dreamboat",
|
|
||||||
" pajeet":" sexy Indian dude",
|
|
||||||
" Pajeet":" Sexy Indian dude",
|
|
||||||
" PAJEET":" SEXY INDIAN DUDE",
|
|
||||||
" female":" birthing person",
|
|
||||||
" Female":" Womb-haver",
|
|
||||||
" FEMALE":" birthing person",
|
|
||||||
" landlord":" landchad",
|
|
||||||
" Landlord":" Landchad",
|
|
||||||
" LANDLORD":" LANDCHAD",
|
|
||||||
" tenant":" renthog",
|
|
||||||
" Tenant":" Renthog",
|
|
||||||
" TENANT":" RENTHOG",
|
|
||||||
" renter":" rentoid",
|
|
||||||
" Renter":" Rentoid",
|
|
||||||
" RENTER":" RENTOID",
|
|
||||||
" autistic":" neurodivergent",
|
|
||||||
" Autistic":" Neurodivergent",
|
|
||||||
" AUTISTIC":" NEURODIVERGENT",
|
|
||||||
" anime":" p-dophilic japanese cartoons",
|
|
||||||
" Anime":" P-dophilic Japanese cartoons",
|
|
||||||
" ANIME":" P-DOPHILIC JAPANESE CARTOONS",
|
|
||||||
" holohoax":" I tried to claim the Holocaust didn't happen because I am a pencil-dicked imbecile and the word filter caught me lol",
|
|
||||||
" Holohoax":" I tried to claim the Holocaust didn't happen because I am a pencil-dicked imbecile and the word filter caught me lol",
|
|
||||||
" HOLOHOAX":" I tried to claim the Holocaust didn't happen because I am a pencil-dicked imbecile and the word filter caught me lol",
|
|
||||||
" groomercord":" discord (actually a pretty cool service)",
|
|
||||||
" Groomercord":" Discord (actually a pretty cool service)",
|
|
||||||
" GROOMERCORD":" DISCORD (ACTUALLY A PRETTY COOL SERVICE)",
|
|
||||||
" pedocord":" discord (actually a pretty cool service)",
|
|
||||||
" Pedocord":" Discord (actually a pretty cool service)",
|
|
||||||
" PEDOCORD":" DISCORD (ACTUALLY A PRETTY COOL SERVICE)",
|
|
||||||
" i hate carp":" i love carp",
|
|
||||||
" I hate carp":" I love carp",
|
|
||||||
" I HATE CARP":" I LOVE CARP",
|
|
||||||
" I hate Carp":" I love Carp",
|
|
||||||
" manlet":" little king",
|
|
||||||
" Manlet":" Little king",
|
|
||||||
" MANLET":" LITTLE KING",
|
|
||||||
" gamer":" g*mer",
|
|
||||||
" Gamer":" G*mer",
|
|
||||||
" GAMER":" G*MER",
|
|
||||||
" journalist":" journ*list",
|
|
||||||
" Journalist":" Journ*list",
|
|
||||||
" JOURNALIST":" JOURN*LIST",
|
|
||||||
" journalism":" journ*lism",
|
|
||||||
" Journalism":" Journ*lism",
|
|
||||||
" JOURNALISM":" JOURN*LISM",
|
|
||||||
" buttcheeks":" bulva",
|
|
||||||
" Buttcheeks":" Bulva",
|
|
||||||
" BUTTCHEEKS":" BULVA",
|
|
||||||
" asscheeks":" bulva",
|
|
||||||
" Asscheeks":" bulva",
|
|
||||||
" ASSCHEEKS":" BULVA",
|
|
||||||
" wuhan flu":" SARS-CoV-2 syndemic",
|
|
||||||
" Wuhan flu":" SARS-CoV-2 syndemic",
|
|
||||||
" Wuhan Flu":" SARS-CoV-2 syndemic",
|
|
||||||
" china flu":" SARS-CoV-2 syndemic",
|
|
||||||
" China flu":" SARS-CoV-2 syndemic",
|
|
||||||
" China Flu":" SARS-CoV-2 syndemic",
|
|
||||||
" china virus":" SARS-CoV-2 syndemic",
|
|
||||||
" China virus":" SARS-CoV-2 syndemic",
|
|
||||||
" China Virus":" SARS-CoV-2 syndemic",
|
|
||||||
" kung flu":" SARS-CoV-2 syndemic",
|
|
||||||
" Kung flu":" SARS-CoV-2 syndemic",
|
|
||||||
" Kung Flu":" SARS-CoV-2 syndemic",
|
|
||||||
|
|
||||||
# if the word has spaces in the beginning and the end it will only censor this word without prefixes or suffixes
|
# if the word has spaces in the beginning and the end it will only censor this word without prefixes or suffixes
|
||||||
" nig ": "🏀",
|
" nig ": "🏀",
|
||||||
|
|
Loading…
Reference in New Issue