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