{"word_count": 782, "character_count": 6736}
In order to anchor international or multinational lexicographic projects on existing Turkish dictionaries, we should have a common understanding of the way we make reference resources available, as is the case for the digital version of our Turkish dictionary project. Although there work has been being done on digitizing Turkish dictionaries, both old Turkish dictionaries and current versions of it, these few examples do not follow a standard way of encoding the source file. In order to overcome this obstacle, during the Lexical Data Masterclass in Berlin, on December 4-8, 2017, I worked on an XSLT transformation document to process an existing dictionary into an output conformant to the TEI standard. Seeing that almost all current Turkish dictionaries give the same category of lexical information in a very similar page layout, this XSLT could work on other digitalized or OCRized Turkish dictionaries. Even if they do not have a digital version, GROBID based projects can easily transform OCRized PDFs into digital file format like the works of Khemakhem et al. 2017.The entry structure that I have been using is from the Turkish Dictionary published by the Turkish Language Institute (abbreviated as "TDK" in Turkish) which acts as the official authority on the Turkish language (without any enforcement power) and it contributes to linguistic research on Turkish. Almost all mainstream Turkish dictionaries such as the ones published by Dil Derneği - Language Foundation (Dil Derneği Türkçe Sözlük, 2005) and Arkadaş Publishing (Püsküllüoğlu, 2004) share similarities by means of the lexical information given in the dictionary and also the page layout. The only difference is the order of information given in the microstructure. For example, the order of the etymological and phonological information is different; TDK (Turkish Language Institution) dictionary gives phonological information before the etymological information and the other dictionaries do the opposite; they first give the etymological information and then the phonological information. The rest of the page layout gives the same lexical information in the same order. Therefore, the same XSLT file could handle all Turkish dictionaries to do such a transformation for an appropriate TEI standard. I should also thank Laurent Romary for his invaluable help while I was creating the XSLT file during the Lexical Data Masterclass.In the XSLT file, we first used the &#60;teiheader&#62; to declare the necessary information about the dictionary. This section contains information about the title of the dictionary, the author, and the publication statement which also contains copyright information. TEI-header also includes the bibliographic information about the dictionary that includes the edition, publisher and publishing date.After using the TEI header, we start the transformation process. We begin with the first parent element under the root element and its children element for each entry. For this, we use &#60;xsl:template&#62; with “@match” attribute to put all the entries under the &#60;entry&#62; tag. Inside this xsl:template, we use &#60;xsl:template&#62; again but this time we use the “select” attribute to select all the words in the dictionary.&#60;xsl:template match="madde"&#62;&#60;entry&#62;&#60;xsl:apply-templates select="sozcuk"/&#62;&#60;/entry&#62;&#60;/xsl:template&#62;Now, we have all our entries inside the &#60;entry&#62; element. In each entry, we have lemmas, and lemmas are tagged with &#60;form&#62; element with “type” attribute named as “lemma”.&#60;xsl:template match="sozcuk"&#62;&#60;form type="lemma"&#62;&#60;orth&#62;&#60;xsl:apply-templates/&#62;&#60;/orth&#62;&#60;/form&#62;&#60;/xsl:template&#62;Since Turkish is an agglutinative language, certain suffixes change the ending of the word and Turkish dictionaries provides this information. &#60;form type=“inflected”&#62; is used to reflect this change in the XML file. &#60;orth&#62; is used after the the &#60;form&#62; tag since this change is related to the orthography of the word.&#60;xsl:template match="degisim"&#62;&#60;form type="inflected"&#62;&#60;orth&#62;&#60;xsl:apply-templates/&#62;&#60;/orth&#62;&#60;/form&#62;&#60;/xsl:template&#62;For grammatical information like part of speech, &#60;gramGrp&#62; and &#60;pos&#62; is used. For additional grammatical information &#60;subc&#62; is used, like cases.&#60;xsl:template match="dilbgs"&#62;&#60;gramGrp&#62;&#60;pos&#62;&#60;xsl:apply-templates/&#62;&#60;/pos&#62;&#60;/gramGrp&#62;&#60;/xsl:template&#62;&#60;xsl:template match="durum"&#62;&#60;subc&#62;&#60;xsl:apply-templates/&#62;&#60;/subc&#62;&#60;/xsl:template&#62;Next is the etymological information. For etymological information &#60;etym&#62; is used. &#60;etym&#62; tags can also be used with &#60;lang&#62; tags where you can specify the language origin.&#60;xsl:template match="kok"&#62;&#60;etym&#62;&#60;lang&#62;&#60;xsl:apply-templates/&#62;&#60;/lang&#62;&#60;/etym&#62;&#60;/xsl:template&#62;For the examples used in the dictionary, &#60;cit type=“example”&#62; is used. All examples used in TDK dictionary is taken from literary pieces, like novels, poems etc. &#60;quote&#62; and &#60;bibl&#62; tags are being used after &#60;cit&#62; since they refer to a bibliographic reference.&#60;xsl:template match="ornek"&#62;&#60;cit type="example"&#62;&#60;quote&#62;&#60;bibl&#62;&#60;xsl:apply-templates/&#62;&#60;/bibl&#62;&#60;/quote&#62;&#60;/cit&#62;&#60;/xsl:template&#62;The author information for the example is also given in the dictionary by using the &#60;author&#62; tag.&#60;xsl:template match="ornek_kaynak"&#62;&#60;author&#62;&#60;xsl:apply-templates/&#62;&#60;/author&#62;&#60;/xsl:template&#62;At the end of the entry, TDK gives related entries that can be related to the current entry. In order to show this information, we used &#60;re&#62; and the “type” attribute for specifying the degree of relatedness, "collocation" or "proverb" etc.&#60;xsl:template match="atasozu_deyim_birlesikfiil"&#62;&#60;re type=“proverb-idiom-compoundVerb“&#62;&#60;xsl:apply-templates/&#62;&#60;/re&#62;&#60;/xsl:template&#62;&#60;xsl:template match="birlesiksoz"&#62;&#60;re type="collocation"&#62;&#60;xsl:apply-templates/&#62;&#60;/re&#62;&#60;/xsl:template&#62;ReferencesDil Derneği Türkçe Sözlük. (2005). Dil Derneği, Ankara.Khemakhem, M., Foppiano, L., &#38; Romary, L. (2017). Automatic Extraction of TEI Structures in Digitized Lexical Resources using Conditional Random Fields. in electronic lexicography, eLex 2017, Sep 2017, Leiden, Netherlands.  〈hal-01508868v2〉Püsküllüoğlu, A. (2004). Arkadaş Türkçe Sözlük. Doğan Kitap, İstanbul.Türkçe Sözlük. (1998) (9th edition). Türk Dil Kurumu Yayınları, Ankara.