From e2e1cb660079b3dda89e19e6b481873515893098 Mon Sep 17 00:00:00 2001 From: adueck Date: Sat, 14 Jan 2023 18:22:06 +0500 Subject: [PATCH] fixed but with space before adjectives etc --- package-lock.json | 4 ++-- package.json | 2 +- src/components/package.json | 2 +- src/lib/package.json | 2 +- src/lib/src/phrase-building/np-tools.ts | 4 +--- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 523064a..4c01278 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pashto-inflector", - "version": "5.3.5", + "version": "5.3.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "pashto-inflector", - "version": "5.3.5", + "version": "5.3.6", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 198d8f8..47c607e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pashto-inflector", - "version": "5.3.5", + "version": "5.3.6", "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/components/package.json b/src/components/package.json index 487bc02..08e2ab3 100644 --- a/src/components/package.json +++ b/src/components/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/ps-react", - "version": "5.3.5", + "version": "5.3.6", "description": "Pashto inflector library module with React components", "main": "dist/components/library.js", "module": "dist/components/library.js", diff --git a/src/lib/package.json b/src/lib/package.json index a9e2ff0..889ad5e 100644 --- a/src/lib/package.json +++ b/src/lib/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/inflect", - "version": "5.3.5", + "version": "5.3.6", "description": "Pashto inflector library", "main": "dist/index.js", "types": "dist/lib/library.d.ts", diff --git a/src/lib/src/phrase-building/np-tools.ts b/src/lib/src/phrase-building/np-tools.ts index 7b48cde..c11d89c 100644 --- a/src/lib/src/phrase-building/np-tools.ts +++ b/src/lib/src/phrase-building/np-tools.ts @@ -104,11 +104,9 @@ export function getPashtoFromRendered(b: T.Rendered | T.Rendered< }, } : trimOffShrunkenPossesive({ type: "NP", selection: b.selection }); if (trimmed.selection.type === "sandwich") { - const c = trimmed.selection.inside.selection.possesor + return trimmed.selection.inside.selection.possesor ? addPossesor(trimmed.selection.inside.selection.possesor.np, base, subjectsPerson) : base; - console.log({ c }); - return c; } if (trimmed.selection.possesor) { return addPossesor(trimmed.selection.possesor.np, base, subjectsPerson);