Novelty Promotes Magicians

    @extra-string/sorensen-dice-distance

    1.1.3 • Public • Published

    Get Sørensen-Dice distance between strings.

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

    extra-string

    Install

    npm i @extra-string/sorensen-dice-distance

    DownloadsWeekly Downloads

    1

    Version

    1.1.3

    License

    MIT

    Unpacked Size

    3.04 kB

    Total Files

    5

    Last publish

    Collaborators

    • wolfram77