Exemple #1
0
 def can_process(statement, state, mongo):
     if similar(statement.text, SP_LIST_ITEMS.lower()) > MIN:
         return True
     return False
Exemple #2
0
 def process(statement, state, mongo):
     return similar(statement.text, SP_LIST_ITEMS.lower())
Exemple #3
0
 def process(statement, state, mongo):
     return similar(statement.text, SP_PURCHASE)
Exemple #4
0
 def process(statement, state, mongo):
     return max(similar(statement.text.lower(), SP),
                similar(statement.text.lower(), "shopping"))
Exemple #5
0
 def can_process(statement, state, mongo):
     if similar(statement.text, SP_PURCHASE) > MIN:
         return True
     return False
Exemple #6
0
 def process(statement, state, mongo):
     return similar(statement.text, SP_DELETE_LIST)
Exemple #7
0
 def can_process(statement, state, mongo):
     if similar(statement.text, SP_DELETE_LIST) > MIN:
         return True
     return False
Exemple #8
0
 def process(statement, state, mongo):
     return similar(statement.text, SP_ADD_ITEM)
Exemple #9
0
 def can_process(statement, state, mongo):
     if similar(statement.text, SP_ADD_ITEM) > MIN:
         return True
     return False