Skip to content

chore: adopt American English across the project#192

Merged
dfa1 merged 1 commit into
mainfrom
chore/american-english
Jun 28, 2026
Merged

chore: adopt American English across the project#192
dfa1 merged 1 commit into
mainfrom
chore/american-english

Conversation

@dfa1

@dfa1 dfa1 commented Jun 28, 2026

Copy link
Copy Markdown
Owner

What

Normalizes British → American English everywhere (javadoc, comments, docs, and internal identifiers): recognize/optimize/finalize/serialize/materialize/behavior/color — never -ise/-isation/-our. Matches the JDK (Object.finalize, Serializable).

  • Adds the convention to CLAUDE.md under code style.
  • 133 files, balanced line swaps (373+/370−).

How British forms were detected

Verb stems are flipped only on the -is(e|ed|es|ing|ation|able|er) ending, so guard words that merely share a prefix are left untouched: specialist, realistic, finalist, emphasis (noun), raise, premise, otherwise, exercise, enterprise, surprise, comprise, merchandise. Plus -our words (behaviour, colour, honour, favour, neighbour, rigour, …) and a fixed list (analyse, labelled, modelled, acknowledgement, catalogue, …).

Public API: unchanged

No published surface renamed. The public API was already American — Array.materialize(), DecodeContext.materialize(), the Materialized* records. Only internal identifiers changed:

  • PrimitiveFilter.canSpecialisecanSpecialize (private, decl + call site together)
  • local vars (specialisedspecialized, materialised*) and test method names

Test-fixture data strings (e.g. order status "cancelled") were left as-is — they are domain data, not prose.

Verification

./mvnw verify green on the committed state — all 15 modules including integration (failsafe). Checkstyle clean (incl. the no-HTML-in-javadoc rule); javadoc:javadoc -pl core produces zero output. The only standalone-javadoc warnings are pre-existing no comment notes in the in-house fbs-gen/proto-gen generators, untouched here and identical on main.

🤖 Generated with Claude Code

Normalize British spellings to American English in javadoc, comments,
docs, and internal identifiers (recognize/optimize/finalize/serialize/
materialize/behavior/color — never -ise/-isation/-our). Matches the JDK
(Object.finalize, Serializable).

- Add the rule to CLAUDE.md under code style.
- Verb stems flipped only on the -is(e|ed|es|ing|ation|able|er) ending, so
  guard words sharing a prefix stay put (specialist, realistic, finalist,
  emphasis-noun, raise, premise, otherwise, exercise, enterprise, ...).
- Only internal identifiers renamed (private canSpecialise -> canSpecialize,
  test method names, local vars). No public API changed: the public
  surface (materialize(), Materialized* records) was already American.
- Test-fixture data strings (e.g. order status "cancelled") left untouched.

Build: ./mvnw verify green (all modules incl. integration); checkstyle and
core javadoc clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dfa1 dfa1 merged commit 4e965a3 into main Jun 28, 2026
6 checks passed
@dfa1 dfa1 deleted the chore/american-english branch June 28, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant