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.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/types/cards.ts b/src/lib/types/cards.ts
index cef02d2..1a62a44 100644
--- a/src/lib/types/cards.ts
+++ b/src/lib/types/cards.ts
@@ -210,3 +210,16 @@ export type ExpressionSearchParams = {
frequency?: { num: number; above: boolean };
type?: ExpressionType;
};
+
+export type SyllableRes = { input: string; result: SyllableToken[] };
+export type SyllableToken = [IPACharacter, SyllablePart];
+export type IPACharacter = string; // one char mostly
+export enum SyllablePart {
+ INITIAL = "#",
+ OTHER_ONSET = "C",
+ VOWEL = "V",
+ OTHER_VOWEL = "v",
+ FINAL_VOWEL = ">",
+ OTHER_OFFSET = "c",
+ CODA = "$",
+}