Hyphenate "face-to-face" when appropriate
This commit is contained in:
parent
ed392d8b98
commit
2fb075128a
1 changed files with 5 additions and 0 deletions
|
|
@ -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-");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue