From b6135149943cafe39ef980a856cd6d6022f1f06f Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Mon, 23 Nov 2020 18:58:56 -0500 Subject: [PATCH] Remove hyphenation around "hundred" and "percent" --- lib/convert-worker.js | 5 ++++- lib/substitutions.json | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/lib/convert-worker.js b/lib/convert-worker.js index 069d369..f4622e9 100644 --- a/lib/convert-worker.js +++ b/lib/convert-worker.js @@ -543,11 +543,14 @@ 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. + // Compound numbers from 11 through 99 must be hyphenated, but others should not be. xml = xml.replace( /(?