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