diff --git a/package.json b/package.json index 5b8f07c..d79b950 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "3.9.1", + "version": "3.9.2", "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", diff --git a/src/lib/inflection-category.ts b/src/lib/inflection-category.ts index f8dc009..5a1fda9 100644 --- a/src/lib/inflection-category.ts +++ b/src/lib/inflection-category.ts @@ -1,4 +1,4 @@ -import { AdjectiveEntry, InflectionCategory, NounEntry } from "../types"; +import { AdjectiveEntry, InflectionPattern, NounEntry } from "../types"; import { isFemNounEntry, isNounEntry, @@ -10,18 +10,18 @@ import { isPattern6FemEntry, } from "./type-predicates"; -export function getInflectionCategory(e: NounEntry | AdjectiveEntry): InflectionCategory { +export function getInflectionPattern(e: NounEntry | AdjectiveEntry): InflectionPattern { return isPattern1Entry(e) - ? InflectionCategory.Basic + ? InflectionPattern.Basic : isPattern2Entry(e) - ? InflectionCategory.UnstressedEy + ? InflectionPattern.UnstressedEy : isPattern3Entry(e) - ? InflectionCategory.StressedEy + ? InflectionPattern.StressedEy : isPattern4Entry(e) - ? InflectionCategory.Pashtun + ? InflectionPattern.Pashtun : isPattern5Entry(e) - ? InflectionCategory.Squish + ? InflectionPattern.Squish : isNounEntry(e) && isFemNounEntry(e) && isPattern6FemEntry(e) - ? InflectionCategory.FemInanEe - : InflectionCategory.None; + ? InflectionPattern.FemInanEe + : InflectionPattern.None; } \ No newline at end of file diff --git a/src/library.ts b/src/library.ts index fc29f4e..7f3c30b 100644 --- a/src/library.ts +++ b/src/library.ts @@ -39,7 +39,7 @@ import Block, { NPBlock, APBlock } from "./components/blocks/Block"; import { roleIcon } from "./components/vp-explorer/VPExplorerExplanationModal"; import CompiledPTextDisplay from "./components/CompiledPTextDisplay"; import RenderedBlocksDisplay from "./components/RenderedBlocksDisplay"; -import { getInflectionCategory } from "./lib/inflection-category"; +import { getInflectionPattern } from "./lib/inflection-category"; import { makePsString, removeFVarients, @@ -262,7 +262,7 @@ export { blank, kidsBlank, isPashtoScript, - getInflectionCategory, + getInflectionPattern, // protobuf helpers readDictionary, writeDictionary, diff --git a/src/types.ts b/src/types.ts index 1f0433d..31e52c3 100644 --- a/src/types.ts +++ b/src/types.ts @@ -500,7 +500,7 @@ export type VerbEntry = { complement?: DictionaryEntry, }; -export enum InflectionCategory { +export enum InflectionPattern { None = 0, Basic = 1, UnstressedEy = 2,