Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #492

Merged
merged 1 commit into from
Jun 23, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ text.md:<line>:<column>: <check_name> <message>
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:
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion corpora/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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*)
Expand Down
2 changes: 1 addition & 1 deletion proselint/checks/archaism/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.”
]
Expand Down
2 changes: 1 addition & 1 deletion proselint/checks/inprogress/capitalization_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion proselint/checks/links/broken.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
categories: writing
---

Check that links are not not broken.
Check that links are not broken.

"""
from proselint.tools import memoize
Expand Down
7 changes: 4 additions & 3 deletions proselint/checks/misc/composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions proselint/checks/misc/usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion proselint/checks/typography/diacritical_marks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]],

Expand Down
2 changes: 1 addition & 1 deletion site/_posts/2014-06-10-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion site/_posts/2014-06-10-approach.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ categories: proselint api
<p><em>No</em>. Here&rsquo;s why not:</p>
<ol>
<li><p><tt>proselint</tt> does not focus on grammar, which is at once too easy and too hard &mdash; 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.</p></li>
<li><p><tt>proselint</tt> 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 &mdash; with stronger, tighter prose. Better to be quiet and authoritative than loud and unreliable. We measure the performance of <tt>proselint</tt> by tracking its <a href="/lintscore">lintscore</a>.</p></li>
<li><p><tt>proselint</tt> 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 &mdash; with stronger, tighter prose. Better to be quiet and authoritative than loud and unreliable. We measure the performance of <tt>proselint</tt> by tracking its <a href="/lintscore">lintscore</a>.</p></li>
<li><p><tt>proselint</tt> defers to the world&rsquo;s greatest writers and editors. We didn&rsquo;t make up this advice on our own. Instead, we aggregated their expertise, giving you direct access to humanity&rsquo;s collective understanding about the craft of writing.</p></li>
</ol>

Expand Down
4 changes: 2 additions & 2 deletions site/_posts/2014-06-10-utility.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ text.md:<line>:<column>: <check_name> <message>
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 <tt>&#45;&#45;json</tt> flag. In this case, the output is considerably richer and matches the output of the <a href="/api">web API</a>.
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion site/_posts/2014-10-05-corpus.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ We curated a corpus of writing to use in testing <tt>proselint</tt>. 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*)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_garner_dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_gmeu/test_a_A.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_junge_but.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down