Sha256: 78a9753696730da35c936d42b25c84a5d62872528143e80e7901e42317a0b16f

Contents?: true

Size: 604 Bytes

Versions: 6840

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,840 entries across 6,831 versions & 29 rubygems

Version Path
passbase-1.2.0 vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/adjusting_table.rb
passbase-1.1.0 vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/adjusting_table.rb
passbase-1.0.3 vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/adjusting_table.rb
passbase-1.0.2 vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/adjusting_table.rb
passbase-1.0.1 vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/adjusting_table.rb
passbase-1.0.0 vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/adjusting_table.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/adjusting_table.rb
talon_one-2.0.0 vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/adjusting_table.rb
talon_one-2.0.0 vendor/bundle/ruby/2.3.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/adjusting_table.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/adjusting_table.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/adjusting_table.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/adjusting_table.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/jaro_winkler-1.5.3/lib/jaro_winkler/adjusting_table.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/adjusting_table.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/jaro_winkler-1.5.3/lib/jaro_winkler/adjusting_table.rb
jaro_winkler-1.5.4 lib/jaro_winkler/adjusting_table.rb
jaro_winkler-1.5.4-java lib/jaro_winkler/adjusting_table.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/jaro_winkler-1.5.3/lib/jaro_winkler/adjusting_table.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/jaro_winkler-1.5.3/lib/jaro_winkler/adjusting_table.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/jaro_winkler-1.5.3/lib/jaro_winkler/adjusting_table.rb