Always capitalize "the Bunker" in Ward

This commit is contained in:
Domenic Denicola 2020-11-23 19:04:28 -05:00
commit 424f13f169
2 changed files with 12 additions and 0 deletions

View file

@ -501,6 +501,10 @@ function fixCapitalization(xml, book) {
xml = xml.replace(/(Norwalk|Fenway|Stratford) station/g, "$1 Station");
xml = xml.replace(/the megalopolis/g, "the Megalopolis");
xml = xml.replace(/earths(?![a-z])/g, "Earths");
if (book === "ward") {
xml = xml.replace(/the bunker/g, "the Bunker");
xml = xml.replace(/bunker/g, "Bunker");
}
// "Mom" and "Dad" should be capitalized when used as a proper name. These regexps are tuned to catch a good amount of
// instances, without over-correcting for non-proper-name-like cases. Many other instances are handled in

View file

@ -6731,6 +6731,14 @@
{
"before": "—Because I could have pushed harder",
"after": "—because I could have pushed harder"
},
{
"before": "the Wardens bunker",
"after": "the Wardens Bunker"
},
{
"before": "the more distant bunker itself",
"after": "the more distant Bunker itself"
}
],
"https://www.parahumans.net/2019/05/14/13-z/": [