morphex 0.0.0-stage → 1.0.1
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/BENCHMARKS.md +95 -0
- package/LICENSE +25 -0
- package/NOTICE +23 -0
- package/README.md +212 -2
- package/dist/full.cjs +1798 -0
- package/dist/full.d.cts +12 -0
- package/dist/full.d.ts +12 -0
- package/dist/full.js +1780 -0
- package/dist/index.cjs +1784 -0
- package/dist/index.d.cts +257 -0
- package/dist/index.d.ts +257 -0
- package/dist/index.js +1767 -0
- package/dist/rules.cjs +1784 -0
- package/dist/rules.js +1767 -0
- package/package.json +101 -4
package/package.json
CHANGED
|
@@ -1,6 +1,103 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "morphex",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Deterministic English noun pluralization in TypeScript: auditable lexicon, three productive rules, compound handling, and a diagnostic analyze() API.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Justin Baker",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">=18"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"pluralize",
|
|
14
|
+
"plural",
|
|
15
|
+
"inflector",
|
|
16
|
+
"english",
|
|
17
|
+
"nouns",
|
|
18
|
+
"morphology",
|
|
19
|
+
"typescript"
|
|
20
|
+
],
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/slayyyyer/morphex.git",
|
|
24
|
+
"directory": "morphex-ts"
|
|
25
|
+
},
|
|
26
|
+
"homepage": "https://slayyyyer.github.io/morphex/",
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/slayyyyer/morphex/issues"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist/*.js",
|
|
32
|
+
"dist/*.cjs",
|
|
33
|
+
"dist/*.d.ts",
|
|
34
|
+
"dist/*.d.cts",
|
|
35
|
+
"LICENSE",
|
|
36
|
+
"NOTICE",
|
|
37
|
+
"README.md",
|
|
38
|
+
"BENCHMARKS.md"
|
|
39
|
+
],
|
|
40
|
+
"main": "./dist/index.cjs",
|
|
41
|
+
"module": "./dist/index.js",
|
|
42
|
+
"types": "./dist/index.d.ts",
|
|
43
|
+
"exports": {
|
|
44
|
+
".": {
|
|
45
|
+
"import": {
|
|
46
|
+
"types": "./dist/index.d.ts",
|
|
47
|
+
"default": "./dist/index.js"
|
|
48
|
+
},
|
|
49
|
+
"require": {
|
|
50
|
+
"types": "./dist/index.d.cts",
|
|
51
|
+
"default": "./dist/index.cjs"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"./full": {
|
|
55
|
+
"import": {
|
|
56
|
+
"types": "./dist/full.d.ts",
|
|
57
|
+
"default": "./dist/full.js"
|
|
58
|
+
},
|
|
59
|
+
"require": {
|
|
60
|
+
"types": "./dist/full.d.cts",
|
|
61
|
+
"default": "./dist/full.cjs"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"./rules": {
|
|
65
|
+
"import": {
|
|
66
|
+
"types": "./dist/index.d.ts",
|
|
67
|
+
"default": "./dist/rules.js"
|
|
68
|
+
},
|
|
69
|
+
"require": {
|
|
70
|
+
"types": "./dist/index.d.cts",
|
|
71
|
+
"default": "./dist/rules.cjs"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"./package.json": "./package.json"
|
|
75
|
+
},
|
|
76
|
+
"scripts": {
|
|
77
|
+
"build:data": "tsx scripts/build-lexicon.ts",
|
|
78
|
+
"build": "npm run build:data && tsup",
|
|
79
|
+
"build:site": "npm run build:data && tsx scripts/build-site.ts",
|
|
80
|
+
"typecheck": "npm run build:data && tsc --noEmit",
|
|
81
|
+
"lint": "npm run build:data && eslint . && prettier --check .",
|
|
82
|
+
"format": "prettier --write .",
|
|
83
|
+
"test": "npm run build:data && vitest run",
|
|
84
|
+
"fixtures": "tsx scripts/export-fixtures.ts",
|
|
85
|
+
"bench": "npm run build:data && tsx scripts/bench.ts",
|
|
86
|
+
"check:package": "publint && attw --pack . --profile node16"
|
|
87
|
+
},
|
|
88
|
+
"devDependencies": {
|
|
89
|
+
"@arethetypeswrong/cli": "^0.18.5",
|
|
90
|
+
"@eslint/js": "^9.20.0",
|
|
91
|
+
"@types/node": "^22.13.4",
|
|
92
|
+
"esbuild": "^0.25.0",
|
|
93
|
+
"eslint": "^9.20.1",
|
|
94
|
+
"eslint-config-prettier": "^10.0.1",
|
|
95
|
+
"prettier": "^3.5.1",
|
|
96
|
+
"publint": "^0.3.6",
|
|
97
|
+
"tsup": "^8.3.6",
|
|
98
|
+
"tsx": "^4.19.3",
|
|
99
|
+
"typescript": "^5.7.3",
|
|
100
|
+
"typescript-eslint": "^8.24.0",
|
|
101
|
+
"vitest": "^3.0.5"
|
|
102
|
+
}
|
|
103
|
+
}
|