UNPKG

japanese-db

Version:

Generate Japanese dictionary SQLite database from open source materials

43 lines (42 loc) 1.16 kB
export class JMdictUtil { /** * @param {Array<string>} argPriArray * @returns {number} */ static priCalc(argPriArray: Array<string>): number; /** * @param {string} path */ constructor(path: string, shortEntities?: boolean); /** @type {string} */ dictDate: string; /** @type {string} */ data: string; /** @type {JMdict.JMdict} */ jmdictObj: JMdict.JMdict; /** @type {JMdict.entry[]} */ jmdictEntries: JMdict.entry[]; /** @type {Object.<string, string>} */ entities: { [x: string]: string; }; /** * Load JMdict_e file * @param {string} path * @param {boolean} shortEntities * If true, the entities will be the short version. * ("adj-ix" vs "adjective (keiyoushi) - yoi/ii class") * @returns {void} */ load(path: string, shortEntities?: boolean): void; /** * Get JMdict Entries * @returns {JMdict.entry[]} */ getJMdictEntries(): JMdict.entry[]; } declare namespace JMdict { export type JMdict = import("./types/jmdict").JMdict; export type entry = import("./types/jmdict").entry; } export {};