<?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"/><title>Languages Generated by Two-Level Morphological Rules</title><pubinfo>© 1992 Association for Computational Linguistics</pubinfo><author surname="Ritchiet" givenname="Graeme"><org  name="University of Edinburgh" country="United Kingdom" city="Edinburgh"/></author></firstpageheader><frontmatter><p><b>Languages Generated by Two-Level Morphological Rules-</b></p><p><b>Graeme Ritchie*</b></p><p>University of Edinburgh</p></frontmatter><abstract><b><i>The two-level model.of morphology and phonology arose from work on finite-state machine de­scriptions of phonological phenomena. However, the two-level rule notation can be given a precise declarative semantics in terms of the segmentation of sequences of pairs of symbols, quite inde­pendently of any computational representation as sets of finite-state transducers. Thus defined, the two-level model can be shown to be less powerful, in terms of weak generative capacity, than parallel intersections of arbitrary finite-state transducers without empty transitions (the usual computational representation). However, if a special boundary symbol is permitted, the full family of regular languages can be generated. Two-level morphological grammars may, without loss of generality, be written in a simplified normal form. The set of two-level generated languages can be shown to be closed under intersection, but not under union or complementation.</i></b> </abstract></header><body><section number="1." title="Background"><p>Koskenniemi (1983a, 1983b, 1984) proposed a rule-system for describing morphological regularities in a language, depending centrally on the idea of matching two sequences of symbols—a <b>lexical string </b>(made up of the lexical forms of morphemes) and a <b>surface string </b>(the sequence of characters in the normal, inflected, form of the word). (In general, symbols could be orthographic or phonological; here we shall abstract from this linguistic issue, and merely consider strings of atomic symbols, which could be phonemes, typewritten characters, or any other separate entities).</p><p>Koskenniemi (1983a) originally described the rules in two alternative forms— high-level rules and finite-state transducers. The high-level rules were given only an informal interpretation, and were used as an expository device to state the linguistic regularities more perspicuously. The formalism that was actually used to write and im­plement two-level morphological grammars was <b>parallel combinations of finite-state transducers. </b>Koskenniemi's own implementation was an interpreter for parallel trans­ducers, which were directly written by the linguist as rules in their own right. Also, various linguistic analyses presented in Dalrymple et al. (1983) follow this approach, expressing rules as transition tables for transducers, and Antworth (1990) describes a recent implementation based wholly on transducers being written directly. Never­theless, Koskenniemi conjectured that an automatic compilation procedure could be</p><p><b>* An earlier version of part of this work was presented at the Fourth Conference of the European Chapter of the Association for Computational Linguistics, Manchester, April 1989.</b></p><p><b>f Department of Artificial Intelligence, 80 South Bridge, Edinburgh EH1 IHN, Scotland, </b>g.d.ritchie@ed.ac.uk<page local="2" global="42"/></p><p>devised to transform the more readable high-level form into the more directly im-plementable parallel transducer form. Koskenniemi (1985) refined the notation and sketched a compilation method, although he still did not provide a detailed declar­ative definition of the meaning of the high-level rules. Various implementations that compile variants of the notation into arrangements of transducers have been devel­oped (e.g. Karttunen et al. 1987; Ritchie et al. 1991).</p><p>The general view of this earlier work was that the rule notation was a mere "syntactic sugar" for parallel combinations of arbitrary transducers, and that there was no difference in meaning or power between the two formalisms.</p><p>This paper establishes the following:</p><p>(i) an alternative (declarative) statement of the meaning of the high-level rule notation is possible, without recourse to compilation into finite-state transducers;</p><p>(ii) the usual two-level morphological mechanism is more limited than arbitrary transducers in its ability to define relationships between strings;</p><p>(iii) the use of a special boundary symbol slightly increases the generative power of the model;</p><p>(iv) for any two-level morphological grammar, there is an equivalent one in a simpler <b>normal form;</b></p><p>(v) the family of languages generated by two-level rules is not closed under union or complementation, but is closed under intersection.</p></section><section number="2." title="The Two-Level Notation"><p>The original notation proposed in Koskenniemi (1983a) included some rather complex notational conventions that have not survived into later versions. The formalization given here will deal only with the core ideas, as embodied in Koskenniemi (1985) (and other implementations such as Karttunen et al. 1987; Ritchie et al. 1991).</p><p>To understand how two-level rules operate, it is useful to consider four separate levels, as depicted in Figure 1. The topmost level contains <b>lexical forms, </b>which are strings of symbols in some suitable <b>lexical alphabet. </b>Each string can be thought of as the abstract representation of the phonology or orthography of an individual mor­pheme or lexeme. The second level consists of a notional automaton "tape" made up of any concatenation of strings from the first level (the lexicon), with special null symbols inserted anywhere between the symbols of the lexical alphabet (optionally). Hence a finite set of lexical strings characterizes an infinite set of possible "lexical tapes," produced by concatenation and insertion of nulls. The third level is a similar "surface tape" consisting of symbols in a <b>surface alphabet, </b>with the null symbol also appearing at arbitrary positions. The fourth level, at the bottom in Figure 1, represents the word as spelt (or phonetically represented) in the surface alphabet; the relation­ship between the surface tape and the surface form is that the latter can be produced from the former by removing all occurrences of the special null symbol. The ordinary<page local="3" global="43"/></p><p><b>Graeme Ritchie Languages Generated by Two-Level Morphological Rules</b></p><p><b>Lexical Forms: </b><b><i>move +ed</i></b> <b>Surface Form:</b><b> </b><b><i>moved</i></b></p><p>Figure 1</p><p><b>Lexical and surface tapes and forms.</b></p><p>surface form (such as moved) is related to a sequence of lexical forms (such as move and +ed) if a surface tape and a lexical tape exist such that:</p><p>1. the lexical tape is the concatenation of the lexical forms in question, possibly with the addition of nulls;</p><p>2. the surface tape contains the symbols of the surface form, possibly with the addition of nulls; 3. the two tapes have the same number of symbols, counting nulls; 4. the contents of the tapes are related by the two-level rules.</p><p>That is, the two-level rules define possible pairs of equal-length sequences (the two "tapes"), and the actual surface form and lexical forms are then related by general conventions acting on these sequences. The formalism as a whole can be used to describe phenomena involving a surface string of a different length from the lexical forms, via the conventions regarding null symbols, but the rules themselves are written as statements about symbol-strings of equal length. Hence, the rules can be viewed as statements about <b><i>sequences of symbol-pairs, </i></b>where each symbol-pair consists of one symbol from the lexical tape and its counterpart from the surface tape. Conventionally, symbol-pairs are written with an infix colon, rather than as a pair within parentheses. The rules specify which sequences of symbol-pairs are or are not valid, by supplying contexts (sequences of symbol-pairs) within which a particular symbol-pair may or must occur. For example, the rather trivial rule would specify that the pair e:0 could occur only if it were surrounded by v:v on the left and +:0 on the right, which is a rough approximation to the phenomenon illustrated by Figure 1.</p><doubt alpha="21.4" length="14" tooSmall="False" monospace="0.0">e:0=&gt;v:v___+:0</doubt><p>There are three types of rule, but they all have the same overall form—a single symbol-pair whose behaviour is being specified, followed by an operator (=&gt;, &lt;= or &lt;=&gt;)/ a left context, a punctuation ("___" in this paper) to indicate where the symbol pair appears relative to the context, and a right context.</p><table 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><td class="cell"></td><td class="cell"></td><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><b>Lexical Tape:</b></p></td><td class="cell"><p>m</p></td><td class="cell"><p><b>0</b></p></td><td class="cell"><p>V</p></td><td class="cell"><p>e</p></td><td class="cell"><p><b>+</b></p></td><td class="cell"><p>e</p></td><td class="cell"><p><b>d</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>Surface Tape:</b></p></td><td class="cell"><p>m</p></td><td class="cell"><p><b>0</b></p></td><td class="cell"><p><b>V</b></p></td><td class="cell"><p>0</p></td><td class="cell"><p>0</p></td><td class="cell"><p><b>e</b></p></td><td class="cell"><p><b>d</b></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><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><page local="4" global="44"/><p>The three types of rule are as follows:</p><p><b>Context Restriction (operator =&gt;): </b>states that the given symbol-pair can occur only in the given contexts, as in the simple example given above.</p><p><b>Surface Coercion (operator &lt;=): </b>states that if the contexts occur, <b><i>and </i></b>the lexical symbol is as given, then the surface symbol must be as specified. For example indicates that where a lexical 1 corresponds to a surface i, there is a pairing of lexical + with a surface null symbol one place further to the right, and the intervening symbol-pair has a lexical e, then the surface symbol in that pair <b><i>must </i></b>be 1. This might be one of the rules describing the relationship between possible+ity and possibility.</p><doubt alpha="28.6" length="14" tooSmall="False" monospace="0.0">e:l&lt;=l:i___+:0</doubt><p><b>Composite (operator &lt;=&gt;): </b>a rule of this sort is merely an abbreviation of two separate rules (a context restriction rule and a surface coercion rule) made up of exactly the same symbol-pair, left context and right context. For example states that lexical i and surface y are paired only in the context of anything on the left (if we assume that the "=" symbol means "any symbol") and a sequence of pairings on the right as given. This describes the association of lexical tie+ing with surface tying. The precise meaning of a composite rule is given by re-writing it as a context restriction rule and a surface coercion rule; composite rules will be ignored in the formalization below, as they add nothing to the abstract mechanism.</p><doubt alpha="23.8" length="21" tooSmall="False" monospace="0.0">i:y&lt;=&gt;=:=___e:0+:0i:i</doubt><p>Fuller examples of the use of two-level rules can be found in Koskenniemi (1983a) and Ritchie et al. (1987, 1991).</p><p>The interpretation of a set of rules is as follows. For a sequence of symbol-pairs to be acceptable, if any symbol-pair in it was the subject of one or more context restriction rules, then at least one of these rules must apply to the surrounding sequence (i.e. the contexts must match). Also, if the surrounding contexts of any symbol-pair matched the context parts of any surface coercion rule, then the symbol-pair must obey that rule. That is, in a rule-set (a two-level morphological grammar), all the context re­striction rules that have the same symbol-pair on the left-hand side of the =&gt;■ operator were deemed to be a <b><i>disjunction </i></b>of constraints for that symbol-pair, and the surface coercion rules were a <b><i>conjunction </i></b>of constraints (regardless of which symbol-pair they constrained).</p><p>In specifying symbol-pairs in rules (whether in the central pair or within the contexts) various convenient abbreviations were available. Symbols denoting sets of characters could be used instead of individual characters, thereby making it easier to state rules that referred to "all vowels" or other classes. Variables were also available for conflating rules that were very similar.</p><p>In specifying contexts (left and right), it was possible to supply more complex expressions than just sequences of symbol-pairs. Essentially, regular expressions of symbol-pairs were allowed <b>(regular pair expressions </b>as Koskenniemi called them), since notation was available to state alternation (disjunction), optionality, and the oc­currence of zero or more instances (Kleene star). Also, a single rule could contain several pairs of contexts, written as a disjunction of possibilities.</p><page local="5" global="45"/><p>Graeme Ritchie</p><p>In the following illustrative example of a two-level morphological rule (taken from Ritchie et al. 1987), angle brackets indicate sequences of pairs and braces indicate alternatives; also, C, V, C2, and = represent subsets of the relevant symbol alphabets and + is an abstract symbol occurring in certain lexical forms.</p><doubt alpha="14.3" length="21" tooSmall="False" monospace="0.0">e:0&lt;=&gt;=:C2___&lt;+:0V:=&gt;</doubt><doubt alpha="36.4" length="22" tooSmall="False" monospace="0.0">or &lt;C:CV:V&gt;___&lt;+:0e:e&gt;</doubt><doubt alpha="38.5" length="26" tooSmall="False" monospace="0.0">or{g:gc:c}___&lt;+:0{e:ei:i}&gt;</doubt><doubt alpha="18.2" length="11" tooSmall="False" monospace="0.0">or1:0___+:0</doubt><doubt alpha="36.8" length="19" tooSmall="False" monospace="0.0">orc:c___&lt;+:0a:0t:t&gt;</doubt><p>This rule describes the various contexts in which a lexical e is elided on the surface (as in larger, continuing, raced, possibly, or reduction).</p><p>The formalism here will not include symbolic mnemonics for sets of symbols, nor variables ranging over sets of symbols. The semantics of both these notations can be stated in terms of equivalent sets of rules without such abbreviatory conventions, so all that is required is a definition of the interpretation of rules containing only actual character symbols. We shall also (in some of our formalization) abstract away from the stipulation that the context-expressions must denote <b><i>regular </i></b>sets, since none of the proofs depend on that characteristic. (This is a slight generalization of the presentation in Ritchie 1989.)</p><p>One of the more peripheral aspects of two-level morphology is the role of the rules in segmenting surface input strings into lexical forms (i.e. the interface between a rule interpreter and a lexicon of morphemes). We shall ignore this issue here (but see Ritchie 1989 and Ritchie et al. 1991 for a formal statement of two possible lexical interfaces). Our formalization will deal solely with the way in which the two equal-length "tapes" are related, as this is the stage of the surface-to-lexicon mapping that is explicitly mediated by the rules.</p></section><section number="3." title="Regular Relations"><p>The two-level rule compiler of Karttunen et al. (1987) was based on sophisticated manipulation of regular expressions in order to define very precisely and rigorously the set of transducers produced by the compiler. Kaplan (1988) generalized some of this work further, by formalizing the algebraic manipulations of regular sets of sequences of pairs of symbols, which he called <b>regular relations.<footnote anchor="1"/> </b>These relations bear the same relationship to finite-state transducers that regular languages bear to finite-state machines, and his formal definition is exactly analogous to that of a regular language:</p><p>the empty set is a regular relation; the set consisting of the empty string is a regular relation; the set consisting of a single ordered pair of symbols, either of which may be the empty string, is a regular relation; if <b><i>Ri </i></b>and R2 are regular relations, so are U <b><i>Ri, R\Rz, </i></b>and <b><i>R\ </i></b>(i.e. the union of the two sets, the set consisting of concatenations of elements from the two</p><p><b>1 The material in this section is based solely on Kaplan (1988). For the results reported, there are no formally published details that I am aware of.</b></p><page local="6" global="46"/><p>sets, and the set consisting of zero or more concatenations of elements from a set).</p><p>Regular relations can then be described using regular expressions over symbol-pairs in the obvious way. Kaplan observed that every regular relation is accepted by some finite-state transducer, and that every finite-state transducer accepts some regular relation. One important subtlety is the use of the empty string as an element of a symbol-pair, with the consequence that a "regular relation" can associate strings of <b><i>unequal </i></b>lengths together, assuming the obvious equivalence between a sequence of symbol-pairs and a pair of symbol-strings (see Section 2 above). In the associated transducer form, the empty symbol corresponds to no symbol being scanned or no symbol being output (i.e. one of transducer's "heads" may advance while the other does not).</p><p>Kaplan stated various results about regular relations, regular languages, and their combinations, including the following. If <b><i>R\, R2, </i></b>are regular relations, and <b><i>L\, L2 </i></b>are regular languages, then the following are regular relations:</p><p><b><i>Ri o R2 </i></b>(the composition of the relations); <b><i>L\ </i></b>x L2 (the direct product of the sets); <b><i>ld(L\) </i></b>(the relation in which each element is paired with itself); K"<footnote anchor="1"/> (the inverse relation).</p><doubt alpha="80.0" length="5" tooSmall="False" monospace="0.0">Also:</doubt><p><b><i>Dom{R\) </i></b>(the set of sequences of first elements of pairs in <b><i>R\) </i></b>is a regular language.</p><p>Kaplan pointed out that intersection and complementation of regular relations do <b><i>not </i></b>in general yield regular relations if empty symbols are involved, but will do where all the symbols are nonempty. Since intersection of regular relations corresponds to a parallel combination of finite-state transducers, this means that there are combinations of transducers that will map a regular language into a nonregular language. This last point is illustrated by considering the two regular relations defined as where e denotes the empty string. In transducer terms, the first of these scans any number of <b><i>a </i></b>symbols on one tape, with the same number of <b><i>b </i></b>symbols on the other tape; one tape then stays stationary (empty transitions) while the other is scanning any number of <b><i>c </i></b>symbols. The second expression describes a situation where the first head remains stationary, while the second head scans some number of <b><i>b </i></b>symbols; then an equal number of <b><i>a </i></b>and <b><i>c </i></b>symbols are scanned on the two tapes. The intersection of these will have <b><i>n </i></b>occurrences of <b><i>a </i></b>on the first tape, but the second tape must contain exactly <b><i>bncn. </i></b>Hence a regular language is being associated with a known nonregular (context-free) language. There is no single finite-state transducer that will define this mapping.</p><doubt alpha="45.5" length="22" tooSmall="False" monospace="0.0">(a:b)*(e:c)*(e:bT(a:cy</doubt><p>It is important to note that here e is a genuine empty string, interpreted by a transducer as a lack of transition; this is different from two-level morphology's "null"<page local="7" global="47"/></p><p><b>Graeme Ritchie</b></p><p>symbol 0, which acts as an ordinary symbol for the transducers (or for rule-matching), but is treated specially when relating the "tapes" to other linguistic levels (see Section 2 above).</p><p>Kaplan also developed more subtle results about combinations of regular rela­tions and languages, including the result that the following operator <b><i>IF </i></b>combines two regular relations to form a regular relation:</p><doubt alpha="66.7" length="36" tooSmall="False" monospace="0.0">IF(Ri,R2) =def{xyI if yGR2,thenxeRi}</doubt><p>With these algebraic devices, he expressed the meaning of Koskenniemi's rule-notation as regular expressions. Two important points must be noted here—the context expressions in Koskenniemi's rules denoted regular sets (the rules formed a regular two-level morphological grammar, in the terminology of Section 5 below); also, the basic rule-mechanism operates on equal-length sequences of symbols, as outlined in Section 2 above, with no genuine <b><i>empty </i></b>or <b><i>null </i></b>symbols. A context restriction rule of the form defines a regular relation that can be expressed as:</p><doubt alpha="50.0" length="12" tooSmall="False" monospace="0.0">a:b=&gt;LC___RC</doubt><doubt alpha="51.2" length="41" tooSmall="False" monospace="0.0">IF(tt*LC,a:bir*) nIF((ir*z: b)',(RCtt*)')</doubt><p>where <i>w </i>is the set of all possible symbol-pairs, and the prime denotes complementation with respect to <i>n*.</i></p><p>Similarly, a surface coercion rule</p><p>a:b &lt;= LC ___ RC defines the relation:</p><doubt alpha="47.5" length="40" tooSmall="False" monospace="0.0">(ir*LC(Id(Dom(z: b))ott* ~ {a :b})RCn*)'</doubt><p>where "~" denotes set-difference. Kaplan did not explicitly define the language that would be generated by a <b><i>set </i></b>of two-level rules (a full grammar), but it would be characterized by an intersection of all the regular relations defined by the individual rules.<footnote anchor="2"/></p><p>He also showed that the uniform deletion/insertion of a particular symbol (such as the special null symbol used in two-level rules) at arbitrary points in a string could be expressed as a regular relation, so the entire lexicon-to-surface mapping sketched in Section 2 earlier could be stated as a regular relation.</p><p>The overall result of Kaplan's theoretical work is that the compilation from regular two-level rules to parallel transducers is vindicated as theoretically sound, and any­thing expressible in the two-level formalism (limited to regular context expressions) is expressible in the transducer (regular relation) formalism; that is, the latter is at least as powerful as the regular two-level formalism itself. The question of whether the two formalisms were <b><i>equivalent </i></b>(as had always been assumed) was left open.</p><p><b>2 Strictly, this would require the two-level grammar to be in the <i>normal form </i>defined in Section 10 below.</b></p><page local="8" global="48"/></section><section number="4." title="Basic Definitions"><p>Having established the basis for discussion, we can now formulate a precise set-theoretic definition of two-level rules, so as to go on to investigate their formal prop­erties.</p><p>Given any two finite symbolic alphabets, A and A', a <b>symbol-pair </b>from A and A' is a pair (a, a') where a € A and a' e A'. Such symbol-pairs will normally be written as "a:a"'. A <b>symbol-pair sequence from A and A' </b>is simply a sequence (possibly empty) of symbol-pairs from A and A', and a <b>symbol-pair language over A and A' </b>is a set of symbol-pair sequences (i.e. a subset of (A x A')*).</p><p>Given two alphabets A and A', and a symbol-pair sequence E from A and A', a sequence (Pi,..P„) of symbol-pair sequences from A and A' is said to be a <b>partition </b>of E iff (i.e. E is made up of the concatenation of the P,).</p><doubt alpha="28.6" length="14" tooSmall="False" monospace="0.0">E = P1P2....P„</doubt><p>Given two alphabets A and A', a <b>two-level morphological rule </b>over A and A' consists of a pair (P, C) where P is a symbol-pair from A and A', and C is a nonempty set of pairs (LC,RC) where LC and RC are sets of symbol-pair sequences from A and A'; each such set of symbol-pair sequences is called a <b>context set. </b>The reason for having C be a <b><i>set </i></b>of pairs of context sets, is that we must cater, in the general case, for there being a disjunction of pairs of context sets, as in the illustrative rule given in Section 2 earlier. In the case where the set is a singleton, this reduces to the simple (nondisjunctive) case. Only one of the formal proofs that follow depends upon C being a <b><i>finite </i></b>set, but if infinite sets of context-pairs were required, some suitable notation would have to be devised for expressing such infinite sets. There seems to be no linguistic motivation to go beyond finite sets of pairs of context sets. Each individual context set (i.e. LC or RC in the above notation) can be an infinite set, and often is.</p><p>The above definition is the generalization beyond regular context expressions men­tioned in the previous section. To specialize it to the traditional two-level case, we need a further definition:</p><p>A two-level morphological rule is said to be <b>regular </b>if all the context sets in it are regular sets. (Notice that even here we have abstracted from the actual notation used to represent regular sets).</p><p>A set <i>6 </i>is said to <b>match at the right-end </b>a symbol-pair sequence E iff there is a partition (Pi, P2) of E such that P2 € <i>9.</i></p><p><b><i>A </i></b>set <i>6 </i>is said to <b>match at the left-end </b>a symbol-pair sequence E iff there is a partition (Pa, P2) of E such that Pi e <i>6.</i></p><p>A set R of two-level morphological rules <b>contextually allows </b>a symbol-pair se­quence E iff, for every partition (Pi, a:a', P2) of E, <b><i>either </i></b>there is no rule of the form (a:a', C) G R, <b><i>or </i></b>there is at least one rule (a:a', C) e R such that C contains a pair (LC, RC) such that LC matches Pi at the right end and RC matches P2 at the left end.</p><p>A two-level morphological rule ((a,a'), C) <b>coercively allows </b>a symbol-pair se­quence E iff for every possible partition (Pi, b:b', P2) of E and every element (LC, RC) € C such that LC matches Pi at the right end, and RC matches P2 at the left end, if b = a, then b' = a'.</p><p>An alternative but equally useful variation on the last definition would be that a two-level morphological rule ((a,a')z C) <b>coercively disallows </b>a symbol-pair sequence E iff there is a possible partition (Pi, b:b', P2) of E and an element (LC, RC) e C such that LC matches Pi at the right end, RC matches P2 at the left end, b = a and b' ^ a'.</p><page local="9" global="49"/><p><b>Graeme Ritchie</b></p></section><section number="5." title="Feasible Pairs"><p>Real implementations of two-level morphology have to consider the issue of what counts as a <b>feasible pair </b>within a two-level grammar. Roughly speaking, the set of feasible pairs is the set of symbol-pairs that have to be considered as potential elements of symbol-pair sequences. The normal approach is not to allow the whole cross-product A x A' as possible symbol pairs, but to define a subset of this as being the effective alphabet under consideration. This is normally done in three ways:</p><p>• Any symbol a that appears in both the lexical alphabet and the surface alphabet gives rise to a feasible pair a : a.</p><p>• Any symbol-pair that is explicitly mentioned in a context-expression anywhere in a rule is feasible.</p><p>• Any symbol-pair that is explicitly declared to be feasible (in a list supplied along with the rules) is feasible.</p><p>The set of feasible pairs is then used in two ways—any variables or sets occurring in the statement of rules are deemed to range only over feasible pairs, not over arbitrary symbol-pairs; also, any feasible pair may occur freely in a symbol-pair sequence if not otherwise constrained by the rules of the grammar.</p><p>It can be seen that these definitions and conventions are to some extent bound up with the concrete textual representation of rules, and the way of stating symbolically the contents of the grammar. At the set-theoretic level of abstraction here, a slightly different (but compatible) set of definitions is necessary. We are assuming that no variables or symbol-set-mnemonics appear in our rules, so the question of using the feasible pair set to expand or give meaning to such abbreviations is irrelevant, but there is still the question of freedom of occurrence.</p><p>The notion of implicit definition of feasibility can be altered so that instead of referring to occurrence within a context-expression, it refers to occurrence with a set (for regular sets specified using disjunction, concatenation and indefinite iteration, the two are equivalent). Explicit listing of additional feasible pairs can be represented by including context restriction rules of the form where e denotes the empty sequence. A <b>trivial </b>rule like this allows the symbol-pair to occur freely, since any adjacent material will match the empty string. (The exact definition of matching is important here—matching the empty string or sequence means that there is some partition of the surrounding string in which the portion of the partition next to the symbol-pair of interest is the empty sequence; it does <b><i>not </i></b>mean that there are no adjacent symbol-pairs).</p><doubt alpha="23.5" length="17" tooSmall="False" monospace="0.0">(a:b,{({e},{e})})</doubt><p>That is, no extra mechanism is needed for adding feasible pairs—what would ap­pear in a practical implementation as a declaration of an enumerated list can be viewed as a convention for defining rather degenerate context restriction rules. The point is that the original textually-based definitions of feasibility are merely a notational con­venience for conveying (to the human reader or a software interpreter/compiler) a set of symbol-pairs that includes at least the pairs from the contexts (and the identity pairs), and we shall abstractly regard that set as being part of the definition of the grammar, regardless of the notation used to make it manifest.</p><page local="10" global="50"/><p>A symbol-pair a:a' is said to be a <b>string-constituent </b>in a set <i>9 </i>of symbol-pair sequences if there is at least one element <b><i>s £ </i></b><i>9 </i>such that a:a' is an element of the sequence s.</p><p>A symbol-pair a:a' is said to <b>occur </b>in a rule (b:b', C) iff <b><i>either </i></b>a:a' = b:b' <b><i>or </i></b>for at least one element (LC, RC) of C, a:a' is a string-constituent in at least one of LC and RC.</p><p>Given two alphabets A and A', a <b>two-level morphological grammar based on</b> <b>A and A' </b>consists of a pair (CR, SC) where CR and SC are finite sets of two-level morphological rules over A and A'. (The two sets of rules are the context restriction and surface coercion rules respectively). Given such a two-level morphological grammar R = (CR, SC), the <b>set of feasible pairs in R </b>is the set of symbol-pairs:</p><doubt alpha="58.5" length="65" tooSmall="False" monospace="0.0">{a : a' | a : a'occurs in some element of CRUSC}U{a : a \ aGAnA'}</doubt><p>A two-level morphological grammar is said to be <b>regular </b>if all the rules in it are regular.</p></section><section number="6." title="Languages Generated"><p>Given a two-level morphological grammar R = (CR, SC), a symbol-pair sequence £ is <b>generated </b>by R iff all the following hold:</p></section><section number="1." title="all the symbol-pairs in £ are feasible pairs in R;"></section><section number="2." title="each rule in SC coercively allows E;"><p>3. the set CR of rules contextually allows E.</p><p>As mentioned earlier, the two classes of rules are treated slightly differently— surface coercion rules are conjoined, forming a set of constraints all of which must be met, and the context restriction rules for a given symbol pair are disjoined, giving a set of possible licensing contexts. If no rules apply to a particular symbol-pair, it is acceptable if and only if it is feasible.</p><p>With the above definitions, it is now possible to ask what sorts of symbol-pair languages can be characterized using a two-level morphological grammar.</p><doubt alpha="71.4" length="7" tooSmall="False" monospace="0.0">Lemma 1</doubt><p>Let CR be a set of two-level morphological rules. Let <i>E\</i><i> </i>and E2 be symbol-pair se­quences such that CR contextually allows Ei, and CR contextually allows E2. Then CR contextually allows the concatenation EiE2.</p><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">Proof</doubt><p>Let a:a' be a symbol-pair occurring in EiE2, such that (Pi, a:a',P2) is a partition of EiE2. Assume, without loss of generality, that a:a' occurs in Ei. That is, Pi is a proper initial subsequence of Ei and P2 = S2E2 for some sequence S2. Since CR contextually allows Ei, for the partition (Pi, a:a', S2) of Ei there is at least one rule C in CR that contains at least one context-pair (LC, RC) such that LC matches Pi at the right end and RC matches S2 at the left end. If RC matches S2 at the left end, then RC will also match S2E2 = P2 at the left end. Hence, for the partition (Pi, a:a', P2) of EiE2 there is at least one rule C in CR that contains at least one context-pair (LC, RC) such that LC matches Pi at the right end and RC matches P2 at the left end. A similar argument can be given for the occurrence of a:a' being in E2. Since this will be true for any such a:a' in EiE2, CR contextually allows EiE2. ■<page local="11" global="51"/></p><p><b>Graeme Ritchie</b></p><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">Proof</doubt><p><b>Corollary</b></p><p>If a two-level grammar is of the form (CR, 0) (i.e. it contains no surface coercion rules), then the concatenation of any two strings in its language is also in its language.</p><doubt alpha="71.4" length="7" tooSmall="False" monospace="0.0">Lemma 2</doubt><p>Let R = (a:a', C) be a two-level morphological rule. Let <i>E\, E2l </i><b>e3 </b>be symbol-pair sequences such that E1E2E3 is coercively allowed by R. Then E2 is coercively allowed by R.</p><p>If E2 were not coercively allowed by R, it would mean that there is a partition (Si, a:b, S2) of E2 such that for some (LC, RC) in C, LC matches Si at the right end, RC matches S2 at the left end, and b^ a'. If this were the case, there would be a corresponding partition (E1S1, a:b, S2E3) of E1E2E3, with LC matching E1S1 at the right end, and RC matching S2E3 at the left end. This would (by definition) mean that R does not coercively allow EiE2E3, which is not the case by hypothesis. ■ <b>Corollary (a)</b></p><p>Let C be a set of two-level morphological rules, all of which coercively allow a symbol-pair sequence E. Then all of the rules in C coercively allow any subsequence of E.</p><p><b>Corollary (b)</b></p><p>If all the context restriction rules in a two-level morphological grammar are trivial, in the sense of having vacuous contexts (see Section 5 above), then any substring of an element of its language is also in the language.</p><p><b>Lemma 3   (The Concatenation Property)</b></p><p>Let G be a two-level morphological grammar (CR, SC), and let L(G) be the set of symbol-pair sequences generated by G. Suppose that there are sequences Ei, E2, E3, E4 such that E2 G L(G), E3 G L(G), and <i>E1E2E3Ei </i>G L(G). Then E2E3 G L(G).</p><p>(i) Since E1E2E3E4 G L(G), all the symbol-pairs in it are feasible with respect to G, hence all the symbol-pairs in E2E3 are feasible.</p><p>(ii) Since E2 and E3 G L(G), it follows that CR contextually allows E2 and E3 (by definition). By Lemma 1 above, this means that CR contextually allows E2E3.</p><p>(iii) Since E1E2E3E4 G L(G), it follows (by definition) that all of the rules in SC coercively allow EiE2E3E4. Hence, by Corollary (a) to Lemma 2 above, all of the rules in SC coercively allow E2E3.</p><p>This establishes the three defining conditions for E2E3 G L(G). ■ 7. <b>Comparison with Transducers</b></p><p>As mentioned in the introduction, two-level grammars have historically been written in two different ways—as rules as defined here, and as sets of finite-state transduc­ers. In the latter case, each transducer deals with some linguistic phenomenon, and a sequence of symbol-pairs is generated by the grammar if <b><i>every </i></b>transducer in the gram­mar accepts it.<page local="12" global="52"/> That is, the symbol-pair sequence must be in the <b><i>intersection </i></b>of the lan­guages accepted by the transducers (viewed as acceptors); in procedural terms, this is often referred to as "having the transducers executed in parallel." Hence, when work­ing with the transducer formalism the linguist has to devise independent transducers whose intersection is the required language. These transducers, like the two-level rules, define a mapping between <b><i>equal-length </i></b>symbol sequences, as described earlier; there are no "empty transitions." Under these conditions, since the intersection of a set of regular languages is also a regular language, it follows that these parallel finite-state acceptors define exactly the regular sets of symbol-pair sequences.</p><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">Proof</doubt><p>As observed earlier, Kaplan's work on regular relations shows that the "parallel transducer" model is at least as powerful as the two-level grammar model defined earlier. The obvious question is whether there is a difference in power; in fact, there is:</p><p><b>Theorem 1</b></p><p>There are regular sets of symbol-pair sequences (i.e. symbol-pair languages character­ized by regular expressions of symbol-pairs) that cannot be generated by any two-level morphological grammar.</p><p>This follows directly from Lemma 3 above. Any language L generated by a two-level morphological grammar must have the property that if E2, E3, and E1E2E3E4 G L, then <b>e2e3 </b>6 L. There are regular symbol-pair languages that do not have this property, such as the language defined by the regular expression which contains b:b and a:a b:b but not b:b a:a b:b, even though that sequence is a subsequence of other elements of the language. ■</p><doubt alpha="53.8" length="13" tooSmall="False" monospace="0.0">b:bV(a:ab:b)*</doubt><p>It was already clear that there are some regular relations that cannot be generated by a two-level grammar, since a regular relation can put into correspondence symbol-sequences of different lengths; what the above result shows is that there are some <b><i>equal-length </i></b>regular relations that cannot be generated by any two-level grammar. That is, we have the following proper inclusions:</p><p>languages generated by regular two-level morphological grammars <b>C </b>regular sets of symbol-pair sequences <b>C </b>regular relations</p><p>There is another, rather trivial, difference between the power of two-level morpholog­ical rules and arbitrary regular expressions. According to the definitions given here, the empty sequence of symbol-pairs is in every language generated by a two-level morphological grammar, since it conforms to the definition regardless of the content of the rules. The definitions could be altered to exclude the empty sequence from ev­ery language, but it is hard to see how the rule mechanism could be used to allow the empty sequence in some languages but not others.</p><page local="13" global="53"/><p><b>Graeme Ritchie</b></p></section><section number="8." title="Another Type of Rule"><p>Karttunen et al. (1987) allow a further rule operator /&lt;= in their rules. A rule of the form means, informally, that the pair a:b must <b><i>not </i></b>occur if the contexts LC and RC are present. It would be straightforward to extend the definition of a two-level morpho­logical grammar to cover this symbol. What would be needed would be to allow a grammar to be a triple (CR, SC, CE) in which CR and SC are as before, but CE is a set of <b>context exclusion </b>rules of this new sort. The applicability of such rules could be defined thus:</p><doubt alpha="46.2" length="13" tooSmall="False" monospace="0.0">a:b/&lt;=LC---RC</doubt><p>A symbol-pair sequence E is <b>contextually excluded </b>by a rule (a:b, C) if there is a partition (Si, a:b, S2) of E and some context-pair (LC, RC) G C such that LC matches Si at the right end and RC matches S2 at the left end.</p><p>The definition of generation of a sequence E by a grammar (CR, SC, CE) would have to be amended to include the additional stipulation (see Section 6 above):</p><p>4.   no rule in CE contextually excludes E.</p><p>Inclusion of this type of context exclusion rule does not affect the proof of Lemmas 1 and 2, or their corollaries, and the Concatenation Property (Lemma 3) can still be proven since the following lemma can be proven by a very simple modification to the proof for Lemma 2 :</p><doubt alpha="71.4" length="7" tooSmall="False" monospace="0.0">Lemma 4</doubt><p>Let R = (a:a', C) be a two-level morphological rule. Let Ei, E2, <b>e3 </b>be symbol-pair se­quences such that EiE2E3 is not contextually excluded by R. Then E2 is not contextually excluded by R.</p><p>Hence, the use of context exclusion rules does not affect any of the results about generative power given earlier, or the lack of closure demonstrated in Section 11 below.</p><p>David Weir (personal communication) has pointed out that the use of context ex­clusion rules makes surface coercion rules technically redundant, since any stipulation of surface coercion can be restated as a set of context exclusion rules.</p></section><section number="9." title="Boundary Markers"><p>The two-level formalism, as defined above (and as originally defined by Koskenniemi) has no word-boundary symbol to mark the end of a sequence of symbols. Although the linguist is free to introduce any symbols that seem empirically useful, none of these symbols has any specially defined status beyond what the linguist chooses to state in the actual two-level morphological grammar, and the apparatus does not stipulate that a particular symbol occurs only at the start or end of a complete string. The<page local="14" global="54"/></p><p>PC-KIMMO implementation of two-level morphology (Antworth 1990) has a special boundary marker "#" with the following properties:</p><p>1. # can appear in both the lexical and the surface component of a symbol-pair.</p><p>2. # can be paired only with itself, not with any other symbol.</p><p>3. The pair # : # occurs at the extreme ends of every string.</p><p>4. The pair # : # never occurs at any internal position of a string.</p><p>5. Any two-level rule may refer to the pair # : #, thereby making phenomena it describes relative to the end of the sequence.</p><p>6. The symbol-pair # : # is not regarded as part of the sequence generated; that is, the rules characterize an extended string with # : # at each end, but the generated sequence is defined to be the sequence without boundary markers.</p><p>It would be possible, with careful design of the two-level rules, to enforce points 1-5 without resorting to special treatment for # : #, but point 6 steps outside the two-level mechanism; a grammar that merely enforced 1-5 using its rules would, according to the basic definitions of generation, have in its language strings that contained # : # (at the ends). Karttunen et al. (1987) also allow a lexical boundary marker #, such that the symbol-pair # : 0 meets points 3, 4, and 5 above (which can be achieved by writing suitable two-level rules without any need for special treatment). However, they do not need to rely on the additional stipulation given in 6, since the use of a surface null will give the desired effect when considering the entire mapping from lexical forms to surface form, with explicit null symbols being removed in the manner outlined in Section 2 above (see Ritchie 1989 for a formal definition of this phase).</p><p>We can show that the inclusion of a specially treated boundary symbol slightly alters the generative power of the formalism, since this allows any set that can be included as a context set to constitute the entire language, as follows.</p><p>Given two sets A and A', a symbol a € A, a symbol <i>ß </i>e A', and a two-level morphological grammar G based on alphabets A and A', then a symbol-pair sequence E e <i>(A </i>x <i>A')* </i>is said to be <b>generated by G with boundary </b><i>a:ß </i>iff</p></section><section number="1." title="a:ß does not occur anywhere in E"><p>2. <i>a:ß </i>E <i>a:ß </i>is generated by G.</p><p>Notice that under this definition, a sequence E may well be "generated by G with boundary <i>a:ß" </i>even though E itself is <i>not </i>generated by G.</p><p><b>Theorem 2</b></p><p>Let A and A' be sets of symbols, let <i>a </i>be some symbol not in A, <i>ß </i>some symbol not in A' and let L be some set of symbol-pair sequences from A x A'. Then there is a two-level morphological grammar G based on A U { <i>a } </i>and A' U { <i>ß </i>} such that</p><p>L = {£ I G generates E with boundary <i>a : ß}</i><page local="15" global="55"/></p><p><b>Graeme Ritchie</b></p><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">Proof</doubt><p><b>Corollary</b></p><p>Consider the two-level grammar (written in the usual textual notation):</p><doubt alpha="50.0" length="10" tooSmall="False" monospace="0.0">a:ß---Ca:ß</doubt><doubt alpha="55.6" length="9" tooSmall="False" monospace="0.0">ora:ßC---</doubt><p>where C is some expression denoting the set L (in the usual notation based on regular sets, C would be a regular expression). More formally, this grammar G (= (CR, SC)) could be written set-theoretically as where <i>L\</i><i> </i>is the set consisting of all possible concatenations of elements of L with <i>a:</i><i>ß, </i>and L2 is the set consisting of all possible concatenations of <i>a:ß </i>with elements of L.</p><doubt alpha="20.7" length="29" tooSmall="False" monospace="0.0">({(a:/3,{({e},Li)(L2,H)})},0)</doubt><p>It is straightforward to verify that this grammar generates all and only strings of the form <i>a:ßY,a:ß </i>for E &lt;E L. ■</p><p>This theorem may sound rather odd, since it implies that any set whatsoever can be generated in this manner (in contrast to the earlier result that there are some regular languages of symbol-pairs that cannot be generated by two-level rules). However, it is important to note that this theorem not only uses a special boundary symbol, it relies on the generalization of the usual regular-set based two-level rules to rules that allow <b><i>any </i></b>set as a context set. Essentially it says that, with the augmentation of a special boundary symbol, the generative power is limited only by the limits placed on the class of sets that can appear as contexts. A more useful and natural specialization of this theorem is as follows:</p><p>For any regular set L of symbol-pair sequences, there is a regular two-level morpho­logical grammar that generates L with boundary <i>a:ß, </i>for some symbols <i>a, ß </i>that are not in the alphabets used for L.</p></section><section number="10." title="Normal Form"><p>We define a two-level morphological grammar as being in <b>normal form </b>if there is no symbol-pair that is the subject of more than one context restriction rule or more than one surface coercion rule. More formally, a grammar (CR, SC) is said to be in normal form iff whenever (a:b, C) e CR and (a:b, C) G CR, C = C, and whenever (a:b, C) e SC and (a:b, C) e SC, C = <b><i>C.</i></b></p><p><b>Theorem 3</b></p><p>For any two-level morphological grammar G, there is a corresponding two-level mor­phological grammar G' in normal form that generates the same symbol-pair language.</p><p>Suppose G = (CR, SC) is not in normal form. Create the grammar G' = (CR', SC) as follows. If there is exactly one rule (a:b, C) in CR for the symbol-pair a:b, include that rule in CR'. For any set of two or more rules in CR with the same symbol-pair <b><i>a : b</i></b><page local="16" global="56"/></p><doubt alpha="31.8" length="22" tooSmall="False" monospace="0.0">(a:b,Ci),....,(a:b,C„)</doubt><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">Proof</doubt><p>include in CR' a rule: <b><i>(a : </i></b><b><i>b,</i></b><b><i> C\ </i></b>U C2... <b><i>C„).</i></b></p><p>Create SC from SC in exactly the same way. It should be clear from this that (a) any symbol-pair a:b occurs in the rules in G iff it occurs in the rules in G'; (b) any pair of context sets (LC, RC) appears in a rule in CR iff it appears in a rule in CR' with the same symbol-pair; (c) any pair of context sets (LC, RC) appears in a rule in SC iff it appears in a rule in SC with the same symbol-pair.</p><p>It is straightforward to prove the equivalence for G and G' of the three defining criteria for language membership. ■</p></section><section number="11." title="Closure Properties"><p>Most classes of formal languages (e.g. regular languages, context-free languages) are closed under at least some of the simple set-theoretic operations such as union and intersection. Certain results can be proved for two-level morphological languages con­cerning their closure (or lack of it).</p><p><b>Theorem 4</b></p><p>The set of languages generated by two-level morphological grammars is not closed under union.</p><p>The proof follows from the "concatenation property" of Lemma 3 above, which allows a simple counterexample to be constructed. Consider the grammar <b><i>G\ </i></b>which would conventionally be written as (if we follow the normal practice of omitting textually any context set containing only the empty sequence). This generates the language (b : b)*; that is,</p><doubt alpha="25.0" length="8" tooSmall="False" monospace="0.0">b:b=&gt;___</doubt><doubt alpha="38.9" length="18" tooSmall="False" monospace="0.0">{e,b:b,b:bb:b,...}</doubt><p>The grammar <b><i>G2 </i></b>given by the rules (again, omitting mention of contexts that are trivially satisfiable) generates the lan­guage (a:a b:b)*:</p><doubt alpha="50.0" length="8" tooSmall="False" monospace="0.0">b:b=&gt;a:a</doubt><doubt alpha="36.4" length="11" tooSmall="False" monospace="0.0">a:a=&gt;___b:b</doubt><p>e, a:a b:b, a:a b:b a:a b:b, ... The union of these languages contains the sequences<page local="17" global="57"/></p><doubt alpha="66.7" length="21" tooSmall="False" monospace="0.0">b:ba:ab:ba:ab:ba:ab:b</doubt><p>Graeme Ritchie but does not contain the sequence</p><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">Proof</doubt><doubt alpha="66.7" length="9" tooSmall="False" monospace="0.0">b:ba:ab:b</doubt><p>and hence, by Lemma 3, cannot be a language generated by a two-level language. ■ The following result and construction are due to David Weir (personal communi­cation).</p><p><b>Theorem 5</b></p><p>The set of languages generated by two-level morphological grammars is closed under intersection.</p><p>Let L] and L2 be two-level morphological languages, generated by the grammars Gi=(GRi,SCi) and G2=(CR2, SC2) respectively. It is possible to construct a two-level grammar for the intersection L = <b><i>Li </i></b>n L2. Without loss of generality, assume (merely to simplify the construction):</p><p>1. For every rule in <b><i>CRi </i></b>or <b><i>CR2 </i></b>of the form (P,C) let the set C contain just one pair of the form (LC,RC). This assumes that the set of context-pairs in a rule is never an infinite set—see Section 4 above. There can be several such rules for any given symbol-pair P (i.e. we have to allow the grammar to be not in the "normal form" defined in Section 10 above). Note that we do not need to make this assumption for the rules in <b><i>SCi </i></b>and SC2.</p><p>2. For every pair <b><i>a : b </i></b>that is a feasible pair in both <b><i>Gi </i></b>and G2 there is at least one rule in <b><i>CRi </i></b>and <b><i>CR2 </i></b>for the symbol pair <b><i>a : b. </i></b>In the absence of any other rule include <b><i>(a : </i></b><b><i>b,</i></b><b><i> </i></b><b>({e}, {e})).</b></p><p>Suppose that $ is the set of symbol-pairs that are feasible in both Gi and G2, so that &lt;I&gt;* is the set of sequences of such symbol-pairs.</p><p>To create the context restriction rules for the intersection grammar G, take where <b><i>CR' </i></b>is defined to be:</p><doubt alpha="58.3" length="12" tooSmall="False" monospace="0.0">CR = CR'UCR"</doubt><doubt alpha="39.4" length="33" tooSmall="False" monospace="0.0">{(p, {($*LQn$*LC2)KCi$*nKC2$*)})I</doubt><doubt alpha="60.3" length="63" tooSmall="False" monospace="0.0">(p,{(LCi,RCi)})eCRi,and(p,{(LC2,RC2)})GCR2}andCR"is defined as:</doubt><doubt alpha="57.8" length="64" tooSmall="False" monospace="0.0">{(a:b,{({a' :a'},e)} |a : bis feasible in exactly one ofGiandG2}</doubt><p>where <b><i>a' </i></b>is a new symbol that is not in a feasible pair in either Gj or <b><i>G2.</i></b></p><p>The set SC' defined below has the effect of making the context <b><i>a' : a' </i></b>unobtainable. Hence, the above rule makes each <b><i>a : b </i></b>that is not feasible in both grammars behave as if it were not feasible in the new grammar. There will be no symbol-pair that is the subject of a rule in <b><i>CR' </i></b>and in <b><i>CR", </i></b>since the first of these sets covers the jointly feasible pairs and the latter handles others.</p><page local="18" global="58"/><p><b>Corollary (a)</b> <b>Corollary (b)</b></p><p>To construct the surface coercion rules for the intersection grammar G use SC = SCi U <b><i>SC2 </i></b>U SC' where SC is defined as follows:</p><doubt alpha="15.6" length="45" tooSmall="False" monospace="0.0">SC ={(«':a',{({e},{e})}),(«' :«,{({e},{e})})}</doubt><p>where a' is as above and <b><i>a </i></b>is an arbitrary symbol other than <b><i>a'.</i></b></p><p>There is then a fairly straightforward proof that this grammar characterizes a symbol-pair sequence if and only if that sequence is in <b><i>L(G\) </i></b>f~iL(G2). The only slightly complicated step involves the proof that if an occurrence of a symbol-pair matches a rule in <b><i>CR\, </i></b>and also matches a rules in <b><i>CR2, </i></b>it must match a rule in <b><i>CR </i></b>(in <b><i>CR', </i></b>in fact). The argument goes as follows. If a partition (S, <b><i>a</i></b><b><i> </i></b><b><i>:</i></b><b><i> </i></b><b><i>b,</i></b><b><i> </i></b><b><i>S')</i></b><b><i> </i></b>is contextually allowed by original rules <b><i>(a : </i></b><b><i>b,</i></b><b><i> {(LC\,RC\)}) </i></b>and <b><i>(a : </i></b><b><i>b,</i></b><b><i> </i></b>{(LC2, RC2)}), then it follows from the definitions in Section 4 above that there is a <b><i>P\ </i></b>at the right end of S that is in <b><i>LC\, </i></b>and a <b><i>P2 </i></b>at the right end of S that is in LC2. Hence S <b><i>£ §*LC\, </i></b>and S 6 $*LC2. Hence there is a string (namely S) that is at the right end of S and is in $*LCi D <b><i>$*LC2 </i></b>(and similarly for the right contexts). ■</p><p>The set of regular two-level morphological languages is closed under intersection. <b>Proof</b></p><p>The above construction uses combinations that yield regular sets from regular sets. Hence if <b><i>G\ </i></b>and G2 are regular two-level morphological grammars, so is G. ■</p><p>The set of two-level morphological languages is not closed under complementation. <b>Proof</b></p><p>Follows directly from Theorem 4 and Theorem 5, since (a direct counter-example can also be constructed using Lemma 3). ■ <b>12. The Next Stage—Compilation and Complexity</b></p><doubt alpha="46.2" length="13" tooSmall="False" monospace="0.0">AUB =(A'nB')'</doubt><p>The above results define more clearly the family of two-level languages, but they say nothing about mechanisms for recognizing strings of symbol-pairs, nor how such recognition can be integrated with a lexicon of symbol-strings. There are at least two methods of compilation and subsequent interpretation for regular two-level grammars (i.e. those whose context sets can be written as regular expressions, which is the nor­mal practice), both of which rely heavily on finite-state transducers in their compiled form. Karttunen et al, (1987) produce an intersecting set of traditional transducers, and the recognition process is then a straightforward interpretation of the equivalent combined automaton. Ritchie et al. (1991) compile rules into a slightly peculiar form of transducer, in which states are marked to indicate different processing requirements; a nonstandard interpreter then scans the resulting annotated automaton. There are no<page local="19" global="59"/></p><p><b>Graeme Ritchie</b></p><p>published proofs of correctness of either mechanism, but Karttunen et al.'s exposi­tion relies heavily on Kaplan's work on regular relations (see Section 3 above), which appears to justify its procedures.</p><p>The usual assumed interface to a lexicon (e.g. Koskenniemi 1983a, 1983b; Karttunen 1983) is via sublexicons for different lexeme classes, with cross-pointers indicating al­lowable sequences of lexemes (a formal definition of this can be found in Ritchie 1989). Another possibility is to impose a wholly separate rule-driven layer of morphotactic description upon the lexical forms; this approach is coupled with a two-level system in Ritchie et al. (1991).</p><p>The complexity of the problem of recognizing a string of symbols using the parallel transducer formulation of two-level morphology with a single (or cross-linked) lexicon has been shown to be NP-complete by Barton et al. (1987), and Ritchie et al. (1991) suggest that the proof of NP-hardness could be modified to cover the recognition problem for the definition of two-level rules given here (and a single lexicon), but exact complexity or decidability results for the compilation/interpretation procedure of Ritchie et al. (1991) have not been produced, nor is there any characterization of the complexity of determining whether a sequence of symbol-pairs belongs to the language generated by a two-level language (without regard for the lexical segmentation issue).</p><p>All these issues lie outside the scope of this paper, but it would be desirable for them to be settled.</p></section><section title="Acknowledgments"><p><b>I would like to thank Alan Black, Ron Kaplan, and David Weir for useful discussions of this material.</b></p></section><references><p><b>Antworth, Evan L. (1990). <i>PC-KIMMO : A Two-Level Processor for Morphological Analysis. </i>Occasional Publications in Academic Computing No. 16, Summer Institute of Linguistics, Dallas, TX.</b></p><p><b>Barton, G. Edward; Berwick, Robert C; and Ristad, Eric Sven (1987). <i>Computational Complexity and Natural Language. </i>Cambridge: The MIT Press.</b></p><p><b>Dalrymple, Mary; Doron, Edit; Goggin, John; Goodman, Beverley; and McCarthy, John (eds.) (1983). Texas Linguistic Forum 22, Department of Linguistics, University of Texas at Austin.</b></p><p><b>Kaplan, Ronald M. (1988). "Regular models of phonological rule systems." Talk on finite-state transducers given at the Alvey Workshop on Parsing and Pattern Recognition, Oxford.</b></p><doubt alpha="58.8" length="34" tooSmall="False" monospace="0.0">Karttunen, Lauri (1983). "KIMMO: A</doubt><p><b>general morphological analyser." In <i>Texas</i></b> <b><i>Linguistic Forum </i>22, edited by</b> <b>M.</b><b> Dalrymple, E. Doran, J. Goggin,</b> <b>B.</b><b> Goodman, and J. McCarthy: 165-186.</b></p><p><b>Karttunen, Lauri; Koskenniemi, Kimmo; and Kaplan, Ronald M. (1987). "A compiler for two-level phonological rules." Unpublished manuscript.</b></p><p><b>Koskenniemi, Kimmo (1983a). <i>Two-level</i></b> <b><i>Morphology:</i></b><b><i> a General Computational model for Word-Form Recognition and Production. </i>Publication No. 11, University of Helsinki, Finland.</b></p><p><b>Koskenniemi, Kimmo (1983b). "Two-level model for morphological analysis." In <i>Proceedings, Eighth International Joint Conference on Artificial Intelligence, </i>Karlsruhe: 683-685.</b></p><p><b>Koskenniemi, Kimmo (1984). "A general computational model for word-form recognition and production." In <i>Proceedings, 10th International Conference on Computational Linguistics/22nd Annual Meeting of the ACL, </i>Stanford, CA: 178-181.</b></p><p><b>Koskenniemi, Kimmo (1985). "Compilation of automata from morphological two-level rules." <i>Papers from the Fifth Scandinavian Conference of Computational Linguistics, </i>Helsinki, Finland: 143-149.</b></p><p><b>Ritchie, Graeme (1989). "On the generative power of two-level morphological rules." In <i>Proceedings, Fourth Conference of the European Chapter of the Association for Computational Linguistics, </i>Manchester: 51-57.</b></p><p><b>Ritchie, Graeme D.; Pulman, Stephen G.;</b> <b>Black, Alan W.</b><b>; and Russell, Graham J.</b></p><p><b>(1987). "A computational framework for</b> <b>lexical description.</b><b>" <i>Computational</i></b> <b>Black, Alan W.</b><b>; and Pulman, Stephen G.</b></p><doubt alpha="58.2" length="67" tooSmall="False" monospace="0.0">Linguistics 13(3^):290-307. Ritchie, Graeme D.; Russell, Graham J.;</doubt><p><b>(1991). <i>Computational Morphology.</i></b></p><p><b>Cambridge: The MIT Press.</b></p><page local="20" global="60"/></references></body></article>