diff --git a/lib/convert-worker.js b/lib/convert-worker.js index b7904bf..1e3558b 100644 --- a/lib/convert-worker.js +++ b/lib/convert-worker.js @@ -471,7 +471,7 @@ function fixCapitalization(xml, book) { // This occurs enough times it's better to do here than in one-off fixes. We correct the single instance where // it's incorrect to capitalize in the one-off fixes. // Note that Ward contains much talk of "the clairvoyants", so we don't want to capitalize plurals. - xml = xml.replace(/([Tt])he clairvoyant([^s])/g, "$1he Clairvoyant$2"); + xml = xml.replace(/([Tt])he clairvoyant(?!s)/g, "$1he Clairvoyant"); // ReSound's name is sometimes miscapitalized. The word is never used in a non-name context. xml = xml.replace(/Resound/g, "ReSound"); @@ -518,6 +518,11 @@ function fixCapitalization(xml, book) { xml = xml.replace(/Radiata/g, "radiata"); xml = xml.replace(/Gemma/g, "gemma"); + // We de-capitalize Valkyrie's "flock", since most uses are de-capitalized (e.g. the many instances in Gleaming + // Interlude 9, or Dying 15.z). This is a bit surprising; it seems like an organization name. But I guess it's + // informal. + xml = xml.replace(/(?