From 173530bbe07b5a271a4cd0f12e8e15f1fb2d9d9e Mon Sep 17 00:00:00 2001 From: Jasper Dahil Date: Wed, 22 Nov 2017 12:30:16 +0000 Subject: [PATCH] fixed the 'are you male/are you a male' questions ... --- determineUserInput.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/determineUserInput.py b/determineUserInput.py index 43ab3a1..3ae1027 100644 --- a/determineUserInput.py +++ b/determineUserInput.py @@ -222,7 +222,7 @@ def executeAre(sentence): response = "I'm talking to you so I exist so yes, I'm real. " elif "a robot" in sentence or "a human" in sentence or "a alien" in sentence: response = "Actually I'm a chatbot." - elif sentenceParse[3] in pronoun: #put to last because if sentenceParse doesnt have a index[3], runtime error occurs + elif sentenceParse[2] in pronoun or sentenceParse[3] in pronoun: #put to last because if sentenceParse doesnt have a index[3], runtime error occurs response = "My name is Jeff so I'm a boy I guess. " else: response = getGoogleSearch(sentence)