Skip to content

Commit

Permalink
Regex should match "died" also
Browse files Browse the repository at this point in the history
  • Loading branch information
molly committed Dec 4, 2013
1 parent f1d8de7 commit 9bde3bb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cyberprefixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@
tagger.initialize()
hparser = HTMLParser.HTMLParser()

offensive = re.compile(r"\b(deaths?|dead(ly)?|dies?|hurts?|injur(e|i?es|ed|y)|"
r"kill(ing|ed|er|s)?|fatal(ly|ity)?|shoo?t(s|ing|er)?|"
r"crash(es|ed|ing)?|murder(s|er|ed|ing)?|hostages?|"
r"rape(s|d)?|assault(s|ed)?|pile-?ups?)\b", flags=re.IGNORECASE)
offensive = re.compile(r"\b(deaths?|dead(ly)?|die(s|d)?|hurts?|"
r"injur(e|i?es|ed|y)|kill(ing|ed|er|s)?|fatal(ly|ity)?|"
r"shoo?t(s|ing|er)?|crash(es|ed|ing)?|"
r"murder(s|er|ed|ing)?|hostages?|rape(s|d)?|"
r"assault(s|ed)?|pile-?ups?)\b", flags=re.IGNORECASE)

def get():
try:
Expand Down

0 comments on commit 9bde3bb

Please sign in to comment.