2021-11-01 17:50:17 +00:00
|
|
|
type EquativeTense = "present" | "subjunctive" | "past" | "future" | "wouldBe" | "pastSubjunctive";
|
|
|
|
type NounNumber = "singular" | "plural";
|
|
|
|
|
|
|
|
type EquativeClause = {
|
|
|
|
subject: NounPhrase,
|
|
|
|
predicate: NounPhrase | Compliment,
|
|
|
|
tense: EquativeTense,
|
2021-11-01 19:57:12 +00:00
|
|
|
negative?: boolean,
|
2021-11-01 17:50:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
type EquativeClauseOutput = {
|
|
|
|
subject: {
|
|
|
|
ps: (import("@lingdocs/pashto-inflector").Types.PsString)[],
|
|
|
|
e: string,
|
|
|
|
},
|
|
|
|
predicate: {
|
|
|
|
ps: (import("@lingdocs/pashto-inflector").Types.PsString)[],
|
|
|
|
e: string,
|
|
|
|
},
|
|
|
|
ba: boolean,
|
2021-11-01 19:57:12 +00:00
|
|
|
negative: boolean,
|
2021-11-01 17:50:17 +00:00
|
|
|
equative: {
|
|
|
|
ps: import("@lingdocs/pashto-inflector").Types.SentenceForm,
|
|
|
|
e: string[],
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
type NounPhrase = Pronoun | Noun | Participle;
|
|
|
|
|
2021-11-01 19:57:12 +00:00
|
|
|
// The gender and number can be added, if it conflicts with the noun it will be ignored
|
2021-11-01 17:50:17 +00:00
|
|
|
type Noun = {
|
2021-11-01 19:57:12 +00:00
|
|
|
type: "noun",
|
|
|
|
entry: NounEntry,
|
|
|
|
number?: NounNumber,
|
|
|
|
gender?: import("@lingdocs/pashto-inflector").Types.Gender,
|
2021-11-13 14:17:37 +00:00
|
|
|
possesor?: NounPhrase,
|
2021-11-01 17:50:17 +00:00
|
|
|
adjectives?: AdjectiveEntry[],
|
|
|
|
};
|
|
|
|
|
|
|
|
type Compliment = {
|
|
|
|
type: "compliment",
|
|
|
|
entry: AdjectiveEntry | LocativeAdverbEntry | NounEntry,
|
|
|
|
};
|
|
|
|
|
|
|
|
type Participle = {
|
|
|
|
type: "participle",
|
|
|
|
entry: VerbEntry,
|
2021-11-04 00:09:42 +00:00
|
|
|
np?: NounPhrase,
|
2021-11-01 17:50:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Pronoun = {
|
|
|
|
type: "pronoun",
|
|
|
|
pronounType: "near" | "far",
|
|
|
|
person: import("@lingdocs/pashto-inflector").Types.Person,
|
|
|
|
};
|