increase cutoff for marsey mappings to 5 characters to stop "this" and "with" and the like from getting mapped
parent
fea7ecab14
commit
1f76f9f471
|
@ -7,7 +7,7 @@ def marsify(text):
|
|||
for x in text.split(' '):
|
||||
new_text += f'{x} '
|
||||
x = x.lower()
|
||||
if len(x) > 3 and x in marsey_mappings:
|
||||
if len(x) >= 5 and x in marsey_mappings:
|
||||
marsey = choice(marsey_mappings[x])
|
||||
new_text += f':{marsey}: '
|
||||
return new_text
|
||||
|
|
Loading…
Reference in New Issue