summaryrefslogtreecommitdiff
path: root/src/zoom/logic
diff options
context:
space:
mode:
Diffstat (limited to 'src/zoom/logic')
-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;