UNPKG

@sglkc/kuroshiro-analyzer-kuromoji

Version:

Forked version of kuroshiro-analyzer-kuromoji with TypeScript support and better compatibility for browsers

12 lines (10 loc) 305 B
// to avoid mistakenly treating d.ts as js by ESLint. /* eslint-disable */ declare class KuromojiAnalyzer { constructor(dictPath?: { dictPath: string }); init(): Promise<void>; parse(str: string): Promise<any>; } declare module "@sglkc/kuroshiro-analyzer-kuromoji" { export = KuromojiAnalyzer; }