Common compression algorithms use statistical analysis of data to determine common patterns and give those patterns shorter representations in data. And I’m thinking - if the data to be compressed is a block of text, can a dictionary not be used to compress the data? Have the compression program have an indexed dictionary, and replace the words with their dictionary index. Unrecognized words can be left as they are, or perhaps given an ad-hoc index stored inside the compressed file.

This, naturally, will only be useful for natural language texts, and needs a dictionary for each language.

Is this feasible? Is this already being done? Is this actually useful for anything?