Package Exports
- jaro-winkler
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jaro-winkler) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Jaro-Winkler
A string similarity function using the Jaro-Winkler distance metric. Returns a number between 0 and 1. A 0 being no similarity and a 1 being an exact match.
Read more about it on Wikipedia.
Install
npm install jaro-winkler
Usage Examples
var distance = require('jaro-winkler');
distance('MARTHA', 'MARHTA');
// 0.961
distance('DWAYNE', 'DUANE');
// 0.84
distance('DIXON', 'DICKSONX');
// 0.814
// Case Insensitive
distance('MARTHA', 'MARTHA');
// 1
distance('mArThA', 'MaRtHa', { caseSensitive: false });
// 1