1. A non-transitory computer-readable medium storing computer-executable instructions that when executed by a computer cause the computer to perform a method, the method comprising: receiving a document; applying a language tag value to a language tag of the document; applying a locale tag value to a locale tag of the document; and storing the document, the language tag value, and the locale tag value in a memory; where the language tag and the locale tag are assigned positions in a hierarchy of linguistic tags such that the language tag inherits from the locale tag.