Skip to content

Commit

Permalink
modernize-spelling: half way -> halfway
Browse files Browse the repository at this point in the history
  • Loading branch information
acabal committed Oct 9, 2023
1 parent 39ec686 commit 7563dec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion se/spelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,8 @@ 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
xhtml = regex.sub(r"\b([Bb])onâ fide\b", r"\1ona fide", xhtml) # bonâ fide -> bona fide
xhtml = regex.sub(r"\b([Hh])alf [Ww]ay\b", r"\1alfway", xhtml) # half way -> halfway

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

0 comments on commit 7563dec

Please sign in to comment.