1. A computer-implemented method, comprising: under control of one or more processors configured with executable instructions, identifying n-gram frequencies for multiple languages; identifying multiple n-grams of a sample text; for each individual n-gram of the multiple n-grams, calculating Bayesian probabilities corresponding respectively to the multiple languages, based at least in part on the identified n-gram frequencies; for each individual language of the multiple languages, calculating an average of the calculated Bayesian probabilities corresponding to the individual language; and comparing the calculated averages to determine the language of the sample text.