Skip to content

Stop British to American from rewriting standard American words - #287

Merged
niksedk merged 1 commit into
mainfrom
claude/british-to-american-vocab-14374
Sep 1, 2026
Merged

Stop British to American from rewriting standard American words#287
niksedk merged 1 commit into
mainfrom
claude/british-to-american-vocab-14374

Conversation

@niksedk

@niksedk niksedk commented Sep 1, 2026

Copy link
Copy Markdown
Member

Fixes SubtitleEdit/subtitleedit#14374 ("car" → "automobile").

Problem

The SE5 British to American plugin runs the shared WordList.xml in reverse. The list mixes safe spelling variants (colour/color) with vocabulary pairs whose British side is also standard — and often polysemous — American English. Reversed, those corrupt text that is already correct American:

Input (correct American) Br→Us output before this PR
Get in the car! Get in the automobile!
I have a flat tire. I have an apartment tire.
Lift the box. Elevator the box.
He lit the torch. He lit the flashlight.
My personal trainer. My personal sneaker.
An Egyptian mummy. An Egyptian mommy.
The disc jockey. The disk jockey.
The analyses were run. The analyzes were run.
Toxic gases escaped. Toxic gasses escaped.

Fix

  • WordList.xml pairs now support an optional only="UsToBr" / only="BrToUs" attribute; EnglishVariantConverter skips pairs that don't match its direction.
  • Tagged the 21 pairs above (plus plurals, movie/film, sidewalk/pavement) as only="UsToBr".
  • Removed two pairs wrong in both directions: pulled up/drew up ("drew up a contract" → "pulled up a contract") and luggage/baggage ("emotional baggage" → "emotional luggage") — all four words are standard in both dialects.

American → British output is unchanged — automobile→car, movie→film, elevator→lift etc. all still convert, which matches the reporter's own Harry Potter workflow.

Verification

Console harness against the built Plugin-Shared: 20/20 checks pass — the 12 corruption cases above are now left untouched in Br→Us, real British spellings and vocabulary (colour, lorry, petrol, nappy, analyse-as-verb, programme) still convert, and all tagged pairs still convert Us→Br. Both plugin projects build with 0 errors; WordList.xml validates (1845 pairs).

🤖 Generated with Claude Code

The SE5 British to American plugin runs the shared WordList.xml in
reverse, which turned one-way vocabulary entries into corruptions of
text that is already correct American English: car -> automobile,
'flat tire' -> 'apartment tire', 'lift the box' -> 'elevator the box',
'Egyptian mummy' -> 'Egyptian mommy', 'disc jockey' -> 'disk jockey',
'the analyses' -> 'the analyzes', and more.

Add an optional only="UsToBr"/"BrToUs" attribute to word list pairs
and honor it in EnglishVariantConverter. Tag the 21 pairs whose British
side is also standard (often polysemous) American English so they only
run American -> British. Remove two pairs that are wrong in both
directions: 'pulled up'/'drew up' and 'luggage'/'baggage' (all four
words are standard in both dialects).

American -> British output is unchanged.

Fixes SubtitleEdit/subtitleedit#14374

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@niksedk
niksedk merged commit b5535e1 into main Sep 1, 2026
33 checks passed
@niksedk
niksedk deleted the claude/british-to-american-vocab-14374 branch September 1, 2026 17:29
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.

Plugin "English to American" turns "car" to "automobile"

1 participant