Skip to content

Commit 41c0848

Browse files
author
markzegarelli
authored
Some lightweight grammar checks (#2505)
* Some lightweight grammar checks * update version * check an updated file * Update relative link check * only annotate modified lines
1 parent 5965eb7 commit 41c0848

File tree

15 files changed

+178
-1
lines changed

15 files changed

+178
-1
lines changed

.github/.vale.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
StylesPath = .github/styles
2+
3+
Vocab = Docs
4+
5+
[*.md]
6+
BasedOnStyles = segment
7+
TokenIgnores = ({% .* %})

.github/Vocab/Docs/accept.txt

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
allowlist
2+
Appboy
3+
blocklist
4+
boolean
5+
CloudFront
6+
Cocoapods
7+
Gradle
8+
HTTP
9+
http
10+
HTTPS
11+
https
12+
Javadoc
13+
Javadocs
14+
Javascript
15+
Kameleoon
16+
Kissmetrics
17+
Littledata
18+
Middleware
19+
middleware
20+
Mixpanel
21+
Okta
22+
performant
23+
Preact
24+
Shopify
25+
Totango
26+
Twilio
27+
Vero
28+
WebKit
29+
Wootric
30+
Zendesk
31+
iOS
32+
ios
33+
Dev
34+
ga
35+
(?:G|g)tag
36+
(?:P|p)ageviews?\b
37+
(?:R|r)emarketing
38+
Doubleclick
39+
(?:C|c)annonical
40+
(?:U|u)rls?\b
41+
Optimizely
42+
Omnichannel
43+
namespace
44+
upsert
45+
viewability
46+
measurability
47+
Lightbox
48+
gmail
49+
(?:P|p)endo
50+
(?:K|k)laviyo
51+
(?:U|u)nmaps?\b
52+
(?:U|u)nlinks?\b
53+
(?:P|p)ostgres
54+
Smartly
55+
Hubspot
56+
Friendbuy
57+
Chargebee
58+
(?:L|l)ookback
59+
Subnet

.github/Vocab/Docs/reject.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
functionality
2+
e.g.
3+
i.e.
4+
signup
5+
setup
6+
login

.github/Vocab/Marketing/accept.txt

Whitespace-only changes.

.github/Vocab/Marketing/reject.txt

Whitespace-only changes.

.github/styles/segment/Latin.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
extends: substitution
2+
message: "Use '%s' instead of '%s'."
3+
# link: https://docs.microsoft.com/en-us/style-guide/word-choice/use-us-spelling-avoid-non-english-words
4+
ignorecase: true
5+
level: error
6+
nonword: true
7+
8+
action:
9+
name: replace
10+
swap:
11+
'\b(?:eg|e\.g\.)[\s,]': for example
12+
'\b(?:ie|i\.e\.)[\s,]': that is, for example
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
extends: substitution
2+
message: "Please use '%s' instead of '%s'."
3+
link: https://docs.microsoft.com/en-us/style-guide/punctuation/exclamation-points
4+
level: warning
5+
swap:
6+
'\w!\s': '\.'

.github/styles/segment/links.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
extends: existence
2+
message: "Write meaningful link text."
3+
link: https://docs.microsoft.com/en-us/style-guide/urls-web-addresses
4+
level: warning
5+
raw:
6+
- '\[?here\]\('
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
extends: existence
2+
message: 'Link to Segment docs "%s" must be relative.'
3+
level: warning
4+
scope: raw
5+
raw:
6+
- '\[.+\]\(https://(www.)?segment.com/docs.*\)'
7+

.github/styles/segment/subs.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
extends: substitution
2+
message: Please use '%s' instead of '%s'
3+
level: error
4+
ignorecase: true
5+
swap:
6+
blacklist: blocklist
7+
whitelist: allowlist
8+
utilize: use
9+
utilizes: uses
10+
utilizing: using
11+
leverage: use
12+
leverages: uses
13+
leveraging: using
14+
via: through, or using
15+
drop in: enter

0 commit comments

Comments
 (0)