Hyphenate "second-guess" and derivatives, when appropriate
This commit is contained in:
parent
44f2cc3c7b
commit
651944b4da
1 changed files with 4 additions and 0 deletions
|
|
@ -655,6 +655,10 @@ function fixHyphens(xml) {
|
|||
// in the books.
|
||||
xml = xml.replace(/hand to hand(?= [a-z])/g, "hand-to-hand");
|
||||
|
||||
// This is usually wrong but sometimes correct. The lookarounds avoid specific cases where it's referring to an actual
|
||||
// second in a series of guesses.
|
||||
xml = xml.replace(/(?<!my |that )([Ss]econd) guess(?!es)/g, "$1-guess");
|
||||
|
||||
// This is usually correct but sometimes wrong.
|
||||
xml = xml.replace(/neo /g, "neo-");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue