[lang][library] Languages: liber-lang (words with UTF-16 offsets, lemmatizer trait with tables and hand-written rules, coverage, warm-up, levels, Ludus concept ids, Gale-Church alignment with anchors); known words, the known band, familiar books and editions as events

This commit is contained in:
2026-11-17 19:33:45 +01:00
parent 4e68eec3c4
commit 7dca9de95c
25 changed files with 2272 additions and 8 deletions
+4 -1
View File
@@ -13,11 +13,14 @@ crates/liber-library book identity (ISBN, text fingerprint), the library model
(sync semantics), stats, Goodreads/StoryGraph CSV import, the liber-export format
crates/liber-habit Day 2: the local day (the only day computation in Liber), days read, the forgiving streak,
the reminder schedule, the medal rules (a pure function of the log)
crates/liber-lang Day 3: words by UAX #29 with UTF-16 offsets, the Lemmatizer trait (a licensed table first,
hand-written rules per language after), a book's lemma counts, coverage, the warm-up, levels,
Ludus concept ids, edition alignment (Gale–Church with anchors). Ships no outside data.
fixtures-fetch/ sha256-pinned hostile corpora -> fixtures/fetched/ (never in git; the tests generate theirs)
docs/ FORMATS.md (formats, limits, positions, DRM), DEPENDENCIES.md (every crate, its licence)
scripts/deps.mjs regenerates the crate table in DEPENDENCIES.md; exits 1 on a licence outside the allowed set
```
Direction: `liber-habit -> liber-library -> liber-format`. Neither crate opens files, sockets or reads the clock: bytes in, values
Direction: `liber-habit -> liber-library -> liber-format`; `liber-lang` stands alone. No crate opens files, sockets or reads the clock: bytes in, values
out; time and ids are parameters (`tests/purity.rs` checks the sources).
## Commands