summaryrefslogtreecommitdiff
path: root/src/zoom/logic/types.ts
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-05-29 12:10:22 +0700
committerpolwex <polwex@sortug.com>2025-05-29 12:10:22 +0700
commita3f24ea79b14394b24c4b60a010651eb29eeb872 (patch)
treecb1c4937084116f66a59727ee752afd974714c8e /src/zoom/logic/types.ts
parent7abf2227438362ad30820ee236405ec1b57a40b6 (diff)
glorious new db
Diffstat (limited to 'src/zoom/logic/types.ts')
-rw-r--r--src/zoom/logic/types.ts12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/zoom/logic/types.ts b/src/zoom/logic/types.ts
index 1342bc7..48c505e 100644
--- a/src/zoom/logic/types.ts
+++ b/src/zoom/logic/types.ts
@@ -52,10 +52,18 @@ export type WordData = {
type: ExpressionType;
syllables: number;
lang: string;
- prosody: Prosody;
+ prosody: Prosody; // This will be SyllableProsody[]
senses: Sense[];
};
-export type Prosody = { stressedSyllable: number; rhyme: string };
+
+export type SyllableProsody = {
+ tone: number | null; // Tone for the syllable
+ ipa?: string; // IPA for the syllable
+ // Add other syllable-specific prosodic features if needed
+};
+
+export type Prosody = SyllableProsody[];
+
export type ExpressionType = "word" | "expression" | "syllable";
export type Sense = {
etymology: string;