Capitalize "Uncle Neil" and "Aunt Fleur"
This commit is contained in:
parent
b67f4032f5
commit
e1b59994f8
1 changed files with 3 additions and 1 deletions
|
|
@ -559,8 +559,10 @@ function fixCapitalization(xml, book) {
|
|||
xml = xml.replace(/(?<!mom), dad(?![a-z])/g, ", Dad");
|
||||
xml = xml.replace(/, mom(?![a-z-])/g, ", Mom");
|
||||
|
||||
// Similarly, specific aunts and uncles get capitalized when used as a title. This one is often missed.
|
||||
// Similarly, specific aunts and uncles get capitalized when used as a title. These are often missed.
|
||||
xml = xml.replace(/aunt Sarah/g, "Aunt Sarah");
|
||||
xml = xml.replace(/aunt Fleur/g, "Aunt Fleur");
|
||||
xml = xml.replace(/uncle Neil/g, "Uncle Neil");
|
||||
|
||||
// The majority of "Wardens’ headquarters" is lowercased, and always prefixed with "the", indicating it's not a proper
|
||||
// place name. So we remove the capitalization in the few places where it does appear.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue