def can_process(statement, state, mongo): if similar(statement.text, SP_LIST_ITEMS.lower()) > MIN: return True return False
def process(statement, state, mongo): return similar(statement.text, SP_LIST_ITEMS.lower())
def process(statement, state, mongo): return similar(statement.text, SP_PURCHASE)
def process(statement, state, mongo): return max(similar(statement.text.lower(), SP), similar(statement.text.lower(), "shopping"))
def can_process(statement, state, mongo): if similar(statement.text, SP_PURCHASE) > MIN: return True return False
def process(statement, state, mongo): return similar(statement.text, SP_DELETE_LIST)
def can_process(statement, state, mongo): if similar(statement.text, SP_DELETE_LIST) > MIN: return True return False
def process(statement, state, mongo): return similar(statement.text, SP_ADD_ITEM)
def can_process(statement, state, mongo): if similar(statement.text, SP_ADD_ITEM) > MIN: return True return False