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