From b5e33b1db999f35eafa5b8c7fb35c1e305618260 Mon Sep 17 00:00:00 2001 From: adueck Date: Sat, 10 Feb 2024 06:50:43 -0500 Subject: [PATCH] mini-pronouns parsing --- src/lib/src/parsing/parse-vp.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/lib/src/parsing/parse-vp.ts b/src/lib/src/parsing/parse-vp.ts index bd0161a..52df3ab 100644 --- a/src/lib/src/parsing/parse-vp.ts +++ b/src/lib/src/parsing/parse-vp.ts @@ -30,7 +30,7 @@ import { equals, zip } from "rambda"; import { isImperativeTense } from "../type-predicates"; // to hide equatives type-doubling issue -// TODO: problem with 3rd pers seng verb endings اواز مې دې واورېده +// TODO: problem with 3rd pers sing verb endings اواز مې دې واورېده // TODO: word query for kawul/kedul/stat/dyn @@ -1165,13 +1165,7 @@ function createPossesivePossibilities( return blocks.flatMap((b) => { const miniPronouns = getMiniPronouns(b.body.kids); if (miniPronouns.length === 0) { - return [ - { - tokens: b.tokens, - body: b.body, - errors: b.errors, - }, - ]; + return b; } else if (miniPronouns.length === 1) { const withFirstMiniAsPossesive = spreadOutPoss(b.body, 0); return [b.body, ...withFirstMiniAsPossesive].map((x) => ({