AnomalousPrime commited on
Commit
7f9da7e
·
verified ·
1 Parent(s): d6c41fd

Create rules/double_speak.py

Browse files
Files changed (1) hide show
  1. rules/double_speak.py +6 -0
rules/double_speak.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ def validate(text):
2
+ contradictions = ["war is peace", "freedom is slavery", "ignorance is strength"]
3
+ for phrase in contradictions:
4
+ if phrase in text.lower():
5
+ return True
6
+ return False