@makecode/mecab-analyzer
Version:
A MeCab-based morphological analyzer for Node.js
32 lines • 1.2 kB
TypeScript
export declare const MECAB_TYPE: {
readonly POS: "pos";
readonly MORPHS: "morphs";
readonly NOUNS: "nouns";
readonly ALL: "all";
};
export declare const pos: (text: string) => string[];
export declare const morphs: (text: string) => string[];
export declare const nouns: (text: string) => string[];
export declare const all: (text: string) => string[][];
export declare const analyzeWithExclusions: (text: string, { analysisType, pattern, }: {
analysisType?: "pos" | "morphs" | "nouns" | "all" | undefined;
pattern?: RegExp | undefined;
}) => string[] | string[][];
declare const _default: {
MECAB_TYPE: {
readonly POS: "pos";
readonly MORPHS: "morphs";
readonly NOUNS: "nouns";
readonly ALL: "all";
};
pos: (text: string) => string[];
morphs: (text: string) => string[];
nouns: (text: string) => string[];
all: (text: string) => string[][];
analyzeWithExclusions: (text: string, { analysisType, pattern, }: {
analysisType?: "pos" | "morphs" | "nouns" | "all" | undefined;
pattern?: RegExp | undefined;
}) => string[] | string[][];
};
export default _default;
//# sourceMappingURL=index.d.ts.map