diff --git a/se/spelling.py b/se/spelling.py index f56b0ac9..cb373d3a 100644 --- a/se/spelling.py +++ b/se/spelling.py @@ -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