Sha256: 6a094ef2055a925636fa395bf57332d11ecf92c32868623533b9e8ada92b6aec
Contents?: true
Size: 227 Bytes
Versions: 2
Compression:
Stored size: 227 Bytes
Contents
require 'stemmer' module Pedantic::Stems def self.included(base) base.processors :reduce_to_stems end def reduce_to_stems(string) string.split(/\W+/).collect { |word| word.stem }.join(' ') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pedantic-0.1.1 | lib/pedantic/stems.rb |
pedantic-0.1.0 | lib/pedantic/stems.rb |