Create rules-double_speak.py
Browse files- 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
|