Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
try RE solution in Clear category for Stressful Subject by U.V
import re
def is_stressful(subj: str) -> bool:
sub = re.sub(r'[./?><>\]\\\],\}\-\{!]', '', subj).lower().split()
for w in "help", "asap", "urgent":
mask = '+'.join(w)
if any(re.search(mask, s) for s in sub):
return True
return subj.endswith('!!!') or (subj == subj.upper())
Dec. 14, 2023
Comments: