def score(sentence)
      scores = {}
      @prefix_words.each do |pw|
        # Search if that prefix is in the sentence
        if sentence.index(pw)
          # Remove the white space after the negative prefix
          sentence.sub! pw+" ", pw
        end
      end
      tokens = tokenize(sentence)
      total_score = 0

      @categories.each do |category|
        scores[category] = 1
        tokens.each do |token|
          if (token.length > MIN_TOKEN_LENGTH && token.length < MAX_TOKEN_LENGTH && !(@ignore_words.include? token))

            # If Token is not in our dictionary, don't do anything
            if(@dictionary[token].nil?)
              break
            end #if

            if (@dictionary[token][category].nil?)
              count = 0
            else
              count = @dictionary[token][category]
            end # elseif
            scores[category] *= (count + 1)
          end #if
        end #tokens
        scores[category] = PRIOR_SCORE * scores[category]
      end #categories

      @categories.each do |category|
        total_score += scores[category]
      end #categories

      @categories.each do |category|
        scores[category] = scores[category]/total_score
      end #categories

      return scores
    end
def score(sentence)
      scores = {}
      @prefix_words.each do |pw|
        # Search if that prefix is in the sentence
        if sentence.index(pw)
          # Remove the white space after the negative prefix
          sentence.sub! pw+" ", pw
        end
      end
      tokens = tokenize(sentence)
      total_score = 0

      @categories.each do |category|
        scores[category] = 1
        tokens.each do |token|
          if (token.length > MIN_TOKEN_LENGTH && token.length < MAX_TOKEN_LENGTH && !(@ignore_words.include? token))

            # If Token is not in our dictionary, don't do anything
            if(@dictionary[token].nil?)
              break
            end #if

            if (@dictionary[token][category].nil?)
              count = 0
            else
              count = @dictionary[token][category]
            end # elseif
            scores[category] *= (count + 1)
          end #if
        end #tokens
        scores[category] = PRIOR_SCORE * scores[category]
      end #categories

      @categories.each do |category|
        total_score += scores[category]
      end #categories

      @categories.each do |category|
        scores[category] = scores[category]/total_score
      end #categories

      return scores
    end
initialize