fix negative thing w passive

This commit is contained in:
lingdocs 2022-04-03 01:10:53 +05:00
parent 1243386a64
commit 12039e6cb8
1 changed files with 3 additions and 3 deletions

View File

@ -223,16 +223,16 @@ function arrangeVerbWNegative(head: T.PsString | undefined, restRaw: T.PsString[
]; ];
} }
return [ return [
[ ...(V.voice !== "passive") ? [[
...headSegment ? [headSegment.adjust({ ps: removeAccents })] : [], ...headSegment ? [headSegment.adjust({ ps: removeAccents })] : [],
rest.adjust({ rest.adjust({
ps: r => concatPsString(nu, " ", removeAccents(r)), ps: r => concatPsString(nu, " ", removeAccents(r)),
desc: ["isNu"], desc: ["isNu"],
}), }),
], ]] : [],
// verbs that have a perfective prefix that is not و or وا can put the // verbs that have a perfective prefix that is not و or وا can put the
// nu *before* the prefix as well // TODO: also وي prefixes? // nu *before* the prefix as well // TODO: also وي prefixes?
...(!headSegment.isOoOrWaaHead && !V.isCompound) ? [[ ...((!headSegment.isOoOrWaaHead && !V.isCompound) || (V.voice === "passive")) ? [[
makeSegment(nu, ["isNu"]), makeSegment(nu, ["isNu"]),
headSegment.adjust({ ps: removeAccents }), headSegment.adjust({ ps: removeAccents }),
rest.adjust({ ps: removeAccents }), rest.adjust({ ps: removeAccents }),