Data compression programs, such as the file zipping applications found
on many personal computers, provide an unusual means to analyze information.
Researchers at the La Sapienza University in Rome (Emanuele Caglioti,
caglioti@mat.uniroma1.it, 39-06-4991-4972) have demonstrated how compression
routines can accurately identify the language, and even the author,
of a document without requiring anyone to bother reading the composition.
The key to the analysis is the measurement of the compression efficiency
that a program achieves when an unknown document is appended to various
reference documents.
Zipping programs typically compress data by searching for repeated
strings of information in a file. The programs record a single copy
of the information and note the locations of subsequent instances of
the string. Unzipping a file consists of replacing various bits of information
at the locations recorded by the zipped file. Such file compression
routines work better on long files because programs are, in effect,
learning about the type of information they are encoding as they move
through the data. Add a page of Italian text to an Italian document,
and a zipping program achieves good efficiency because it finds words
and phrases that appear earlier in the file. If, however, Italian text
is appended to an English document, the program is forced to learn a
new language on the fly, and compression efficiency is reduced.
The researchers found that file compression analysis worked well in
identifying the language of files as short as twenty characters in length,
and could correctly sort books by author more than 93% of the time.
Because subject matter often dictates vocabulary, a program based on
the analysis could automatically classify documents by semantic content,
leading to sophisticated search engines. The technique also provides
a rigorous method for various linguistic applications, such as the study
of the relationships between different languages. Although they are
currently focusing on text files, the researchers note that their analysis
should work equally well for any information string, whether it records
DNA sequences, geological processes, medical data, or stock market fluctuations.
(D. Benedetto,
E. Caglioti, and V. Loreto, Physical Review Letters, 28 January
2002.)