fix شو - sho problem with verbs
This commit is contained in:
parent
08500aa06c
commit
ef120b13aa
|
@ -1,18 +0,0 @@
|
||||||
name: "Test Nix"
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
push:
|
|
||||||
jobs:
|
|
||||||
tests:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: cachix/install-nix-action@v18
|
|
||||||
with:
|
|
||||||
nix_path: nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-23.05"
|
|
||||||
- uses: workflow/nix-shell-action@v3
|
|
||||||
with:
|
|
||||||
packages: nodejs_20,pandoc
|
|
||||||
script: |
|
|
||||||
node --version
|
|
||||||
pandoc --version
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "pashto-inflector",
|
"name": "pashto-inflector",
|
||||||
"version": "6.0.11",
|
"version": "6.0.12",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "pashto-inflector",
|
"name": "pashto-inflector",
|
||||||
"version": "6.0.11",
|
"version": "6.0.12",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "pashto-inflector",
|
"name": "pashto-inflector",
|
||||||
"version": "6.0.11",
|
"version": "6.0.12",
|
||||||
"author": "lingdocs.com",
|
"author": "lingdocs.com",
|
||||||
"description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations",
|
"description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations",
|
||||||
"homepage": "https://verbs.lingdocs.com",
|
"homepage": "https://verbs.lingdocs.com",
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "@lingdocs/ps-react",
|
"name": "@lingdocs/ps-react",
|
||||||
"version": "6.0.11",
|
"version": "6.0.12",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@lingdocs/ps-react",
|
"name": "@lingdocs/ps-react",
|
||||||
"version": "6.0.11",
|
"version": "6.0.12",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@formkit/auto-animate": "^1.0.0-beta.3",
|
"@formkit/auto-animate": "^1.0.0-beta.3",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@lingdocs/ps-react",
|
"name": "@lingdocs/ps-react",
|
||||||
"version": "6.0.11",
|
"version": "6.0.12",
|
||||||
"description": "Pashto inflector library module with React components",
|
"description": "Pashto inflector library module with React components",
|
||||||
"main": "dist/components/library.js",
|
"main": "dist/components/library.js",
|
||||||
"module": "dist/components/library.js",
|
"module": "dist/components/library.js",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@lingdocs/inflect",
|
"name": "@lingdocs/inflect",
|
||||||
"version": "6.0.11",
|
"version": "6.0.12",
|
||||||
"description": "Pashto inflector library",
|
"description": "Pashto inflector library",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/lib/library.d.ts",
|
"types": "dist/lib/library.d.ts",
|
||||||
|
|
|
@ -272,8 +272,8 @@ function addEnding({
|
||||||
vb: T.VBBasic,
|
vb: T.VBBasic,
|
||||||
end: T.SingleOrLengthOpts<T.PsString[]>
|
end: T.SingleOrLengthOpts<T.PsString[]>
|
||||||
): T.VBBasic {
|
): T.VBBasic {
|
||||||
// exceptional ending for راتلل, ورتلل, درتلل
|
|
||||||
if ("long" in vb.ps) {
|
if ("long" in vb.ps) {
|
||||||
|
// exceptional ending for راتلل, ورتلل, درتلل
|
||||||
// TODO: do we need a more thorough check?
|
// TODO: do we need a more thorough check?
|
||||||
if (vb.ps.short[0].f === "ghl" && pastThird && basicForm) {
|
if (vb.ps.short[0].f === "ghl" && pastThird && basicForm) {
|
||||||
return {
|
return {
|
||||||
|
@ -281,6 +281,16 @@ function addEnding({
|
||||||
ps: [{ p: "غی", f: "ghay" }],
|
ps: [{ p: "غی", f: "ghay" }],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
// exceptional ending for شو
|
||||||
|
if (vb.ps.short[0].f === "shw" && pastThird) {
|
||||||
|
return {
|
||||||
|
...vb,
|
||||||
|
ps: {
|
||||||
|
short: [{ p: "شو", f: "sho" }],
|
||||||
|
long: [{ p: "شولو", f: "shwulo" }],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const endShort = getLength(end, "short");
|
const endShort = getLength(end, "short");
|
||||||
|
|
Loading…
Reference in New Issue