<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1" global="678"/><title>Creation and Development of the Romanian Lexical Resources</title><pubinfo>Proceedings of Recent Advances in Natural Language Processing,pages 678-685, Hissar, Bulgaria, 12-14 September 2011.</pubinfo><author surname="Boian" givenname="Elena"><org  name="Institute of Mathematics" country="Romania" city="Bucharest"/></author><author surname="Ciubotaru" givenname="Constantin"><org  name="Institute of Mathematics" country="Romania" city="Bucharest"/></author><author surname="Cojocaru" givenname="Svetlana"><org  name="Institute of Mathematics" country="Romania" city="Bucharest"/></author><author surname="Colesnicov" givenname="Alexandru"><org  name="Institute of Mathematics" country="Romania" city="Bucharest"/></author><author surname="Malahov" givenname="Ludmila"><org  name="Institute of Mathematics" country="Romania" city="Bucharest"/></author><author surname="Petic" givenname="Mircea"><org  name="Institute of Mathematics" country="Romania" city="Bucharest"/></author></firstpageheader><frontmatter><p><b>Creation and Development of the Romanian Lexical Resources</b></p><p><b>Elena Boian, Constantin Ciubotaru, Svetlana Cojocaru, Alexandru Colesnicov,</b></p><p><b>Ludmila Malahov, Mircea Petic</b></p><p>Institute of Mathematics and Computer Science, Chiginäu, Moldova</p><p>{lena,chebotar,svetlana.cojocaru,kae,mal,mirsha}@math.md</p></frontmatter><abstract>This article describes the Romanian lexical resources containing morpholog­ical data and dictionaries: synonyms, Romanian-English, and Romanian-Russian. The inflection process at the creation of morphological resources based on the functional grammar with scattered context is considered. An arbitrary word is in­flected knowing only its part of speech, and the gender for nouns. New words were obtained also by using prefixing and suffixing. The research in automated prefixing and suffixing permit­ted us to determine some word classes for which this method is applicable, and to im­plement the corresponding algorithms. We describe the database structure, and the DB population programming tools. The article describes an approach to the checking of integrity and correctness of the morphological resources presented as a database mapping Romanian words to their morphological derivatives. </abstract></header><body><section number="1" title="Introduction"><p>Creation and development of the lexical resources are important parts of Natural Language Process­ing (NLP).</p><p>One of such resources for the Romanian lan­guage are Reusable Resources for the Romanian Language (RRRL).<footnote anchor="1"/></p><p>This article describes how these lexical re­sources were created and developed, the database structure, and the corresponding programming tools. The morphological and, more specifically, the inflectional aspects are pointed out.</p><footnote label="1"> http://www.math.md/elrr/</footnote><p>In Sec. 2, the implemented programs are de­scribed that populate the resources by automatic inflection (Boian and Cojocaru, 1996). The start­ing point for this approach was the book (Lom­bard and Gadei, 1981), where most of Romanian productive classes of words (nouns, adjectives and verbs) were classified according to their inflection groups. The classification was made from the lin­guistic point of view, and, for example, the accents were taken into account. In this case, it is possible to operate only with the graphical representation of the word that equally simplifies and complicates the problem. Nevertheless, this classification was useful and led to the idea to formalize word-forms producing with the special grammar that is pre­sented into Sec. 3. Other parts of speech (numer­als, pronouns, articles, conjunctions, prepositions, interjections) were entered into the Database (DB) manually as being not so numerous.</p><p>It is shown also how the inflectional model for an arbitrary word can be determined (Sec. 4). Knowing this information it is possible to perform the inflection automatically (Sec. 5).</p><p>The proposed solution is not restricted by the Romanian language but could be also applied to other natural languages with inflectional mecha­nisms similar to these of Romanian.</p><p>Another way to populate the DB is affixing. New words were generated by prefixing and suf­fixing (Cojocaru et al., 2009). The research in the possibilities of automated prefixing and suffix­ing permitted to determine some word classes for which this method is applicable, and to implement the corresponding algorithms. This led to consid­erable lexicon extension (Sec. 6).</p><p>In Sec. 7, the structure of the DB is described, the relations between the main and auxiliary ta­bles, and some techniques are discussed that were used to check the DB integrity and information correctness in maximally automated mode (Cojocaru et al., 2006).</p><page local="2" global="679"/></section><section number="2" title="Acquisition of lexical resources"><p>An important direction in NLP is acquisition of lexical resources. The problem of the automation of words inflexion process in Romanian was in­vestigated in (Boian and Cojocaru, 1996). The ob­tained results permitted to construct an electronic lexicon RRRL containing the lemmas and their word-forms. Lexical resources acquisition is car­ried out by using static and dynamic methods for words inflexion.</p><p><i>Static methods </i>use the morphological dictio­nary (Lombard and Gadei, 1981), where the in­flexion groups are indicated explicitly. The algo­rithm based on static method uses the formalism of the inflexion grammar for a natural language pro­posed in (Boian and Cojocaru, 1996).</p><p><i>Dynamic methods </i>tried to find the inflexion model analyzing the word structure, and especially its affixes. These affixes were determined by ex­amining of different lexicographic sources. Dy­namic method attempts to calculate the inflexion paradigm using some classifications. The inflex­ion programs created on the base of these methods permit to generate approx. 90% of all Romanian inflexions. Sometimes the user intervention is re­quested to solve ambiguities.</p></section><section number="3" title="Scattered Context Grammars for Vocabulary Generation"><p>The scattered context grammar rules have the fol­lowing form:</p><doubt alpha="44.8" length="29" tooSmall="False" monospace="0.0">[/]*[#][Ni]aiM2...an-ibn-ian—</doubt><doubt alpha="50.0" length="24" tooSmall="False" monospace="0.0">a[bia2...a'n-ibn-1a'nN2,</doubt><p>where <i>ai, a</i><i>i </i>are arbitrary words, and either <i>b</i><i>i </i>is nonempty word, or the special symbol <i>* </i>stands in­stead of bi, admits arbitrary /i. Numbers <i>N</i><i>j </i>are codes of the ending sets.</p><p>The interpretation of this rule is as follows. Let <i>w </i>be the base word to produce word-forms. Every slash <i>/ </i>indicates cutting the last letter from w. The word <i>v </i>obtained after this is considered as a root (if <i>N </i>exists) and <i>N</i>2 is its index in ending set list L. In any case the word <i>v </i>should have the form where every <i>/i </i>is an arbitrary (possible empty) word, not containing (for <i>i </i>= 1, 2,<i>.</i><i>.. ,n </i><i>— </i>1) the veto sub-word bi. Veto for <i>bi </i>is conditioned by the necessity to determine the position of the sub­word <i>ai </i>to be substituted. If there exists more then one representation of this kind the first one (scan­ning <i>v </i>from left to the right or vice versa if the sign # is present) should be selected.</p><doubt alpha="34.6" length="26" tooSmall="False" monospace="0.0">/0a1/1a2/2...an-1/n-1an/ny</doubt><p>Let us take the example word <i>w ="frate" </i>(Eng. "brother") that fits this case: masculine gender, singular number, indefinite form, is inflected using the rule M46 / 5 t—t 3. We have two sublists of endings for this word: <i>T5 = {e, e, e, ele, elui, e} </i>and <i>T3 </i>= <i>{i, i, i, ii, ilor, ilor}. </i>The rule is inter­preted as follows. First of all the last symbol of word <i>w </i>is deleted. It gives the root <i>v </i><b><i>1 </i></b><i>= "frat" </i>that is concatenated with the set of endings <i>T5</i>. One part of inflections is formed without alternation. The list of inflected words is: <i>frate, frate, frate, fratele, fratelui, frate. </i>Then the alteration of con­sonants <i>t — </i>t is performed in the root <i>v </i><b><i>1</i></b>. The obtained root <i>v</i>2 is concatenated with the set of endings <i>T3. </i>The list of the rest inflected words for <i>v2="fraf </i>is the following: <i>frati, frati, frati, fratii, fratilor, fratilor.</i></p><p>The obtained inflected words for <i>w="frate" </i>are: <i>frate, frate, frate, fratele, fratelui, frate, fratti, fratti, fratti, frattii, frattilor, frattilor.</i></p><p>Using such grammar rules, the process of creat­ing of the decomposed vocabulary was formalized. The inflexion grammar for Romanian contains 866 rules and 320 ending sets. They were used to ob­tain a morphological lexicon using dictionary with about 30,000 lemmas (Lombard and Gadei, 1981).</p></section><section number="4" title="Description of the Inflection Process"><p>Romanian is a highly inflected language. As we mentioned already, open productive parts of speech for Romanian are nouns, adjectives, and verbs. These open classes contain tens of thou­sands elements, and are characterized by a produc­tive process of inflection, derivation and composi­tion. In this case the problem is complicated not only because it is impossible enumerate the ele­ments existing at the moment, but also because a successful formalism should be able to serve fu­ture neologisms that could occur in the language. In the following we operate with the paradigms of inflection, by which we understand the systematic arrangement of all inflection forms of a word.</p><p>We work not with the whole words, but with their variable parts, including roots and inflec­tional morphemes added to them. Below, we men­tion list of inflectional morphemes as the (inflectional) paradigm.<page local="3" global="680"/></p><p>An incomplete set of rules was shown in papers (Tufis. et al., 1996; Peev et al., 1996; Hristea and Moroianu, 2003). There, concatenation of inflec­tional morpheme for nouns and adjectives is per­formed not concerning the problem of the alter­nations in the root. Therefore, having the aim to achieve the model of inflection, we developed a formalism, which includes two processes: alter­nation in the root, and concatenation of an inflec­tional morpheme.</p></section><section number="5" title="Determining the Inflection Group"><p>We use the word spelling only to determine its in­flexion group. The grammar rules define, in fact, the inflexion model on the algorithmic level: cut­ting a given number of symbols at the word end­ing; obtaining different roots by substitutions (in order to produce vowel and consonant alternation), attaching the corresponding morphemes (endings) to the roots.</p><p>This method can be applied only in the case when the inflexion group (inflexion model) is known. Otherwise, the problem appears of in­flexion model calculation, knowing the graphi­cal representation of the word. Is it possible to solve algorithmically this problem? The answer is negative. The first obstacle is the determina­tion of part of speech: there are several examples of homonyms, which represent different parts of speech, e.g., <i>mare </i>(Eng. big) is an adjective, and <i>mare </i>(Eng. sea) is a noun.</p><p>Let us restrict the formulation of the problem: is it possible to establish the model of inflection (in the conditions indicated above) knowing the part of speech?</p><p>The answer is negative in this case too. For con­firmation we can bring a list of examples, which show us that without invoking phonetic or ety­mological information we cannot determine the model of inflection. Let us illustrate this asser­tion by analyzing feminine noun <i>masa</i>. Following the meaning of furniture object we will form plu­ral <i>mese, </i>using the model with vowel alternation <i>a — e. </i>But if you follow the meaning "compact crowd of people", the plural <i>mase </i>should be pro­duced without alternation. The origin of this phe­nomenon is etymological: in the first case the ori­gin of the word is from Latin <i>mensa, </i>but in the sec­ond case from the French word <i>masse. </i>The prob­lem might be tackled in another way: to establish some criteria which permit, after the analyzing of the word structure, to conclude about the possi­bility to determine the inflexion model and, if this is possible, to fix the specific model. Otherwise, we will try to formulate the criterion according to which one can affirm that the inflexion process can be performed automatically and denote the corre­sponding model.</p><p>Let we have a word (a lemma) in its graphical representation. We know the part of speech, and the gender in the case of noun. We divide all words into three categories:</p><p>irregular, the case being determined from a pre­set list of words;</p><p>absolutely regular, that admitting the automatic inflexion (a unique inflectional model can be calculated);</p><p>partially regular, those words which need some additional information except the graphical representation to be inflected, and calculation produces two or more inflectional models.</p><p>To simplify, we exclude from the examination the irregular words as their presence or absence does not affect the generality of the algorithm.</p><p>In (Cojocaru, 2006), the algorithm had been proposed, which analyses the dictionary of clas­sification into morphological groups with entries of type (w,a), where <i>w </i>is a word in natu­ral language, and <i>a </i>- number (label) of inflec­tion group, constructs two groups of sets <i>A = </i><i>{A</i><i> </i><i>l,A2,...,Ak</i><i>} </i>and <i>P</i><i> </i><i>=</i><i> </i><i>{P</i><b><i>1, </i></b><i>P</i><b><i>2,</i></b><i>...</i><i> </i><i>P</i><i>s},</i></p><p><i>c\ki=</i>1 <i>A</i><i>i </i><i>= </i>0, <i>ns=</i><b><i>1 </i></b><i>P</i><i>i </i><i>= </i><i>0. </i><i>A</i><i>i </i><i>n </i><i>P</i><i>j </i><i>= </i>0.</p><p>These sets consisted of sub-words <i>a</i><i>j </i>of the words <i>w = w'a</i><i>j</i>, where 1 <i>&lt;</i><i> </i><i>\a</i><i>j</i><i>\</i><i> </i><i>&lt;</i><i> </i>|w|. It is shown that for certain categories of words it is possible to construct such sets <i>A</i><i>i,</i><i> </i>that from the fact that <i>a</i><i>j </i><i>G</i><i> </i><i>Ai</i><i> </i>it results unequivocally that the word <i>w </i>belongs to the single inflection group a, and these words being named "absolutely regu­lar". With the help of the same algorithm there are constructed also such sets <i>P</i><i>i,</i><i> </i>that from the fact that <i>a</i><i>j </i><i>G</i><i> </i><i>Pi</i><i> </i>it results that <i>w = w'a</i><i>j </i>can belong to several inflection groups <i>a</i><b><i>]</i></b><i>_,...,</i><i> am, </i>and the re­spective words being named "partially regular".</p><subsection number="5.1" title="Construction of Ending Sets"><p>Let <i>L </i>be the set of all words of a language. We come from the assumption (valid for majority of natural languages) that there is a classification dic­tionary <i>D </i>Ç L, so that to any <i>w </i><i>G</i><i> </i><i>D </i>it puts into correspondence an inflectional model <i>v</i>, where <i>v </i>is a positive integer.<page local="4" global="681"/> We will present dictionary <i>D </i>as a union of words classified by parts of speech (and gender, for nouns), <i>D = </i><i>U</i><i>(C)<footnote anchor="5"/>= </i>1, where <i>Ci </i>is one of the sets of words of open classes: nouns (masculine, feminine, neuter), adjectives and verbs. For each <i>C</i><i>i </i>the dictionary <i>D </i>puts into correspondence the finite set of inflectional mod­els <i>Ni = {v1,..., vnk</i><i>}</i><i>, </i>such that for <i>M</i><i>w </i><i>G</i><i> </i><i>Ci</i>there is at least a <i>v </i><i>G</i><i> </i><i>N</i><i>i.</i><i> </i>We will separately oper­ate with each of these classes.</p><p>Let <i>C </i>be one of these classes. The idea of al­gorithm to build the sets of endings is the fol­lowing. For each word <i>w </i><i>G</i><i> </i><i>C</i>, to which the in­flectional model <i>vm </i><i>G</i><i> </i><i>N </i>corresponds (N is the set of integers of inflectional models for words in <i>C), </i>the endings were built with decreasing lengths from <i>\w\ </i>to 1. The pairs <i>(Yi,vm) </i>are formed, where <i>Yi </i>is a substring of length <i>i </i>of the word w, (1 <i>&lt;</i><i> </i><i>i </i><i>&lt;</i><i> </i>The pairs, constructed thus, are compared and filtered. The filtration process is carried out in the following way.</p><p>Out of each two elements <i>(Yi, vm), vn), </i>we keep only one, if <i>Yi = n </i>and <i>vm = vn, </i>where <i>Yi</i>is a substring of length <i>i </i>of the word and <i>ni </i>is a substring of length <i>i </i>of the word <i>p </i>(i. e. only non-coincident pairs are kept).</p><p>If for all the pairs in which <i>Yi = ni </i>the equality <i>vm = vn </i>takes place, then the pairs <i>(Yi, vm) </i>and <i>vn) </i>are elements of the set <i>A </i>of the endings corresponding to absolutely regular words.</p><p>If <i>Yi = ni </i>and <i>vm = vn, </i>then the ending <i>ni</i>indicates a substring of the word <i>p </i>partially reg­ular from the set <i>P</i>, to which several inflectional models <i>v</i><i>m,</i><i> </i><i>v</i><i>n,</i><i> </i><i>. . . </i>correspond.</p><p>We describe the filtration process using the next example. Let <i>D = </i><i>{</i><i> </i><i>(grup, 1), (grup, 2), (dulap, 1), (cuvînt, 2), (vînt, 1), (tractor, 3), (muzeu, 41)}.</i></p><p>Initially <i>A = </i><i>0, </i><i>P = </i><i>0.</i></p><p>We take as <i>C </i>all the words from <i>D, </i>i.e.,</p><p><i>C = </i><i>{ </i><i>grup, dulap, cuvînt, vînt, tractor, muzeu} </i>(in English: group, wardrobe, word, wind, tractor, museum).</p><p><i>L</i><i>max </i>= 7; <i>N = {1, 2, </i>3, 41}.</p><p>We construct the sets of endings of the lengths 7, 6,<i>..., 2,1 </i>of words from <i>C</i>, to which the in­flectional models <i>N </i>are being put into correspon­dence.</p><p>Sub-words were sorted descendently at their lenghts:</p><doubt alpha="52.4" length="42" tooSmall="False" monospace="0.0">D ={(tractor, 3)U(cuvînt, 2), (ractor, 3)U</doubt><doubt alpha="36.5" length="208" tooSmall="False" monospace="0.0">(uvînt, 2), (actor, 3), (dulap, 1), (muzeu, 41)U(grup, 1), (grup, 2), (vînt, 2), (vînt, 1), (ctor, 3), (ulap, 1), (uzeu, 41)U(rup, 1), (rup, 2), (înt, 2), (înt, 1), (lap, 1), (tor, 3), (zeu, 41)U(up, 1), (up,</doubt><doubt alpha="21.8" length="55" tooSmall="False" monospace="0.0">2), (nt, 2), (nt, 1), (ap, 3), (or, 3),(eu, 41)U(p, 1),</doubt><p><i>(p, 2), (t, 2), (t, 1), (p, 3), (r, 3), (u, 41) </i><i>}</i>.</p><p>Then we obtain the sets <i>A </i>and <i>P </i>using above mentioned rules with the following components:</p><p><i>A = {(dulap, 1), (ulap, 1), (lap, 1), (ap, 1), (cuvînt, 2), (uvînt, 2), (tractor, 3), (ractor, 3), (ac­tor, 3), (ctor, 3), (tor, 3), (or, 3), (r, 3), (muzeu, 41), (uzeu, 41), (zeu, 41), (eu, 41), (u, 41)}.</i></p><p><i>P = {(grup,1, 2), (rup,1, 2), (up, 1, 2), (vînt,1, 2), (înt,1, 2), (nt, 1, 2), (p, 1, 2), (t, 1, 2)}.</i></p></subsection><subsection number="5.2" title="Determination of the Inflection Group"><p>We determine the inflexion group for the word <i>tp </i><i>G</i> <i>C.</i><i></i></p><p>The algorithm for the inflexion group determi­nation is the following.</p><p>The substrings <i>(</i><i>i</i><i> </i>(1 <i>&lt; </i><i>i </i><i>&lt; </i>of the endings with decreasing length from <i>p </i>to <i>1 </i>of the word <i>p </i>are constructed. Initially we look for a completely regular model, comparing the ending <i>(</i><i>i</i><i> </i><i>= i) </i>with the elements <i>(y, </i><i>vm) </i><i>G </i><i>A = </i>i). If <i>= (</i><i>i</i>, then <i>vm </i>is the inflection model number.</p><p>In case if we did not find an appropriate model in A, we look for it in <i>P</i>.    If = <i>(</i><i>i</i> <i>(Y</i><i>i,</i><i> </i><i>V</i><i>nx </i><i>,V</i><i>n2</i><i>V</i><i>nk </i><i>G </i><i>P </i>), the word <i>tp </i>is par­tially regular and it has to inflect in correspon­dence with the inflexion models <i>vni ,vn2, vnk</i>.</p><p>In the case when <i>(</i><i>i </i><i>= </i><i>y%</i><i> </i>for <i>M</i><i>Yi </i>from <i>A </i>and <i>P </i>the inflection model can not be determined auto­matically and the intervention of user (the expert in linguistics) is needed.</p><p>Reviewing the example of construction of end­ing sets <i>A </i>and <i>P </i>from the previous section, we can determine the inflectional group for the word <i>motor </i>(in English: engine).</p><p>We obtain that the word <i>w ="motor" </i>is in­flected using the inflectional group 3. The sub­strings <i>(</i><i>i </i>(1 <i>&lt; </i><i>i </i><i>&lt; </i>5) of the endings with de­creasing length from 5 to 1 of the word <i>w </i>are con­structed: <i>motor, otor, tor, or, r. </i>Initially we look for a completely regular model, comparing the end­ing <b>6 </b><i>= i) </i>with the elements <i>(Y,vm) </i><i>G </i><i>A </i>( <i>Y</i><i>i </i><i>= i </i>) and <i>tor </i>as substring of word <i>w </i>and <i>tor </i>from <i>(tor, 3) </i><i>G </i><i>A </i>coincide, then 3 is the inflection model for <i>w ="motor".</i></p><page local="5" global="682"/></subsection></section><section number="6" title="Prefixing and Suffixing"><p>Existent electronic linguistic resources represent one of the important moment in the process of derivatives generator elaboration. In the case of the lexicons they are not simple repositories only of words, but they need to contain the prefixes and/or suffixes with their descriptions (Carota, 2006;Petic, 2010).</p><p>To work with affixing, we take the correspodent information from the electronic variant of deriva­tives dictionary (S.Constantinescu, 2008) (Tab. 1) and added four tables to the DB: <i>prefixes, suf­fixes, roots-stems-derivatives, </i>and the table which mapes affixes to roots/stems in order to form the derivatives. The last table consists of 3 fields destinated to prefixes and 4 for suffixes, because the electronic variant of derivatives dictionary has derivatives with maximum 2 prefixes, for exam­ple, dez/ra/suci (Eng. untwist), pre/în/noi (Eng. restore), or 3 suffixes, for example, loc/al/iza/re (Eng. localization).</p><p>With this structure attached to RRRL, it was possible to elaborate some queries that allow:</p><p>• derivative extraction by a prefix or suffix;</p><p>• lexical family extraction for a root or stem;</p><p>• the part of speech establishing of the deriva­tives and/or roots-stems;</p><p>• determining the alternations that are present in the process of derivation.</p><p>The lexicon completion can be implemented with the help of automatic tools (Cojocaru et al., 2009). Starting with the derivation rules, an algo­rithm which forms a set of words corresponding to the derivation constraints is going to be elaborated. This algorithm of derivation is applied to these words and the result is a set of derivatives. There­fore not all the derivatives correspond to the norms of human language. After applying the method of validation, we obtain correct words on the basis of language. These words are inflected by means of programs for inflection (Boian and Cojocaru, 1996) that result in a set of inflected words. This veryfied set can complete the initial lexicon, mak­ing it actual (Fig. 1).</p><figure caption="Figure 1: Cycle of the lexicon completion"></figure><p>Nevertheless after a cycle of bringing the lexi­con up to date it is possible to apply another simi­lar cycle (Cojocaru et al., 2009). So, after a finite number of cycles it is likely to finish the process of completion, in the end obtaining a "filled" (sat­urated) lexicon which will be complete from the point of view of derivation.</p></section><section number="7" title="Correctness and Integrity of the DB"><p>Before to make lexical resources widely available we checked their correctness and integrity. We did it in maximally automated mode: using some pro­grams to select suspicious information for ulterior correction by the operator or the expert in philol­ogy to make the final decision.</p><subsection number="7.1" title="Structure of the RRRL DB"><p>The Resources DB for RRRL has two main ta­bles and a lot of auxiliary ones. Auxiliary tables contain different codes used in the main tables, e. g., codes of morphological characteristics or lan­guages.</p><p>The <i>words </i>table contains the part code (part of speech) and field code (domain of the word usage) fields. Numerically encoded word in the flexies table marks the base word of flexies.</p><p>The <i>wordflexies </i>table contains the flexy word field keeping derivatives of Romanian words. Each derivative is associated with its base word in the <i>words </i>table through the integer prim word code field.<page local="6" global="683"/> The integer <i>morpho-code </i>field substan­tiates morphological information (tense, number, case, etc.).</p><table caption="Table 1: The tables characteristics" class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Characteristics</p></td><td class="cell"><p>Number</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>derivatives</p></td><td class="cell"><p>15300</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>roots/stems</p></td><td class="cell"><p>6800</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>prefixes</p></td><td class="cell"><p>42</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>suffixes</p></td><td class="cell"><p>433</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p>As for auxiliary tables, the <i>morpho-code </i>field is substantiated using not one single table but ten auxiliary tables in correspondence to ten Roma­nian parts of speech: noun, adjective, verb, nu­meral, adverb, pronoun, preposition, conjunction, article, interjection. The ields in these tables con­tain codes of Romanian morphologic categories corresponding to the part of speech.</p><p>The DB was populated from textual information iles.</p><p>The DB population program produces a ile that shows if words were inserted, word codes, and the result for each operation. Errors are marked and can be easily found. We also see how many words were entered and which words were not entered because they double the existing ones in the DB.</p><p>Textual information iles were got by a semi­automatic program that generates all word-forms for a given Romanian word (Boian et al., 2005). The program is wizard-like and the input should be done by an expert linguist.</p><p>For the <i>word-flexies </i>table, each group contains one word-lemma with all its derivatives (word-forms). Encoded morphological information is in­cluded with each word-form.</p></subsection><subsection number="7.2" title="DB Integrity"><p>The building of a lexical resource is a dificult pro­cess. We tried to automate it maximally using spe­cially developed programs. To deal with errors, a set of techniques was developed that are described below.</p><p>First of all, it is possible apply formal methods to check validity of the DB content. These meth­ods can be formulated using the semantics and in-terdependencies of the DB ields and tables. In this purpose, all DB ields are divided in four cat­egories:</p></subsection></section><section number="1." title="fields containing textual representation of"><doubt alpha="83.3" length="6" tooSmall="False" monospace="0.0">words;</doubt><p>2. ields containing references that connect dif­ferent tables, e. g., codes of Romanian word­lemmas that replace words themselves in the <i>wordflexies </i>table;</p></section><section number="3." title="fields containing morphological attributes;"><p>4. fields containing textual representation (deci­phering) of attributes; these ields only exist in the auxiliary tables.</p><p>Depending of the used DB engine, some formal relationships can be supported automatically,</p><p>Non-formal checking may be executed by vari­ety of techniques depending on the ield category. Foe example, the ields of the category 1 can be checked by usual spell checkers. For Romanian, there exists a spell checker RomSP (Malahova and Colesnicov, 1996). The corresponding list of Ro­manian words was carefully tested and updated both by developers and users of the product, and can be taken as being quite reliable. Romanian spell checker from MS Ofice was also used. For Romanian, words that were rejected by both spell checkers were marked as highly suspicious. The analysis show that most of them were erroneous. Other word lists can also be used, e.g., those com­ing with free spell checkers like ISpell.<footnote anchor="2"/></p><p>A different method of word checking supposes the selection of <i>n-grams </i>(word fragments of <i>n </i>let­ters, <i>n &gt; </i>2) from the given set of words, and calculation of their frequencies. Less frequent <i>n-</i>grams are considered to be suspicious. Words that contain such <i>n</i>-grams should be checked by ex­perts.</p><subsection number="7.3" title="DB Correctness"><p>The next check is search for duplicates. The unique field of the <i>words </i>table is prim word. code. The corresponding information consists of the Romanian word in its textual form, its part of speech, and its ield of usage. These data are checked for uniqueness during DB population.</p><p>We saw that category 3 ields can be formally checked as containing in one of additional tables as the record number. The correspondence be­tween ields of categories 3 and 4 can be checked informally using interval of values for different attributes but this is partial checking only. In any case, additional tables are short and can be checked visually. We can also search for unused codes in them. The correspondence of codes in the morpho. categories table and tables for each part of speech was checked by issuing requests that show in parallel decoded values of each code.</p><p>The next category of checks is search for dupli­cates. Our DB population programs query for ex­istence of the information before its insertion into any of tables, therefore, absence of duplicates can be supposed.<page local="7" global="684"/> Meanwhile, search for duplicates can expose some errors in the prepared data for population of the DB, or in the DB population pro­grams themselves.</p><footnote label="2">http://www.gnu.org/software/ispell/ispell.html</footnote><p>In the <i>words </i>table, the unique ield is <i>primword-code. </i>The corresponding information consists of the Romanian word in its textual form, its part of speech and ield of usage. These data are checked for uniqueness during DB population. Non-unique combination found means something wrong with these programs, and we can check their codes visually for this combination.</p><p>Moreover, we checked the words table for uniqueness of word's textual form ignoring even its part of speech. In Romanian, adjective can coincide with adverb and noun can coincide with adjective, but such cases are relatively rare. This check permitted to detect several errors also.</p><p>Uniqueness of records in the <i>wordflexies </i>table is also checked during DB population. The corre­sponding check can be performed after population to test the DB population programs.</p><p>We performed also the following informal se­mantic checks.</p><p>Normally, Romanian words have some standard number of inflective derivatives depending of the part of speech: 12 for nouns, 20 for adjectives, and 35, 39, or 40 for verbs. We queried for the actual number of derivatives for words from the <i>words </i>table. For example, the result of the irst such test for one of verbs was 160 derivatives. The impos­sible number of derivatives for some words per­mitted us to correct some errors. For example, it was found analyzing the case of verbs with more derivatives than necessary that some details of Ro­manian grammar were misunderstood during the design stage.</p><p>Parallel dictionaries are very useful and widely used in computer linguistics. Our DB contains translations of many Romanian words into English and Russian. We could not get suficient results from the English translations. The Russian trans­lations permitted us to formulate several useful criteria because Russian is a highly inflective lan­guage like Romanian. We used endings of Russian translations, that are more or less standard depend­ing of part of speech, for:</p><p>• Check for words that are not verbs but Rus­sian translations have "verbal" endings -th -</p><doubt alpha="60.5" length="43" tooSmall="False" monospace="0.0">Tiicb -Tb -Tbca -Mb -MbCH. We found 4119 of</doubt><p>them, being mostly OK, but several errors were found.</p><p>• Check for words that are not adjectives but Russian translations have "adjectival" endings -aa -eB -hh -hh -ob -Me -mh -be -ba. No such words were found.</p><p>• Check for words that are not adverbs but Russian translations have the corresponding endings -e -o -y -eM -ëM -Ma -oh -om -ckh. This check was not so successful (18974 words) but we shortened the result by deleting all verbs, adjectives, and nouns, and found several errors more.</p><p>As errors were found, they were corrected in the source data iles. At a small quantity of correc­tions, erroneous records were deleted taking into account all interdependencies, and the correspond­ing part of the data file was entered anew. Having a lot of corrections, we populated anew the whole DB that takes quite acceptable time.</p><p>We do not enter speciic ield of usage for a word where we enter its morphological deriva­tives. In this case, the corresponding ield is al­ways set to 1 ("general"). Therefore, we can check for uniqueness of the combination of a word's tex­tual form and part of speech and analyze the corre­sponding ields of usage and tables where are used "non-general" words. We created the list of un-inflected words that coincide with some inflected pairs of text and part of speech, and the list of "truly" uninflected words.</p><p><b>Conclusions and Results</b></p><p>A computational lexicon for Romanian contain­ing about 1 mil. words (obtained by inflexion of 100,000 lemmas) was constructed. The lexicon was used for different linguistic applications: the spelling checker for Romanian, the data base of linguistic resources, the search algorithm for web pages.</p><p>Certain criteria were established for a word that allow to determine which is its inflexion model, analyzing the word structure.</p><p>The derivation rules formalization for some Ro­manian afixes offer the possibility to elaborate al­gorithms for the lexical resources completion. The process of new derivatives validation is one that raises many questions and it seems that there are solutions though there are some dificulties in this process.<page local="8" global="685"/> Thus, it is impossible to neglect the as­pect of source credibility in the process of word validation. In this context the word validation us­ing the existent corpora seems to be the best solu­tion.</p><p>The automatic completion cycle model for lex­ical resources by the derivation and inflectional mechanisms allows the consciousness of the steps in the process of lexicon enrichment.</p><p>DB was selected as linguistic information stock because of possibility of quick parallel and dis­tant access, flexibility of possible queries, wide use and availability of the corresponding program­ming techniques. Other forms of information pre­sentation like, e. g., word lists, can be easily ob­tained from the DB. Applications can be devel­oped using this DB directly or indirectly.</p><p>The information containing in the DB should be thoroughly checked using different techniques. A set of methods was proposed that were found use­ful in the case. The discussed techniques can be applied at checking of lexical information in other cases.</p></subsection></section><references><p>E. Boian and S. Cojocaru. 1996. The inflexion regular­ities for the Romanian language. <i>Computer Science Journal of Moldova, </i>4(1):40-58.</p><p>E. Boian, A. Danilchenco, and L. Topal. 1993. The automation of speech parts inflexion process. <i>Com­puter Science Journal of Moldova, </i>1(2):14-26.</p><p>E. Boian, C. Ciubotaru, S. Cojocaru, A. Colesnicov, V. Demidova, and L. Malahova. 2005. Lexical re­sources for Romanian. In <i>Scientific Memories of the Romanian Academy, </i>volume 26 of <i>IV, </i>pages 267­278. Bucharest, Romania.</p><p>S. Cojocaru and E. Boian. 2010. Determination of in­flexional group using P systems. <i>Computer Science Journal of Moldova, </i>18(1(52)):70-78.</p><p>S. Cojocaru, M. Evstiunin, and V. Ufnarovski. 1993. Detecting and correcting spelling errors for Ro­manian language. <i>Computer Science Journal of Moldova, </i>1(1):3-22.</p><p>S. Cojocaru, A. Colesnicov, and L. Malahova. 2006. Integrity and correctness checking of a lexical database. <i>Computer Science Journal ofMoldova, </i>14(1(40)):138-151.</p><p>S. Cojocaru, E. Boian, and M. Petic. 2009. Stages in automatic derivational morphology processing.</p><p>In <i>Proceedings ofthe International Conference on</i> <i>Knowledge Engineering, Principles and Techniques KEPT2009, </i>pages 49-53, Cluj-Napoca (Romania), July 2-4.</p><p>F. Carota. 2006. Derivational morphology of Italian: Principles of formalization. <i>Literary and Linguistic Computing, </i>21(Suppl. Issue).</p><p>M. Petic. 2010. Developing a derivatives gen­erator.    <i>Computer Science Journal of Moldova,</i> 18(1(52)):82-96.</p><p>D. Tufi§, L. Diaconu, C. Diaconu, and A.M. Barbu. 1996. Morfologia limbii romane, o resursa lingvis-tica reversibila §i reutilizabila (Morphology of Ro­manian, a reversible and reusable linguistic re­source). In <i>Limbaj §i Tehnologie, </i>pages 59-65. Edi-tura Academiei Romane, Bucure§ti. (in Romanian).</p><p>S. Cojocaru. 2006. The ascertainment of the inflexion models for Romanian. <i>Computer Science Journal of Moldova, </i>14(1(40)):103-112.</p><p>1998. <i>Dictionarul explicativ al limbii romane (The Ex­planatory Dictionary of the Romanian Language). </i>Academia Romana, Institutul de Lingvistica "Iorgu Iordan", Editura Univers Enciclopedic. (in Roma­nian).</p><p>T. Hristea and C. Moroianu. 2003. Generarea formelor flexionare substantivale §i adjectivale în limba romana (Generation of flexional forms for nouns and adjective in the Romanian language). In F. Hristea and M. Popescu, editors, <i>Building Aware­ness in Language Technology, </i>pages 443-460. Edi-tura Universität din Bucure§ti, Bucure§ti. (in Ro­manian).</p><p>S. Constantinescu. <i>Dictionarul de cuvinte derivate. </i>Editura HERRA, Bucure§ti, 2008.</p><p>D. Irimia. 2004. <i>Gramatica limbii romane (The Grammar of the Romanian language). </i>Polirom, Bucure§ti, 2 edition. (in Romanian).</p><p>A. Lombard and C. Gaîdei. 1981. <i>Dictionnaire morphologique de la langue roumaine. </i>Editura Academiei, Bucure§ti.</p><p>L. Malahova and A. Colesnicov. 1996. Implemen­tation of the Romanian Spelling Pack for Win­dows. In <i>The International Conference on Techni­cal Informatics CONTI'96. Proceedings. Computer Science and Engineering, </i>volume 1, pages 23-28, Timi§oara, Romania.</p><p>L. Peev, L. Bibolar, and E. Jodal. 1996. Un model de formalizare a morfologiei limbii romaîne (A formal-ization model of Romanian morphology). In <i>Lim-baj §i Tehnologie, </i>pages 67-72. Editura Academiei Romane, Bucure§ti. (in Romanian).</p></references></body></article>