Sha256: aaa0e1444ac9775d5ac4f7d10bb188c635cf2f2144fe114b265963b18bdb85a1

Contents?: true

Size: 396 Bytes

Versions: 9

Compression:

Stored size: 396 Bytes

Contents

#!/usr/bin/env ruby
unless RUBY_VERSION >= '1.9'
  require 'rubygems'
end
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'loose_tight_dictionary'

haystack = [ 'seamus', 'andy', 'ben' ]
needles = [ 'Mr. Seamus', 'Sr. Andy', 'Master BenT', 'Shamus Heaney' ]

d = LooseTightDictionary.new haystack, :log => $stdout
needles.each do |needle|
  d.explain needle
  puts
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
loose_tight_dictionary-1.0.2 examples/first_name_matching.rb
loose_tight_dictionary-1.0.1 examples/first_name_matching.rb
loose_tight_dictionary-1.0.0 examples/first_name_matching.rb
loose_tight_dictionary-0.2.3 examples/first_name_matching.rb
loose_tight_dictionary-0.2.2 examples/first_name_matching.rb
loose_tight_dictionary-0.2.1 examples/first_name_matching.rb
loose_tight_dictionary-0.2.0 examples/first_name_matching.rb
loose_tight_dictionary-0.1.1 examples/first_name_matching.rb
loose_tight_dictionary-0.1.0 examples/first_name_matching.rb