class Sastrawi::Stemmer::Context::Visitor::DontStemShortWord
Public Instance Methods
short_word?(word)
click to toggle source
# File lib/sastrawi/stemmer/context/visitor/dont_stem_short_word.rb, line 10 def short_word?(word) word.length <= 3 end
visit(context)
click to toggle source
# File lib/sastrawi/stemmer/context/visitor/dont_stem_short_word.rb, line 6 def visit(context) context.stop_process if short_word?(context.current_word) end