Skip to content

Commit

Permalink
modernize-spelling: lowercase street arab
Browse files Browse the repository at this point in the history
We still want to drop the hyphen though. It should also work in the plural.
  • Loading branch information
robinwhittleton authored and acabal committed Nov 25, 2024
1 parent bcecd9d commit 2c4c790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion se/spelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c4c790

Please sign in to comment.