| 1 |
"""Nonwords. |
| 2 |
|
| 3 |
--- |
| 4 |
layout: post |
| 5 |
source: Garner's Modern American Usage |
| 6 |
source_url: http://bit.ly/1T4alrY |
| 7 |
title: nonwords |
| 8 |
date: 2014-06-10 12:31:19 |
| 9 |
categories: writing |
| 10 |
--- |
| 11 |
|
| 12 |
Nonwords. |
| 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 = "nonwords.misc" |
| 22 |
msg = "Nonword, try '{}'." |
| 23 |
|
| 24 |
preferences = [ |
| 25 |
|
| 26 |
["doubtless' or 'undoubtedly", ["doubtlessly"]], |
| 27 |
["analysis", ["analyzation"]], |
| 28 |
["annoyance", ["annoyment"]], |
| 29 |
["confirmand", ["confirmant"]], |
| 30 |
["confirmands", ["confirmants"]], |
| 31 |
["converse", ["conversate"]], |
| 32 |
["cranded", ["crained"]], |
| 33 |
["disbursement' or 'dispersal", ["dispersement"]], |
| 34 |
["discomfort' or 'discomfiture", ["discomforture"]], |
| 35 |
["effrontery", ["affrontery"]], |
| 36 |
["forbearance", ["forebearance"]], |
| 37 |
["improper", ["improprietous"]], |
| 38 |
["inclement", ["inclimate"]], |
| 39 |
["relatively low price' or 'affordability", ["relative inexpense"]], |
| 40 |
["inimical", ["inimicable"]], |
| 41 |
["regardless", ["irregardless"]], |
| 42 |
["minimize", ["minimalize"]], |
| 43 |
["minimized", ["minimalized"]], |
| 44 |
["minimizes", ["minimalizes"]], |
| 45 |
["minimizing", ["minimalizing"]], |
| 46 |
# muchly |
| 47 |
["optimize", ["optimalize"]], |
| 48 |
["paralysis", ["paralyzation"]], |
| 49 |
["pettifog", ["pettifogger"]], |
| 50 |
["proper", ["proprietous"]], |
| 51 |
["quell' or 'quash", ["squelch"]], |
| 52 |
["seldom", ["seldomly"]], |
| 53 |
# slinged |
| 54 |
["thus", ["thusly"]], |
| 55 |
["categorically", ["uncategorically"]], |
| 56 |
["undoubtedly' or 'indubitably", ["undoubtably"]], |
| 57 |
["unequivocal", ["unequivocable"]], |
| 58 |
["mercilessly", ["unmercilessly"]], |
| 59 |
["unrelentingly' or relentlessly", ["unrelentlessly"]], |
| 60 |
] |
| 61 |
|
| 62 |
return preferred_forms_check(text, preferences, err, msg) |