-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LOLSPEAK Translator.py
54 lines (54 loc) · 1.84 KB
/
LOLSPEAK Translator.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import random
import time as tiem
def katify_text(text):
text = text.upper()
text = text.replace("HI", "HOI")
text = text.replace("CHEESE", "CHEEZ")
text = text.replace("HAVE", "HAS")
text = text.replace("HELLO", "HEWWO")
text = text.replace("YOU", "U")
text = text.replace("ZE", "Z")
text = text.replace("CAN I", "I CAN")
text = text.replace("KITTY", "KITTEH")
text = text.replace("CAT", "KAT")
text = text.replace("ARE", "R")
text = text.replace("GOOD", "GUD")
text = text.replace("DUMB", "DUM")
text = text.replace("DOCTOR", "DOCTA")
text = text.replace("HEART", "HART")
text = text.replace("AM", "IZ")
text = text.replace("IS", "IZ")
text = text.replace("THE", "DA")
text = text.replace("ING", "IN")
text = text.replace("SYSTEM", "SISTAM")
text = text.replace("LIKE", "LIEK")
text = text.replace("MIGHT", "MITE")
text = text.replace("TO", "2")
text = text.replace("FOR", "4")
text = text.replace("SOME", "SUM")
text = text.replace("TIME", "TIEM")
text = text.replace("LAUGHS", "LOLZ")
text = text.replace("LAUGH", "LAFF")
text = text.replace("IMPROVE", "IMPROOV")
return text
tranzlate = True
furst_tiem = True
while tranzlate == True:
if furst_tiem == True:
furst_tiem = False
input_text = input("ENTR SUM TEXT:\n")
else:
input_text = input("\nENTR SUM TEXT:\n")
output_text = katify_text(input_text)
loadin_tiem = random.randint(1,5)
print("\nTRANZLATIN...")
tiem.sleep(loadin_tiem)
print("\nTRANZLASHUN:", output_text)
confirmashun = input("\nDO U WANTS 2 DO ANOTHR TRANZLASHUN? (y/n)\n")
if confirmashun == "y":
tranzlate = True
else:
tranzlate = False
print("\nTANKS 4 USIN!")
tiem.sleep(5)
break