Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
re solution in Clear category for Stressful Subject by twilyght
import re
def is_stressful(subj):
"""
recognize stressful subject
"""
red = "help asap urgent".split()
red_re = [''.join(c + '+[!\.-]?' for c in word) for word in red]
return subj.endswith("!!!") or subj.isupper() or any(re.search(r, subj.lower()) for r in red_re)
May 21, 2020
Comments: