BMDMSoundex icon indicating copy to clipboard operation
BMDMSoundex copied to clipboard

On startup limit language scope to a list of predefined languages

Open Haran opened this issue 9 years ago • 0 comments

To avoid parsing the excessive amount of rulesets upon recognition state, it would be useful to pass the predefined language name or list before processing.

Original procedural BMPM approach:

$languageCode = $spanish; // where $spanish might be 32
$result = Phonetic_UTF8(
    $name,
    $rules[LanguageIndexFromCode($languageCode, $languages)],
    $approxCommon,
    $approx[LanguageIndexFromCode($languageCode, $languages)],
    $languageCode
);

Haran avatar Oct 24 '16 10:10 Haran