---------- BEGIN QUOTE ------------------------
e:{$[(#b)=i:(|/'b:(w@:&~(w:(`$" "\:x@&~x in".?"))in`)in\:/:A)?1b;E@*1?#E " "~n:c@*,/(c:{x@*1?#x}C i)ss/:N;c .q.ssr[c;n;" "/:$(),P'(w[k],p:1_'(0,1+k:b[i]?1b)_`,w)"I"$n]]}
if no keyword match in A, then return a default response from E else if no substitution in the response c picked from C, return c else substitute and return
----------- END QUOTE ---------------------------