On the Helmholtz principle for text mining