JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 765
  • Score
    100M100P100Q89989F
  • License MIT

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

Package Exports

  • phonetics
  • phonetics/build/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (phonetics) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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