fix(british-english): adds british english spelling for english-medical.json (@AlexRusbridge) (#7278)

### Description

Adds British English spelling for words found in the english-medical
word list.

- Hematology terms (`hemo-`/`hema-` -> `haemo-`/`haema-`)
- Blood condition suffixes (`-emia` -> `-aemia`)
- White blood cell terms (`leuko-` -> `leuco-`)
- Respiratory terms (`-pnea` -> `-pnoea`)
- Other notable conversions (common patterns like `-ize` and other
cases)

### Checks

- [ ] ~Adding/modifying Typescript code?~
- [ ] ~Adding quotes?comment) so we can verify their content.~
- [ ] ~Adding a language?~
- [ ] ~Adding a theme?~
- [ ] ~Adding a layout?~
- [ ] ~Adding a font?~
- [x] Check if any open issues are related to this PR; if so, be sure to
tag them below.
- [x] Make sure the PR title follows the Conventional Commits standard.
(https://www.conventionalcommits.org for more info)
- [x] Make sure to include your GitHub username prefixed with @ inside
parentheses at the end of the PR title.

---------

Co-authored-by: Jack <jack@monkeytype.com>
This commit is contained in:
Alex Rusbridge 2025-12-20 09:15:55 +00:00 committed by GitHub
parent 8148b05dd6
commit 5093dbe128
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -652,6 +652,33 @@ const replacementRules: BritishEnglishReplacements = {
moisturizing: "moisturising",
favoring: "favouring",
marvelous: "marvellous",
hematuria: "haematuria",
hemoptysis: "haemoptysis",
hemorrhoid: "haemorrhoid",
hemorrhagic: "haemorrhagic",
hypercalcemia: "hypercalcaemia",
hyperglycemia: "hyperglycaemia",
hypoglycemia: "hypoglycaemia",
toxemia: "toxaemia",
hypoxemia: "hypoxaemia",
bacteremia: "bacteraemia",
hypernatremia: "hypernatraemia",
hyponatremia: "hyponatraemia",
leukocytosis: "leucocytosis",
leukocyte: "leucocyte",
leukopenia: "leucopenia",
apnea: "apnoea",
bradypnea: "bradypnoea",
tachypnea: "tachypnoea",
orthopnea: "orthopnoea",
ileocecal: "ileocaecal",
metastasize: "metastasise",
lymphedema: "lymphoedema",
neuron: "neurone",
hemianopsia: "hemianopia",
galactorrhea: "galactorrhoea",
nebulizer: "nebuliser",
paresthesia: "paraesthesia",
};
export async function replace(