Interesting! I've been meaning to have a look at some of what you mentioned, but I haven't had the time. If you do a pull request on GitHub I can have a look at your changes and see if I can incorporate them into the repository if you'd like. (Try to make separate pull requests for separate features though.)
} else if (item.type == "prediction") { anthy.commit_prediction(item.candidate) commit(item.text)