Noble Programming Mantra

    string-sorensendicedistance

    0.1.6 • Public • Published

    string-sorensendicedistance

    NOTE: string-sorensendicedistance was renamed to @extra-string/sorensen-dice-distance. NPM

    Get Sørensen-Dice distance between strings.

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

    Install

    npm i string-sorensendicedistance

    DownloadsWeekly Downloads

    16

    Version

    0.1.6

    License

    MIT

    Unpacked Size

    1.84 kB

    Total Files

    3

    Last publish

    Collaborators

    • wolfram77