|
1 | 1 | --- |
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/ |
8 | 2 | 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'. |
11 | 4 | level: error |
12 | 5 | ignorecase: true |
13 | 6 | 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 |
30 | 51 | caliber: calibre |
31 | | - categorize: categorise |
32 | | - categorized: categorised |
33 | | - categorizes: categorises |
34 | | - categorizing: categorising |
35 | 52 | 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 |
43 | 80 | distill: distil |
44 | | - draft: draught |
45 | | - encyclopedia: encyclopaedia |
46 | | - inquiry: enquiry |
47 | 81 | enroll: enrol |
48 | 82 | enrollment: enrolment |
49 | 83 | enthrall: enthral |
50 | | - favorite: favourite |
51 | | - fiber: fibre |
52 | | - filet: fillet |
53 | | - flavor: flavour |
54 | | - furor: furore |
55 | 84 | fulfill: fulfil |
56 | | - jail: gaol |
57 | | - gray: grey |
58 | | - humor: humour |
59 | | - honor: honour |
60 | 85 | initialed: initialled |
61 | 86 | initialing: initialling |
62 | 87 | instill: instil |
63 | | - jewelry: jewellery |
64 | | - labeling: labelling |
65 | 88 | labeled: labelled |
66 | | - labor: labour |
| 89 | + labeling: labelling |
67 | 90 | 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 |
68 | 114 | 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 |
69 | 131 | likable: likeable |
70 | 132 | livable: liveable |
71 | | - luster: lustre |
72 | 133 | maneuver: manoeuvre |
73 | 134 | marvelous: marvellous |
74 | 135 | matte: matt |
75 | | - meager: meagre |
76 | | - meter: metre |
77 | | - modeling: modelling |
78 | 136 | 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 |
90 | 137 | pajamas: pyjamas |
| 138 | + plow: plough |
| 139 | + programme: program |
91 | 140 | ratable: rateable |
92 | | - realize: realise |
93 | | - recognize: recognise |
94 | 141 | reconnoiter: reconnoitre |
95 | | - rumor: rumour |
96 | | - saber: sabre |
97 | | - salable: saleable |
98 | | - saltpeter: saltpetre |
99 | | - skeptic: sceptic |
100 | | - sepulcher: sepulchre |
101 | | - signaling: signalling |
102 | 142 | sizable: sizeable |
103 | 143 | skillful: skilful |
104 | | - somber: sombre |
105 | 144 | smolder: smoulder |
| 145 | + somber: sombre |
106 | 146 | specialty: speciality |
107 | 147 | specter: spectre |
108 | | - splendor: splendour |
109 | | - standardize: standardise |
110 | | - standardized: standardised |
111 | 148 | sulfur: sulphur |
112 | | - theater: theatre |
113 | | - traveled: travelled |
114 | | - traveler: traveller |
115 | | - traveling: travelling |
116 | 149 | unshakable: unshakeable |
117 | 150 | willful: wilful |
118 | 151 | yogurt: yoghurt |
119 | | - authorizer: authoriser |
|
0 commit comments