bitap

1.0.1 • Public • Published

bitap

Fuzzy string search algorithm that searches for a given pattern in a text respecting an amount of errors (Levenshtein distance).

It's a JavaScript implementation of the algorithm present in the paper A Faster Algorithm for Approximate String Matching by Ricardo Baeza Yates and Gonzalo Navarro:

Usage

$ npm install bitap
(...)
$ node
> let bitap = require('bitap')
undefined
> bitap('where is my elephant', 'telephone', 3)
[ 18 ]

Package Sidebar

Install

npm i bitap

Weekly Downloads

5

Version

1.0.1

License

Fair

Last publish

Collaborators

  • talles