SPEC Shorthand Codec (Retired Archive)

This browser-only codec demo is preserved for historical inspection. SPEC is retired and is not an active Kiah feature, SDK, API, or product.

Lossless ~-token encoding can still be decoded deterministically. Semantic mode remains lossy.

Try Prompt Compactor

Download dictionary JSON (for your own integrations).

Runs entirely in your browser. We don’t receive or store your text.

Live SPEC Demo

Original Text

0 chars

SPEC Output

0 chars
0%
Reduction
0
Chars Saved
Round-trip
Dict entries
0ms
Processing Time

Try These Examples

Prompt Compression

"Please summarize this information and generate a short response for the assistant."

~33% reduction (lossless)

Phrase Compression

"in other words, for example, explain the system configuration."

~45% reduction (lossless)

Case Flags

"Tomorrow INFORMATION: please review and update."

~26% reduction (lossless)

Semantic Mode

"characterization and interoperability are important for documentation."

~39% reduction (semantic)

How SPEC Works

1

Lossless Codes

Dictionary words become short ~-prefixed tokens (safe to decode)

the~t, because~bc
2

Phrase Codes

Common prompt phrases compress to short codes (lossless; tokenizer-dependent)

for example~p/eg, in other words~p/iow
3

Case + Escapes

Preserve case and prevent accidental expansions

Tomorrow~^tmrw, ~~~
4

Semantic Mode

Optional vowel compression for extra savings on long lowercase words (not perfectly reversible; skips mixed-case identifiers)

characterizationcharctrztn