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

string-cosine-similarity

2.0.1 • Public • Published

String Cosine Similarity

Finds cosine similarity between 2 strings

Installation

Clone this repo and import it in your project, or you can directly install it using npm.

npm i string-cosine-similarity

Getting Started

You can test this library by typing the following code.

var similarity = require('string-cosine-similarity')

var string1 = 'Julie loves me more than Linda loves me'
var string2 = 'Jane likes me more than Julie loves me'

console.log(similarity(string1, string2)) // 0.9302605094190635

Install

npm i string-cosine-similarity

DownloadsWeekly Downloads

78

Version

2.0.1

License

MIT

Unpacked Size

3.51 kB

Total Files

6

Last publish

Collaborators

  • avatar