Bayes_spam is a project mainly written in ..., it's free.
Bayesian Spam Filtering In PHP
Implementation of Bayesian Filtering Written In PHP