keyword-search
v0.1.2
Published
Determine whether a given query string contains keywords in a given item string, with a specified margin for spelling error based on the hamming distance.
Downloads
222
Readme
keyword-search
Determine whether a given query string contains keywords in a given item string, with a specified margin for spelling error based on the hamming distance.
Installation
npm install keyword-search
Usage
var keywordSearch = require('keyword-search');
keywordSearch('hello world', 'hellq woeld', 1);
//returns true
Tests
npm test