diff --git a/README.md b/README.md index 34829ac93..589953a5a 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ text.md::: For example, ```bash -text.md:0:10: wallace.uncomparables Comparison of an uncomparable: 'unique' can not be compared. +text.md:0:10: wallace.uncomparables Comparison of an uncomparable: 'unique' cannot be compared. ``` The command-line utility can also print the list of suggestions in JSON using the `--json` flag. In this case, the output is considerably richer: @@ -46,7 +46,7 @@ The command-line utility can also print the list of suggestions in JSON using th check: "wallace.uncomparables", // Message to describe the suggestion. - message: "Comparison of an uncomparable: 'unique' can not be compared.", + message: "Comparison of an uncomparable: 'unique' cannot be compared.", // The person or organization giving the suggestion. source: "David Foster Wallace" diff --git a/corpora/README.md b/corpora/README.md index 0308db5fe..a2d425817 100644 --- a/corpora/README.md +++ b/corpora/README.md @@ -23,7 +23,7 @@ We curated a corpus of writing to use in testing. Here, we give the references f + "Swingers" by Ian Parker (*The New Yorker*) + "What do you think of Ted Williams now?" by Richard Ben Cramer (*Esquire*) + "The Accidental Universe" by Alan Lightman (*Harper's Magazine*) -+ "The case for reaparations" by Ta-Nehisi Coates (*The Atlantic*) ++ "The case for reparations" by Ta-Nehisi Coates (*The Atlantic*) + "The cost conundrum" by Atul Gawande (*The New Yorker*) + "The Devil's Bait" by Leslie Jamison (*Harper's Magazine*) + "The running novelist" by Haruki Murakami, translated by Philip Gabriel (*The New Yorker*) diff --git a/proselint/checks/archaism/misc.py b/proselint/checks/archaism/misc.py index aae126468..e42505e6f 100644 --- a/proselint/checks/archaism/misc.py +++ b/proselint/checks/archaism/misc.py @@ -75,7 +75,7 @@ def check(text): # "designer", when used to mean a plotter against Christ # "demean", when used to mean "to behave" in legal contexts # "by the bye", # variant, modern is "by the by" - # "comptroller" # in british english + # "comptroller" # in British English # "abortive" Abortive is archaic in reference to abortions of fetuses, # except in the sense “causing an abortion.” ] diff --git a/proselint/checks/inprogress/capitalization_errors.py b/proselint/checks/inprogress/capitalization_errors.py index 67a02dcc5..e2eeede51 100644 --- a/proselint/checks/inprogress/capitalization_errors.py +++ b/proselint/checks/inprogress/capitalization_errors.py @@ -14,7 +14,7 @@ Computers: The Systems Approach in Management and Engineering: World War Ii and After. -World War Ii should have correct capitalizaiton. +World War Ii should have correct capitalization. """ from proselint.tools import blacklist, memoize diff --git a/proselint/checks/links/broken.py b/proselint/checks/links/broken.py index 9bc1c7765..fc66f4f05 100644 --- a/proselint/checks/links/broken.py +++ b/proselint/checks/links/broken.py @@ -10,7 +10,7 @@ categories: writing --- -Check that links are not not broken. +Check that links are not broken. """ from proselint.tools import memoize diff --git a/proselint/checks/misc/composition.py b/proselint/checks/misc/composition.py index a5d0fabab..9f8b74412 100644 --- a/proselint/checks/misc/composition.py +++ b/proselint/checks/misc/composition.py @@ -23,10 +23,11 @@ a double negative. * Ex: He was not very often on time. -> He usually came late. * Ex: -4.1. Placing negative and positive in oposition makes for a stronger structure. +4.1. Placing negative and positive in opposition makes for a stronger +structure. * Ex. Not charity, but simple justice. * Not that I loved Caesar less, but that I loved Rome more. -4.2. Do not use unnecessary auxillaries or conditionals. +4.2. Do not use unnecessary auxiliaries or conditionals. 5. Use definite, specific, concrete language. * A period of unfavorable weather set in. ->It rained every day for a week. 6. Omit needless words. @@ -35,7 +36,7 @@ 7. Avoid a succession of loose sentences. * MDPNB Principle of brevity. Take 2. 8. Express coordinate ideas in similar form. - * MDPNB: Prinicple of parrallel structure. + * MDPNB: Principle of parallel structure. * MDPNB: This one will be hard... 9. Keep related words together. * MDPNB: Principle of localism in semantics. diff --git a/proselint/checks/misc/usage.py b/proselint/checks/misc/usage.py index 18e7fddd8..881ac7d0c 100644 --- a/proselint/checks/misc/usage.py +++ b/proselint/checks/misc/usage.py @@ -10,7 +10,7 @@ --- Strunk & White say: -1. Form the possesive singular of nouns by adding 's. +1. Form the possessive singular of nouns by adding 's. 2. In a series of three or more terms with a conjunction, use a comma after each term except the last. 3. Enclose parenthetic expressions between commas. ("This rule is difficult to @@ -19,8 +19,8 @@ 5. Do not join independent clauses with a comma; use a semi-colon. Or a period. 6. Do not break sentences in two. Do not use periods for the role of commas. 7. Use a colon after an independent clause if you introduce: a list of -particulars, an appositive, an application, or an illustative quotation. -8. Use a dash to set off an aburpt break or interruption and to announce a +particulars, an appositive, an application, or an illustrative quotation. +8. Use a dash to set off an abrupt break or interruption and to announce a long appositive or summary. 9. The number of the subject determines the number of the verb. (MDPNB: This will require nltk & syntactic parsing) diff --git a/proselint/checks/typography/diacritical_marks.py b/proselint/checks/typography/diacritical_marks.py index d17589f1e..3a1b875bf 100644 --- a/proselint/checks/typography/diacritical_marks.py +++ b/proselint/checks/typography/diacritical_marks.py @@ -86,7 +86,7 @@ def check(text): [u"vis-à-vis", ["vis-a-vis"]], [u"Übermensch", ["Ubermensch"]], - # Swedish loandwords + # Swedish loanwords [u"filmjölk", ["filmjolk"]], [u"smörgåsbord", ["smorgasbord"]], diff --git a/site/_posts/2014-06-10-api.md b/site/_posts/2014-06-10-api.md index 06202d124..7e018ac2d 100644 --- a/site/_posts/2014-06-10-api.md +++ b/site/_posts/2014-06-10-api.md @@ -30,7 +30,7 @@ To retrieve the output of the linter, submit a GET request, including the given check: "wallace.uncomparables", // Message to describe the suggestion. - message: "Comparison of an uncomparable: 'unique' can not be compared.", + message: "Comparison of an uncomparable: 'unique' cannot be compared.", // The person or organization giving the suggestion. source: "David Foster Wallace" diff --git a/site/_posts/2014-06-10-approach.md b/site/_posts/2014-06-10-approach.md index 5adc3ab53..e37157152 100644 --- a/site/_posts/2014-06-10-approach.md +++ b/site/_posts/2014-06-10-approach.md @@ -10,7 +10,7 @@ categories: proselint api

No. Here’s why not:

  1. proselint does not focus on grammar, which is at once too easy and too hard — too easy because, for most native speakers, it comes naturally; too hard because, in its most general form, detecting grammatical errors is AI-complete, requiring human-level intelligence to get things right. Instead, we consider usage: redundancy, jargon, illogic, clichés, sexism, misspelling, inconsistency, misuse of symbols, malapropisms, oxymorons, security gaffes, hedging, apologizing, pretension, and more.

  2. -
  3. proselint is precise. Existing tools for improving prose raise so many false alarms that their advice can not be trusted. Instead, the writer must carefully consider whether to accept or reject each change. We aim for a tool so precise that it becomes possible to unquestioningly adopt its recommendations and still come out ahead — with stronger, tighter prose. Better to be quiet and authoritative than loud and unreliable. We measure the performance of proselint by tracking its lintscore.

  4. +
  5. proselint is precise. Existing tools for improving prose raise so many false alarms that their advice cannot be trusted. Instead, the writer must carefully consider whether to accept or reject each change. We aim for a tool so precise that it becomes possible to unquestioningly adopt its recommendations and still come out ahead — with stronger, tighter prose. Better to be quiet and authoritative than loud and unreliable. We measure the performance of proselint by tracking its lintscore.

  6. proselint defers to the world’s greatest writers and editors. We didn’t make up this advice on our own. Instead, we aggregated their expertise, giving you direct access to humanity’s collective understanding about the craft of writing.

diff --git a/site/_posts/2014-06-10-utility.md b/site/_posts/2014-06-10-utility.md index af8086c66..adacfaead 100644 --- a/site/_posts/2014-06-10-utility.md +++ b/site/_posts/2014-06-10-utility.md @@ -21,7 +21,7 @@ text.md::: For example, {% highlight bash %} -text.md:0:10: wallace.uncomparables Comparison of an uncomparable: 'unique' can not be compared. +text.md:0:10: wallace.uncomparables Comparison of an uncomparable: 'unique' cannot be compared. {% endhighlight %} The command line utility can also print the list of suggestions in JSON using the --json flag. In this case, the output is considerably richer and matches the output of the web API. @@ -32,7 +32,7 @@ The command line utility can also print the list of suggestions in JSON using th check: "wallace.uncomparables", // Message to describe the suggestion. - message: "Comparison of an uncomparable: 'unique' can not be compared.", + message: "Comparison of an uncomparable: 'unique' cannot be compared.", // The person or organization giving the suggestion. source: "David Foster Wallace" diff --git a/site/_posts/2014-10-05-corpus.md b/site/_posts/2014-10-05-corpus.md index b40eb456f..ae07b5500 100644 --- a/site/_posts/2014-10-05-corpus.md +++ b/site/_posts/2014-10-05-corpus.md @@ -31,7 +31,7 @@ We curated a corpus of writing to use in testing proselint. Here, we gi + "Swingers" by Ian Parker (*The New Yorker*) + "What do you think of Ted Williams now?" by Richard Ben Cramer (*Esquire*) + "The Accidental Universe" by Alan Lightman (*Harper's Magazine*) -+ "The case for reaparations" by Ta-Nehisi Coates (*The Atlantic*) ++ "The case for reparations" by Ta-Nehisi Coates (*The Atlantic*) + "The cost conundrum" by Atul Gawande (*The New Yorker*) + "The Devil's Bait" by Leslie Jamison (*Harper's Magazine*) + "The running novelist" by Haruki Murakami, translated by Philip Gabriel (*The New Yorker*) diff --git a/tests/test_garner_dates.py b/tests/test_garner_dates.py index cf0265faf..cf5323b5f 100644 --- a/tests/test_garner_dates.py +++ b/tests/test_garner_dates.py @@ -12,7 +12,7 @@ class TestCheck(Check): __test__ = True def test_50s_hyphenation(self): - """Find uneeded hyphen in 50's.""" + """Find unneeded hyphen in 50's.""" text = """The 50's were swell.""" errors = dates.check_decade_apostrophes_short(text) assert len(errors) == 1 diff --git a/tests/test_gmeu/test_a_A.py b/tests/test_gmeu/test_a_A.py index 87ccebe2c..b8b55b0d8 100644 --- a/tests/test_gmeu/test_a_A.py +++ b/tests/test_gmeu/test_a_A.py @@ -39,7 +39,7 @@ def test_a_vs_an(): "The Clinton Presidency was an historic era of prosperity.", "There comes to be an habitual pattern between neurons in the brain.", "They had the authority to start an humanitarian intervention.", - "She laughted aloud, an hysterical sort of giggled, quickly stifled", + "She laughed aloud, an hysterical sort of giggled, quickly stifled", ] error_check_name = "misc.a_vs_an" diff --git a/tests/test_junge_but.py b/tests/test_junge_but.py index 45c5e3035..c932309ba 100644 --- a/tests/test_junge_but.py +++ b/tests/test_junge_but.py @@ -38,7 +38,7 @@ def test_butcher_is_ok(self): assert_equals(len(errors), 0) def test_but_in_middle_of_paragraph(self): - """But in the middle of a sentance is ok.""" + """But in the middle of a sentence is ok.""" text = 'I\'ve got nothing but nice things to say.' errors = but.check_dont_start_with_buts(text) assert_equals(len(errors), 0)