https://github.com/dpressel/edits
Edit distance and alignment in Node.js
https://github.com/dpressel/edits
Last synced: about 1 month ago
JSON representation
Edit distance and alignment in Node.js
- Host: GitHub
- URL: https://github.com/dpressel/edits
- Owner: dpressel
- Created: 2014-04-02T02:04:09.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-04-02T02:15:06.000Z (over 11 years ago)
- Last Synced: 2025-06-04T23:19:21.782Z (6 months ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
edits
=====
Simple edit distance and alignment in Node.js
Currently supports Levenshtein distance, with alignment.
```js
var edits = require('edits');
var d = edits.distance('word1', 'word2');
var aligned = edits.distanceAligned('word1', 'word2').aligned;
```
Build using Grunt:
```
$ npm install
$ grunt
```