2023-06-26 14:38:48 +00:00
|
|
|
from files.helpers.regex import *
|
2023-10-26 23:16:49 +00:00
|
|
|
import re
|
2023-06-26 14:38:48 +00:00
|
|
|
|
2023-10-26 23:16:49 +00:00
|
|
|
def sharpen(string, chud_phrase):
|
|
|
|
if chud_phrase:
|
|
|
|
string = re.sub(chud_phrase, 'erfdsx34224e4535resfed', string, flags=re.I)
|
2023-10-26 22:25:41 +00:00
|
|
|
|
2023-07-03 00:26:20 +00:00
|
|
|
string = the_fucking_regex.sub("\g<1> fucking", string)
|
|
|
|
string = bitch_question_mark_regex.sub(", bitch?", string)
|
|
|
|
string = exclamation_point_regex.sub(", motherfucker!", string)
|
2023-10-26 22:25:41 +00:00
|
|
|
|
2023-10-26 23:16:49 +00:00
|
|
|
if chud_phrase:
|
|
|
|
string = string.replace('erfdsx34224e4535resfed', chud_phrase)
|
2023-10-26 22:25:41 +00:00
|
|
|
|
2023-07-03 00:26:20 +00:00
|
|
|
return string
|