Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modernize-spelling: lowercase street arab #772

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading