Keep 'never' when conjugating to the infinitive instead of adding 'do not'

This commit is contained in:
dualfroz committed 2026-09-23 12:34:38 +02:00
1 parent e4149a971e
commit e808a140a8
2 files changed
+5 -2

No files matched your search

@@ -17,7 +17,8 @@ const toInf = function (vb, parsed) {
} }
// there is no real way to do this // there is no real way to do this
// 'i not walk'? 'i walk not'? // 'i not walk'? 'i walk not'?
if (parsed.negative.found) { // 'never' negates the infinitive on its own - 'i never walk'
if (parsed.negative.found && !vb.has('never')) {
if (!vb.has('not')) { if (!vb.has('not')) {
vb.prepend('not') vb.prepend('not')
} }
+3 -1
View File
@@ -59,7 +59,9 @@ test('toInfinitive-phrase:', function (t) {
['I will do that', 'I do that'], ['I will do that', 'I do that'],
['I will not do that', 'I do not do that'], ['I will not do that', 'I do not do that'],
["I won't do that", 'I do not do that'], ["I won't do that", 'I do not do that'],
// ['I will never do that', 'I do not do that'], ['I will never do that', 'I never do that'],
['I never do that', 'I never do that'],
['she would never say it', 'she never say it'],
// want-infinitive // want-infinitive
// ['he wants to walk', 'he want to walk'], // ['he wants to walk', 'he want to walk'],