Capitalize "Titans"

This commit is contained in:
Domenic Denicola 2020-12-19 13:17:14 -05:00
commit 730cc512e3

View file

@ -561,6 +561,15 @@ function fixCapitalization(xml, book) {
xml = xml.replace(/english(?! muffin)/g, "English");
xml = xml.replace(/(?<! {2})English muffin/g, "english muffin");
// I was very torn on what to do with capitalization for "Titan" and "Titans". In general you don't capitalize species
// names or other classifications, e.g. style guides are quite clear you don't capitalize "gods". The author
// capitalizes them more often than not (e.g., 179 raw "Titans" to 49 "titans"), but is quite inconsistent. In the
// end, I decided for capitalization, based on the precedent set by "Endbringers" (which are conceptually paired with
// Titans several times in the text).
if (book === "ward") {
xml = xml.replace(/titans/g, "Titans");
}
return xml;
}