nextrans-check-name-similarity
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

Nextrans String Similarity

Instalation

npm install nextrans-check-name-similarity

How to use

import StringSimiliarity from 'nextrans-check-name-similarity';

const {
    MIN_VALIDATE_NAME_SENSITIVITY = 0.85,
    MIN_VALIDATE_SHORT_NAME_SENSITIVITY = 0.65,
    MAX_SHORT_NAME_LENGTH = 8,
} = process.env;

const stringSimilarity = new StringSimiliarity({
    minValidateNameSensitivity: +MIN_VALIDATE_NAME_SENSITIVITY,
    minValidateShortNameSensitivity: +MIN_VALIDATE_SHORT_NAME_SENSITIVITY,
    maxShortNameLength: +MAX_SHORT_NAME_LENGTH,
});

console.log(stringSimilarity.validateBeneficiary('Ujang Kalong', 'Ujang Marujang'));

Readme

Keywords

none

Package Sidebar

Install

npm i nextrans-check-name-similarity

Weekly Downloads

3

Version

0.1.4

License

ISC

Unpacked Size

13.2 kB

Total Files

11

Last publish

Collaborators

  • tri.nexpay