From 2c4c790e699a837365eeb09059da24a9e36d8c6a Mon Sep 17 00:00:00 2001 From: Robin Whittleton Date: Sun, 24 Nov 2024 16:04:24 +0100 Subject: [PATCH] modernize-spelling: lowercase street arab We still want to drop the hyphen though. It should also work in the plural. --- se/spelling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/se/spelling.py b/se/spelling.py index 144ba431..3c43c288 100644 --- a/se/spelling.py +++ b/se/spelling.py @@ -304,7 +304,7 @@ def modernize_spelling(xhtml: str) -> str: xhtml = regex.sub(r"\b([Hh])iccough", r"\1iccup", xhtml) # hiccough -> hiccup xhtml = regex.sub(r"\b([Rr])oue(s?)\b", r"\1oué\2", xhtml) # roue -> roué xhtml = regex.sub(r"\b([Ii])dee fixe\b", r"\1dée fixe\2", xhtml) # idee fixe -> idée fixe - xhtml = regex.sub(r"\b([Ss])treet[\s\-]arab\b", r"\1treet Arab", xhtml) # street-arab -> street Arab + xhtml = regex.sub(r"\b([Ss])treet[\s\-][Aa]rab(s?)\b", r"\1treet arab\2", xhtml) # street-arab -> street arab xhtml = regex.sub(r"\b[EÉ]migr[eé](?!e)", r"Émigré", xhtml) # Emigre -> Émigré (but not emigrée, which is French) xhtml = regex.sub(r"\b[eé]migr[eé](?!e)", r"émigré", xhtml) # emigre -> émigré (but not emigrée, which is French) xhtml = regex.sub(r"\b([Cc])ourtezan", r"\1ourtesan", xhtml) # courtezan -> courtesan