From e79fc3197931310ef6f7b099919dac5a781b1641 Mon Sep 17 00:00:00 2001 From: Eugene Date: Sat, 24 Feb 2024 18:13:43 +0400 Subject: [PATCH] do not do patterns as they break words --- examples/scotsman.ron | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/scotsman.ron b/examples/scotsman.ron index 04ab995..6a42423 100644 --- a/examples/scotsman.ron +++ b/examples/scotsman.ron @@ -613,7 +613,11 @@ "tired": {"Literal": "knackert"}, "gay": {"Literal": "bufty"}, "testing": {"Literal": "testin`"}, - "fucking": {"Literal": "fookin`,feckin"}, + "fucking": {"Any": [ + {"Literal": "fookin`"}, + {"Literal": "feckin"}, + ]}, + "fuck": {"Literal": "fook"}, "mom": {"Any": [ {"Literal": "maw"}, {"Literal": "mam"}, @@ -650,13 +654,6 @@ ]}, }, ), - "patterns": ( - rules: { - r"\bfuck": {"Literal": "fook"}, - "h?ou": {"Literal": "oo"}, - "ow": {"Literal": "ou"}, - }, - ), "ending": ( rules: { "$": {"Weights": {