From 424f13f1698369dbe0870d574c15dacb075c2713 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Mon, 23 Nov 2020 19:04:28 -0500 Subject: [PATCH] Always capitalize "the Bunker" in Ward --- lib/convert-worker.js | 4 ++++ lib/substitutions.json | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/lib/convert-worker.js b/lib/convert-worker.js index f4622e9..6f6d4e1 100644 --- a/lib/convert-worker.js +++ b/lib/convert-worker.js @@ -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 diff --git a/lib/substitutions.json b/lib/substitutions.json index a9efd6a..e1290cc 100644 --- a/lib/substitutions.json +++ b/lib/substitutions.json @@ -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/": [