summaryrefslogtreecommitdiff
path: root/src/lib/types/cards.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/types/cards.ts')
-rw-r--r--src/lib/types/cards.ts32
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;
+};