Content-Length: 255533 | pFad | http://github.com/derrickpelletier/soundex-encode

74 GitHub - derrickpelletier/soundex-encode: Node.js soundex encoding
Skip to content

derrickpelletier/soundex-encode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Soundex Encoder

A simple javascript module to encode strings using Soundex.

Soundex is an algorithm designed to index strings based on their English pronunciations.

See Soundex on Wikipedia for more info.

npm install soundex-encode

var Soundex = require('soundex-encode')

// Standard 3-digit
Soundex('Battlestar') // B342

// MySQL style (at least in 5.6...?)
Soundex('Battlestar', {mysql:true}) // B34236

// Un-zero-finished hashes
Soundex('Jackson', {zeroed:false}) // J25

Notes

  • Could be errors, need to test more extensively, but currently succeeding on all test examples I found on wikipedia and several other sources.
  • Plan to add a distance comparator for computing the similarity between two hashes. Maybe Levenshtein.

About

Node.js soundex encoding

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/derrickpelletier/soundex-encode

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy