Collection of statistical information about texts using finite context models and generation of automatic text