Skip to content

Commit 1d08e2f

Browse files
paddyroddyCopilot
andauthored
Vale talk (#79)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 189791e commit 1d08e2f

File tree

22 files changed

+478
-101
lines changed

22 files changed

+478
-101
lines changed

.github/styles/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# only track the custom Vale rules
2+
/*
3+
!.gitignore
4+
!custom/

.github/styles/custom/british-spellings.yml

Lines changed: 115 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,119 +1,151 @@
11
---
2-
# This style is taken from the official GitLab style and updated to use British spelling instead of US spelling
3-
# Error: livewyer.British
4-
#
5-
# Checks that British spelling is used instead of US spelling.
6-
#
7-
# For a list of all options, see https://vale.sh/docs/topics/styles/
82
extends: substitution
9-
message: "Use the British spelling '%s' instead of the US '%s'."
10-
link: https://docs.gitlab.com/ee/development/documentation/styleguide/index.html#language
3+
message: Use the British spelling '%s' instead of the US '%s'.
114
level: error
125
ignorecase: true
136
swap:
14-
eon: aeon
15-
airplane: aeroplane
16-
aging: ageing
17-
aluminum: aluminium
18-
anemia: anaemia
19-
minimize: minimise
20-
anesthesia: anaesthesia
21-
analyze: analyse
22-
annex: annexe
23-
apologize: apologise
24-
authorize: authorise
25-
authorized: authorised
26-
authorization: authorisation
27-
authorizing: authorising
28-
behavior: behaviour
29-
buses: busses
7+
# -our vs. -or
8+
ardor: ardour
9+
candor: candour
10+
color: colour
11+
demeanor: demeanour
12+
endeavor: endeavour
13+
favour: favour
14+
fervor: fervour
15+
flavor: flavour
16+
harbor: harbour
17+
honor: honour
18+
humor: humour
19+
labor: labour
20+
neighbor: neighbour
21+
odor: odour
22+
pavor: pavour
23+
rancor: rancour
24+
rigor: rigour
25+
rumor: rumour
26+
savor: savour
27+
splendor: splendour
28+
succor: succour
29+
valour: valour
30+
vapor: vapour
31+
vigor: vigour
32+
# and their derivatives
33+
colored: coloured
34+
coloring: colouring
35+
colors: colours
36+
endeavored: endeavoured
37+
endeavoring: endeavouring
38+
flavored: flavoured
39+
flavoring: flavouring
40+
honored: honoured
41+
honoring: honouring
42+
honors: honours
43+
humors: humours
44+
labored: laboured
45+
laboring: labouring
46+
labors: labours
47+
neighbors: neighbours
48+
rumors: rumours
49+
splendors: splendours
50+
# -re vs. -er
3051
caliber: calibre
31-
categorize: categorise
32-
categorized: categorised
33-
categorizes: categorises
34-
categorizing: categorising
3552
center: centre
36-
civilization: civilisation
37-
civilize: civilise
38-
color: colour
39-
cozy: cosy
40-
cipher: cypher
41-
dependent: dependant
42-
defense: defence
53+
fiber: fibre
54+
luster: lustre
55+
meager: meagre
56+
meter: metre
57+
saber: sabre
58+
saltpeter: saltpetre
59+
sepulcher: sepulchre
60+
theater: theatre
61+
# and their derivatives
62+
calibers: calibres
63+
centers: centres
64+
fibers: fibres
65+
lusters: lustres
66+
meters: metres
67+
theaters: theatres
68+
# -ise vs. -ize
69+
'(\w+)ization\b': "$1isation"
70+
'(\w+)ize\b': "$1ise"
71+
'(\w+)ized\b': "$1ised"
72+
'(\w+)izing\b': "$1ising"
73+
# add other common forms:
74+
'(\w+)izable\b': "$1isable"
75+
# -yse vs. -yze
76+
'(\w+)yze\b': "$1yse"
77+
'(\w+)yzed\b': "$1ysed"
78+
'(\w+)yzing\b': "$1ysing"
79+
# double L vs. Single L
4380
distill: distil
44-
draft: draught
45-
encyclopedia: encyclopaedia
46-
inquiry: enquiry
4781
enroll: enrol
4882
enrollment: enrolment
4983
enthrall: enthral
50-
favorite: favourite
51-
fiber: fibre
52-
filet: fillet
53-
flavor: flavour
54-
furor: furore
5584
fulfill: fulfil
56-
jail: gaol
57-
gray: grey
58-
humor: humour
59-
honor: honour
6085
initialed: initialled
6186
initialing: initialling
6287
instill: instil
63-
jewelry: jewellery
64-
labeling: labelling
6588
labeled: labelled
66-
labor: labour
89+
labeling: labelling
6790
libelous: libellous
91+
modeling: modelling
92+
signaling: signalling
93+
traveler: traveller
94+
traveling: travelling
95+
traveled: travelled
96+
# -ogue vs. -og
97+
analog: analogue
98+
catalog: catalogue
99+
demagog: demagogue
100+
dialog: dialogue
101+
monolog: monologue
102+
pedagog: pedagogue
103+
prolog: prologue
104+
# ae/oe vs. e
105+
airplane: aeroplane
106+
anemia: anaemia
107+
anesthesia: anaesthesia
108+
encyclopedia: encyclopaedia
109+
eon: aeon
110+
fetus: foetus
111+
pediatric: paediatric
112+
# -ce vs. -se
113+
defense: defence
68114
license: licence
115+
offense: offence
116+
pretense: pretence
117+
# miscellaneous specific words
118+
aging: ageing
119+
aluminum: aluminium
120+
authorizer: authoriser
121+
buses: busses
122+
cipher: cypher
123+
cozy: cosy
124+
dependent: dependant
125+
draft: draught
126+
furor: furore
127+
gray: grey
128+
inquiry: enquiry
129+
jail: gaol
130+
jewelry: jewellery
69131
likable: likeable
70132
livable: liveable
71-
luster: lustre
72133
maneuver: manoeuvre
73134
marvelous: marvellous
74135
matte: matt
75-
meager: meagre
76-
meter: metre
77-
modeling: modelling
78136
mustache: moustache
79-
neighbor: neighbour
80-
normalize: normalise
81-
offense: offence
82-
optimize: optimise
83-
optimized: optimised
84-
optimizing: optimising
85-
organize: organise
86-
oriented: orientated
87-
paralyze: paralyse
88-
plow: plough
89-
pretense: pretence
90137
pajamas: pyjamas
138+
plow: plough
139+
programme: program
91140
ratable: rateable
92-
realize: realise
93-
recognize: recognise
94141
reconnoiter: reconnoitre
95-
rumor: rumour
96-
saber: sabre
97-
salable: saleable
98-
saltpeter: saltpetre
99-
skeptic: sceptic
100-
sepulcher: sepulchre
101-
signaling: signalling
102142
sizable: sizeable
103143
skillful: skilful
104-
somber: sombre
105144
smolder: smoulder
145+
somber: sombre
106146
specialty: speciality
107147
specter: spectre
108-
splendor: splendour
109-
standardize: standardise
110-
standardized: standardised
111148
sulfur: sulphur
112-
theater: theatre
113-
traveled: travelled
114-
traveler: traveller
115-
traveling: travelling
116149
unshakable: unshakeable
117150
willful: wilful
118151
yogurt: yoghurt
119-
authorizer: authoriser

.github/styles/custom/dashes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
---
12
extends: existence
2-
message: "Don't put a space before or after a dash."
3-
link: "https://github.com/DataDog/documentation/blob/master/CONTRIBUTING.md#dashes"
3+
message: Don't put a space before or after a dash.
44
nonword: true
55
level: warning
66
action:

.github/styles/custom/endash.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
---
12
extends: existence
2-
message:
3-
"Avoid en dashes ('–'). For hyphenated words, use a hyphen ('-').\nFor
4-
parenthesis, use an em dash ('—')."
5-
link: "https://github.com/DataDog/documentation/blob/master/CONTRIBUTING.md#dashes"
3+
message: >-
4+
Avoid en dashes ('–'). For hyphenated words, use a hyphen ('-').\nFor
5+
parenthesis, use an em dash ('—').
66
nonword: true
77
level: error
88
action:

.github/styles/custom/oxford-comma.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
---
12
extends: existence
2-
message: "Use the Oxford comma in '%s'."
3-
link: "https://github.com/DataDog/documentation/blob/master/CONTRIBUTING.md#commas"
3+
message: Use the Oxford comma in '%s'.
44
scope: sentence
55
level: suggestion
66
tokens:

.github/styles/custom/quotes.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
extends: existence
23
message: Use straight quotes instead of smart quotes.
34
level: error

.github/styles/custom/spaces.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
---
12
extends: existence
2-
message: "Use only one space between words and sentences (not two)."
3-
link: "https://github.com/DataDog/documentation/blob/master/CONTRIBUTING.md#spaces"
3+
message: Use only one space between words and sentences (not two).
44
level: error
55
nonword: true
66
tokens:

.typos.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ extend-glob = [
33
"*.qmd",
44
]
55
extend-words.promis = "promis"
6+
7+
[type.yaml]
8+
extend-words.yse = "yse"

.vale.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ BasedOnStyles = custom,\
1212
Vale
1313

1414
# Disable
15-
Vale.Spelling = false
15+
Vale.Spelling = NO
279 KB
Loading

0 commit comments

Comments
 (0)