Skip to content

Commit

Permalink
Make cannot message prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Dec 21, 2023
1 parent 86a08e8 commit 0deaf34
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/actions/spelling/line_forbidden.patterns
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
# s.b. anymore
\bany more[,.]

# s.b. `cannot` (or `can't`). See https://www.grammarly.com/blog/cannot-or-can-not/
# Don't use `can not` when you mean `cannot`. The only time you're likely to see `can not` written as separate words is when the word `can` happens to precede some other phrase that happens to start with `not`:
# `Can't` is a contraction of `cannot`, and it's best suited for informal writing.
# In formal writing and where contractions are frowned upon, use `cannot`.
# It is possible to write `can not`, but you generally find it only as part of some other construction, such as `not only . . . but also.`
# s.b. `cannot` (or `can't`)
# See https://www.grammarly.com/blog/cannot-or-can-not/
# > Don't use `can not` when you mean `cannot`. The only time you're likely to see `can not` written as separate words is when the word `can` happens to precede some other phrase that happens to start with `not`.
# > `Can't` is a contraction of `cannot`, and it's best suited for informal writing.
# > In formal writing and where contractions are frowned upon, use `cannot`.
# > It is possible to write `can not`, but you generally find it only as part of some other construction, such as `not only . . . but also.`
# - if you encounter such a case, add a pattern for that case to patterns.txt.
\b[Cc]an not\b

Expand Down

0 comments on commit 0deaf34

Please sign in to comment.