Skip to content

Link 3553 items of the seed list and the skeletons to their nodes - #205

Merged
tamnd merged 1 commit into
mainfrom
coverage/link-items
Nov 1, 2026
Merged

tamnd merged 1 commit into
mainfrom
coverage/link-items

Conversation

@tamnd

@tamnd tamnd commented Nov 1, 2026

Copy link
Copy Markdown
Owner

The schemas of the curricula and the skeletons took only tags of six
characters, so no item could name a node of ten characters (corpus spec
K3.8). They now take both. scripts/link_items.py writes the field node
of each item whose name, or a variant of its spelling, is the name or an
alias of exactly one node of a kind that fits. The seed list has 2387 of
2416 items with a node, and the skeletons 1166 of 12761.
check_curricula.py gives 0 errors.

The schemas of the curricula and the skeletons took only tags of six
characters, so no item could name a node of ten characters (corpus spec
K3.8). They now take both. scripts/link_items.py writes the field node
of each item whose name, or a variant of its spelling, is the name or an
alias of exactly one node of a kind that fits. The seed list has 2387 of
2416 items with a node, and the skeletons 1166 of 12761.
check_curricula.py gives 0 errors.
@tamnd
tamnd merged commit 114323a into main Nov 1, 2026
@tamnd
tamnd deleted the coverage/link-items branch November 1, 2026 09:00
Comment thread scripts/link_items.py
def read_nodes():
nodes = []
for f in glob.glob("nodes/*/*.md"):
text = open(f, encoding="utf-8").read()
Comment thread scripts/link_items.py


def link_file(path, by_key, dry):
lines = open(path, encoding="utf-8").read().split("\n")
Comment thread scripts/link_items.py
stats["new"] += 1
lines[i] = m.group(1) + m.group(2) + ", node: " + tag + m.group(3)
if not dry:
open(path, "w", encoding="utf-8").write("\n".join(lines))
Comment thread scripts/link_items.py


if __name__ == "__main__":
sys.exit(main())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants