@jellyfish-commuting/soundex-fr

Soundex function adapted for french phonetics

Usage no npm install needed!

<script type="module">
  import jellyfishCommutingSoundexFr from 'https://cdn.skypack.dev/@jellyfish-commuting/soundex-fr';
</script>

README

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 @jellyfish-commuting/soundex-fr

or

npm install @jellyfish-commuting/soundex-fr

Usage

import soundex from '@jellyfish-commuting/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);
Prop Type Default Note
str string Required field Input value
length int 4 Length of soundex key

Return value

Soundex key of length chars