diff --git a/package.json b/package.json index 235e916..06dc653 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "3.7.6", + "version": "3.7.7", "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 09d649a..6d922f9 100644 --- a/src/lib/phrase-building/compile.ts +++ b/src/lib/phrase-building/compile.ts @@ -1,7 +1,7 @@ import * as T from "../../types"; import { capitalizeFirstLetter, - concatPsString, getLong, getShort, + concatPsString, getLong, getShort, isVerbBlock, } from "../p-text-helpers"; import { negativeParticle } from "../../lib/grammar-units"; import * as grammarUnits from "../grammar-units"; @@ -21,6 +21,7 @@ import { getSubjectSelectionFromBlocks, getVerbFromBlocks, hasEquativeWithLengths, + isRenderedVerbB, specifyBlockLength, specifyEquativeLength, } from "./blocks-utils"; @@ -166,7 +167,10 @@ function combineIntoText(piecesWVars: (T.Block | T.Kid | T.PsString)[][], subjec const rest = pieces.slice(1); const firstPs = ("p" in first) ? [first] - : (blankOut?.equative && "block" in first && first.block.type === "equative") + : ( + (blankOut?.equative && "block" in first && first.block.type === "equative") || + (blankOut?.verb && "block" in first && isRenderedVerbB(first.block)) + ) ? [blank] : ((blankOut?.ba) && "kid" in first && first.kid.type === "ba") ? [kidsBlank]