diff options
author | polwex <polwex@sortug.com> | 2025-05-29 12:10:22 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-05-29 12:10:22 +0700 |
commit | a3f24ea79b14394b24c4b60a010651eb29eeb872 (patch) | |
tree | cb1c4937084116f66a59727ee752afd974714c8e /src/lib/types/cards.ts | |
parent | 7abf2227438362ad30820ee236405ec1b57a40b6 (diff) |
glorious new db
Diffstat (limited to 'src/lib/types/cards.ts')
-rw-r--r-- | src/lib/types/cards.ts | 13 |
1 files changed, 13 insertions, 0 deletions
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 = "$", +} |