From 2cb2e892aecb4847e714f2b653f7374c03f8ba61 Mon Sep 17 00:00:00 2001 From: adueck Date: Thu, 13 Jun 2024 11:10:12 -0400 Subject: [PATCH] fixed inflection of yeys --- package-lock.json | 4 ++-- package.json | 2 +- src/components/package-lock.json | 4 ++-- src/components/package.json | 2 +- src/lib/package.json | 2 +- src/lib/src/pashto-inflector.test.ts | 20 ++++++++++---------- src/lib/src/pashto-inflector.ts | 8 ++++---- 7 files changed, 21 insertions(+), 21 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4185b05..cea6323 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pashto-inflector", - "version": "7.0.11", + "version": "7.0.12", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "pashto-inflector", - "version": "7.0.11", + "version": "7.0.12", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 7dd8df2..0ea0196 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pashto-inflector", - "version": "7.0.11", + "version": "7.0.12", "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-lock.json b/src/components/package-lock.json index 7185e08..bb217a6 100644 --- a/src/components/package-lock.json +++ b/src/components/package-lock.json @@ -1,12 +1,12 @@ { "name": "@lingdocs/ps-react", - "version": "7.0.11", + "version": "7.0.12", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@lingdocs/ps-react", - "version": "7.0.11", + "version": "7.0.12", "license": "MIT", "dependencies": { "@formkit/auto-animate": "^1.0.0-beta.3", diff --git a/src/components/package.json b/src/components/package.json index d557a81..4cbfa15 100644 --- a/src/components/package.json +++ b/src/components/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/ps-react", - "version": "7.0.11", + "version": "7.0.12", "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 e77217d..4b902e9 100644 --- a/src/lib/package.json +++ b/src/lib/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/inflect", - "version": "7.0.11", + "version": "7.0.12", "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 56c7669..3505acb 100644 --- a/src/lib/src/pashto-inflector.test.ts +++ b/src/lib/src/pashto-inflector.test.ts @@ -94,7 +94,7 @@ const adjectives: { [{ p: "وروستی", f: "wroostáy" }], [{ p: "وروستي", f: "wroostée" }], [ - { p: "وروستیو", f: "wroostíyo" }, + { p: "وروستیو", f: "wroostúyo" }, { p: "وروستو", f: "wroostó" }, ], ], @@ -102,7 +102,7 @@ const adjectives: { [{ p: "وروستۍ", f: "wroostúy" }], [{ p: "وروستۍ", f: "wroostúy" }], [ - { p: "وروستیو", f: "wroostíyo" }, + { p: "وروستیو", f: "wroostúyo" }, { p: "وروستو", f: "wroostó" }, ], ], @@ -453,7 +453,7 @@ const nouns: { [{ p: "ترورزی", f: "trorzáy" }], [{ p: "ترورزي", f: "trorzée" }], [ - { p: "ترورزیو", f: "trorzíyo" }, + { p: "ترورزیو", f: "trorzúyo" }, { p: "ترورزو", f: "trorzó" }, ], ], @@ -461,7 +461,7 @@ const nouns: { [{ p: "ترورزۍ", f: "trorzúy" }], [{ p: "ترورزۍ", f: "trorzúy" }], [ - { p: "ترورزیو", f: "trorzíyo" }, + { p: "ترورزیو", f: "trorzúyo" }, { p: "ترورزو", f: "trorzó" }, ], ], @@ -530,7 +530,7 @@ const nouns: { [{ p: "پلوی", f: "palawáy" }], [{ p: "پلوي", f: "palawée" }], [ - { p: "پلویو", f: "palawíyo" }, + { p: "پلویو", f: "palawúyo" }, { p: "پلوو", f: "palawó" }, ], ], @@ -538,7 +538,7 @@ const nouns: { [{ p: "پلوۍ", f: "palawúy" }], [{ p: "پلوۍ", f: "palawúy" }], [ - { p: "پلویو", f: "palawíyo" }, + { p: "پلویو", f: "palawúyo" }, { p: "پلوو", f: "palawó" }, ], ], @@ -573,7 +573,7 @@ const nouns: { [{ p: "سړی", f: "saRáy" }], [{ p: "سړي", f: "saRée" }], [ - { p: "سړیو", f: "saRíyo" }, + { p: "سړیو", f: "saRúyo" }, { p: "سړو", f: "saRó" }, ], ], @@ -598,7 +598,7 @@ const nouns: { [{ p: "سیلانی", f: "saylaanáy" }], [{ p: "سیلاني", f: "saylaanée" }], [ - { p: "سیلانیو", f: "saylaaníyo" }, + { p: "سیلانیو", f: "saylaanúyo" }, { p: "سیلانو", f: "saylaanó" }, ], ], @@ -628,7 +628,7 @@ const nouns: { [{ p: "ترېلی", f: "treláy" }], [{ p: "ترېلي", f: "trelée" }], [ - { p: "ترېلیو", f: "trelíyo" }, + { p: "ترېلیو", f: "trelúyo" }, { p: "ترېلو", f: "treló" }, ], ], @@ -1407,7 +1407,7 @@ const nouns: { [{ p: "کرسۍ", f: "kUrsúy" }], [{ p: "کرسۍ", f: "kUrsúy" }], [ - { p: "کرسیو", f: "kUrsíyo" }, + { p: "کرسیو", f: "kUrsúyo" }, { p: "کرسو", f: "kUrsó" }, ], ], diff --git a/src/lib/src/pashto-inflector.ts b/src/lib/src/pashto-inflector.ts index 6358416..ccaff32 100644 --- a/src/lib/src/pashto-inflector.ts +++ b/src/lib/src/pashto-inflector.ts @@ -294,7 +294,7 @@ function inflectEmphasizedYayUnisex(p: string, f: string): T.UnisexInflections { [{ p, f }], [{ p: `${baseP}ي`, f: `${baseF}ée` }], [ - { p: `${baseP}یو`, f: `${baseF}íyo` }, + { p: `${baseP}یو`, f: `${baseF}úyo` }, { p: `${baseP}و`, f: `${baseF}ó` }, ], ], @@ -302,7 +302,7 @@ function inflectEmphasizedYayUnisex(p: string, f: string): T.UnisexInflections { [{ p: `${baseP}ۍ`, f: `${baseF}úy` }], [{ p: `${baseP}ۍ`, f: `${baseF}úy` }], [ - { p: `${baseP}یو`, f: `${baseF}íyo` }, + { p: `${baseP}یو`, f: `${baseF}úyo` }, { p: `${baseP}و`, f: `${baseF}ó` }, ], ], @@ -363,7 +363,7 @@ function inflectRegularEmphasizedYayMasc(p: string, f: string): T.Inflections { [{ p, f }], [{ p: `${baseP}ي`, f: `${baseF}ée` }], [ - { p: `${baseP}یو`, f: `${baseF}íyo` }, + { p: `${baseP}یو`, f: `${baseF}úyo` }, { p: `${baseP}و`, f: `${baseF}ó` }, ], ], @@ -456,7 +456,7 @@ function inflectRegularUyFem(p: string, f: string): T.Inflections { [{ p, f: `${baseF}úy` }], [{ p, f: `${baseF}úy` }], [ - { p: `${baseP}یو`, f: `${baseF}íyo` }, + { p: `${baseP}یو`, f: `${baseF}úyo` }, { p: `${baseP}و`, f: `${baseF}ó` }, ], ],