Upstream spencermountain/compromise state of the touched files before 11b7a206d1
This commit is contained in:
1 parent
1440e67433
commit
1adeb19882
1 file changed
+1
-7
@@ -20,7 +20,7 @@ const nope = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if it's a unknown titlecase word, it's a propernoun
|
// 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]
|
const term = terms[i]
|
||||||
// assume terms are already indexed
|
// assume terms are already indexed
|
||||||
term.index ||= [0, 0]
|
term.index ||= [0, 0]
|
||||||
@@ -40,12 +40,6 @@ const checkCase = function (terms, i, model, afterColon) {
|
|||||||
if (/["']$/.test(term.pre)) {
|
if (/["']$/.test(term.pre)) {
|
||||||
return null
|
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') {
|
if (term.normal === 'the') {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user