summaryrefslogtreecommitdiff
path: root/src/lib/types/phonetics.ts
blob: f7289c753043a16cf05a0fbd59d0d35d30acf825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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<string | null>;
export type MutationType = { change: string } | { keep: string };
export type MutationOrder = MutationType[];