Skip to content
Permalink
Browse files
sorted out the comma bug
  • Loading branch information
dahilj committed Nov 3, 2017
1 parent fc9af89 commit fbcd3c5c6b1c853df61bd4fef68ef07185b66722
Showing 1 changed file with 4 additions and 2 deletions.
@@ -10,10 +10,12 @@ def determineUserInput(sentence):
sentence = sentence.lower()
#first - getting rid of unwanted chars
unwantedChar = [".","'","!","?",","]

for char in unwantedChar:
sentence.replace(char,"")

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

0 comments on commit fbcd3c5

Please sign in to comment.