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",
|
||||
"version": "6.0.11",
|
||||
"version": "6.0.12",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "pashto-inflector",
|
||||
"version": "6.0.11",
|
||||
"version": "6.0.12",
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "pashto-inflector",
|
||||
"version": "6.0.11",
|
||||
"version": "6.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",
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@lingdocs/ps-react",
|
||||
"version": "6.0.11",
|
||||
"version": "6.0.12",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lingdocs/ps-react",
|
||||
"version": "6.0.11",
|
||||
"version": "6.0.12",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@formkit/auto-animate": "^1.0.0-beta.3",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lingdocs/ps-react",
|
||||
"version": "6.0.11",
|
||||
"version": "6.0.12",
|
||||
"description": "Pashto inflector library module with React components",
|
||||
"main": "dist/components/library.js",
|
||||
"module": "dist/components/library.js",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lingdocs/inflect",
|
||||
"version": "6.0.11",
|
||||
"version": "6.0.12",
|
||||
"description": "Pashto inflector library",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/lib/library.d.ts",
|
||||
|
|
|
@ -272,8 +272,8 @@ function addEnding({
|
|||
vb: T.VBBasic,
|
||||
end: T.SingleOrLengthOpts<T.PsString[]>
|
||||
): T.VBBasic {
|
||||
// exceptional ending for راتلل, ورتلل, درتلل
|
||||
if ("long" in vb.ps) {
|
||||
// exceptional ending for راتلل, ورتلل, درتلل
|
||||
// TODO: do we need a more thorough check?
|
||||
if (vb.ps.short[0].f === "ghl" && pastThird && basicForm) {
|
||||
return {
|
||||
|
@ -281,6 +281,16 @@ function addEnding({
|
|||
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");
|
||||
|
|
Loading…
Reference in New Issue