Skip to content

Commit

Permalink
modernize-spelling: Remove parti-color from unhyphenated words list
Browse files Browse the repository at this point in the history
  • Loading branch information
acabal committed Nov 8, 2023
1 parent 254b471 commit 0f3de97
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions se/data/words
Original file line number Diff line number Diff line change
Expand Up @@ -58437,8 +58437,6 @@ participle
participles
particle
particles
particolored
particoloured
particular
particularisation
particularise
Expand Down
2 changes: 1 addition & 1 deletion se/spelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def modernize_spelling(xhtml: str) -> str:
xhtml = regex.sub(r"\bto a [‘“]?[Tt]([^’”]?)[’”]?(\s)", r"to a T\1\2", xhtml) # Remove quotes from `to a T` and capitalize T
xhtml = regex.sub(r"\b([Tt])eaze", r"\1ease", xhtml) # teaze -> tease
xhtml = regex.sub(r"\b([Cc])hrystal", r"\1rystal", xhtml) # chrystal -> crystal
xhtml = regex.sub(r"\b([Pp])art[iy]-?colo(u?)r", r"\1articolo\2r", xhtml) # party-color -> particolor
xhtml = regex.sub(r"\b([Pp])art[iy]-?colo(u?)r", r"\1arti-colo\2r", xhtml) # party-color -> parti-color
xhtml = regex.sub(r"\b([Aa])ukward", r"\1wkward", xhtml) # aukward -> awkward
xhtml = regex.sub(r"\b([Aa])lledg(ing|e[sd])", r"\1lleg\2", xhtml) # alledge -> allege
xhtml = regex.sub(r"\b([Hh])er’s", r"\1ers", xhtml) # her's -> hers
Expand Down

0 comments on commit 0f3de97

Please sign in to comment.