fixed issue with intransitive verbs not checking for subject agreement

This commit is contained in:
adueck 2024-02-08 22:51:27 +01:00
parent db3bc8303b
commit 411f5b2d04
1 changed files with 5 additions and 3 deletions

View File

@ -29,9 +29,6 @@ import { isSecondPerson, personToGenNum } from "../misc-helpers";
import { equals, zip } from "rambda"; import { equals, zip } from "rambda";
import { isImperativeTense } from "../type-predicates"; import { isImperativeTense } from "../type-predicates";
// to hide equatives type-doubling issue // to hide equatives type-doubling issue
// TODO: THESE SHOULD ERROR!!
// ماشومانې لاړل
// ماشومان لاړلې
// TODO: problem with 3rd pers seng verb endings اواز مې دې واورېده // TODO: problem with 3rd pers seng verb endings اواز مې دې واورېده
@ -324,6 +321,11 @@ function finishIntransitive({
message: "subject of intransitive verb must not be inflected", message: "subject of intransitive verb must not be inflected",
}); });
} }
if (subjectPerson !== person) {
errors.push({
message: "subject and verb must agree for intransitive verb",
});
}
const blocks: T.VPSBlockComplete[] = [ const blocks: T.VPSBlockComplete[] = [
...mapOutnpsAndAps(["S"], npsAndAps), ...mapOutnpsAndAps(["S"], npsAndAps),
{ {