Skip to content

Commit

Permalink
Modernize bonâ fide to bona fide
Browse files Browse the repository at this point in the history
  • Loading branch information
robinwhittleton authored and acabal committed Sep 17, 2023
1 parent 336da1e commit 77876fd
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 @@ -435,6 +435,7 @@ def modernize_spelling(xhtml: str) -> str:
xhtml = regex.sub(r"\b([Uu])nder weigh\b", r"\1nderway", xhtml) # under weigh -> underway
xhtml = regex.sub(r"\bQuire(s?)\b", r"Choir\1", xhtml) # quire -> choir
xhtml = regex.sub(r"\bquire(s?)\b", r"choir\1", xhtml) # quire -> choir
xhtml = regex.sub(r"\b([Bb])onâ fide\b", r"\1ona fide", xhtml) # bonâ fide -> bona fide

# Normalize some names
xhtml = regex.sub(r"Moliere", r"Molière", xhtml) # Moliere -> Molière
Expand Down

0 comments on commit 77876fd

Please sign in to comment.