lib/programr/graph_node.rb
# The AIML pattern matching is non-greedy
The AIML pattern matching is non-greedy
The AIML pattern matching is non - greedy
def matcher_ending? path, matched
      return false if matched.count < 1
      next_word = path.is_a?(Array) ? path.first : path
      @children.has_key?(next_word) || GraphMark::ALL.include?(next_word) || MATCHERS.any? { |matcher| @children.has_key? matcher }
    end
def matcher_ending? path , matched return false if matched . count < 1 next_word = path . is_a? ( Array ) ? path . first : path @children . has_key? ( next_word ) || GraphMark :: ALL . include? ( next_word ) || MATCHERS . any? { | matcher | @children . has_key? matcher } end
The AIML pattern matching is non-greedy
The AIML pattern matching is non - greedy
path
matched