universal-nepali-address-parser
v1.0.0
Published
Parse, normalize and validate Nepali addresses (Tole, Ward, Municipality, District, Province). Accepts freeform Nepali/English text, uses fuzzy matching and heuristics.
Maintainers
Readme
universal-nepali-address-parser
Parse, normalize, and validate Nepali addresses (Tole, Ward, Municipality, District, Province) from freeform Nepali or English text. Uses fuzzy matching (Fuse.js) and heuristics to extract components and correct spelling variations.
Features
parse(address)— extract components from freeform textnormalize(parsed)— canonicalize names with fuzzy matchingvalidate(parsed)— validate consistency against the dataset (ward ranges, district-province relationships)setDataset(customData)— replace bundled dataset with your own (useful for adding municipalities)
Works offline — dataset is bundled. Replace with a larger dataset for production.
Install
npm install universal-nepali-address-parser