Skip to content

Commit

Permalink
modernize-spelling: Romanoff -> Romanov
Browse files Browse the repository at this point in the history
  • Loading branch information
acabal committed Nov 28, 2024
1 parent 44611df commit 787eca0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions se/spelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ def modernize_spelling(xhtml: str) -> str:
xhtml = regex.sub(r"\bStrassbo?urgh?\b", r"Strasbourg", xhtml) # Strassburgh -> Strasbourg
xhtml = regex.sub(r"\bLuxembo?urgh?\b", r"Luxembourg", xhtml) # Luxemburgh -> Luxembourg
xhtml = regex.sub(r"\bBehring", r"Bering", xhtml) # Behring -> Bering (i.e. the Bering Straight)
xhtml = regex.sub(r"\bRomanoff", r"Romanov", xhtml) # Romanoff -> Romanov

# Remove archaic diphthongs
xhtml = regex.sub(r"\b([Mm])edi(æ|ae)val", r"\1edieval", xhtml)
Expand Down

0 comments on commit 787eca0

Please sign in to comment.