To judge a text whether spam, based on corpus analysis using bayesian inference algorithm, you can train your own horse.