From 803ad8c78e418874e578c4a16d3f09702443af1a Mon Sep 17 00:00:00 2001 From: adueck Date: Thu, 26 Jan 2023 16:50:18 +0500 Subject: [PATCH] sync up space in phonetics for vowel-ending plurals --- package-lock.json | 4 ++-- package.json | 2 +- src/components/package.json | 2 +- src/lib/package.json | 2 +- src/lib/src/pashto-inflector.test.ts | 4 ++-- src/lib/src/pashto-inflector.ts | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 095636e..7e093b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pashto-inflector", - "version": "5.7.3", + "version": "5.7.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "pashto-inflector", - "version": "5.7.3", + "version": "5.7.4", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index fa36fa3..e23590b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pashto-inflector", - "version": "5.7.3", + "version": "5.7.4", "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 e351f75..b98a5c8 100644 --- a/src/components/package.json +++ b/src/components/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/ps-react", - "version": "5.7.3", + "version": "5.7.4", "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 4848c90..1ba10cd 100644 --- a/src/lib/package.json +++ b/src/lib/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/inflect", - "version": "5.7.3", + "version": "5.7.4", "description": "Pashto inflector library", "main": "dist/index.js", "types": "dist/lib/library.d.ts", diff --git a/src/lib/src/pashto-inflector.test.ts b/src/lib/src/pashto-inflector.test.ts index 43ec6ac..02f91f5 100644 --- a/src/lib/src/pashto-inflector.test.ts +++ b/src/lib/src/pashto-inflector.test.ts @@ -1192,8 +1192,8 @@ const nouns: { out: { plural: { fem: [ - [{p: "وداع وې", f: "widáawe"}, {p: "وداع ګانې", f: "widaagáane"}], - [{p: "وداع وو", f: "widáawo"}, {p: "وداع ګانو", f: "widaagáano"}], + [{p: "وداع وې", f: "widáa we"}, {p: "وداع ګانې", f: "widaa gáane"}], + [{p: "وداع وو", f: "widáa wo"}, {p: "وداع ګانو", f: "widaa gáano"}], ], }, }, diff --git a/src/lib/src/pashto-inflector.ts b/src/lib/src/pashto-inflector.ts index 9615245..915f770 100644 --- a/src/lib/src/pashto-inflector.ts +++ b/src/lib/src/pashto-inflector.ts @@ -537,7 +537,7 @@ function makePlural(w: T.DictionaryEntryNoFVars): { plural: T.PluralInflections, function addFemLongVowelSuffix(): T.PluralInflectionSet { const base = removeEndTick(makePsString(w.p, w.f)); const baseWOutAccents = removeAccents(base); - const space = (w.p.slice(-1) === "ع" || w.p.slice(-1) === "ه") ? { p: " ", f: "" } : ""; + const space = (w.p.slice(-1) === "ع" || w.p.slice(-1) === "ه") ? { p: " ", f: " " } : ""; return addSecondInf([ concatPsString(base, space, { p: "وې", f: "we" }), concatPsString(baseWOutAccents, space, { p: "ګانې", f: "gáane" })