v0.6.0
v0.6.0 (2026-08-15) — Academic-writing quality guard
Position upgrade: from an "AI-style linter" to a guard that protects research facts, author style, and writing quality while an agent edits a paper. Still 100% local regex/statistics — zero network, zero LLM.
New capabilities
- Scholarship Lock 🔴 —
writing_auditgains theoriginalargument: compares numbers, percentages, p-values, confidence intervals, units, \cite/\ref keys, Figure/Table numbers and DOIs between the pre-polishing text and the current text; changes are HIGH ("language polishing must not change 87.3% → 89.1%"). Removed citations are flagged too. - Defensive saturation (hedge density) —
hedge-density-en/zh: ≥5 hedges and ≥300/1k sentences (newsentencedensity unit) catches "a caveat on every conclusion" as a whole behavior. - Hedge stacking —
may potentially suggest/could possibly indicate/ Chinese 或许可能; "may well be" is NOT flagged. - Overlong + clause-stacked sentences — EN: >35 words and ≥3 clause markers; ZH: >80 chars and ≥5 commas and ≥3 connectives. Fully deterministic (rule counters).
- Restatement loops — same-paragraph sentence pairs with token-cosine ≥0.72 and no new evidence in the later sentence (zero-LLM cosine: word tokens EN / char 2-grams ZH).
- Author Style Profile — new
writing_style_profiletool learns sentence-length distribution and densities from the author's previous papers;writing_audit'sstyleProfileargument flags sentence-length drift. - Strong claim without evidence anchor — prove/establish/confirm/guarantee with no number/statistic/table/figure citation within ±120 chars → "check for an anchor".
- Consecutive sentence-initial connectives — ≥3 consecutive Moreover/Furthermore/Additionally sentences in one paragraph.
- Unicode math symbols — ₁₂₃ ²³ α β × − in prose → suggest LaTeX math mode (low severity).
Also
- New sentence splitter (
splitSentences, EN/ZH mixed, "Fig. 3"/"e.g." safe). - Density rules support
sentenceunit; fingerprint version bumped to 4 (baselines rebuilt once). - Tests: 105 → 134 assertions, all passing; CI green.
- npm published as
dsh-plugin-writing-guard@0.6.0; install:dsh plugin --profile web add dsh-plugin-writing-guard.
Full changelog: https://github.com/xmutfyh/dsh-plugin-writing-guard/blob/master/CHANGELOG.md