lib/Plasper/plasper.rb
def sentence=(sentence)
      words = sentence.split(/\s+/)
      add_weight :count, :word, words.length unless words.length < 1
      words.each do |word|
        normalized_word = normalize_word word
        self.word       = normalized_word unless normalized_word == ''
      end
    end
def sentence=(sentence)
      words = sentence.split(/\s+/)
      add_weight :count, :word, words.length unless words.length < 1
      words.each do |word|
        normalized_word = normalize_word word
        self.word       = normalized_word unless normalized_word == ''
      end
    end
def sentence = ( sentence ) words = sentence . split ( / \s / ) add_weight :count , :word , words . length unless words . length < 1 words . each do | word | normalized_word = normalize_word word self . word = normalized_word unless normalized_word == '' end end
Analyze sentence

 Splits sentence with whitespace delimiter, adds weight for word count and analyzes each word

 @param [String] sentence
Analyze sentence