Skip to content
Permalink
Browse files
placed the sentenceParse below the taking the comma thing so we're le…
…ft with just the words
  • Loading branch information
dahilj committed Nov 3, 2017
1 parent 9e3170c commit fc9af89a8564ed774ad53842bb5f5ba2475155c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Binary file not shown.
@@ -8,13 +8,12 @@ def determineUserInput(sentence):
"""determines what the user asks and responses accordingly"""
response = ""
sentence = sentence.lower()
sentenceParse = sentence.split()
#first - getting rid of unwanted chars
unwantedChar = [".","'","!","?",","]
newSentence = ""
for char in unwantedChar:
sentence.replace(char,"")

sentenceParse = sentence.split()
if sentenceParse[0] in questionStarters: # ------------- execute the "what is" code here ---------------
response = respondQuestion(sentence), 2
elif sentenceParse[0] in greetings:

0 comments on commit fc9af89

Please sign in to comment.