export type Tone = { letters: string; numbers: number; name: string; }; export type Phoneme = { ipa: string; spelling: string; }; export type Syllable = { stressed: boolean; long: boolean; spelling: string; ipa: string; nucleus: Phoneme; onset: Phoneme; medial: Phoneme; coda: Phoneme; rhyme: Phoneme; tone: Tone; }; export type ToneQuery = Array; export type MutationType = { change: string } | { keep: string }; export type MutationOrder = MutationType[]; export type PhoneticData = { word_id: number; tone_sequence: string; syllable_count: number; syl_seq: string; spelling: string; ipa: string; frequency: number; }; export const thaiTones: Record = { "˧": "mid", "˨˩": "low", "˥˩": "falling", "˦˥": "high", "˩˩˦": "rising", }; export const thaiToneNums: Record = { "˧": 33, "˨˩": 21, "˥˩": 41, "˦˥": 45, "˩˩˦": 214, };