Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
not fancy solution in Clear category for Stressful Subject by imtiaz.rahi
import re
def is_stressful(subj):
if bool(re.search(r".*[!]{3,}$", subj)) or subj.isupper():
return True
regex = r"(h)+[!.-]?(e)+[!.-]?(l)+[!.-]?(p)+(!.)?|" \
r"(a)+[!.-]?(s)+[!.-]?(a)+[!.-]?(p)+(!.)*|" \
r"(u)+[!.-]?(r)+[!.-]?(g)+[!.-]?(e)+[!.-]?(n)+[!.-]?(t)+(!.)*"
return bool(re.search(regex, subj, re.IGNORECASE))
Aug. 13, 2019