File size: 294 Bytes
e1167a6
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
HATE_KEYWORDS = [
    "hitler", "1488", "zionist conspiracy", "gas the", "jews did", "white genocide",
    "holocaust hoax", "nazi", "heil", "great replacement", "ethnostate"
]

def check_for_hate(text):
    lowered = text.lower()
    return any(keyword in lowered for keyword in HATE_KEYWORDS)