Repository navigation
Expand file tree
/
Copy pathOWO_string.py
More file actions
57 lines (51 loc) · 1.45 KB
/
Copy pathOWO_string.py
File metadata and controls
57 lines (51 loc) · 1.45 KB
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
55
56
57
import pyperclip
import time
import os
def UWU(string):
#scalable part
replace = ["r", "l"]
#custom replacement
replace_s = {"you" : "yuwu",
"god" : "gowod",
"and" : "awnd",
"the" : "teh",
"that" : "thawt",
"be" : "bwe",
"man" : "mawn",
"serpent": "sewpwent",
"unto" : "untwu",
"to" : "tuwu",
"untrue" : "untwu",
'knew' : 'knuwu',
'know' : 'knowo',
'so' : 'sho',
'no' : 'nowo',
}
e = ''
r = string.split()
for word in r:
if word.lower() in replace_s:
if word.isupper():
e += replace_s[word.lower()].capitalize()
else:
e += replace_s[word.lower()]
e += " "
else:
for characters in word:
if characters.lower() in replace:
if characters.isupper():
e += "W"
else:
e += "w"
else:
e += characters
e += " "
if e.endswith(" "):
e = e[:-1]
return e
def OWO_string(phrase):
e = UWU(phrase)
print(e)
pyperclip.copy(e)
if __name__ == '__main__':
OWO_string(input("phrase pls\n"))