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