Skip to content

Commit

Permalink
Merge pull request #390 from amperser/nonwords
Browse files Browse the repository at this point in the history
Add check for nonwords
  • Loading branch information
suchow committed Mar 14, 2016
2 parents 0cc513c + 2c145bd commit a4f604f
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions proselint/checks/garner/nonwords.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# -*- coding: utf-8 -*-
"""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 = "garner.nonwords"
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)

0 comments on commit a4f604f

Please sign in to comment.