glost 0.1.0 → 0.1.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/CHANGELOG.md +9 -0
- package/README.md +7 -7
- package/package.json +3 -3
package/CHANGELOG.md
ADDED
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# glost
|
|
2
2
|
|
|
3
3
|
Core types and node creation for GLOST (Glossed Syntax Tree).
|
|
4
4
|
|
|
@@ -16,14 +16,14 @@ GLOST (Glossed Syntax Tree) is a Concrete Syntax Tree format that extends nlcst
|
|
|
16
16
|
## Installation
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
pnpm add
|
|
19
|
+
pnpm add glost
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## Usage
|
|
23
23
|
|
|
24
24
|
```typescript
|
|
25
|
-
import { createGLOSTWordNode, createGLOSTRootNode } from "
|
|
26
|
-
import type { GLOSTWord, GLOSTRoot } from "
|
|
25
|
+
import { createGLOSTWordNode, createGLOSTRootNode } from "glost";
|
|
26
|
+
import type { GLOSTWord, GLOSTRoot } from "glost";
|
|
27
27
|
|
|
28
28
|
// Create a word node with annotations
|
|
29
29
|
// Language codes: ISO-639-1, ISO-639-3, or BCP-47 all work
|
|
@@ -53,9 +53,9 @@ const word = createGLOSTWordNode(
|
|
|
53
53
|
|
|
54
54
|
## Related Packages
|
|
55
55
|
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
56
|
+
- `glost-extensions` - Extension system for transforming GLOST trees
|
|
57
|
+
- `glost-utils` - Utilities for working with GLOST documents
|
|
58
|
+
- `glost-common` - Shared utilities and language configs
|
|
59
59
|
|
|
60
60
|
## Documentation
|
|
61
61
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "glost",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "GLOST - Glossed Syntax Tree for augmenting text with language learning metadata",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"unist-util-select": "^5.1.0",
|
|
39
39
|
"unist-util-visit": "^5.0.0",
|
|
40
40
|
"zod": "^3.23.8",
|
|
41
|
-
"glost-common": "0.1.
|
|
41
|
+
"glost-common": "0.1.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/nlcst": "^2.0.3",
|
|
@@ -62,6 +62,6 @@
|
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "tsc",
|
|
64
64
|
"typecheck": "tsc --noEmit",
|
|
65
|
-
"test": "vitest"
|
|
65
|
+
"test": "vitest --passWithNoTests"
|
|
66
66
|
}
|
|
67
67
|
}
|