From 1adeb1988243912b11371e41544bc9cec2b4e93d Mon Sep 17 00:00:00 2001 From: upstream Date: Sat, 3 Oct 2026 03:10:44 +0200 Subject: [PATCH] Upstream spencermountain/compromise state of the touched files before 11b7a206d1 --- src/2-two/preTagger/compute/tagger/2nd-pass/01-case.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/2-two/preTagger/compute/tagger/2nd-pass/01-case.js b/src/2-two/preTagger/compute/tagger/2nd-pass/01-case.js index c43adcf..3cf5379 100644 --- a/src/2-two/preTagger/compute/tagger/2nd-pass/01-case.js +++ b/src/2-two/preTagger/compute/tagger/2nd-pass/01-case.js @@ -20,7 +20,7 @@ const nope = { } // if it's a unknown titlecase word, it's a propernoun -const checkCase = function (terms, i, model, afterColon) { +const checkCase = function (terms, i, model) { const term = terms[i] // assume terms are already indexed term.index ||= [0, 0] @@ -40,12 +40,6 @@ const checkCase = function (terms, i, model, afterColon) { if (/["']$/.test(term.pre)) { return null } - // gerund after a colon - 'Tutorial: Creating a cake' - const before = terms[i - 1] - const hasColon = before ? /:/.test(before.post) : afterColon - if (hasColon && term.tags.has('Gerund')) { - return null - } if (term.normal === 'the') { return null }