Sha256: 3d14c1cf93f2b835b6b693d18880eb23272326aba6f833521b80a403bc70458d
Contents?: true
Size: 203 Bytes
Versions: 1
Compression:
Stored size: 203 Bytes
Contents
class String def ends_with?(suffix) !!(self =~ /#{suffix}$/) end def remove_suffix(suffix_size) self[0, self.size - suffix_size] end def stem UEAStemmer.new.stem(self) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ealdent-uea-stemmer-0.9.0 | lib/string_extensions.rb |