phonetics

    1.0.0 • Public • Published

    A nodejs library for phonetic string matching which exposes: soundex, metaphone and double-metaphone algorithms.

    Usage

    • Soundex
    const Phonetics = require('phonetics');
    console.log(Phonetics.soundex('phonetic'));

    output: p532

    • Soundex match
    const Phonetics = require('phonetics');
    console.log(Phonetics.soundexMatch('phonetic', 'phonetics'));

    output: true

    • Metaphone
    const Phonetics = require('phonetics');
    console.log(Phonetics.metaphone('phonetic'));

    output: FNTK

    • Metaphone match
    const Phonetics = require('phonetics');
    console.log(Phonetics.metaphoneMatch('phonetic', 'phonetics'));

    output: false

    • Double Metaphone
    const Phonetics = require('phonetics');
    console.log(Phonetics.doubleMetaphone('phonetic'));

    output: [ 'FNTK', 'FNTK' ]

    • Double Metaphone match
    const Phonetics = require('phonetics');
    console.log(Phonetics.doubleMetaphoneMatch('phonetic', 'phonetics'));

    output: false

    Install

    npm i phonetics

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    104 kB

    Total Files

    25

    Last publish

    Collaborators

    • avatar