aboutsummaryrefslogtreecommitdiff
path: root/language/types.ts
diff options
context:
space:
mode:
Diffstat (limited to 'language/types.ts')
-rw-r--r--language/types.ts49
1 files changed, 0 insertions, 49 deletions
diff --git a/language/types.ts b/language/types.ts
deleted file mode 100644
index d3585f8..0000000
--- a/language/types.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-import { TokenTags } from "./tags.ts";
-
-export enum ParseDepth {
- Term,
- Glossary,
-};
-
-export interface GlossaryDefinition {
-
-};
-
-export interface Glossary {
- id: number;
- definitions: GlossaryDefinition[];
-};
-
-export interface ParseToken {
- writing: string;
- reading: string;
- tags: TokenTags;
- glossary?: Glossary;
- term_id: number;
- source: string;
- start: number;
-};
-
-export interface ParseResult {
- depth: ParseDepth;
- tokens: ParseToken[];
- input: string;
-};
-
-/** @summary option struct for Parser */
-export interface InputSentenceProps {
- /** @prop max amount of characters to look ahead when attempting to deconjugate */
- lookahead: number;
- /** @prop amount of detail to return in search results */
- depth: ParseDepth;
- /** @prop search bias multipliers */
- priorityMod: {
- /** @prop multiplier for negative bias */
- low: number;
- /** @prop multiplier for positive bias */
- high: number;
- };
- /** @prop list of breaks treated as delimiter */
- breaks: Array<number>;
-};
-