Capitalize "English" but de-capitalize "english muffin"
Also lowercase one instance of "french toast"
This commit is contained in:
parent
20d91d37df
commit
53f7307daa
2 changed files with 10 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6747,6 +6747,10 @@
|
|||
{
|
||||
"before": "thing number one. it’s not a lot",
|
||||
"after": "thing number one. It’s not a lot"
|
||||
},
|
||||
{
|
||||
"before": "French toast",
|
||||
"after": "french toast"
|
||||
}
|
||||
],
|
||||
"https://www.parahumans.net/2019/08/31/from-within-16-6/": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue