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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
|
"""Misspellings.
---
layout: post
source: Garner's Modern American Usage
source_url: http://bit.ly/1T4alrY
title: misspellings
date: 2014-06-10 12:31:19
categories: writing
---
Points out misspellings.
"""
from proselint.tools import memoize, preferred_forms_check
@memoize
def check(text):
"""Suggest the preferred forms."""
err = "spelling.misc"
msg = "Misspelling. '{}' is the preferred spelling."
misspellings = [
["a lot", ["alot"]],
["accommodable", ["accomodatable"]],
["anilingus", ["analingus"]],
["aren't i", ["amn't i"]],
["aren't i", ["an't i"]],
["barbed wire", ["bob wire"]],
["chargeable", ["chargable"]],
["chiffonier", ["chiffonnier"]],
["chintzy", ["chinchy"]],
["chipotle", ["chipolte"]],
["chlorophyll", ["chlorophyl"]],
["chocolaty", ["chocolatey"]],
["chronicle", ["chronical"]],
["chronicles", ["chronicals"]],
["coleslaw", ["coldslaw"]],
["choosy", ["choosey"]],
["cummerbund", ["kummerbund"]],
["financeable", ["financable"]],
["fluorescent", ["flourescent"]],
["fluoridation", ["flouridation"]],
["fluoride", ["flouride"]],
["foreclose", ["forclose"]],
["forswear", ["foreswear"]],
["free rein", ["free reign"]],
["gist", ["jist"]],
["glamour", ["glamor"]],
["granddad", ["grandad"]],
["grandpa", ["granpa"]],
["highfalutin", ["highfaluting", "highfalutin'", "hifalutin"]],
["Hippocratic", ["hypocratic"]],
["hirable", ["hireable"]],
["holistic", ["wholistic"]],
["ideology", ["idealogy"]],
["idiosyncrasy", ["ideosyncracy"]],
["improvise", ["improvize"]],
["incurrence", ["incurment"]],
["inevitability", ["inevitableness"]],
["innovate", ["inovate"]],
["inoculation", ["innoculation", "inocculation"]],
["integral", ["intergral"]],
["inundate", ["innundate"]],
["inundated", ["innundated"]],
["inundates", ["innundates"]],
["inundating", ["innundating"]],
["iridescent", ["irridescent"]],
["irrelevant", ["irrevelant"]],
["jujitsu", ["jiujutsu"]],
["kaleidoscope", ["kaleidascope"]],
["knickknack", ["knicknack"]],
["lassos", ["lassoes"]],
["lessee", ["leasee"]],
["lessor", ["leasor"]],
["liaison", ["liason"]],
["liaison", ["laison"]],
["lightning rod", ["lightening rod"]],
["struck by lightning", ["struck by lightening"]],
["liquefy", ["liquify"]],
["loathsome", ["loathesome"]],
["lodestar", ["loadstar"]],
["to make do", ["to make due"]],
["mademoiselle", ["madamoiselle"]],
["martial arts", ["marshall arts"]],
["court-martial", ["court marshall", "court-marshall"]],
["maelstrom", ["maelstorm"]],
["mafia", ["maffia"]],
["mafiosi", ["mafiosos"]],
["mangoes", ["mangos"]],
["marijuana", ["marihuana"]],
["marshmallow", ["marshmellow"]],
["martial law", ["marshall law"]],
["massacring", ["massacering", "massacreing"]],
["measles", ["measels"]],
["memento", ["momento"]],
["minuscule", ["miniscule"]],
["mileage", ["milage"]],
["milieu", ["mileau"]],
["millennium", ["millenium"]],
["millennia", ["millenia"]],
["millenniums", ["milleniums"]],
["millipede", ["millepede"]],
["millionaire", ["millionnaire"]],
["milquetoast", ["milktoast"]],
["mimicked", ["mimiced"]],
["mimicking", ["mimicing"]],
["misspelling", ["mispelling"]],
["mischievous", ["mischievious"]],
["moccasin", ["mocasin", "moccassin", "mocassin"]],
["monologue", ["monolog"]],
["monologuist", ["monologist"]],
["naphtha", ["naptha"]],
["navel orange", ["naval orange"]],
["neckwear", ["neckware"]],
["newsstand", ["newstand"]],
["non sequitur", ["non sequiter",
"non sequitar",
"non sequitor"]],
["nouveau riche", ["nouveau rich"]],
["occurred", ["occured"]],
["plantar fasciitis", ["planter fasciitis", "plantar fascitis"]],
["pledgeable", ["pledgable", "pledgeble"]],
["portentous", ["portentuous", "portentious"]],
["praying mantis", ["preying mantis"]],
["preestablished", ["prestablished"]],
["preexisting", ["prexisting"]],
["presumptuous", ["presumptious"]],
["rarefy", ["rarify"]],
["reckless", ["wreckless"]],
["remuneration", ["renumeration"]],
["restaurateur", ["restauranteur"]],
["reverie", ["revery"]],
["spicy", ["spicey"]],
["stupefy", ["stupify"]],
["subtly", ["subtley"]],
["till", ["\'till?"]],
["tinderbox", ["tenderbox"]],
["timpani", ["tympani"]],
["a timpani", ["a timpano"]],
["umpteenth", ["umteenth"]],
["verbiage", ["verbage"]],
]
return preferred_forms_check(text, misspellings, err, msg)
|