Fix some instances of the possessive of Marquis
This commit is contained in:
parent
1da99791d3
commit
6751136bec
1 changed files with 4 additions and 2 deletions
|
|
@ -403,14 +403,16 @@ function enDashJointNames(xml) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function fixPossessives(xml) {
|
function fixPossessives(xml) {
|
||||||
// Fix possessive of names ending in "s"
|
// Fix possessive of names ending in "s".
|
||||||
// Note: if the "s" is unvoiced, as in Marquis, then it doesn't get the second "s".
|
|
||||||
xml = xml.replace(
|
xml = xml.replace(
|
||||||
// eslint-disable-next-line max-len
|
// eslint-disable-next-line max-len
|
||||||
/(?<!‘)(Judas|Brutus|Jess|Aegis|Dauntless|Circus|Sirius|Brooks|Genesis|Atlas|Lucas|Gwerrus|Chris|Eligos|Animos|Mags|Huntress|Hephaestus|Lord of Loss|John Combs|Mama Mathers|Monokeros|Goddess|Boundless|Paris|Tress|Harris|Antares|Nieves|Backwoods|Midas|Mrs. Sims|Ms. Stillons|Chuckles|Amias|Semiramis)’(?!s)/g,
|
/(?<!‘)(Judas|Brutus|Jess|Aegis|Dauntless|Circus|Sirius|Brooks|Genesis|Atlas|Lucas|Gwerrus|Chris|Eligos|Animos|Mags|Huntress|Hephaestus|Lord of Loss|John Combs|Mama Mathers|Monokeros|Goddess|Boundless|Paris|Tress|Harris|Antares|Nieves|Backwoods|Midas|Mrs. Sims|Ms. Stillons|Chuckles|Amias|Semiramis)’(?!s)/g,
|
||||||
"$1’s"
|
"$1’s"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Note: if the "s" is unvoiced, as in Marquis, then it doesn't get the second "s".
|
||||||
|
xml = xml.replace(/Marquis’s/g, "Marquis’");
|
||||||
|
|
||||||
// This one is not just missing the extra "s"; it's often misplaced.
|
// This one is not just missing the extra "s"; it's often misplaced.
|
||||||
xml = xml.replace(/Warden’s/g, "Wardens’");
|
xml = xml.replace(/Warden’s/g, "Wardens’");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue