Skip to content

Commit

Permalink
modernize-spelling: damn' -> damn
Browse files Browse the repository at this point in the history
  • Loading branch information
acabal committed Nov 21, 2024
1 parent 4b2be2f commit 751b637
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions se/spelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ def modernize_spelling(xhtml: str) -> str:
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
xhtml = regex.sub(r"\b([Aa])nnexe\b", r"\1nnex", xhtml) # annexe -> annex
xhtml = regex.sub(r"([^\p{Letter}])([Dd])amn’([^\p{Letter}])", r"\1\2amn\3", xhtml) # damn' -> damn


# Normalize some names
Expand Down

0 comments on commit 751b637

Please sign in to comment.