# code inspired by bossapplesauce @ f95zone
init python:
hardcoded = {}
def rel_rest(text):
def text_repl(t):
if renpy.re.match("god(?:daughter|daugther)", t.group(0)): return "niece"
elif renpy.re.match("god(?:father|daddy)", t.group(0)): return "uncle"
elif renpy.re.match("God(?:daughter|daugther)", t.group(0)): return "Niece"
elif renpy.re.match("God(?:father|daddy)", t.group(0)): return "Uncle"
return hardcoded[text] if text in hardcoded else renpy.re.sub( r'(?:(?i)god(?:father|daughter|daugther|daddy))', text_repl, text )
config.say_menu_text_filter = rel_rest