From 751b63777ac25b641ad646f31d075078070b7909 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Wed, 20 Nov 2024 18:18:54 -0600 Subject: [PATCH] modernize-spelling: damn' -> damn --- se/spelling.py | 1 + 1 file changed, 1 insertion(+) diff --git a/se/spelling.py b/se/spelling.py index f7bb5c5b..429a98ba 100644 --- a/se/spelling.py +++ b/se/spelling.py @@ -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