1.0.4 • Published 6 years ago

simple-phonetic-search v1.0.4

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

Simple Phonetic Search

How to use

First save to your project.

npm install -S simple-phonetic-search@latest
yarn add simple-phonetic-search@latest

Then run the following code below in your project.

const SimplePhoneticSearch = require('simple-phonetic-search').default;
const search = new SimplePhoneticSearch();

const result1 = search.StringsSoundAlike('Jim', 'Gym');
const result2 = search.StringsSoundAlike('Jim', 'Jeff');

console.info("Testing Jim and Gym", result1);
console.info("Testing Jim and Jeff", result2);

You will get a result object that looks like this.

let result = {

    success: true,
    message: ''
};

Versions

Version 1.0.0

  • Beginning

Version 1.0.1

Version 1.0.2

  • Updated README.md with 'how to'
  • NOTE: README.md will be updated with each version so no need to add it anymore

Version 1.0.3

  • Fixed bug where some names were returning similar when they were not. I.e. "Jim" and "Gaudet"

Version 1.0.4

  • Forgot to remove some console.info() lines... :(