Skip to content

Commit

Permalink
modernize-spelling: Hallowe’en -> Halloween
Browse files Browse the repository at this point in the history
  • Loading branch information
acabal committed Nov 21, 2024
1 parent 751b637 commit bcecd9d
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 @@ -462,6 +462,7 @@ def modernize_spelling(xhtml: str) -> str:
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
xhtml = regex.sub(r"Hallowe’en", r"Halloween", xhtml) # Hallowe’en -> Halloween


# Normalize some names
Expand Down

0 comments on commit bcecd9d

Please sign in to comment.