From 60709f54c2366b75054e46e7991dd0b15d446c5c Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Mon, 23 Nov 2020 16:32:08 -0500 Subject: [PATCH] Always capitalize "Nazi" Also fix hyphenation and capitalization around "neo-Nazi". --- lib/convert-worker.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/convert-worker.js b/lib/convert-worker.js index 59094bc..e12de7d 100644 --- a/lib/convert-worker.js +++ b/lib/convert-worker.js @@ -505,6 +505,12 @@ function fixCapitalization(xml, book) { // place name. So we remove the capitalization in the few places where it does appear. xml = xml.replace(/Wardens’ Headquarters/g, "Wardens’ headquarters"); + // Some style guides try to reserve capitalized "Nazi" for historical discussions of members of the Nazi party. This + // seems fuzzy when it comes to phrases like "neo-Nazi", and doesn't seem to be what the author is doing; the books + // are just plain inconsistent. So, let's standardize on always uppercasing. + xml = xml.replace(/(?