import { TokenTags } from "./tags.ts"; export enum ParseDepth { Term, Glossary, }; export interface TokenReading { text: string; ruby?: string; }; export interface GlossaryDefinition { }; export interface Glossary { id: number; definitions: GlossaryDefinition[]; }; export interface ParseToken { reading: TokenReading[]; tags: TokenTags; glossary?: Glossary; term_id: number; source: string; }; export interface ParseResult { depth: ParseDepth; tokens: ParseToken[] }; /** @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; }; };