Skip to content

Commit 7c39327

Browse files
committed
improve verb parsing
1 parent 44f43b7 commit 7c39327

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

dictionary/parser.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -469,13 +469,10 @@ const verbDefinition = checkedSequence(
469469
forObject: false,
470470
predicateType: "noun adjective",
471471
})),
472-
new CheckedParser(
473-
nothing,
472+
checkedSequence(
473+
closeParenthesis,
474474
sequence(
475-
closeParenthesis
476-
.with(
477-
optionalWithCheck(checkedNoun),
478-
),
475+
optionalWithCheck(checkedNoun),
479476
optionalWithCheck(
480477
checkedSimpleUnitWith(
481478
"prep",
@@ -491,7 +488,7 @@ const verbDefinition = checkedSequence(
491488
),
492489
),
493490
)
494-
.map<PartialVerb>(([directObject, rawIndirectObject]) => {
491+
.map<PartialVerb>(([_, [directObject, rawIndirectObject]]) => {
495492
if (rawIndirectObject == null) {
496493
return {
497494
directObject,

0 commit comments

Comments
 (0)