def isValid(text):
    return bool(re.search(r'\b(news|headline)\b', text, re.IGNORECASE))
Returns True if the input is related to the news.
dataset/ETHPy150Open jasperproject/jasper-client/client/modules/News.py/isValid