diff --git a/package.json b/package.json index f7f6ec8..c1a1ad5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "3.3.8", + "version": "3.3.9", "author": "lingdocs.com", "description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations", "homepage": "https://verbs.lingdocs.com", diff --git a/src/lib/phrase-building/compile.ts b/src/lib/phrase-building/compile.ts index 4830b8d..1f6dafa 100644 --- a/src/lib/phrase-building/compile.ts +++ b/src/lib/phrase-building/compile.ts @@ -226,7 +226,11 @@ function getPsFromPiece(piece: T.Block | T.Kid, subjectPerson: T.Person): T.PsSt } if (piece.block.type === "perfectParticipleBlock") { // getLong is just for type safety - we will have split up the length options earlier in compileVPPs - return getLong(piece.block.ps); + const verbPs = getLong(piece.block.ps); + if (piece.block.complement) { + return combineComplementWVerbPs(piece.block.complement, verbPs); + } + return verbPs; } if (piece.block.type === "perfectEquativeBlock") { // just using the short one for now - it will only be short anyways