UNPKG

eliza-core

Version:

A rendition of ELIZA program engine by Weizenbaum sharable for all javascript environments

20 lines (19 loc) 378 B
export function createKey(key, rank, decomp) { return new Key(key, rank, decomp); } export class Key { constructor(key, rank, decomp) { this.key = key; this.rank = rank; this.decomp = decomp; } getKey() { return this.key; } getRank() { return this.rank; } getDecomp() { return this.decomp; } }