American spelling is the default and British forms turn up in generated prose. Catch the common endings and the irregulars, with two exceptions: project vocabulary that the client's documents, ticket titles and codebase all spell the British way, such as "enrolment" on APSCA, and existing code identifiers, which are never renamed to fix spelling. The rules after it shift by one.