# File lib/classifier/bayes.rb, line 25
        def train(category, text)
                category = category.prepare_category_name
                @category_counts[category] += 1
                text.word_hash.each do |word, count|
                        @categories[category][word]     ||=     0
                        @categories[category][word]      +=     count
                        @total_words += count
                end
        end