Text::Lossy is a Perl 5 module which implements lossy text compression. Specifically, it implements the "lossy" part to transform any text to a form which is better compressible by standard entropy-based compression algorithms.

Several filters are provided, such as lower-casing, whitespace normalization and removal of punctiation. It also includes a binary, text-lossy, which can be used as a command-line filter.