export type ToneQuery = Array; export type MutationType = { change: string } | { keep: string }; export type MutationOrder = MutationType[]; export const thaiTones: Record = { "˧": "mid", "˨˩": "low", "˥˩": "falling", "˦˥": "high", "˩˩˦": "rising", }; export const thaiToneNums: Record = { "˧": 33, "˨˩": 21, "˥˩": 41, "˦˥": 45, "˩˩˦": 214, }; export type FullWordData = { id: number; spelling: string; frequency: number; phonetic: PhoneticData; senses: Sense[]; }; export type PhoneticData = { word_id: number; tone_sequence: string; // e.g. "1-4-3" syl_seq: string; // e.g. "pre-si-dent" syllable_count: number; syllables: Syllable[]; ipa: string; }; export type Sense = { confidence: number; examples: Example[]; categories: string[]; etymology: string; derivation: Derivation[]; pos: string; glosses: string[]; }; 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 Example = { ref: string; text: string }; export type Derivation = { type: string; text: string; tags: any };