Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Stressful Subject by yoichi
import re
def is_stressful(subj):
"""
recoognise stressful subject
"""
if subj.isupper():
return True
if subj.endswith('!!!'):
return True
for word in subj.lower().split():
for red_word in ['help', 'asap', 'urgent']:
if re.search('+[^0-9a-z]*'.join(red_word), word) is not None:
return True
return False
April 27, 2017
Comments: