Java port of Chatscript