diff options
author | polwex <polwex@sortug.com> | 2025-06-03 09:34:29 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-06-03 09:34:29 +0700 |
commit | 2401217a4019938d1c1cc61b6e33ccb233eb6e74 (patch) | |
tree | 06118284965be5cfd6b417dca86d46db5758217b /src/lib/types | |
parent | 2b80f7950df34f2a160135d7e20220a9b2ec3352 (diff) |
this is golden thanks claude
Diffstat (limited to 'src/lib/types')
-rw-r--r-- | src/lib/types/cards.ts | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/lib/types/cards.ts b/src/lib/types/cards.ts index 1a62a44..39e2b15 100644 --- a/src/lib/types/cards.ts +++ b/src/lib/types/cards.ts @@ -223,3 +223,35 @@ export enum SyllablePart { OTHER_OFFSET = "c", CODA = "$", } + +export type ProsodyWordDB = Omit<ProsodyWord, "syllables"> & { + syllables: string; +}; +export interface ProsodyWord { + id: number; + spelling: string; + frequency: number | null; + lang: string; + ipa: string; + tags: string; + syllables: ProsodySyllable[]; + notes: string | null; +} +// -o is spelling, -/ is ipa +export type ProsodySyllable = { + ipa: string; + spelling: string; + long: boolean; + notes: string | null; + onseto: string; + onset: string; + nucleuso: string; + nucleus: string; + codao: string; + coda: string; + rhymeo: string; + rhyme: string; + tonen: string; + tonenm: string; + tone: string; +}; |