From 63f40971f8bc4858b32b41595d14315d2261169f Mon Sep 17 00:00:00 2001 From: Jordan Suchow Date: Sat, 17 Oct 2015 13:14:41 -0400 Subject: [PATCH 1/2] Fix bug in mondegreen rule (The correct versions should all be in the left column.) --- proselint/checks/garner/mondegreens.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/proselint/checks/garner/mondegreens.py b/proselint/checks/garner/mondegreens.py index 92f22e749..dbe49bfa1 100644 --- a/proselint/checks/garner/mondegreens.py +++ b/proselint/checks/garner/mondegreens.py @@ -23,14 +23,14 @@ def check(text): msg = "'{}' is the preferred form." list = [ - ["a girl with colitis goes by", "a girl with kaleidascope eyes"], - ["a partridge in a pear tree", "a part-red gingerbread tree"], - ["attorney and not a republic", "attorney and notary public"], - ["beck and call", "beckon call"], - ["for all intents and purposes", "for all intensive purposes"], - ["laid him on the green", "Lady Mondegreen"], - ["Olive, the other reindeer", "all of the other reindeer"], - ["to the manner born", "to the manor born"], + ["a girl with kaleidascope eyes", "a girl with colitis goes by"], + ["a partridge in a pear tree", "a part-red gingerbread tree"], + ["attorney and not a republic", "attorney and notary public"], + ["beck and call", "beckon call"], + ["for all intents and purposes", "for all intensive purposes"], + ["laid him on the green", "Lady Mondegreen"], + ["Olive, the other reindeer", "all of the other reindeer"], + ["to the manner born", "to the manor born"], ] return preferred_forms_check(text, list, err, msg) From e3aafe2296e18820bb9715aabcefd8ce5e3607a2 Mon Sep 17 00:00:00 2001 From: Jordan Suchow Date: Sat, 17 Oct 2015 13:25:35 -0400 Subject: [PATCH 2/2] Fix another bug in mondegreen rule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [“”, [“”]] --- proselint/.proselintrc | 2 +- proselint/checks/garner/mondegreens.py | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/proselint/.proselintrc b/proselint/.proselintrc index a059fba6e..89ced5faf 100644 --- a/proselint/.proselintrc +++ b/proselint/.proselintrc @@ -22,7 +22,7 @@ "garner.many_a" : true, "garner.misspelling" : true, "garner.mixed_metaphors" : true, - "garner.mondegreens" : true, + "garner.mondegreens" : true, "garner.needless_variants" : true, "garner.oxymorons" : true, "garner.preferred_forms" : true, diff --git a/proselint/checks/garner/mondegreens.py b/proselint/checks/garner/mondegreens.py index dbe49bfa1..d85c56006 100644 --- a/proselint/checks/garner/mondegreens.py +++ b/proselint/checks/garner/mondegreens.py @@ -23,14 +23,14 @@ def check(text): msg = "'{}' is the preferred form." list = [ - ["a girl with kaleidascope eyes", "a girl with colitis goes by"], - ["a partridge in a pear tree", "a part-red gingerbread tree"], - ["attorney and not a republic", "attorney and notary public"], - ["beck and call", "beckon call"], - ["for all intents and purposes", "for all intensive purposes"], - ["laid him on the green", "Lady Mondegreen"], - ["Olive, the other reindeer", "all of the other reindeer"], - ["to the manner born", "to the manor born"], + ["a girl with kaleidascope eyes", ["a girl with colitis goes by"]], + ["a partridge in a pear tree", ["a part-red gingerbread tree"]], + ["attorney and not a republic", ["attorney and notary public"]], + ["beck and call", ["beckon call"]], + ["for all intents and purposes", ["for all intensive purposes"]], + ["laid him on the green", ["Lady Mondegreen"]], + ["Olive, the other reindeer", ["all of the other reindeer"]], + ["to the manner born", ["to the manor born"]], ] return preferred_forms_check(text, list, err, msg)