Hyphenate "face-to-face" when appropriate

This commit is contained in:
Domenic Denicola 2020-12-25 17:53:31 -05:00
commit 2fb075128a

View file

@ -673,6 +673,11 @@ function fixHyphens(xml) {
// noun cases are missing one or both hyphens.
xml = xml.replace(/([Aa]) just[ -]in case/g, "$1 just-in-case");
// When used as an adjective, it's hyphenated. It turns out most cases are as an adverb, so we go with this approach:
xml = xml.replace(
/face to face(?= meeting| hang-out| interaction| contact| conversation| confrontation| fight)/g,
"face-to-face");
// This is usually correct but sometimes wrong.
xml = xml.replace(/neo /g, "neo-");