TYEclipse/dsh-checkdigit

TYEclipse★ 1TypeScript最后同步: 2026-08-20

在 GitHub 打开

Check-digit mathematics toolbox for DeepSeek Harness (dsh): generate, validate and detect Luhn / Verhoeff / Damm / ISBN / EAN / UPC / ISIN / CUSIP / IBAN check digits — zero runtime dependencies

README 摘要

dsh-checkdigit Check-digit mathematics toolbox for DeepSeek Harness (dsh): generate, validate and detect check digits for 11 schemes — Luhn, Verhoeff, Damm, ISBN-10, ISBN-13, EAN-8, EAN-13, UPC-A, ISIN, CUSIP and IBAN. 校验位数学工具箱:生成 / 验证 / 识别 11 种校验位(Luhn、Verhoeff、Damm、ISBN、EAN、UPC、ISIN、CUSIP、IBAN),零运行时依赖、纯本地算术。 Why Language models routinely botch check-digit arithmetic: wrong card-number checksums, ISBNs that fail validation, IBANs with impossible check digits. Every algorithm here is implemented from its published specification with pure integer arithmetic — deterministic, offline, zero runtime dependencies — and cross-checked against published worked examples (Apple's US0378331005 , the classic GB82 WEST 1234 5698 7654 32 , the Luhn textbook example 79927398713 , and more). Install Then add dsh-checkdigit to dsh.profile.bundles in your profile's package.json if it is not auto-activated, and restart dsh. Tools checkdigit generate Compute the check digit for a payload and return the complete identifier. Supported scheme values and their payloads: scheme payload check digit example complete luhn digits (any length ≥ 1) last digit 79927398713 verhoeff digits (any length ≥ 1) last digi…

在 GitHub 查看完整 README →
终端/TUIcheck-digitdeepseek-harnessdsh-pluginibanluhn

分类