Sha256: d8b2386c03ab715d06173a854818f3ea5f75a5baa196c3b41cf5ad816ea38589

Contents?: true

Size: 630 Bytes

Versions: 9

Compression:

Stored size: 630 Bytes

Contents

module JaroWinkler
  DEFAULT_ADJ_TABLE = Hash.new({})
  [
    ['A', 'E'], ['A', 'I'], ['A', 'O'], ['A', 'U'], ['B', 'V'], ['E', 'I'], ['E', 'O'], ['E', 'U'], ['I', 'O'],
    ['I', 'U'], ['O', 'U'], ['I', 'Y'], ['E', 'Y'], ['C', 'G'], ['E', 'F'], ['W', 'U'], ['W', 'V'], ['X', 'K'],
    ['S', 'Z'], ['X', 'S'], ['Q', 'C'], ['U', 'V'], ['M', 'N'], ['L', 'I'], ['Q', 'O'], ['P', 'R'], ['I', 'J'],
    ['2', 'Z'], ['5', 'S'], ['8', 'B'], ['1', 'I'], ['1', 'L'], ['0', 'O'], ['0', 'Q'], ['C', 'K'], ['G', 'J'],
    ['E', ' '], ['Y', ' '], ['S', ' ']
  ].each{ |s1, s2| DEFAULT_ADJ_TABLE[s1][s2] = DEFAULT_ADJ_TABLE[s2][s1] = true }
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
jaro_winkler-1.3.5 lib/jaro_winkler/adjusting_table.rb
jaro_winkler-1.3.4 lib/jaro_winkler/adjusting_table.rb
jaro_winkler-1.3.3 lib/jaro_winkler/adjusting_table.rb
jaro_winkler-1.3.2 lib/jaro_winkler/adjusting_table.rb
jaro_winkler-1.3.2.beta2 lib/jaro_winkler/adjusting_table.rb
jaro_winkler-1.3.2.beta lib/jaro_winkler/adjusting_table.rb
jaro_winkler-1.3.1 lib/jaro_winkler/adjusting_table.rb
jaro_winkler-1.3.0 lib/jaro_winkler/adjusting_table.rb
jaro_winkler-1.3.0.beta lib/jaro_winkler/adjusting_table.rb