Keep a copula as a verb after a possessive
This commit is contained in:
1 parent
56ff279fd7
commit
6528d59d86
2 files changed
+16
-1
No files matched your search
@@ -190,3 +190,18 @@ test('match:', function (t) {
|
||||
})
|
||||
t.end()
|
||||
})
|
||||
|
||||
test('possessive before a copula', function (t) {
|
||||
const arr = [
|
||||
['His is green.', '#Possessive #Copula #Adjective'],
|
||||
['Hers is blue.', '#Possessive #Copula #Adjective'],
|
||||
['Ours are bigger.', '#Possessive #Copula #Adjective'],
|
||||
['Theirs are old.', '#Possessive #Copula #Adjective'],
|
||||
]
|
||||
arr.forEach(function (a) {
|
||||
const [str, match] = a
|
||||
const doc = nlp(str)
|
||||
t.equal(doc.match(match).text(), doc.text(), here + str)
|
||||
})
|
||||
t.end()
|
||||
})
|
||||
Reference in new issue
Block a user