Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple without re solution in Clear category for Stressful Subject by suic
from itertools import groupby
def is_stressful(a, red_words=('help', 'asap', 'urgent')):
if a.endswith('!!!') or a.isupper():
return True
for word in a.split():
clean_word = "".join(k for k, _ in groupby(filter(str.isalpha, word))).lower()
if clean_word in red_words:
return True
return False
May 6, 2017
Comments: