| 1 |
"""Mondegreens. |
| 2 |
|
| 3 |
--- |
| 4 |
layout: post |
| 5 |
source: Garner's Modern American Usage |
| 6 |
source_url: http://bit.ly/1T4alrY |
| 7 |
title: mondegreens |
| 8 |
date: 2014-06-10 12:31:19 |
| 9 |
categories: writing |
| 10 |
--- |
| 11 |
|
| 12 |
Points out preferred form. |
| 13 |
|
| 14 |
""" |
| 15 |
from proselint.tools import memoize, preferred_forms_check |
| 16 |
|
| 17 |
|
| 18 |
@memoize |
| 19 |
def check(text): |
| 20 |
"""Suggest the preferred forms.""" |
| 21 |
err = "misc.mondegreens" |
| 22 |
msg = "'{}' is the preferred form." |
| 23 |
|
| 24 |
list = [ |
| 25 |
["a girl with kaleidoscope eyes", ["a girl with colitis goes by"]], |
| 26 |
["a partridge in a pear tree", ["a part-red gingerbread tree"]], |
| 27 |
["attorney and notary public", ["attorney and not a republic"]], |
| 28 |
["beck and call", ["beckon call"]], |
| 29 |
["for all intents and purposes", ["for all intensive purposes"]], |
| 30 |
["laid him on the green", ["Lady Mondegreen"]], |
| 31 |
["all of the other reindeer", ["Olive, the other reindeer"]], |
| 32 |
["to the manner born", ["to the manor born"]], |
| 33 |
] |
| 34 |
|
| 35 |
return preferred_forms_check(text, list, err, msg) |