def isValid(text):
 return bool(re.search(('\\b(weathers?|temperature|forecast|outside|hot|' + 'cold|jacket|coat|rain)\\b'), text, re.IGNORECASE))

def isValid ( text ) : return bool ( re . search ( ( '\\b(weathers?|temperature|forecast|outside|hot|' + 'cold|jacket|coat|rain)\\b' ) , text , re . IGNORECASE ) )
returns true if the input is related to jokes/humor .