Skip to content

Commit

Permalink
modernize-spelling: bye-and-bye -> by-and-by
Browse files Browse the repository at this point in the history
  • Loading branch information
acabal committed Nov 30, 2024
1 parent 42b140e commit f07ea0d
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 @@ -464,6 +464,7 @@ def modernize_spelling(xhtml: str) -> str:
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
xhtml = regex.sub(r"’([Pp])lane\b", r"\1lane", xhtml) # 'plane -> plane
xhtml = regex.sub(r"([Bb])ye?-and-([Bb])ye?\b", r"\1y-and-\2y", xhtml) # by-and-bye, bye-and-by -> by-and-by (Note, may be capitalized in a song title)


# Normalize some names
Expand Down

0 comments on commit f07ea0d

Please sign in to comment.