The classify CLI's lexical engine had zero lexicon coverage for "feature"
and "praise" (only "bug" was covered) and none at all for generic
sentiment (positive/negative/neutral), so bare-label runs of the CLI's
own README example either tied on everything or confidently mislabeled a
praise/feature row as a bug whenever a bug-shaped word like "crash"
appeared. Add two small, additive synonym groups to the existing lexicon.
Measured on a new 65-row synthetic gold set (examples/classify-eval.jsonl,
run via `npm run classify-eval`, scripts/classify-eval.mjs): 32.3% -> 49.2%
accuracy counting ties as wrong, 67.7% -> 71.1% on rows the engine
actually committed to; the sentiment set alone went 5.0% -> 35.0%. The
product-wide gold regression suite (`npm run gold`) still passes 61/61 —
every change is a new synonym entry, not an edit to an existing one.
README now documents the measured numbers, the --threshold tradeoff
(0.55 raises decided-row accuracy to 83.8% at the cost of more abstains),
and the real remaining limit: a bag-of-words engine can't fully resolve
a praise sentence that mentions "crash" from an actual bug report.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
New subcommand that imports the engine straight from src/ with Node type
stripping: no server, no key, no model download. Reads one text per line on
stdin, or a .txt, .csv (--column) or .jsonl (--field) file; prints a table or
JSON lines, or writes .csv / .jsonl with --out. Each row gets a label, a
probability and the engine that answered (embedding when the gte-small model
is installed, else lexical). --threshold blanks low-probability rows for
review, and near-ties are always left blank. Labels accept an optional
description (name:description).
Exit codes: 2 for usage errors, 1 for missing files, columns or bad JSON.