Notorious Party Muppets

    string-sorensendiceindex

    0.1.6 • Public • Published

    string-sorensendiceindex

    NOTE: string-sorensendiceindex was renamed to @extra-string/sorensen-dice-index. NPM

    Get Sørensen-Dice index between strings.

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

    Install

    npm i string-sorensendiceindex

    DownloadsWeekly Downloads

    2

    Version

    0.1.6

    License

    MIT

    Unpacked Size

    1.77 kB

    Total Files

    3

    Last publish

    Collaborators

    • wolfram77