Skip to content

Commit

Permalink
modernize-spelling: 'flu -> flu
Browse files Browse the repository at this point in the history
  • Loading branch information
acabal committed Nov 15, 2024
1 parent 1a14c9d commit edb1d59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion se/spelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,9 @@ def modernize_spelling(xhtml: str) -> str:
xhtml = regex.sub(r"\b([Dd])umbfounder", r"\1umbfound", xhtml) # dumbfoundered -> dumbfounded
xhtml = regex.sub(r"\b([Ss])uttee", r"\1ati", xhtml) # suttee -> sati
xhtml = regex.sub(r"\b([Bb])y-by\b", r"\1ye-bye", xhtml) # by-by -> bye-bye
xhtml = regex.sub(r"(?<!O’)\b([Ll])eary\b", r"\1eery", xhtml) # leary -> leery
xhtml = regex.sub(r"(?<!O’)\b([Ll])eary\b", r"\1eery", xhtml) # leary -> leery
xhtml = regex.sub(r"\b([Bb])rief case", r"\1riefcase", xhtml) # brief case -> briefcase
xhtml = regex.sub(r"’([Ff])lu\b", r"\1lu", xhtml) # 'flu -> flu


# Normalize some names
Expand Down

0 comments on commit edb1d59

Please sign in to comment.