Simple Bayes' Theorem calculator in PHP