Hierarchical Dirichlet prediction by letter