Sha256: e3f5a8cba7e666fb760da95355ec3c38390de37058b758e1b7b4f8b319fd0a45

Contents?: true

Size: 379 Bytes

Versions: 3

Compression:

Stored size: 379 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
needles.each do |needle|
  d.explain needle
  puts
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loose_tight_dictionary-1.0.5 examples/first_name_matching.rb
loose_tight_dictionary-1.0.4 examples/first_name_matching.rb
loose_tight_dictionary-1.0.3 examples/first_name_matching.rb