Capitalize "English" but de-capitalize "english muffin"

Also lowercase one instance of "french toast"
This commit is contained in:
Domenic Denicola 2020-11-23 16:49:50 -05:00
commit 53f7307daa
2 changed files with 10 additions and 0 deletions

View file

@ -512,6 +512,12 @@ function fixCapitalization(xml, book) {
xml = xml.replace(/(?<![a-z])nazi/g, "Nazi");
xml = xml.replace(/ Neo-/g, " neo-");
// Style guides disagree on whether items like "english muffin", "french toast", and "french kiss" need their
// adjective capitalized. The books mostly use lowercase, so let's stick with that. (substitutions.json corrects one
// case of "French toast".)
xml = xml.replace(/english(?! muffin)/g, "English");
xml = xml.replace(/(?<! {2})English muffin/g, "english muffin");
return xml;
}

View file

@ -6747,6 +6747,10 @@
{
"before": "thing number one. its not a lot",
"after": "thing number one. Its not a lot"
},
{
"before": "French toast",
"after": "french toast"
}
],
"https://www.parahumans.net/2019/08/31/from-within-16-6/": [