n-gram based model for detecting the language of  a document.