Skip to content

Commit aeacc73

Browse files
authored
feat(secret-path): enforce all uppercase, add vale-config, add docs (#8)
1 parent 4248f33 commit aeacc73

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+2518
-16
lines changed

.vale/styles/18F/Abbreviations.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
extends: substitution
3+
message: "Use '%s' instead of '%s'."
4+
link: https://content-guide.18f.gov/specific-words-and-phrases/
5+
ignorecase: false
6+
level: error
7+
nonword: true
8+
swap:
9+
'\beg\b': e.g.,
10+
'\bie\b': i.e.,
11+
'e\.g\.(?:[^,]|$)': e.g.,
12+
'i\.e\.(?:[^,]|$)': i.e.,
13+
'(?i)\d{1,2} ?[ap]m': a.m. or p.m.
14+
'D\.C\.': DC
15+
'\bUSA?\b': U.S.

.vale/styles/18F/Ages.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
extends: existence
3+
message: Avoid hyphens in ages unless it clarifies the text.
4+
link: https://content-guide.18f.gov/specific-words-and-phrases/
5+
level: warning
6+
tokens:
7+
- '\d{1,3}-year-old'

.vale/styles/18F/Brands.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
extends: substitution
3+
message: "Use '%s' instead of '%s'."
4+
link: https://content-guide.18f.gov/trademarks-and-brands/
5+
level: warning
6+
ignorecase: true
7+
swap:
8+
Band-Aid: bandage
9+
Bubble Wrap: packaging bubbles
10+
Chapstick: lip balm
11+
Crayola: crayons
12+
Dumpster: waste container
13+
Hi-Liter: highlighting marker
14+
iPod: MP3 player
15+
Kleenex: tissue
16+
Plexiglas: plastic glass
17+
Post-it note: adhesive note
18+
Q-Tips: cotton swabs
19+
Scotch tape: transparent tape
20+
Styrofoam: plastic foam
21+
Taser: stun gun
22+
Xerox: photocopy

.vale/styles/18F/Clarity.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
extends: substitution
3+
message: '%s'
4+
link: https://content-guide.18f.gov/plain-language/#words-to-avoid
5+
level: warning
6+
ignorecase: true
7+
swap:
8+
(?:commit|pledge): >
9+
Be more specific — we’re either doing something or we’re not.
10+
advancing: Avoid using 'advancing.'
11+
agenda: Avoid using 'agenda' (unless you’re talking about a meeting).
12+
deploy: >
13+
Avoid using 'deploy', unless you’re talking about the military or
14+
software.
15+
disincentivize: Avoid using 'disincentivize.'
16+
empower: Avoid using 'empower.'
17+
focusing: Avoid using 'focusing.'
18+
foster: Avoid using 'foster' (unless it’s children).
19+
impact(?:ful)?: Avoid using impact or impactful.
20+
incentivize: Avoid using 'incentivize.'
21+
innovative: Use words that describe the positive outcome of the innovation.
22+
key: Avoid using 'key' (unless it unlocks something).
23+
leverage: >
24+
Avoid using 'leverage' (unless you're using it in the financial sense).
25+
progress: What are you actually doing?
26+
promote: Avoid using 'promote' (unless you’re talking about an ad campaign).
27+
streamline: Avoid using 'streamline.'
28+
strengthening: >
29+
Avoid using 'strengthening' (unless you’re referring to bridges or other
30+
structures).
31+
tackling: >
32+
Avoid using 'tackling' (unless you’re referring to football or another
33+
contact sport).
34+
touchpoint: Mention specific system components.
35+
transforming: What are you actually doing to change it?

.vale/styles/18F/Contractions.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
extends: substitution
3+
message: 'Use "%s" instead of "%s".'
4+
link: https://content-guide.18f.gov/voice-and-tone/#use-contractions
5+
level: error
6+
ignorecase: true
7+
swap:
8+
are not: aren't
9+
cannot: can't
10+
could not: couldn't
11+
did not: didn't
12+
do not: don't
13+
does not: doesn't
14+
has not: hasn't
15+
have not: haven't
16+
how is: how's
17+
how will: how'll
18+
is not: isn't
19+
it is: it's
20+
it will: it'll
21+
should not: shouldn't
22+
that is: that's
23+
that will: that'll
24+
they are: they're
25+
they will: they'll
26+
was not: wasn't
27+
we are: we're
28+
we have: we've
29+
we will: we'll
30+
were not: weren't
31+
what is: what's
32+
what will: what'll
33+
when is: when's
34+
when will: when'll
35+
where is: where's
36+
where will: where'll
37+
who is: who's
38+
who will: who'll
39+
why is: why's
40+
why will: why'll
41+
will not: won't

.vale/styles/18F/DropDown.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
extends: substitution
3+
message: "Use %s instead of '%s'."
4+
link: https://content-guide.18f.gov/specific-words-and-phrases/
5+
level: error
6+
# 'drop-down' when used as an adjective. For example, drop-down menu.
7+
# 'drop down' when used as a noun. For example, an option from the drop down.
8+
# Never dropdown.
9+
pos: 'drop/\w+ down/RP|dropdown/\w+|drop-down/NN'
10+
ignorecase: true
11+
swap:
12+
drop down: "'drop-down'"
13+
drop-down: "'drop down'"
14+
dropdown: "'drop-down' or 'drop down'"

.vale/styles/18F/Headings.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
extends: capitalization
3+
message: "'%s' should be in sentence case."
4+
link: https://content-guide.18f.gov/capitalization/#headings
5+
level: warning
6+
scope: heading
7+
match: $sentence

.vale/styles/18F/Quotes.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
extends: existence
3+
message: Punctuation should be inside the quotes.
4+
link: https://content-guide.18f.gov/punctuation/#quotes
5+
level: error
6+
nonword: true
7+
tokens:
8+
- '"[^"]+"[.,?]'

.vale/styles/18F/Reading.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
message: Craft sentences at 25 words or fewer, whenever possible.
3+
link: 'https://content-guide.18f.gov/be-concise/#keep-sentences-short-and-sweet'
4+
extends: occurrence
5+
scope: sentence
6+
level: warning
7+
max: 25
8+
token: '\b(\w+)\b'
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
message: Craft sentences at 25 words or fewer, whenever possible.
3+
link: 'https://content-guide.18f.gov/be-concise/#keep-sentences-short-and-sweet'
4+
extends: occurrence
5+
scope: sentence
6+
level: warning
7+
max: 25
8+
token: '\b(\w+)\b'

0 commit comments

Comments
 (0)