Rainbow is a machine learning program that performs document classification. it uses a "bag of words representation" to analyze the data and a bayes classifier to classify the target documents. see also: bag of words representation, http://www.cs.cmu.edu/afs/cs.cmu.edu/project/theo-11/www/naivebayes. html.