155 lines
4.1 KiB
YAML
155 lines
4.1 KiB
YAML
# Enforce Australian English spelling in prose.
|
|
# Intentionally omits computing standards that use US forms in Australia
|
|
# (program, disk, artifact) and verb/noun pairs (licence/license, practise/practice).
|
|
extends: substitution
|
|
message: "Use Australian English '%s' instead of '%s'."
|
|
level: warning
|
|
ignorecase: true
|
|
action:
|
|
name: replace
|
|
# Exact-case exceptions for HTTP headers and Go method names.
|
|
exceptions:
|
|
- Authorize
|
|
- Authorization
|
|
swap:
|
|
analyze: analyse
|
|
analyzed: analysed
|
|
analyzes: analyses
|
|
analyzing: analysing
|
|
authorization: authorisation
|
|
authorizations: authorisations
|
|
authorize: authorise
|
|
authorized: authorised
|
|
authorizes: authorises
|
|
authorizing: authorising
|
|
behavior: behaviour
|
|
behavioral: behavioural
|
|
behaviors: behaviours
|
|
canceled: cancelled
|
|
canceling: cancelling
|
|
canonicalize: canonicalise
|
|
canonicalized: canonicalised
|
|
canonicalizes: canonicalises
|
|
canonicalizing: canonicalising
|
|
catalog: catalogue
|
|
cataloged: catalogued
|
|
cataloging: cataloguing
|
|
catalogs: catalogues
|
|
categorization: categorisation
|
|
categorize: categorise
|
|
categorized: categorised
|
|
categorizes: categorises
|
|
categorizing: categorising
|
|
center: centre
|
|
centered: centred
|
|
centering: centring
|
|
centers: centres
|
|
color: colour
|
|
colored: coloured
|
|
coloring: colouring
|
|
colors: colours
|
|
customization: customisation
|
|
customize: customise
|
|
customized: customised
|
|
customizes: customises
|
|
customizing: customising
|
|
favor: favour
|
|
favored: favoured
|
|
favoring: favouring
|
|
favorite: favourite
|
|
favorites: favourites
|
|
favors: favours
|
|
finalize: finalise
|
|
finalized: finalised
|
|
finalizes: finalises
|
|
finalizing: finalising
|
|
fulfill: fulfil
|
|
fulfillment: fulfilment
|
|
fulfills: fulfils
|
|
initialization: initialisation
|
|
initialize: initialise
|
|
initialized: initialised
|
|
initializes: initialises
|
|
initializing: initialising
|
|
judgment: judgement
|
|
judgments: judgements
|
|
labeled: labelled
|
|
labeling: labelling
|
|
maximize: maximise
|
|
maximized: maximised
|
|
maximizes: maximises
|
|
maximizing: maximising
|
|
minimize: minimise
|
|
minimized: minimised
|
|
minimizes: minimises
|
|
minimizing: minimising
|
|
modeled: modelled
|
|
modeling: modelling
|
|
normalization: normalisation
|
|
normalize: normalise
|
|
normalized: normalised
|
|
normalizes: normalises
|
|
normalizing: normalising
|
|
optimization: optimisation
|
|
optimizations: optimisations
|
|
optimize: optimise
|
|
optimized: optimised
|
|
optimizes: optimises
|
|
optimizing: optimising
|
|
organization: organisation
|
|
organizational: organisational
|
|
organizations: organisations
|
|
organize: organise
|
|
organized: organised
|
|
organizes: organises
|
|
organizing: organising
|
|
parameterize: parameterise
|
|
parameterized: parameterised
|
|
parameterizes: parameterises
|
|
parameterizing: parameterising
|
|
prioritize: prioritise
|
|
prioritized: prioritised
|
|
prioritizes: prioritises
|
|
prioritizing: prioritising
|
|
recognize: recognise
|
|
recognized: recognised
|
|
recognizes: recognises
|
|
recognizing: recognising
|
|
sanitization: sanitisation
|
|
sanitize: sanitise
|
|
sanitized: sanitised
|
|
sanitizes: sanitises
|
|
sanitizing: sanitising
|
|
serialization: serialisation
|
|
serialize: serialise
|
|
serialized: serialised
|
|
serializes: serialises
|
|
serializing: serialising
|
|
stabilize: stabilise
|
|
stabilized: stabilised
|
|
stabilizes: stabilises
|
|
stabilizing: stabilising
|
|
summarize: summarise
|
|
summarized: summarised
|
|
summarizes: summarises
|
|
summarizing: summarising
|
|
synchronization: synchronisation
|
|
synchronize: synchronise
|
|
synchronized: synchronised
|
|
synchronizes: synchronises
|
|
synchronizing: synchronising
|
|
unauthorized: unauthorised
|
|
|
|
tests:
|
|
- name: flags US spelling
|
|
input: |
|
|
The organization enforces authorization behavior.
|
|
want: |
|
|
1:5:Archie.AustralianEnglish:Use Australian English 'organisation' instead of 'organization'.
|
|
1:27:Archie.AustralianEnglish:Use Australian English 'authorisation' instead of 'authorization'.
|
|
1:41:Archie.AustralianEnglish:Use Australian English 'behaviour' instead of 'behavior'.
|
|
- name: accepts Australian spelling and inline code
|
|
input: |
|
|
The organisation enforces authorisation behaviour via `behavior_flag`.
|
|
want: ""
|