This commit is contained in:
parent
630380bd79
commit
ee8e0598f4
|
@ -5,7 +5,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-free": "^5.15.4",
|
"@fortawesome/fontawesome-free": "^5.15.4",
|
||||||
"@lingdocs/lingdocs-main": "^0.2.0",
|
"@lingdocs/lingdocs-main": "^0.2.0",
|
||||||
"@lingdocs/pashto-inflector": "^2.3.4",
|
"@lingdocs/pashto-inflector": "^2.3.5",
|
||||||
"@testing-library/jest-dom": "^5.11.4",
|
"@testing-library/jest-dom": "^5.11.4",
|
||||||
"@testing-library/react": "^11.1.0",
|
"@testing-library/react": "^11.1.0",
|
||||||
"@testing-library/user-event": "^12.1.10",
|
"@testing-library/user-event": "^12.1.10",
|
||||||
|
|
|
@ -1,67 +0,0 @@
|
||||||
// TODO: I think this is just used for the old equative explorer
|
|
||||||
// build a new better equative explorer using NP Pickers etc and deprecate all this
|
|
||||||
|
|
||||||
type EPSelection = {
|
|
||||||
subject: NPSelection,
|
|
||||||
predicate: NPSelection | EComplementSelection,
|
|
||||||
equative: {
|
|
||||||
tense: EquativeTense,
|
|
||||||
negative: boolean,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
type EquativeTense = "present" | "subjunctive" | "habitual" | "past" | "future" | "wouldBe" | "pastSubjunctive";
|
|
||||||
type NounNumber = "singular" | "plural";
|
|
||||||
|
|
||||||
type EquativeClause = {
|
|
||||||
subject: NounPhrase,
|
|
||||||
predicate: NounPhrase | Compliment,
|
|
||||||
tense: EquativeTense,
|
|
||||||
negative?: boolean,
|
|
||||||
};
|
|
||||||
|
|
||||||
type EquativeClauseOutput = {
|
|
||||||
subject: {
|
|
||||||
ps: (import("@lingdocs/pashto-inflector").Types.PsString)[],
|
|
||||||
e: string,
|
|
||||||
},
|
|
||||||
predicate: {
|
|
||||||
ps: (import("@lingdocs/pashto-inflector").Types.PsString)[],
|
|
||||||
e: string,
|
|
||||||
},
|
|
||||||
ba: boolean,
|
|
||||||
negative: boolean,
|
|
||||||
equative: {
|
|
||||||
ps: import("@lingdocs/pashto-inflector").Types.SentenceForm,
|
|
||||||
e: string[],
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
type NounPhrase = Pronoun | Noun | Participle;
|
|
||||||
|
|
||||||
// The gender and number can be added, if it conflicts with the noun it will be ignored
|
|
||||||
type Noun = {
|
|
||||||
type: "noun",
|
|
||||||
entry: NounEntry,
|
|
||||||
number?: NounNumber,
|
|
||||||
gender?: import("@lingdocs/pashto-inflector").Types.Gender,
|
|
||||||
possesor?: NounPhrase,
|
|
||||||
adjectives?: AdjectiveEntry[],
|
|
||||||
};
|
|
||||||
|
|
||||||
type Compliment = {
|
|
||||||
type: "compliment",
|
|
||||||
entry: AdjectiveEntry | LocativeAdverbEntry | NounEntry,
|
|
||||||
};
|
|
||||||
|
|
||||||
type Participle = {
|
|
||||||
type: "participle",
|
|
||||||
entry: VerbEntry,
|
|
||||||
np?: NounPhrase,
|
|
||||||
}
|
|
||||||
|
|
||||||
type Pronoun = {
|
|
||||||
type: "pronoun",
|
|
||||||
pronounType: "near" | "far",
|
|
||||||
person: import("@lingdocs/pashto-inflector").Types.Person,
|
|
||||||
};
|
|
Loading…
Reference in New Issue