Sha256: 6afcc4e40957b6a5ee67908b0c3225659807b420465d8a81fcb53d202e59a4fe

Contents?: true

Size: 388 Bytes

Versions: 13

Compression:

Stored size: 388 Bytes

Contents

require 'active_support'
require 'active_support/core_ext'
require 'damerau-levenshtein'
require 'keyword_matcher/version'
require 'keyword_matcher/group'
require 'keyword_matcher/prophet'
require 'keyword_matcher/process'

module KeywordMatcher
  class << self
    def matched?(keywords, words)
      Process.new(Group.new(keywords), Prophet.new(words).explode).found?
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
keyword_matcher-0.6.2 lib/keyword_matcher.rb
keyword_matcher-0.6.1 lib/keyword_matcher.rb
keyword_matcher-0.6.0 lib/keyword_matcher.rb
keyword_matcher-0.5.0 lib/keyword_matcher.rb
keyword_matcher-0.4.0 lib/keyword_matcher.rb
keyword_matcher-0.3.5 lib/keyword_matcher.rb
keyword_matcher-0.3.4 lib/keyword_matcher.rb
keyword_matcher-0.3.3 lib/keyword_matcher.rb
keyword_matcher-0.3.2 lib/keyword_matcher.rb
keyword_matcher-0.3.1 lib/keyword_matcher.rb
keyword_matcher-0.3.0 lib/keyword_matcher.rb
keyword_matcher-0.2.0 lib/keyword_matcher.rb
keyword_matcher-0.1.0 lib/keyword_matcher.rb