12. One or more computer-readable storage device containing computer-readable instructions embodied thereon that, when executed by a computing device, perform a method of selecting a primary language of a multilingual document, the method comprising: dividing plain-text content of a document into one or more weighted sections, the sections are weighed according to their relative importance in conveying information regarding a content of the document and comprise logical areas of a layout of the document including one or more of title, heading, article text, header, and footer; determining a likelihood score for each word, phrase, or character n-gram belonging to one or more languages for each of the weighted sections; summing all of the likelihood scores from each word, phrase, or character n-gram in each of the sections and multiplying a sum by the weight associated with the section for each individual language to obtain one or more section language summations; combining all of the section language summations for each individual language to obtain a document score for each individual language; ranking all of the document scores; and selecting a primary document language from the highest document score.
12. One or more computer-readable storage device containing computer-readable instructions embodied thereon that, when executed by a computing device, perform a method of selecting a primary language of a multilingual document, the method comprising: dividing plain-text content of a document into one or more weighted sections, the sections are weighed according to their relative importance in conveying information regarding a content of the document and comprise logical areas of a layout of the document including one or more of title, heading, article text, header, and footer; determining a likelihood score for each word, phrase, or character n-gram belonging to one or more languages for each of the weighted sections; summing all of the likelihood scores from each word, phrase, or character n-gram in each of the sections and multiplying a sum by the weight associated with the section for each individual language to obtain one or more section language summations; combining all of the section language summations for each individual language to obtain a document score for each individual language; ranking all of the document scores; and selecting a primary document language from the highest document score. 14. The device of claim 12 , wherein the dividing is implemented using HTML tags.