Sha256: 78a9753696730da35c936d42b25c84a5d62872528143e80e7901e42317a0b16f

Contents?: true

Size: 604 Bytes

Versions: 6795

Compression:

Stored size: 604 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

6,795 entries across 6,786 versions & 28 rubygems

Version Path
zuora_connect_ui-0.7.0 vendor/ruby/2.6.0/gems/jaro_winkler-1.5.3/lib/jaro_winkler/adjusting_table.rb
jaro_winkler-1.5.3-java lib/jaro_winkler/adjusting_table.rb
jaro_winkler-1.5.3 lib/jaro_winkler/adjusting_table.rb
jaro_winkler-1.5.2-java lib/jaro_winkler/adjusting_table.rb
jaro_winkler-1.5.2 lib/jaro_winkler/adjusting_table.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.1/lib/jaro_winkler/adjusting_table.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.1/lib/jaro_winkler/adjusting_table.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.1/lib/jaro_winkler/adjusting_table.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.1/lib/jaro_winkler/adjusting_table.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/jaro_winkler-1.5.1-x86_64-darwin-17/lib/jaro_winkler/adjusting_table.rb
jaro_winkler-1.5.1-java lib/jaro_winkler/adjusting_table.rb
jaro_winkler-1.5.1-universal-java-10 lib/jaro_winkler/adjusting_table.rb
jaro_winkler-1.5.1-x86_64-darwin-17 lib/jaro_winkler/adjusting_table.rb
jaro_winkler-1.5.1 lib/jaro_winkler/adjusting_table.rb
jaro_winkler-1.5.0 lib/jaro_winkler/adjusting_table.rb