ochiai-string-similarity
v1.0.6
Published
Finds measure of similarity between two strings using Ochiai coefficient.
Downloads
17
Maintainers
Readme
ochiai-string-similarity
Finds measure of similarity between two strings using Ochiai coefficient.
Installation
npm install ochiai-string-similarity --save
bower install ochiai-string-similarity --save
Usage
Javascript
var ochiai = require('ochiai-string-similarity');
var coeff = ochiai.getCoefficient('fdH&tr', 'fdH&tr');
Output should be '1.0'
TypeScript
import { getCoefficient } from 'ochiai-string-similarity';
console.log(getCoefficient('fdH&tr', 'fdH&tr'))
Output should be '1.0'
Test
npm run test