Have ideas to improve npm?Join in the discussion! »

    @extra-string/jaro-winkler-distance

    1.1.3 • Public • Published

    Get Jaro-Winkler distance between strings.

    const jaroWinklerDistance = require('@extra-string/jaro-winkler-distance');
    // jaroWinklerDistance(<string-1>, <string-2>, [scaling-factor=0.1], [boost-threshold=0.7])
     
    jaroWinklerDistance('no', 'match');
    // 0
    jaroWinklerDistance('teapot', 'teapot');
    // 1
    jaroWinklerDistance('jelly', 'jellyfish');
    // 0.9111111111111111

    extra-string

    Install

    npm i @extra-string/jaro-winkler-distance

    DownloadsWeekly Downloads

    16

    Version

    1.1.3

    License

    MIT

    Unpacked Size

    3.78 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar