vietnamese-data-analyzer
v2.0.2
Published
A library to compare Vietnames names,addresses etc.
Downloads
11
Maintainers
Readme
vietnam-data-analyzer
Comparison of vietnamese names and Addresses/Provinces with the added functionality of using editDistance for comparison.
Use Case
Name Comparison :
const { compareNames } = require('vietnamese-data-analyzer')
const name1 = 'Thạch Vương'
const name2 = 'Tăng Vương'
const isSame = compareNames(name1,name2); // When you don't want to use edit distance.
const isSame = compareNames(name1,name2,maxEditDistance); //Setting an upper Limit for edit Distance
Address Comparison :
const { compareAddresses } = require('vietnamese-data-analyzer')
const address1 = 'Xóm Biu Hương Nhượng,'
const address2 = 'HẠNH SƠN, VĂN CHẤN,'
// Commas aren't considered during comparison
const isSame = compareAddresses(address1,address2); // When you don't want to use edit distance.
const isSame = compareAddresses(address1,address2,maxEditDistance); //Setting an upper Limit for edit Distance