Negotiable Paleobotanist Missions

    @extra-string/jaccard-index

    1.1.3 • Public • Published

    Get Jaccard index between strings.

    const jaccardIndex = require('@extra-string/jaccard-index');
    // jaccardIndex(<string-1>, <string-2>, [ngram=2])
    
    jaccardIndex('pocket', 'pocket');
    // 1
    jaccardIndex('monster', 'rocket');
    // 0
    jaccardIndex('pikachu', 'raichu', 3);
    // 0.125

    extra-string

    Install

    npm i @extra-string/jaccard-index

    DownloadsWeekly Downloads

    7

    Version

    1.1.3

    License

    MIT

    Unpacked Size

    2.89 kB

    Total Files

    5

    Last publish

    Collaborators

    • wolfram77