Fix possessives of names ending in "s"
This commit is contained in:
parent
169cb749af
commit
ac667f9b99
2 changed files with 25 additions and 3 deletions
|
|
@ -179,9 +179,25 @@ function getBodyXML(chapter, contentEl) {
|
|||
xml = xml.replace(/’([A-Za-z]+)’/g, "‘$1’");
|
||||
|
||||
// Fix possessive of names ending in "s"
|
||||
xml = xml.replace(/Judas’([^s])/g, "Judas’s$1");
|
||||
xml = xml.replace(/Brutus’([^s])/g, "Brutus’s$1");
|
||||
xml = xml.replace(/Jess’([^s])/g, "Jess’s$1");
|
||||
// Note: if the "s" is unvoiced, as in Marquis, then it doesn't get the second "s".
|
||||
xml = xml.replace(/([^‘])Judas’([^s])/g, "$1Judas’s$2");
|
||||
xml = xml.replace(/([^‘])Brutus’([^s])/g, "$1Brutus’s$2");
|
||||
xml = xml.replace(/([^‘])Jess’([^s])/g, "$1Jess’s$2");
|
||||
xml = xml.replace(/([^‘])Aegis’([^s])/g, "$1Aegis’s$2");
|
||||
xml = xml.replace(/([^‘])Dauntless’([^s])/g, "$1Dauntless’s$2");
|
||||
xml = xml.replace(/([^‘])Circus’([^s])/g, "$1Circus’s$2");
|
||||
xml = xml.replace(/([^‘])Sirius’([^s])/g, "$1Sirius’s$2");
|
||||
xml = xml.replace(/([^‘])Brooks’([^s])/g, "$1Brooks’s$2");
|
||||
xml = xml.replace(/([^‘])Genesis’([^s])/g, "$1Genesis’s$2");
|
||||
xml = xml.replace(/([^‘])Atlas’([^s])/g, "$1Atlas’s$2");
|
||||
xml = xml.replace(/([^‘])Lucas’([^s])/g, "$1Lucas’s$2");
|
||||
xml = xml.replace(/([^‘])Gwerrus’([^s])/g, "$1Gwerrus’s$2");
|
||||
xml = xml.replace(/([^‘])Chris’([^s])/g, "$1Chris’s$2");
|
||||
xml = xml.replace(/([^‘])Eligos’([^s])/g, "$1Eligos’s$2");
|
||||
xml = xml.replace(/([^‘])Animos’([^s])/g, "$1Animos’s$2");
|
||||
xml = xml.replace(/([^‘])Mags’([^s])/g, "$1Mags’s$2");
|
||||
xml = xml.replace(/([^‘])Huntress’([^s])/g, "$1Huntress’s$2");
|
||||
xml = xml.replace(/([^‘])Hephaestus’([^s])/g, "$1Hephaestus’s$2");
|
||||
|
||||
// Fixes dashes
|
||||
xml = xml.replace(/ – /g, "—");
|
||||
|
|
|
|||
|
|
@ -170,6 +170,12 @@
|
|||
"after": "direction.</p>"
|
||||
}
|
||||
],
|
||||
"https://parahumans.wordpress.com/2011/09/06/agitation-3-9/": [
|
||||
{
|
||||
"before": "Aegis’s must have felt",
|
||||
"after": "Aegis must have felt"
|
||||
}
|
||||
],
|
||||
"https://parahumans.wordpress.com/2011/09/10/agitation-3-10/": [
|
||||
{
|
||||
"before": "meaning his aim was",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue