From a3f24ea79b14394b24c4b60a010651eb29eeb872 Mon Sep 17 00:00:00 2001 From: polwex Date: Thu, 29 May 2025 12:10:22 +0700 Subject: glorious new db --- src/lib/types/cards.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/lib/types/cards.ts') diff --git a/src/lib/types/cards.ts b/src/lib/types/cards.ts index cef02d2..1a62a44 100644 --- a/src/lib/types/cards.ts +++ b/src/lib/types/cards.ts @@ -210,3 +210,16 @@ export type ExpressionSearchParams = { frequency?: { num: number; above: boolean }; type?: ExpressionType; }; + +export type SyllableRes = { input: string; result: SyllableToken[] }; +export type SyllableToken = [IPACharacter, SyllablePart]; +export type IPACharacter = string; // one char mostly +export enum SyllablePart { + INITIAL = "#", + OTHER_ONSET = "C", + VOWEL = "V", + OTHER_VOWEL = "v", + FINAL_VOWEL = ">", + OTHER_OFFSET = "c", + CODA = "$", +} -- cgit v1.2.3