concepts-parser
Version:
Concepts Extracting from text
24 lines (23 loc) • 1.05 kB
TypeScript
export declare type NameInfo = {
atonic: boolean;
insensitive: boolean;
sort: boolean;
};
declare type SuffixDataItem = {
reg: RegExp;
prefix?: RegExp;
concat?: boolean;
};
export declare function get<T extends string[] | RegExp[] | SuffixDataItem[]>(name: string, lang: string): T;
export declare function getConnectWords(lang: string): string[];
export declare function getSplitWords(lang: string): string[];
export declare function getInvalidConcepts(lang: string): RegExp[];
export declare function getInvalidPrefixes(lang: string): RegExp[];
export declare function getKnownConcepts(lang: string): RegExp[];
export declare function getPartialConcepts(lang: string): RegExp[];
export declare function getValidPrefixes(lang: string): RegExp[];
export declare function getValidSuffixes(lang: string): SuffixDataItem[];
export declare function getLanguages(): string[];
export declare function getNames(): string[];
export declare function getNameInfo(name: string): NameInfo | undefined;
export {};