Remove overcapitalization of "university"
This commit is contained in:
parent
41566a380e
commit
8daeebe507
1 changed files with 4 additions and 0 deletions
|
|
@ -450,6 +450,10 @@ function fixCapitalization(xml, book) {
|
|||
xml = xml.replace(/Halberd/g, "halberd");
|
||||
xml = xml.replace(/Loft/g, "loft");
|
||||
|
||||
// There's no reason why university should be capitalized in most contexts, although sometimes it's used as part of
|
||||
// a compound noun or at the beginning of a sentence.
|
||||
xml = xml.replace(/(?<! {2}|“|Cornell |Nilles )University(?! Road)/, "university");
|
||||
|
||||
// Especially early in the story, PRT designations are capitalized; they should not be. This fixes the cases where we
|
||||
// can be reasonably sure they don't start a sentence, although more specific instances are done in
|
||||
// substitutions.json, and some need to be back-corrected.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue