only treat subordinators as secondary-clause signals before the verb

mainClause() dropped any clause merely containing 'that', 'before',
'who' etc, so a main clause with a nested relative clause lost to a
comma-list fragment and the wrong verb was reported. Only drop a clause
when the word comes before the clause's own verb, and parse the pattern
once per call rather than once per clause.

Fixes #1035
This commit is contained in:
dualfroz committed 2026-09-13 15:38:29 +02:00
1 parent 4328bab986
commit 5424b39d8d
2 files changed
+24 -2

No files matched your search

+7
View File
@@ -40,6 +40,13 @@ test('svo parser', function (t) {
'the students',
'remained',
],
[
'She led a diverse advisory committee throughout the process that included membership from schools, city planning departments, state engineering departments, transit agencies, and AARP.',
'she',
'led',
],
['He bought the car that the dealer, the bank, and the broker all recommended.', 'he', 'bought'],
['I ate dinner before I went to bed.', 'i', 'ate'],
// ['every day the kitten tries to eat the mouse', 'the kitten', 'tries to eat'],
// ['The boy who you saw at the store committed a robbery.', 'the boy', 'committed'],