diff --git a/lib/convert-worker.js b/lib/convert-worker.js index a2a38ac..069d369 100644 --- a/lib/convert-worker.js +++ b/lib/convert-worker.js @@ -543,6 +543,12 @@ function fixHyphens(xml) { xml = xml.replace(/(\w+)[ -]year[ -]old(s?)(?!\w)/g, "$1-year-old$2"); xml = xml.replace(/(\w+) or (\w+)-year-old/g, "$1- or $2-year-old"); + // Compound numbers must be hyphenated. + xml = xml.replace( + /(?here? Now?", "after": "here? Now?" @@ -1886,7 +1882,7 @@ "after": "my ‘candy’" }, { - "before": "Thirty Nine point", + "before": "Thirty-Nine point", "after": "Thirty-nine point" }, { @@ -3516,6 +3512,10 @@ { "before": "a burst of alarm.", "after": "a burst of alarm." + }, + { + "before": "Up from Eighty-three point four percent", + "after": "Up from eighty-three point four percent" } ], "https://parahumans.wordpress.com/2013/07/23/sting-26-3/": [