Lossy text compressor