From 2401217a4019938d1c1cc61b6e33ccb233eb6e74 Mon Sep 17 00:00:00 2001 From: polwex Date: Tue, 3 Jun 2025 09:34:29 +0700 Subject: this is golden thanks claude --- src/lib/calls/nlp.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/lib/calls/nlp.ts') 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; }; -- cgit v1.2.3