forked from MarseyWorld/MarseyWorld
parent
bf448a557e
commit
12fbe686d5
|
@ -103,34 +103,34 @@ SLURS = {
|
|||
}
|
||||
|
||||
PROFANITIES = {
|
||||
'motherfucker': ['motherlover'],
|
||||
'motherfucker': 'motherlover',
|
||||
'fuck': ['frick', 'fudge', 'freak', 'f-word', 'f-bomb', 'cuss'],
|
||||
'asshole': ['butthole', 'ahole'],
|
||||
'arsehole': ['butthole', 'ahole'],
|
||||
'(ass)\W': ['butt', 'backside', 'rear end', 'bum', 'tochus'],
|
||||
'ass ': ['butt ', 'backside ', 'rear end ', 'bum ', 'tochus '],
|
||||
'arse ': ['butt ', 'backside ', 'rear end ', 'bum ', 'tochus '],
|
||||
'shit': ['poop', 'poop', 'crap', 'puckey'],
|
||||
'lmao': ['lmbo'],
|
||||
'lmao': 'lmbo',
|
||||
'damn': ['dang', 'darn'],
|
||||
'bastard': ['fatherless child'],
|
||||
'piss': ['pee'],
|
||||
'piss': 'pee',
|
||||
'bitch': ['b-word', 'mean lady'],
|
||||
'dick': ['weiner'],
|
||||
'cock': ['weiner'],
|
||||
'penis': ['peepee'],
|
||||
'pussy': ['girl weiner'],
|
||||
'vagina': ['girl peepee'],
|
||||
'cunt': ['rude lady'],
|
||||
'dick': 'weiner',
|
||||
'cock': 'weiner',
|
||||
'penis': 'peepee',
|
||||
'pussy': 'girl weiner',
|
||||
'vagina': 'girl peepee',
|
||||
'cunt': 'rude lady',
|
||||
'hell': ['heck', 'h-e-double-hockey-sticks'],
|
||||
'sexual intercourse': ['sexual congress'],
|
||||
'(sex)\W': ['intercourse'],
|
||||
'(arse)\W': ['butt', 'backside', 'rear end', 'bum', 'tochus'],
|
||||
'god': ['gosh'],
|
||||
'wanker': ['rude masturbator'],
|
||||
'twat': ['girl weiner'],
|
||||
'cum': ['c*m'],
|
||||
'orgasm': ['sexual climax'],
|
||||
'toilet': ['potty'],
|
||||
'rape': ['r*pe'],
|
||||
'sex ': 'intercourse ',
|
||||
'sexual intercourse': 'sexual congress',
|
||||
'god': 'gosh',
|
||||
'wanker': 'rude masturbator',
|
||||
'twat': 'girl weiner',
|
||||
'cum': 'c*m',
|
||||
'orgasm': 'sexual climax',
|
||||
'toilet': 'potty',
|
||||
'rape': 'r*pe',
|
||||
}
|
||||
|
||||
if SITE_NAME == 'rDrama':
|
||||
|
|
|
@ -116,13 +116,10 @@ pronouns_regex = re.compile("([a-z]{1,5})/[a-z]{1,5}(/[a-z]{1,5})?", flags=re.A|
|
|||
knowledgebase_page_regex = re.compile("[a-zA-Z0-9_\-]+", flags=re.A)
|
||||
|
||||
def sub_matcher(match:re.Match, upper=False, replace_with:Union[dict[str, str], dict[str, List[str]]]=SLURS):
|
||||
group_num = 0 if len(match.groups()) == 0 else 1
|
||||
group_num = 0
|
||||
match_str = match.group(group_num)
|
||||
if match_str is None: return ""
|
||||
if group_num == 1:
|
||||
match_str = match_str.replace('\\W', '')
|
||||
if match_str.startswith('<'):
|
||||
return match.group(group_num)
|
||||
return match_str
|
||||
else:
|
||||
repl = replace_with[match_str.lower()]
|
||||
if not isinstance(repl, str):
|
||||
|
|
Loading…
Reference in New Issue