dsh-text-count

Deterministic text counting for CJK and Latin writing: Word-style wordCount, graphemes versus code points, punctuation split by script, UTF-8 bytes, and min/max pass-fail checks so length limits get verified instead of guessed.

Overview

Deterministic text counting for CJK and Latin writing: Word-style wordCount, graphemes versus code points, punctuation split by script, UTF-8 bytes, and min/max pass-fail checks so length limits get verified instead of guessed.

Installation

Install from npm

dsh plugin --profile web add dsh-text-count

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

Install from GitHub

dsh plugin --profile web add github:QqiqiQ/dsh-text-count

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.