eliza-core
Version:
A rendition of ELIZA program engine by Weizenbaum sharable for all javascript environments
14 lines (13 loc) • 343 B
TypeScript
import { PrePost } from './interfaces';
/**
* Translate a string s.
* 1. Trim spaces off
* 2. Break s into words
* 3. For each word, substitute matching src word with dest
*
* @export
* @param {string} s
*
* Learned from `PrePostList.translate(String s)`
*/
export declare function translate(prePosts: PrePost[], s: string): string;