Bayesian filtering has come to the fore for being exceedingly good at identifying spam. The Mozilla email clients use it and they are excellent, once trained, in separating real spam from false positives. IBM Developer works shows how to implement Bayesian inference in PHP.