Tagging lexical words in the text and/or linking to lemmata for purposes of indexing or search.
Explicit markup of words (tokenization) and identification of their dictionary headwords (lemmatization) are both optional. Many projects simply leave these features unmarked, or rely on automated processes in search software to detect word-breaks and link to lemmatizing tools such as Morpheus. (The Papyrological Navigator, Perseus, and the TLG all use methods similar to this.)
To explicitly mark-up lexical words in a papyrological or epigraphic text, however, each word in the text should be enclosed in a <w> element. (For ease of processing, it is advised that inter-word spacing, punctuation and other features be left outside of this element, and if possible there should be no spaces or carriage returns within the <w> element.)
To record the lemma or dictionary headword of the word in question, the simplest solution is to enter the uninflected form in a lemma attribute, which may be used, for example, to generate the entries in a lexical index to the corpus.
A slightly more sophisticated solution is to enter in a lemmaRef attribute a URL or other URI that points to the entry for the word in question in a database or online dictionary. This solution allows for better disambiguation of homonymous words, for example, or linking to morphological and statistical information about the word.
If a single word tag contains more than one indexable word (e.g. "populusque" in Latin or "κἀκ" in Greek), or an incomplete word is ambiguous and might correspond to either of two or more lemmata (e.g. ΕΚΦΕΥΞ), then all lemmata that should be indexed may be included in the lemma attribute, separated by spaces: