A probabilistic framework for Chinese spelling check