better accenting on inflections, will need to refactor with the cleaner isPatternXEntry predicates to do a fully proper job
This commit is contained in:
parent
85f249941b
commit
3cab8827ca
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@lingdocs/pashto-inflector",
|
"name": "@lingdocs/pashto-inflector",
|
||||||
"version": "1.3.5",
|
"version": "1.3.6",
|
||||||
"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",
|
||||||
|
|
|
@ -15,11 +15,13 @@ import * as T from "../types";
|
||||||
*
|
*
|
||||||
* @param s
|
* @param s
|
||||||
*/
|
*/
|
||||||
|
export function accentOnFront(s: T.PsString): T.PsString;
|
||||||
|
export function accentOnFront(s: T.LengthOptions<T.PsString>): T.LengthOptions<T.PsString>;
|
||||||
export function accentOnFront(s: T.SingleOrLengthOpts<T.PsString>): T.SingleOrLengthOpts<T.PsString> {
|
export function accentOnFront(s: T.SingleOrLengthOpts<T.PsString>): T.SingleOrLengthOpts<T.PsString> {
|
||||||
if ("long" in s) {
|
if ("long" in s) {
|
||||||
return {
|
return {
|
||||||
short: accentOnFront(s.short) as T.PsString,
|
short: accentOnFront(s.short),
|
||||||
long: accentOnFront(s.long) as T.PsString,
|
long: accentOnFront(s.long),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
@ -69,7 +71,10 @@ export function countSyllables(f: T.PsString | string): number {
|
||||||
* @param syls - an array of syllables in phonetic strings without accents (including spaces as extra items)
|
* @param syls - an array of syllables in phonetic strings without accents (including spaces as extra items)
|
||||||
* @param n - the number of syllables from the end to put the accent
|
* @param n - the number of syllables from the end to put the accent
|
||||||
*/
|
*/
|
||||||
export function accentFSylsOnNFromEnd(syls: string[], n: number): string {
|
export function accentFSylsOnNFromEnd(syls: string[] | string, n: number): string {
|
||||||
|
if (typeof syls === "string") {
|
||||||
|
return accentFSylsOnNFromEnd(splitUpSyllables(syls), n);
|
||||||
|
}
|
||||||
return [
|
return [
|
||||||
...syls.slice(0, syls.length-(n+1)), // before accent
|
...syls.slice(0, syls.length-(n+1)), // before accent
|
||||||
accentSyllable(syls[syls.length-(n+1)]), // syllable to be accented
|
accentSyllable(syls[syls.length-(n+1)]), // syllable to be accented
|
||||||
|
|
|
@ -15,7 +15,7 @@ import {
|
||||||
getPersonInflectionsKey,
|
getPersonInflectionsKey,
|
||||||
} from "./misc-helpers";
|
} from "./misc-helpers";
|
||||||
import * as T from "../types";
|
import * as T from "../types";
|
||||||
import { hasAccents, removeAccents } from "./accent-helpers";
|
import { accentFSylsOnNFromEnd, accentOnFront, hasAccents, removeAccents, splitUpSyllables } from "./accent-helpers";
|
||||||
import { phoneticsConsonants } from "./pashto-consonants";
|
import { phoneticsConsonants } from "./pashto-consonants";
|
||||||
import { simplifyPhonetics } from "./simplify-phonetics";
|
import { simplifyPhonetics } from "./simplify-phonetics";
|
||||||
|
|
||||||
|
|
|
@ -37,13 +37,13 @@ const adjectives: Array<{
|
||||||
inflections:{
|
inflections:{
|
||||||
masc: [
|
masc: [
|
||||||
[{p: "زوړ", f: "zoR"}],
|
[{p: "زوړ", f: "zoR"}],
|
||||||
[{p: "زاړه", f: "zaaRu"}],
|
[{p: "زاړه", f: "zaaRú"}],
|
||||||
[{p: "زړو", f: "zaRo"}],
|
[{p: "زړو", f: "zaRó"}],
|
||||||
],
|
],
|
||||||
fem: [
|
fem: [
|
||||||
[{p: "زړه", f: "zaRa"}],
|
[{p: "زړه", f: "zaRá"}],
|
||||||
[{p: "زړې", f: "zaRe"}],
|
[{p: "زړې", f: "zaRé"}],
|
||||||
[{p: "زړو", f: "zaRo"}],
|
[{p: "زړو", f: "zaRó"}],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -116,12 +116,12 @@ const adjectives: Array<{
|
||||||
masc: [
|
masc: [
|
||||||
[{p: "سپک", f: "spuk"}],
|
[{p: "سپک", f: "spuk"}],
|
||||||
[{p: "سپک", f: "spuk"}],
|
[{p: "سپک", f: "spuk"}],
|
||||||
[{p: "سپکو", f: "spuko"}],
|
[{p: "سپکو", f: "spúko"}],
|
||||||
],
|
],
|
||||||
fem: [
|
fem: [
|
||||||
[{p: "سپکه", f: "spuka"}],
|
[{p: "سپکه", f: "spúka"}],
|
||||||
[{p: "سپکې", f: "spuke"}],
|
[{p: "سپکې", f: "spúke"}],
|
||||||
[{p: "سپکو", f: "spuko"}],
|
[{p: "سپکو", f: "spúko"}],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -141,12 +141,12 @@ const adjectives: Array<{
|
||||||
masc: [
|
masc: [
|
||||||
[{p: "لوی", f: "looy"}],
|
[{p: "لوی", f: "looy"}],
|
||||||
[{p: "لوی", f: "looy"}],
|
[{p: "لوی", f: "looy"}],
|
||||||
[{p: "لویو", f: "looyo"}],
|
[{p: "لویو", f: "lóoyo"}],
|
||||||
],
|
],
|
||||||
fem: [
|
fem: [
|
||||||
[{p: "لویه", f: "looya"}],
|
[{p: "لویه", f: "lóoya"}],
|
||||||
[{p: "لویې", f: "looye"}],
|
[{p: "لویې", f: "lóoye"}],
|
||||||
[{p: "لویو", f: "looyo"}],
|
[{p: "لویو", f: "lóoyo"}],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -166,12 +166,12 @@ const adjectives: Array<{
|
||||||
masc: [
|
masc: [
|
||||||
[{p: "پوه", f: "poh"}],
|
[{p: "پوه", f: "poh"}],
|
||||||
[{p: "پوه", f: "poh"}],
|
[{p: "پوه", f: "poh"}],
|
||||||
[{p: "پوهو", f: "poho"}],
|
[{p: "پوهو", f: "póho"}],
|
||||||
],
|
],
|
||||||
fem: [
|
fem: [
|
||||||
[{p: "پوهه", f: "poha"}],
|
[{p: "پوهه", f: "póha"}],
|
||||||
[{p: "پوهې", f: "pohe"}],
|
[{p: "پوهې", f: "póhe"}],
|
||||||
[{p: "پوهو", f: "poho"}],
|
[{p: "پوهو", f: "póho"}],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -210,12 +210,12 @@ const adjectives: Array<{
|
||||||
masc: [
|
masc: [
|
||||||
[{ p: "شپږ", f: "shpuG" }],
|
[{ p: "شپږ", f: "shpuG" }],
|
||||||
[{ p: "شپږ", f: "shpuG" }],
|
[{ p: "شپږ", f: "shpuG" }],
|
||||||
[{ p: "شپږو", f: "shpuGo" }],
|
[{ p: "شپږو", f: "shpúGo" }],
|
||||||
],
|
],
|
||||||
fem: [
|
fem: [
|
||||||
[{ p: "شپږه", f: "shpuGa" }],
|
[{ p: "شپږه", f: "shpúGa" }],
|
||||||
[{ p: "شپږې", f: "shpuGe" }],
|
[{ p: "شپږې", f: "shpúGe" }],
|
||||||
[{ p: "شپږو", f: "shpuGo" }],
|
[{ p: "شپږو", f: "shpúGo" }],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -279,12 +279,12 @@ const adjectives: Array<{
|
||||||
masc: [
|
masc: [
|
||||||
[{ p: "ګډ وډ", f: "guD wuD" }],
|
[{ p: "ګډ وډ", f: "guD wuD" }],
|
||||||
[{ p: "ګډ وډ", f: "guD wuD" }],
|
[{ p: "ګډ وډ", f: "guD wuD" }],
|
||||||
[{ p: "ګډو وډو", f: "guDo wuDo" }],
|
[{ p: "ګډو وډو", f: "gúDo wúDo" }],
|
||||||
],
|
],
|
||||||
fem: [
|
fem: [
|
||||||
[{ p: "ګډه وډه", f: "guDa wuDa" }],
|
[{ p: "ګډه وډه", f: "gúDa wúDa" }],
|
||||||
[{ p: "ګډې وډې", f: "guDe wuDe" }],
|
[{ p: "ګډې وډې", f: "gúDe wúDe" }],
|
||||||
[{ p: "ګډو وډو", f: "guDo wuDo" }],
|
[{ p: "ګډو وډو", f: "gúDo wúDo" }],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -315,13 +315,13 @@ const nouns: Array<{
|
||||||
inflections: {
|
inflections: {
|
||||||
masc: [
|
masc: [
|
||||||
[{p: "مېلمه", f: "melmá"}],
|
[{p: "مېلمه", f: "melmá"}],
|
||||||
[{p: "مېلمانه", f: "melmaanu"}],
|
[{p: "مېلمانه", f: "melmaanú"}],
|
||||||
[{p: "مېلمنو", f: "melmano"}],
|
[{p: "مېلمنو", f: "melmanó"}],
|
||||||
],
|
],
|
||||||
fem: [
|
fem: [
|
||||||
[{p: "مېلمنه", f: "melmana"}],
|
[{p: "مېلمنه", f: "melmaná"}],
|
||||||
[{p: "مېلمنې", f: "melmane"}],
|
[{p: "مېلمنې", f: "melmané"}],
|
||||||
[{p: "مېلمنو", f: "melmano"}],
|
[{p: "مېلمنو", f: "melmanó"}],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -392,12 +392,12 @@ const nouns: Array<{
|
||||||
masc: [
|
masc: [
|
||||||
[{p: "چرګ", f: "churg"}],
|
[{p: "چرګ", f: "churg"}],
|
||||||
[{p: "چرګ", f: "churg"}],
|
[{p: "چرګ", f: "churg"}],
|
||||||
[{p: "چرګو", f: "churgo"}],
|
[{p: "چرګو", f: "chúrgo"}],
|
||||||
],
|
],
|
||||||
fem: [
|
fem: [
|
||||||
[{p: "چرګه", f: "churga"}],
|
[{p: "چرګه", f: "chúrga"}],
|
||||||
[{p: "چرګې", f: "churge"}],
|
[{p: "چرګې", f: "chúrge"}],
|
||||||
[{p: "چرګو", f: "churgo"}],
|
[{p: "چرګو", f: "chúrgo"}],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
plural: {
|
plural: {
|
||||||
|
@ -531,8 +531,8 @@ const nouns: Array<{
|
||||||
inflections: {
|
inflections: {
|
||||||
masc: [
|
masc: [
|
||||||
[{p: "لمونځ", f: "lamoondz"}],
|
[{p: "لمونځ", f: "lamoondz"}],
|
||||||
[{p: "لمانځه", f: "lamaandzu"}],
|
[{p: "لمانځه", f: "lamaandzú"}],
|
||||||
[{p: "لمنځو", f: "lamandzo"}],
|
[{p: "لمنځو", f: "lamandzó"}],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
plural: {
|
plural: {
|
||||||
|
@ -551,7 +551,7 @@ const nouns: Array<{
|
||||||
masc: [
|
masc: [
|
||||||
[{ p: "غر", f: "ghar" }],
|
[{ p: "غر", f: "ghar" }],
|
||||||
[{ p: "غره", f: "ghru" }],
|
[{ p: "غره", f: "ghru" }],
|
||||||
[{ p: "غرو", f: "ghro" }],
|
[{ p: "غرو", f: "ghró" }],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
plural: {
|
plural: {
|
||||||
|
@ -567,15 +567,16 @@ const nouns: Array<{
|
||||||
in: {"i":5465,"ts":1527812802,"p":"خر","f":"khur","g":"khur","e":"donkey","c":"n. m. anim. unisex irreg.","infap":"خره","infaf":"khru","infbp":"خر","infbf":"khr"},
|
in: {"i":5465,"ts":1527812802,"p":"خر","f":"khur","g":"khur","e":"donkey","c":"n. m. anim. unisex irreg.","infap":"خره","infaf":"khru","infbp":"خر","infbf":"khr"},
|
||||||
out: {
|
out: {
|
||||||
inflections: {
|
inflections: {
|
||||||
|
// TODO: use smarter system using new isType5Entry predicates, to allow for not using the redundant one syllable accents with these
|
||||||
masc: [
|
masc: [
|
||||||
[{ p: "خر", f: "khur" }],
|
[{ p: "خر", f: "khur" }],
|
||||||
[{ p: "خره", f: "khru" }],
|
[{ p: "خره", f: "khrú" }],
|
||||||
[{ p: "خرو", f: "khro" }],
|
[{ p: "خرو", f: "khró" }],
|
||||||
],
|
],
|
||||||
fem: [
|
fem: [
|
||||||
[{ p: "خره", f: "khra" }],
|
[{ p: "خره", f: "khrá" }],
|
||||||
[{ p: "خرې", f: "khre" }],
|
[{ p: "خرې", f: "khré" }],
|
||||||
[{ p: "خرو", f: "khro" }],
|
[{ p: "خرو", f: "khró" }],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -961,8 +962,8 @@ const nouns: Array<{
|
||||||
inflections: {
|
inflections: {
|
||||||
fem: [
|
fem: [
|
||||||
[{p: "لار", f: "laar"}],
|
[{p: "لار", f: "laar"}],
|
||||||
[{p: "لارې", f: "laare"}],
|
[{p: "لارې", f: "láare"}],
|
||||||
[{p: "لارو", f: "laaro"}],
|
[{p: "لارو", f: "láaro"}],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -23,10 +23,13 @@ import {
|
||||||
endsWith,
|
endsWith,
|
||||||
} from "./p-text-helpers";
|
} from "./p-text-helpers";
|
||||||
import {
|
import {
|
||||||
|
accentFSylsOnNFromEnd,
|
||||||
hasAccents,
|
hasAccents,
|
||||||
removeAccents,
|
removeAccents,
|
||||||
|
splitUpSyllables,
|
||||||
} from "./accent-helpers";
|
} from "./accent-helpers";
|
||||||
import * as T from "../types";
|
import * as T from "../types";
|
||||||
|
import { splitFIntoPhonemes } from "./phonetics-to-diacritics";
|
||||||
|
|
||||||
const endingInSingleARegex = /[^a]'?’?[aá]'?’?$/;
|
const endingInSingleARegex = /[^a]'?’?[aá]'?’?$/;
|
||||||
const endingInHeyOrAynRegex = /[^ا][هع]$/;
|
const endingInHeyOrAynRegex = /[^ا][هع]$/;
|
||||||
|
@ -179,16 +182,19 @@ function handleFemNoun(word: T.DictionaryEntryNoFVars): T.InflectorOutput {
|
||||||
|
|
||||||
// LEVEL 3 FUNCTIONS
|
// LEVEL 3 FUNCTIONS
|
||||||
function inflectIrregularUnisex(p: string, f: string, inflections: Array<{p: string, f: string}>): T.Inflections {
|
function inflectIrregularUnisex(p: string, f: string, inflections: Array<{p: string, f: string}>): T.Inflections {
|
||||||
|
const inf1 = removeAccents(inflections[1]);
|
||||||
|
const inf0syls = splitFIntoPhonemes(inflections[0].f);
|
||||||
|
const inf0f = accentFSylsOnNFromEnd(inf0syls, 0);
|
||||||
return {
|
return {
|
||||||
masc: [
|
masc: [
|
||||||
[{p, f}],
|
[{p, f}],
|
||||||
[{p: inflections[0].p, f: inflections[0].f}],
|
[{p: inflections[0].p, f: inf0f, }],
|
||||||
[{p: `${inflections[1].p}و`, f: `${inflections[1].f}o`}],
|
[{p: `${inf1.p}و`, f: `${inf1.f}ó`}],
|
||||||
],
|
],
|
||||||
fem: [
|
fem: [
|
||||||
[{p: `${inflections[1].p}ه`, f: `${inflections[1].f}a`}],
|
[{p: `${inf1.p}ه`, f: `${inf1.f}á`}],
|
||||||
[{p: `${inflections[1].p}ې`, f: `${inflections[1].f}e`}],
|
[{p: `${inf1.p}ې`, f: `${inf1.f}é`}],
|
||||||
[{p: `${inflections[1].p}و`, f: `${inflections[1].f}o`}],
|
[{p: `${inf1.p}و`, f: `${inf1.f}ó`}],
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -256,16 +262,20 @@ function inflectEmphasizedYeyUnisex(p: string, f: string): T.UnisexInflections {
|
||||||
}
|
}
|
||||||
|
|
||||||
function inflectConsonantEndingUnisex(p: string, f: string): T.UnisexInflections {
|
function inflectConsonantEndingUnisex(p: string, f: string): T.UnisexInflections {
|
||||||
|
const fSyls = splitUpSyllables(f);
|
||||||
|
const iBase = fSyls.length === 1
|
||||||
|
? makePsString(p, accentFSylsOnNFromEnd(fSyls, 0))
|
||||||
|
: makePsString(p, f);
|
||||||
return {
|
return {
|
||||||
masc: [
|
masc: [
|
||||||
[{p, f}],
|
[{p, f}],
|
||||||
[{p, f}],
|
[{p, f}],
|
||||||
[{p: `${p}و`, f: `${f}o`}],
|
[{p: `${iBase.p}و`, f: `${iBase.f}o`}],
|
||||||
],
|
],
|
||||||
fem: [
|
fem: [
|
||||||
[{p: `${p}ه`, f: `${f}a`}],
|
[{p: `${iBase.p}ه`, f: `${iBase.f}a`}],
|
||||||
[{p: `${p}ې`, f: `${f}e`}],
|
[{p: `${iBase.p}ې`, f: `${iBase.f}e`}],
|
||||||
[{p: `${p}و`, f: `${f}o`}],
|
[{p: `${iBase.p}و`, f: `${iBase.f}o`}],
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -313,11 +323,14 @@ function inflectRegularEmphasizedYeyMasc(p: string, f: string): T.Inflections {
|
||||||
}
|
}
|
||||||
|
|
||||||
function inflectIrregularMasc(p: string, f: string, inflections: Array<{p: string, f: string}>): T.Inflections {
|
function inflectIrregularMasc(p: string, f: string, inflections: Array<{p: string, f: string}>): T.Inflections {
|
||||||
|
const inf0f = splitUpSyllables(inflections[0].f).length > 1
|
||||||
|
? accentFSylsOnNFromEnd(inflections[0].f, 0)
|
||||||
|
: inflections[0].f
|
||||||
return {
|
return {
|
||||||
masc: [
|
masc: [
|
||||||
[{p, f}],
|
[{p, f}],
|
||||||
[{p: inflections[0].p, f: inflections[0].f}],
|
[{p: inflections[0].p, f: inf0f}],
|
||||||
[{p: `${inflections[1].p}و`, f: `${inflections[1].f}o`}],
|
[{p: `${inflections[1].p}و`, f: `${removeAccents(inflections[1].f)}ó`}],
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -348,11 +361,14 @@ function inflectRegularAWithHimPEnding(p: string, f: string): T.Inflections {
|
||||||
}
|
}
|
||||||
|
|
||||||
function inflectRegularInanMissingAFem(p: string, f: string): T.Inflections {
|
function inflectRegularInanMissingAFem(p: string, f: string): T.Inflections {
|
||||||
return {
|
const fBase = splitUpSyllables(f).length === 1
|
||||||
|
? accentFSylsOnNFromEnd(f, 0)
|
||||||
|
: f;
|
||||||
|
return {
|
||||||
fem: [
|
fem: [
|
||||||
[{p, f}],
|
[{p, f}],
|
||||||
[{p: `${p}ې`, f: `${f}e`}],
|
[{p: `${p}ې`, f: `${fBase}e`}],
|
||||||
[{p: `${p}و`, f: `${f}o`}],
|
[{p: `${p}و`, f: `${fBase}o`}],
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -520,7 +536,6 @@ function makePlural(w: T.DictionaryEntryNoFVars): { plural: T.PluralInflections
|
||||||
? "fem noun"
|
? "fem noun"
|
||||||
: "other";
|
: "other";
|
||||||
if (pashtoPlural) return {
|
if (pashtoPlural) return {
|
||||||
// TODO: add the pashto plural to words like پلویان but not to words like ترورزامن ?
|
|
||||||
plural: pashtoPlural,
|
plural: pashtoPlural,
|
||||||
arabicPlural,
|
arabicPlural,
|
||||||
};
|
};
|
||||||
|
|
|
@ -822,19 +822,19 @@ const toTest = [
|
||||||
mini: { p: "پوخ ک", f: "pokh k" },
|
mini: { p: "پوخ ک", f: "pokh k" },
|
||||||
},
|
},
|
||||||
mascPlur: {
|
mascPlur: {
|
||||||
long: { p: "پاخه کړل", f: "paakhu kRul" },
|
long: { p: "پاخه کړل", f: "paakhú kRul" },
|
||||||
short: { p: "پاخه کړ", f: "paakhu kR" },
|
short: { p: "پاخه کړ", f: "paakhú kR" },
|
||||||
mini: { p: "پاخه ک", f: "paakhu k" },
|
mini: { p: "پاخه ک", f: "paakhú k" },
|
||||||
},
|
},
|
||||||
femSing: {
|
femSing: {
|
||||||
long: { p: "پخه کړل", f: "pakha kRul" },
|
long: { p: "پخه کړل", f: "pakhá kRul" },
|
||||||
short: { p: "پخه کړ", f: "pakha kR" },
|
short: { p: "پخه کړ", f: "pakhá kR" },
|
||||||
mini: { p: "پخه ک", f: "pakha k" },
|
mini: { p: "پخه ک", f: "pakhá k" },
|
||||||
},
|
},
|
||||||
femPlur: {
|
femPlur: {
|
||||||
long: { p: "پخې کړل", f: "pakhe kRul" },
|
long: { p: "پخې کړل", f: "pakhé kRul" },
|
||||||
short: { p: "پخې کړ", f: "pakhe kR" },
|
short: { p: "پخې کړ", f: "pakhé kR" },
|
||||||
mini: { p: "پخې ک", f: "pakhe k" },
|
mini: { p: "پخې ک", f: "pakhé k" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
perfectiveSplit: {
|
perfectiveSplit: {
|
||||||
|
@ -844,19 +844,19 @@ const toTest = [
|
||||||
mini: [{ p: "پوخ ", f: "pokh " }, { p: "ک", f: "k" }],
|
mini: [{ p: "پوخ ", f: "pokh " }, { p: "ک", f: "k" }],
|
||||||
},
|
},
|
||||||
mascPlur: {
|
mascPlur: {
|
||||||
long: [{ p: "پاخه ", f: "paakhu " }, { p: "کړل", f: "kRul" }],
|
long: [{ p: "پاخه ", f: "paakhú " }, { p: "کړل", f: "kRul" }],
|
||||||
short: [{ p: "پاخه ", f: "paakhu " }, { p: "کړ", f: "kR" }],
|
short: [{ p: "پاخه ", f: "paakhú " }, { p: "کړ", f: "kR" }],
|
||||||
mini: [{ p: "پاخه ", f: "paakhu " }, { p: "ک", f: "k" }],
|
mini: [{ p: "پاخه ", f: "paakhú " }, { p: "ک", f: "k" }],
|
||||||
},
|
},
|
||||||
femSing: {
|
femSing: {
|
||||||
long: [{ p: "پخه ", f: "pakha " }, { p: "کړل", f: "kRul" }],
|
long: [{ p: "پخه ", f: "pakhá " }, { p: "کړل", f: "kRul" }],
|
||||||
short: [{ p: "پخه ", f: "pakha " }, { p: "کړ", f: "kR" }],
|
short: [{ p: "پخه ", f: "pakhá " }, { p: "کړ", f: "kR" }],
|
||||||
mini: [{ p: "پخه ", f: "pakha " }, { p: "ک", f: "k" }],
|
mini: [{ p: "پخه ", f: "pakhá " }, { p: "ک", f: "k" }],
|
||||||
},
|
},
|
||||||
femPlur: {
|
femPlur: {
|
||||||
long: [{ p: "پخې ", f: "pakhe " }, { p: "کړل", f: "kRul" }],
|
long: [{ p: "پخې ", f: "pakhé " }, { p: "کړل", f: "kRul" }],
|
||||||
short: [{ p: "پخې ", f: "pakhe " }, { p: "کړ", f: "kR" }],
|
short: [{ p: "پخې ", f: "pakhé " }, { p: "کړ", f: "kR" }],
|
||||||
mini: [{ p: "پخې ", f: "pakhe " }, { p: "ک", f: "k" }],
|
mini: [{ p: "پخې ", f: "pakhé " }, { p: "ک", f: "k" }],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -868,16 +868,16 @@ const toTest = [
|
||||||
short: { p: "پوخ ک", f: "pokh k" },
|
short: { p: "پوخ ک", f: "pokh k" },
|
||||||
},
|
},
|
||||||
mascPlur: {
|
mascPlur: {
|
||||||
long: { p: "پاخه کړ", f: "paakhu kR" },
|
long: { p: "پاخه کړ", f: "paakhú kR" },
|
||||||
short: { p: "پاخه ک", f: "paakhu k" },
|
short: { p: "پاخه ک", f: "paakhú k" },
|
||||||
},
|
},
|
||||||
femSing: {
|
femSing: {
|
||||||
long: { p: "پخه کړ", f: "pakha kR" },
|
long: { p: "پخه کړ", f: "pakhá kR" },
|
||||||
short: { p: "پخه ک", f: "pakha k" },
|
short: { p: "پخه ک", f: "pakhá k" },
|
||||||
},
|
},
|
||||||
femPlur: {
|
femPlur: {
|
||||||
long: { p: "پخې کړ", f: "pakhe kR" },
|
long: { p: "پخې کړ", f: "pakhé kR" },
|
||||||
short: { p: "پخې ک", f: "pakhe k" },
|
short: { p: "پخې ک", f: "pakhé k" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
perfectiveSplit: {
|
perfectiveSplit: {
|
||||||
|
@ -886,16 +886,16 @@ const toTest = [
|
||||||
short: [{ p: "پوخ ", f: "pokh " }, { p: "ک", f: "k" }],
|
short: [{ p: "پوخ ", f: "pokh " }, { p: "ک", f: "k" }],
|
||||||
},
|
},
|
||||||
mascPlur: {
|
mascPlur: {
|
||||||
long: [{ p: "پاخه ", f: "paakhu " }, { p: "کړ", f: "kR" }],
|
long: [{ p: "پاخه ", f: "paakhú " }, { p: "کړ", f: "kR" }],
|
||||||
short: [{ p: "پاخه ", f: "paakhu " }, { p: "ک", f: "k" }],
|
short: [{ p: "پاخه ", f: "paakhú " }, { p: "ک", f: "k" }],
|
||||||
},
|
},
|
||||||
femSing: {
|
femSing: {
|
||||||
long: [{ p: "پخه ", f: "pakha " }, { p: "کړ", f: "kR" }],
|
long: [{ p: "پخه ", f: "pakhá " }, { p: "کړ", f: "kR" }],
|
||||||
short: [{ p: "پخه ", f: "pakha " }, { p: "ک", f: "k" }],
|
short: [{ p: "پخه ", f: "pakhá " }, { p: "ک", f: "k" }],
|
||||||
},
|
},
|
||||||
femPlur: {
|
femPlur: {
|
||||||
long: [{ p: "پخې ", f: "pakhe " }, { p: "کړ", f: "kR" }],
|
long: [{ p: "پخې ", f: "pakhé " }, { p: "کړ", f: "kR" }],
|
||||||
short: [{ p: "پخې ", f: "pakhe " }, { p: "ک", f: "k" }],
|
short: [{ p: "پخې ", f: "pakhé " }, { p: "ک", f: "k" }],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -903,21 +903,21 @@ const toTest = [
|
||||||
present: { p: "پخوونکی", f: "pakhawóonkey" },
|
present: { p: "پخوونکی", f: "pakhawóonkey" },
|
||||||
past: {
|
past: {
|
||||||
mascSing: { p: "پوخ کړی", f: "pokh kúRey" },
|
mascSing: { p: "پوخ کړی", f: "pokh kúRey" },
|
||||||
mascPlur: { p: "پاخه کړي", f: "paakhu kúRee" },
|
mascPlur: { p: "پاخه کړي", f: "paakhú kúRee" },
|
||||||
femSing: { p: "پخه کړې", f: "pakha kúRe" },
|
femSing: { p: "پخه کړې", f: "pakhá kúRe" },
|
||||||
femPlur: { p: "پخې کړې", f: "pakhe kúRe" },
|
femPlur: { p: "پخې کړې", f: "pakhé kúRe" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
complement: {
|
complement: {
|
||||||
masc: [
|
masc: [
|
||||||
[{ p: "پوخ", f: "pokh" }],
|
[{ p: "پوخ", f: "pokh" }],
|
||||||
[{ p: "پاخه", f: "paakhu" }],
|
[{ p: "پاخه", f: "paakhú" }],
|
||||||
[{ p: "پخو", f: "pakho" }],
|
[{ p: "پخو", f: "pakhó" }],
|
||||||
],
|
],
|
||||||
fem: [
|
fem: [
|
||||||
[{ p: "پخه", f: "pakha" }],
|
[{ p: "پخه", f: "pakhá" }],
|
||||||
[{ p: "پخې", f: "pakhe" }],
|
[{ p: "پخې", f: "pakhé" }],
|
||||||
[{ p: "پخو", f: "pakho" }],
|
[{ p: "پخو", f: "pakhó" }],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1510,29 +1510,29 @@ const toTest = [
|
||||||
short: { p: "لاړې تېرو", f: "laaRe teraw" },
|
short: { p: "لاړې تېرو", f: "laaRe teraw" },
|
||||||
},
|
},
|
||||||
perfective: {
|
perfective: {
|
||||||
long: { p: "لاړې تېرې کړل", f: "laaRe tere kRul" },
|
long: { p: "لاړې تېرې کړل", f: "laaRe tére kRul" },
|
||||||
short: { p: "لاړې تېرې کړ", f: "laaRe tere kR" },
|
short: { p: "لاړې تېرې کړ", f: "laaRe tére kR" },
|
||||||
mini: { p: "لاړې تېرې ک", f: "laaRe tere k" },
|
mini: { p: "لاړې تېرې ک", f: "laaRe tére k" },
|
||||||
},
|
},
|
||||||
perfectiveSplit: {
|
perfectiveSplit: {
|
||||||
long: [{ p: "لاړې تېرې ", f: "laaRe tere " }, { p: "کړل", f: "kRul" }],
|
long: [{ p: "لاړې تېرې ", f: "laaRe tére " }, { p: "کړل", f: "kRul" }],
|
||||||
short: [{ p: "لاړې تېرې ", f: "laaRe tere " }, { p: "کړ", f: "kR" }],
|
short: [{ p: "لاړې تېرې ", f: "laaRe tére " }, { p: "کړ", f: "kR" }],
|
||||||
mini: [{ p: "لاړې تېرې ", f: "laaRe tere " }, { p: "ک", f: "k" }],
|
mini: [{ p: "لاړې تېرې ", f: "laaRe tére " }, { p: "ک", f: "k" }],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
stem: {
|
stem: {
|
||||||
imperfective: { p: "لاړې تېرو", f: "laaRe teraw" },
|
imperfective: { p: "لاړې تېرو", f: "laaRe teraw" },
|
||||||
perfective: {
|
perfective: {
|
||||||
long: { p: "لاړې تېرې کړ", f: "laaRe tere kR" },
|
long: { p: "لاړې تېرې کړ", f: "laaRe tére kR" },
|
||||||
short: { p: "لاړې تېرې ک", f: "laaRe tere k" },
|
short: { p: "لاړې تېرې ک", f: "laaRe tére k" },
|
||||||
},
|
},
|
||||||
perfectiveSplit: {
|
perfectiveSplit: {
|
||||||
long: [{ p: "لاړې تېرې ", f: "laaRe tere " }, { p: "کړ", f: "kR" }],
|
long: [{ p: "لاړې تېرې ", f: "laaRe tére " }, { p: "کړ", f: "kR" }],
|
||||||
short: [{ p: "لاړې تېرې ", f: "laaRe tere " }, { p: "ک", f: "k" }],
|
short: [{ p: "لاړې تېرې ", f: "laaRe tére " }, { p: "ک", f: "k" }],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
participle: {
|
participle: {
|
||||||
past: { p: "لاړې تېرې کړې", f: "laaRe tere kúRe" },
|
past: { p: "لاړې تېرې کړې", f: "laaRe tére kúRe" },
|
||||||
present: { p: "لاړې تېروونکی", f: "laaRe terawóonkey" },
|
present: { p: "لاړې تېروونکی", f: "laaRe terawóonkey" },
|
||||||
},
|
},
|
||||||
objComplement: {
|
objComplement: {
|
||||||
|
|
Loading…
Reference in New Issue