Super simple phonetic string searching! Just pass in the haystack and the needle!
npm install simple-phonetic-searchjavascript
npm install -S simple-phonetic-search@latest
yarn add simple-phonetic-search@latest
`
Then run the following code below in your project.
`javascript
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.
`javascript
let result = {
success: true,
message: ''
};
``