Compress a sorted word list or decompress a file compressed by abridge or GNU word-list-compress.
abridge
is a port of GNU word-list-compress to Rust.
word-list-compress
is about 150 SLOC. abridge
is about 50 SLOC or 80 with the CLI. They perform identically.
You'll need the Rust compiler and Cargo. The easiest way to do that is to get rustup.
shell
cargo install abridge
See abridge --help
.
shell
abridge -c < words.txt # compress words.txt
shell
abridge --decompress < words.tzip # decompress words.tzip
shell
abridge --compress < words.txt > words.tzip # compress words.txt and save to file
Abridge can compress word lists where:
Words may include uppercase characters, but use lowercase for the best results.
Abridge can decompress files compressed by abridge
or word-list-compress
alike.
Run cargo test
.
Abridge is licensed under GNU General Public License.