Hyphenate "second-guess" and derivatives, when appropriate

This commit is contained in:
Domenic Denicola 2020-12-25 15:56:24 -05:00
commit 651944b4da

View file

@ -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-");