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: Expand Esthonian to also catch Esthonia #599

Merged
merged 1 commit into from
Jul 30, 2023
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 @@ -468,7 +468,7 @@ def modernize_spelling(xhtml: str) -> str:
xhtml = regex.sub(r"Porto Rico", r"Puerto Rico", xhtml) # Porto Rico -> Puerto Rico
xhtml = regex.sub(r"Mahomet", r"Muhammad", xhtml) # Mahomet -> Muhammad
xhtml = regex.sub(r"M[ao]hommed", r"Muhammad", xhtml) # Mahommed -> Muhammad
xhtml = regex.sub(r"Esthonian", r"Estonian", xhtml) # Esthonian -> Estonian
xhtml = regex.sub(r"Esthonia(n?)", r"Estonia\1", xhtml) # Esthonia(n) -> Estonia(n)
xhtml = regex.sub(r"\b([Ss])anscrit\b", r"\1anskrit", xhtml) # Sanscrit -> Sanskrit
xhtml = regex.sub(r"Francois", r"François", xhtml) # Francois -> François
xhtml = regex.sub(r"Hayti(\b|an\b)", r"Haiti\1", xhtml) # Hayti -> Haiti
Expand Down