korcen 0.3.7__tar.gz → 0.3.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {korcen-0.3.7 → korcen-0.3.9}/PKG-INFO +1 -1
- {korcen-0.3.7 → korcen-0.3.9}/korcen/__init__.py +1 -1
- {korcen-0.3.7 → korcen-0.3.9}/korcen/korcen.py +20 -17
- {korcen-0.3.7 → korcen-0.3.9}/korcen.egg-info/PKG-INFO +1 -1
- {korcen-0.3.7 → korcen-0.3.9}/setup.py +1 -1
- {korcen-0.3.7 → korcen-0.3.9}/README +0 -0
- {korcen-0.3.7 → korcen-0.3.9}/korcen.egg-info/SOURCES.txt +0 -0
- {korcen-0.3.7 → korcen-0.3.9}/korcen.egg-info/dependency_links.txt +0 -0
- {korcen-0.3.7 → korcen-0.3.9}/korcen.egg-info/requires.txt +0 -0
- {korcen-0.3.7 → korcen-0.3.9}/korcen.egg-info/top_level.txt +0 -0
- {korcen-0.3.7 → korcen-0.3.9}/setup.cfg +0 -0
@@ -2,7 +2,6 @@ import re
|
|
2
2
|
from better_profanity import profanity
|
3
3
|
from collections import OrderedDict
|
4
4
|
|
5
|
-
|
6
5
|
profanity.load_censor_words()
|
7
6
|
|
8
7
|
cache_size = 0
|
@@ -30,8 +29,8 @@ def check(text:str, id: int=None):
|
|
30
29
|
|
31
30
|
if id != None:
|
32
31
|
if cache_size < 2:
|
33
|
-
print("Cache size must be at least 2")
|
34
|
-
return
|
32
|
+
print("korcen: Cache size must be at least 2")
|
33
|
+
return False
|
35
34
|
text = save_text(id=id, text=text)
|
36
35
|
|
37
36
|
text = re.sub('𝗌', 's', text)
|
@@ -441,6 +440,7 @@ def check(text:str, id: int=None):
|
|
441
440
|
text = re.sub('제꺼져', '', text)
|
442
441
|
text = re.sub('꺼져있', '', text)
|
443
442
|
text = re.sub('꺼져도', '', text)
|
443
|
+
text = re.sub('안꺼져', '', text)
|
444
444
|
text = re.sub('계속꺼져', '', text)
|
445
445
|
text = re.sub('꺼져가', '', text)
|
446
446
|
if "꺼져" in text:
|
@@ -1159,8 +1159,8 @@ def general(text:str, id: int=None):
|
|
1159
1159
|
|
1160
1160
|
if id != None:
|
1161
1161
|
if cache_size < 2:
|
1162
|
-
print("Cache size must be at least 2")
|
1163
|
-
return
|
1162
|
+
print("korcen: Cache size must be at least 2")
|
1163
|
+
return False
|
1164
1164
|
text = save_text(id=id, text=text)
|
1165
1165
|
|
1166
1166
|
text = re.sub('𝗌', 's', text)
|
@@ -1353,6 +1353,8 @@ def general(text:str, id: int=None):
|
|
1353
1353
|
text = re.sub('동시 8', '', text)
|
1354
1354
|
text = re.sub('8시발', '시발', text)
|
1355
1355
|
text = re.sub('8시 ', '', text)
|
1356
|
+
text = re.sub('!wt ㅂㅇ', '', text)
|
1357
|
+
text = re.sub('!ㅈㅅ ㅂㅇ', '', text)
|
1356
1358
|
text = re.sub("[^ㄱ-힣]", "", text)
|
1357
1359
|
fuck = ["시ㅂ", "시ㅏㄹ", "씨ㅂ", "씨ㅏㄹ", "ㅣ발", "ㅆ발", "ㅅ발", "ㅅㅂ", "ㅆㅂ", "ㅆ바", "ㅅ바",
|
1358
1360
|
"시ㅂㅏ", "ㅅㅂㅏ", "시ㅏㄹ", "씨ㅏㄹ", "ㅅ불", "ㅆ불", "ㅅ쁠", "ㅆ뿔", "ㅆㅣ발", "ㅅㅟ발", "ㅅㅣㅂㅏ",
|
@@ -1415,6 +1417,7 @@ def general(text:str, id: int=None):
|
|
1415
1417
|
text = re.sub('방장', '', text)
|
1416
1418
|
text = re.sub('시바사키', '', text)
|
1417
1419
|
text = re.sub('시발차', '', text)
|
1420
|
+
text = re.sub('구로역 시발', '', text)
|
1418
1421
|
text = re.sub('로벅스', '', text)
|
1419
1422
|
text = re.sub('쉬바나', '', text)
|
1420
1423
|
text = re.sub('벌었는데', '', text)
|
@@ -1757,8 +1760,8 @@ def minor(text:str, id: int=None):
|
|
1757
1760
|
|
1758
1761
|
if id != None:
|
1759
1762
|
if cache_size < 2:
|
1760
|
-
print("Cache size must be at least 2")
|
1761
|
-
return
|
1763
|
+
print("korcen: Cache size must be at least 2")
|
1764
|
+
return False
|
1762
1765
|
text = save_text(id=id, text=text)
|
1763
1766
|
|
1764
1767
|
newtext = text.lower()
|
@@ -1826,8 +1829,8 @@ def sexual(text:str, id: int=None):
|
|
1826
1829
|
|
1827
1830
|
if id != None:
|
1828
1831
|
if cache_size < 2:
|
1829
|
-
print("Cache size must be at least 2")
|
1830
|
-
return
|
1832
|
+
print("korcen: Cache size must be at least 2")
|
1833
|
+
return False
|
1831
1834
|
text = save_text(id=id, text=text)
|
1832
1835
|
|
1833
1836
|
text = re.sub('𝗌', 's', text)
|
@@ -2188,8 +2191,8 @@ def belittle(text:str, id: int=None):
|
|
2188
2191
|
|
2189
2192
|
if id != None:
|
2190
2193
|
if cache_size < 2:
|
2191
|
-
print("Cache size must be at least 2")
|
2192
|
-
return
|
2194
|
+
print("korcen: Cache size must be at least 2")
|
2195
|
+
return False
|
2193
2196
|
text = save_text(id=id, text=text)
|
2194
2197
|
|
2195
2198
|
text = text.lower()
|
@@ -2242,8 +2245,8 @@ def race(text:str, id: int=None):
|
|
2242
2245
|
|
2243
2246
|
if id != None:
|
2244
2247
|
if cache_size < 2:
|
2245
|
-
print("Cache size must be at least 2")
|
2246
|
-
return
|
2248
|
+
print("korcen: Cache size must be at least 2")
|
2249
|
+
return False
|
2247
2250
|
text = save_text(id=id, text=text)
|
2248
2251
|
|
2249
2252
|
text = text.lower()
|
@@ -2264,8 +2267,8 @@ def parent(text:str, id: int=None):
|
|
2264
2267
|
|
2265
2268
|
if id != None:
|
2266
2269
|
if cache_size < 2:
|
2267
|
-
print("Cache size must be at least 2")
|
2268
|
-
return
|
2270
|
+
print("korcen: Cache size must be at least 2")
|
2271
|
+
return False
|
2269
2272
|
text = save_text(id=id, text=text)
|
2270
2273
|
|
2271
2274
|
text = text.lower()
|
@@ -2310,8 +2313,8 @@ def english(text:str, id: int=None):
|
|
2310
2313
|
|
2311
2314
|
if id != None:
|
2312
2315
|
if cache_size < 2:
|
2313
|
-
print("Cache size must be at least 2")
|
2314
|
-
return
|
2316
|
+
print("korcen: Cache size must be at least 2")
|
2317
|
+
return False
|
2315
2318
|
text = save_text(id=id, text=text)
|
2316
2319
|
|
2317
2320
|
text = re.sub('𝗌', 's', text)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|