mirror of https://gitlab.com/bashrc2/epicyon
Compare lower case
parent
8806572402
commit
a5e1d549f3
|
@ -1023,7 +1023,7 @@ def _get_simplified_content(content: str) -> str:
|
||||||
def detect_dogwhistles(content: str, dogwhistles: {}) -> {}:
|
def detect_dogwhistles(content: str, dogwhistles: {}) -> {}:
|
||||||
"""Returns a dict containing any detected dogwhistle words
|
"""Returns a dict containing any detected dogwhistle words
|
||||||
"""
|
"""
|
||||||
content = remove_html(content)
|
content = remove_html(content).lower()
|
||||||
result = {}
|
result = {}
|
||||||
words = _get_simplified_content(content).split(' ')
|
words = _get_simplified_content(content).split(' ')
|
||||||
for whistle, category in dogwhistles.items():
|
for whistle, category in dogwhistles.items():
|
||||||
|
@ -1031,8 +1031,9 @@ def detect_dogwhistles(content: str, dogwhistles: {}) -> {}:
|
||||||
continue
|
continue
|
||||||
ending = False
|
ending = False
|
||||||
starting = False
|
starting = False
|
||||||
|
whistle = whistle.lower()
|
||||||
|
|
||||||
if whistle.lower().startswith('x-'):
|
if whistle.startswith('x-'):
|
||||||
whistle = whistle[2:]
|
whistle = whistle[2:]
|
||||||
ending = True
|
ending = True
|
||||||
elif (whistle.startswith('*') or
|
elif (whistle.startswith('*') or
|
||||||
|
|
|
@ -1,9 +1,15 @@
|
||||||
X-pilled, alt-right terminology
|
X-pilled, alt-right terminology
|
||||||
|
soy boy, alt-right terminology
|
||||||
|
soyboy, alt-right terminology
|
||||||
|
soyboi, alt-right terminology
|
||||||
|
kek, alt-right terminology
|
||||||
|
groyper, alt-right meme
|
||||||
chad, alt-right meme
|
chad, alt-right meme
|
||||||
globalist*, antisemitism
|
globalist*, antisemitism
|
||||||
globalism, antisemitism
|
globalism, antisemitism
|
||||||
fren, alt-right terminology
|
fren, alt-right terminology
|
||||||
cuck*, alt-right terminology
|
cuck*, alt-right terminology
|
||||||
*1488, nazism
|
*1488, nazism
|
||||||
|
nazbol, nazism
|
||||||
*1290, antisemitism
|
*1290, antisemitism
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue