class BasicMatching

Public Instance Methods

removeTooLongPotentialMatches( potential_match_array, node_target_phoneme) click to toggle source
# File lib/promper/matching.rb, line 7
def removeTooLongPotentialMatches(
  potential_match_array, node_target_phoneme)
  potential_match_array.each do |word|
    if word.length > node_target_phoneme.length
      potential_match_array.delete(word)
    else
      next
    end
  end
end