1.0.5 • Published 4 years ago

@thejellyfish/soundex-fr v1.0.5

Weekly downloads
132
License
MIT
Repository
github
Last release
4 years ago

Version Licence Build Coverage Downloads

soundex-fr

Soundex function adapted for french phonetics
Compliant, optimized and small package to get soundex key

For mapping used see https://fr.wikipedia.org/wiki/Soundex#Description

Install

yarn add @thejellyfish/soundex-fr

or

npm install @thejellyfish/soundex-fr

Usage

import soundex from '@thejellyfish/soundex-fr';

// Test equal phonetics
if (soundex('Robert') === soundex('Rupert')) {
  console.log('Equal soundex');
} else {
  console.log('Different soundex');
}
    
// Output : Equal soundex

Params

soundex(str, length);
PropTypeDefaultNote
strstringRequired fieldInput value
lengthint4Length of soundex key

Return value

Soundex key of length chars

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.0

4 years ago