From 12039e6cb87e8a16ecb8c2a5bfd1fabecaff33a3 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Sun, 3 Apr 2022 01:10:53 +0500 Subject: [PATCH] fix negative thing w passive --- src/lib/phrase-building/compile-vp.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/phrase-building/compile-vp.ts b/src/lib/phrase-building/compile-vp.ts index 13b9d92..2b62a6a 100644 --- a/src/lib/phrase-building/compile-vp.ts +++ b/src/lib/phrase-building/compile-vp.ts @@ -223,16 +223,16 @@ function arrangeVerbWNegative(head: T.PsString | undefined, restRaw: T.PsString[ ]; } return [ - [ + ...(V.voice !== "passive") ? [[ ...headSegment ? [headSegment.adjust({ ps: removeAccents })] : [], rest.adjust({ ps: r => concatPsString(nu, " ", removeAccents(r)), desc: ["isNu"], }), - ], + ]] : [], // verbs that have a perfective prefix that is not و or وا can put the // nu *before* the prefix as well // TODO: also وي prefixes? - ...(!headSegment.isOoOrWaaHead && !V.isCompound) ? [[ + ...((!headSegment.isOoOrWaaHead && !V.isCompound) || (V.voice === "passive")) ? [[ makeSegment(nu, ["isNu"]), headSegment.adjust({ ps: removeAccents }), rest.adjust({ ps: removeAccents }),