naive bayes (untested)
compile fix