Hyphenate "fight or flight" when appropriate

This commit is contained in:
Domenic Denicola 2020-12-25 18:07:06 -05:00
commit 26a2b9c9b5

View file

@ -678,6 +678,9 @@ function fixHyphens(xml) {
/face to face(?= meeting| hang-out| interaction| contact| conversation| confrontation| fight)/g,
"face-to-face");
// When used as an adjective, it's hyphenated. This heuristic works in the books.
xml = xml.replace(/fight or flight(?= [a-z])/g, "fight-or-flight");
// This is usually correct but sometimes wrong.
xml = xml.replace(/neo /g, "neo-");