MCPcopy Create free account
hub / github.com/jasperproject/jasper-client / isValid

Function isValid

client/modules/Notifications.py:51–58  ·  view source on GitHub ↗

Returns True if the input is related to Facebook notifications. Arguments: text -- user-input, typically transcribed speech

(text)

Source from the content-addressed store, hash-verified

49
50
51def isValid(text):
52 """
53 Returns True if the input is related to Facebook notifications.
54
55 Arguments:
56 text -- user-input, typically transcribed speech
57 """
58 return bool(re.search(r'\bnotification|Facebook\b', text, re.IGNORECASE))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected