Class: WordBloom
- Inherits:
-
Object
- Object
- WordBloom
- Defined in:
- lib/word-bloom.rb,
lib/word-bloom/scorer.rb,
lib/word-bloom/quality.rb,
lib/word-bloom/filter-builder.rb
Defined Under Namespace
Classes: FilterBuilder, Quality, Scorer
Constant Summary collapse
- HASHER =
lambda do |item| begin item = item.encode("UTF-16LE", :invalid => :replace, :undef => :replace, :replace => "").encode("UTF-8") Digest::SHA1.digest(item.downcase.strip).unpack("VV") rescue ArgumentError => ex p __ENCODING__ p ex., item raise end end
- LANGUAGE_DIR_PATH =
File.("../../lang", __FILE__)