garu-ko 0.1.2 → 0.1.4

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.
Files changed (2) hide show
  1. package/README.md +9 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -87,6 +87,15 @@ interface Token {
87
87
 
88
88
  Set `options.topN > 1` to get N-best results as an array.
89
89
 
90
+ ### `garu.nouns(text): string[]`
91
+
92
+ Extract nouns (NNG, NNP) from text.
93
+
94
+ ```js
95
+ garu.nouns('인공지능 기술이 발전했다');
96
+ // ["인공", "지능", "기술", "발전"]
97
+ ```
98
+
90
99
  ### `garu.tokenize(text): string[]`
91
100
 
92
101
  Returns surface-form strings only. Lightweight alternative to `analyze()`.
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "garu-ko",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Ultra-lightweight Korean morphological analyzer for the web (2.2MB model, WASM 93KB, F1 95.3%)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
- "files": ["dist", "pkg", "models"],
8
+ "files": ["dist", "pkg", "models", "README.md"],
9
9
  "scripts": {
10
10
  "build:wasm": "wasm-pack build ../crates/garu-wasm --target web --out-dir ../../js/pkg",
11
11
  "build:js": "tsc",