@lacspace/nepali-match 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "@lacspace/nepali-match",
3
+ "version": "1.0.0",
4
+ "description": "Nepali and English matching for names and keywords in running text: normaliseNe() folds spelling variants (chandrabindu → anusvara, half nasal + consonant → anusvara, long/short vowels, nukta/ZWJ/ZWNJ, NFC, Devanagari digits); whole-word matching that lets Nepali postpositions follow a word (झापाको → Jhapa, जिल्लाहरूमा, काठमाडौंबाटै) but no other letters (पर्वतारोही ≠ Parbat); English whole words with short all-caps acronyms kept exact-case (\"Come and see\" ≠ SEE); near() for two terms within N characters in the same sentence (। . ? ! newline), dotted abbreviations kept together; offsets into the original text; splitSuffix(); and districtTerms() for all 77 districts with real-world spellings. Pure JS, zero dependencies, React Native safe.",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "require": {
16
+ "types": "./dist/index.d.cts",
17
+ "default": "./dist/index.cjs"
18
+ }
19
+ }
20
+ },
21
+ "files": [
22
+ "dist"
23
+ ],
24
+ "sideEffects": false,
25
+ "scripts": {
26
+ "build": "tsup",
27
+ "prepublishOnly": "npm run build"
28
+ },
29
+ "keywords": [
30
+ "nepali",
31
+ "devanagari",
32
+ "nepal",
33
+ "text-matching",
34
+ "keyword-matching",
35
+ "whole-word",
36
+ "postpositions",
37
+ "normalization",
38
+ "unicode",
39
+ "districts",
40
+ "gazetteer",
41
+ "search",
42
+ "nlp",
43
+ "typescript",
44
+ "react-native"
45
+ ],
46
+ "devDependencies": {
47
+ "@lacspace/nepali-utils": "^1.6.0"
48
+ },
49
+ "author": "Lacspace <contact@lacspace.com>",
50
+ "license": "SEE LICENSE IN LICENSE",
51
+ "homepage": "https://developer.lacspace.com/packages/nepali-match",
52
+ "repository": {
53
+ "type": "git",
54
+ "url": "git+https://github.com/lacspace/npm-packages.git",
55
+ "directory": "nepali-match"
56
+ },
57
+ "bugs": {
58
+ "url": "https://github.com/lacspace/npm-packages/issues"
59
+ },
60
+ "engines": {
61
+ "node": ">=18"
62
+ },
63
+ "publishConfig": {
64
+ "access": "public"
65
+ }
66
+ }