Method: NHKore::DictFormVariator#end_variate
- Defined in:
- lib/nhkore/variator.rb
#end_variate(str) ⇒ Object
48 49 50 51 52 53 54 55 |
# File 'lib/nhkore/variator.rb', line 48 def end_variate(str) guess = @deinflector.deinflect(str) return [] if guess.empty? return [] if (guess = guess[0])[:weight] < 0.5 return [guess[:word]] end |