eliza-core
Version:
A rendition of ELIZA program engine by Weizenbaum sharable for all javascript environments
16 lines (15 loc) • 498 B
TypeScript
import { MentionRoute, HyperDecomposition } from './interfaces';
/**
* Decomposition match,
* If decomp has no synonyms, do a regular match.
* Otherwise, try all synonyms.
*
* @export
* @param {MentionRoute[]} synonyms
* @param {string} str
* @param {string} pat
* @returns
*
* Learned from `SynList.matchDecomp(String str, String pat, String[] segmentedPat)`
*/
export declare function matchDecomposition(synonyms: MentionRoute[], str: string, pat: string): HyperDecomposition | null;