Skip to content

Commit

Permalink
plural from for words like قاضۍ
Browse files Browse the repository at this point in the history
  • Loading branch information
adueck committed Jul 8, 2024
1 parent bec76a9 commit 635a2cd
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 8 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SKIP_PREFLIGHT_CHECK=true
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pashto-inflector",
"version": "7.1.6",
"version": "7.1.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",
Expand Down
4 changes: 2 additions & 2 deletions src/components/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lingdocs/ps-react",
"version": "7.1.6",
"version": "7.1.7",
"description": "Pashto inflector library module with React components",
"main": "dist/components/library.js",
"module": "dist/components/library.js",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lingdocs/inflect",
"version": "7.1.6",
"version": "7.1.7",
"description": "Pashto inflector library",
"main": "dist/index.js",
"types": "dist/lib/library.d.ts",
Expand Down
30 changes: 30 additions & 0 deletions src/lib/src/pashto-inflector.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,36 @@ const nouns: {
},
},
},
{
in: {
ts: 1527823526,
i: 12229,
p: "قاضۍ",
f: "qaazúy",
g: "kaazuy",
e: "female judge",
r: 4,
c: "n. f. anim.",
},
out: {
inflections: {
fem: [
[{ p: "قاضۍ", f: "qaazúy" }],
[{ p: "قاضۍ", f: "qaazúy" }],
[
{ p: "قاضیو", f: "qaazúyo" },
{ p: "قاضو", f: "qaazó" },
],
],
},
plural: {
fem: [
[{ p: "قاضیانې", f: "qaaziyáane" }],
[{ p: "قاضیانو", f: "qaaziyáano" }],
],
},
},
},
// Feminine regular ending in ا
{
in: {
Expand Down
5 changes: 4 additions & 1 deletion src/lib/src/pashto-inflector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,10 @@ function makePlural(
},
};
}
if (type === "fem noun" && endsWith({ p: "ي" }, w)) {
if (
type === "fem noun" &&
(endsWith({ p: "ي" }, w) || (endsWith({ p: "ۍ" }, w) && anim))
) {
return {
arabicPlural,
plural: {
Expand Down

1 comment on commit 635a2cd

@hkhalil98
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

I would like to communicate with you. I've left you an email here but I'm not 100% sure if this is your email: [email protected]

You can email me at [email protected]

(apologies for the out of the ordinary way of messaging)

Please sign in to comment.