Returns True if the input is related to jokes/humor. Arguments: text -- user-input, typically transcribed speech
(text)
| 51 | |
| 52 | |
| 53 | def isValid(text): |
| 54 | """ |
| 55 | Returns True if the input is related to jokes/humor. |
| 56 | |
| 57 | Arguments: |
| 58 | text -- user-input, typically transcribed speech |
| 59 | """ |
| 60 | return any(word in text.upper() for word in WORDS) |
| 61 | |
| 62 | |
| 63 | # The interesting part |
nothing calls this directly
no outgoing calls
no test coverage detected