From 0d93856e8faed2532d018a67086a6d931ec9ea01 Mon Sep 17 00:00:00 2001 From: Philip Shrimpton <45856863+Shrimpy48@users.noreply.github.com> Date: Thu, 18 Jul 2024 18:05:24 +0100 Subject: [PATCH 1/2] Add test for "^ify" orthography rule --- test/test_orthography.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_orthography.py b/test/test_orthography.py index 2a85ab688..1e25ba425 100644 --- a/test/test_orthography.py +++ b/test/test_orthography.py @@ -41,6 +41,7 @@ lambda: ('hobby', 'ist', 'hobbyist'), lambda: ('copy', 'ist', 'copyist'), lambda: ('beauty', 'ful', 'beautiful'), + lambda: ('pretty', 'ify', 'prettify'), lambda: ('weary', 'ness', 'weariness'), lambda: ('weary', 'some', 'wearisome'), lambda: ('lonely', 'ness', 'loneliness'), From be3dd1220e81c5008fe71d4b94865b2210a26fcb Mon Sep 17 00:00:00 2001 From: Philip Shrimpton <45856863+Shrimpy48@users.noreply.github.com> Date: Fri, 19 Jul 2024 11:49:08 +0100 Subject: [PATCH 2/2] Update "^ify" orthography rule to handle y +ify --- plover/system/english_stenotype.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plover/system/english_stenotype.py b/plover/system/english_stenotype.py index 60baec14e..77904244f 100644 --- a/plover/system/english_stenotype.py +++ b/plover/system/english_stenotype.py @@ -85,7 +85,8 @@ (r'^(.+)y \^ (ial|ially)$', r'\1\2'), # == +if == # spaghetti +ification = spaghettification (*spaghettiification) - (r'^(.+)i \^ if(y|ying|ied|ies|ication|ications)$', r'\1if\2'), + # pretty +ify = prettify (*prettyify) + (r'^(.+)[iy] \^ if(y|ying|ied|ies|ication|ications)$', r'\1if\2'), # == +ical == # fantastic +ical = fantastical (*fantasticcal)