Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Node.js module which creates a hash of a word list using a bloom filter, and compares hashes to give you a value for the similarity between the word lists.
JavaScript
branch: master
Failed to load latest commit information.
.gitignore initial commit
index.js initial commit
license.txt added package.json
package.json added package.json
readme.md
test.js added package.json

readme.md

Bloom Text Compare

Installation

npm install bloom-text-compare

Usage

var btc = require('bloom-text-compare');

var hash1 = btc.hash(['an', 'example', 'of', 'a', 'word', 'list']);
// returns an array of 10 x 32 bit integers

var hash2 = btc.hash(['another', 'example', 'of', 'a', 'word', 'list']);

var distance = btc.compare(hash1, hash2);
// returns a number between 0 and 1

License

MIT

Something went wrong with that request. Please try again.