string-jaccarddistance

    0.1.6 • Public • Published

    string-jaccarddistance

    NOTE: string-jaccarddistance was renamed to @extra-string/jaccard-distance. NPM

    Get Jaccard distance between strings.

    const jaccardDistance = require('string-jaccarddistance');
    // jaccardDistance(<string-1>, <string-2>, [ngram=2])
     
    jaccardDistance('pocket', 'pocket');
    // 0
    jaccardDistance('monster', 'rocket');
    // 1
    jaccardDistance('pikachu', 'raichu', 3);
    // 0.875

    Install

    npm i string-jaccarddistance

    DownloadsWeekly Downloads

    16

    Version

    0.1.6

    License

    MIT

    Unpacked Size

    1.68 kB

    Total Files

    3

    Last publish

    Collaborators

    • wolfram77