Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in mondegreen rule #236

Merged
merged 2 commits into from
Oct 17, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion proselint/.proselintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
16 changes: 8 additions & 8 deletions proselint/checks/garner/mondegreens.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)