Skip to content

Commit 65fc2b4

Browse files
authored
Update +ify orthography rule (#1680)
1 parent 56af6b3 commit 65fc2b4

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

news.d/feature/1680.core.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improve orthography rules for `^ify` suffixes.

plover/system/english_stenotype.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@
8080
(r"^(.+)y \^ (ial|ially)$", r"\1\2"),
8181
# == +if ==
8282
# spaghetti +ification = spaghettification (*spaghettiification)
83-
(r"^(.+)i \^ if(y|ying|ied|ies|ication|ications)$", r"\1if\2"),
83+
# pretty +ify = prettify (*prettyify)
84+
(r"^(.+i) \^ if(y|ying|ied|ies|ication|ications)$", r"\1f\2"),
85+
(r"^(.*[^aeiou])y \^ if(y|ying|ied|ies|ication|ications)$", r"\1if\2"),
8486
# == +ical ==
8587
# fantastic +ical = fantastical (*fantasticcal)
8688
(r"^(.+)ic \^ (ical|ically)$", r"\1\2"),

test/test_orthography.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
lambda: ("hobby", "ist", "hobbyist"),
4242
lambda: ("copy", "ist", "copyist"),
4343
lambda: ("beauty", "ful", "beautiful"),
44+
lambda: ("pretty", "ify", "prettify"),
4445
lambda: ("weary", "ness", "weariness"),
4546
lambda: ("weary", "some", "wearisome"),
4647
lambda: ("lonely", "ness", "loneliness"),
@@ -116,6 +117,9 @@
116117
lambda: ("editor", "ial", "editorial"),
117118
lambda: ("editor", "ially", "editorially"),
118119
lambda: ("spaghetti", "ification", "spaghettification"),
120+
lambda: ("Hawaii", "ification", "Hawaiification"),
121+
lambda: ("ASCII", "ification", "ASCIIfication"),
122+
lambda: ("play", "ification", "playification"),
119123
lambda: ("fantastic", "ical", "fantastical"),
120124
lambda: ("epistomology", "ical", "epistomological"),
121125
lambda: ("oratory", "ical", "oratorical"),

0 commit comments

Comments
 (0)