From ee8e0598f46c9d40079cedbf7cda2f28edceed93 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Mon, 2 May 2022 15:45:24 -0500 Subject: [PATCH] up --- package.json | 2 +- src/types/gramm-types.d.ts | 67 -------------------------------------- 2 files changed, 1 insertion(+), 68 deletions(-) delete mode 100644 src/types/gramm-types.d.ts diff --git a/package.json b/package.json index b279a53..385027f 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "dependencies": { "@fortawesome/fontawesome-free": "^5.15.4", "@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/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", diff --git a/src/types/gramm-types.d.ts b/src/types/gramm-types.d.ts deleted file mode 100644 index eb6b6bd..0000000 --- a/src/types/gramm-types.d.ts +++ /dev/null @@ -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, -};