summaryrefslogtreecommitdiff
path: root/src/lib/calls/nlp.ts
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-06-03 09:34:29 +0700
committerpolwex <polwex@sortug.com>2025-06-03 09:34:29 +0700
commit2401217a4019938d1c1cc61b6e33ccb233eb6e74 (patch)
tree06118284965be5cfd6b417dca86d46db5758217b /src/lib/calls/nlp.ts
parent2b80f7950df34f2a160135d7e20220a9b2ec3352 (diff)
this is golden thanks claude
Diffstat (limited to 'src/lib/calls/nlp.ts')
-rw-r--r--src/lib/calls/nlp.ts13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/lib/calls/nlp.ts b/src/lib/calls/nlp.ts
index f3364ac..f19c976 100644
--- a/src/lib/calls/nlp.ts
+++ b/src/lib/calls/nlp.ts
@@ -13,19 +13,22 @@ export type SorSylRes = {
word: string;
ipa: string;
clean_ipa: string;
- syls: SorSyl[];
+ syls: SorBSyl[];
+};
+export type SorBSyl = {
+ ipa: SorSyl;
+ spelling: SorSyl;
};
export type SorSyl = {
- stressed: boolean;
- long: boolean;
- spelling: string;
- ipa: string;
+ all: string;
nucleus: string;
onset: string;
medial: string;
coda: string;
rhyme: string;
tone: string;
+ long: boolean;
+ stressed: boolean;
start_idx: number;
end_idx: number;
};