Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

ochiai-string-similarity

1.0.6 • Public • Published

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

Install

npm i ochiai-string-similarity

DownloadsWeekly Downloads

13

Version

1.0.6

License

MIT

Unpacked Size

12.3 kB

Total Files

9

Last publish

Collaborators

  • avatar