vietnamese-data-analyzer

2.0.2 • Public • Published

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 

Package Sidebar

Install

npm i vietnamese-data-analyzer

Weekly Downloads

1

Version

2.0.2

License

MIT

Unpacked Size

4.72 kB

Total Files

5

Last publish

Collaborators

  • kartikkhk