Drop does/did when turning a negative verb positive
This commit is contained in:
1 parent
8124553282
commit
8fd9ece28a
3 files changed
+51
No files matched your search
@@ -12,3 +12,13 @@ test('sentences.toPositive', function (t) {
|
||||
|
||||
t.end()
|
||||
})
|
||||
|
||||
test('sentences.toPositive does-not', function (t) {
|
||||
const doc = nlp(`He does not like camels.`)
|
||||
doc.sentences().toPositive()
|
||||
t.equal(doc.text(), 'He likes camels.', here + 'does not')
|
||||
|
||||
doc.sentences().toNegative()
|
||||
t.equal(doc.text(), 'He does not like camels.', here + 'back to neg')
|
||||
t.end()
|
||||
})
|
||||
Reference in new issue
Block a user