A Two-Level Computer Formalism for the Analysis of Bantu Morphology. An Application to Swahili
Paper · 1992 · Arvi Hurskainen
Summary
The Swahili word walichotusomea says who did the reading and for whom, places it in the past, and refers back to the thing that was read. Only part of the word corresponds to the verb ‘read’. The rest consists of grammatical pieces whose order and spelling help a reader make sense of the whole. Arvi Hurskainen built SWATWOL to recover this information from a written word form in Standard Swahili. The paper asks whether a two-level approach to morphology, previously used chiefly for languages that put their inflectional endings after a root, can accommodate the amount of grammatical material that Swahili places before it.
SWATWOL searches a network of small lexicons from left to right. Each entry determines which groups of entries can come next. This allows different prefix sequences to lead to the same verb root, which in turn determines what can follow it. As the search proceeds, rules compare the symbols stored in the lexicon with the characters in the input. A symbol can correspond to a written letter or occupy a position that has no visible realization. The rules can refer to either side of this alignment and can use invisible markers to connect conditions separated by much of a word. Each successful path contributes the grammatical labels attached to its entries. A spelling can yield several paths and several readings.
To build the vocabulary, Hurskainen drew on a dictionary that had been scanned, lists of newly coined words, and material found as development progressed. The paper counts over 25,000 lexical entries with derivation included and says the analyzer handles Standard Swahili inflection for items in its lexicon. In previously unused samples of editorials, sports reporting, linguistic writing and general prose, the paper reports 609 unanalyzed forms out of 19,669 (3.10%). Hurskainen judges that 36 of the forms (0.18% of the total) ought to have been covered. Names and foreign expressions contribute to the higher rates in newspaper material. The general prose sample has the lowest reported rate of forms without an analysis, at 0.52%.
Those measurements show how often the system found a reading. The examples show what a reading can contain and why a word may receive several. The grammar builds some uncommon but grammatical derivatives, and it covers common forms with repeated material by listing them individually. It can identify an applicative suffix, which signals an additional relationship to the action of a verb, while the sentence may be needed to establish what that relationship is. The implementation demonstrates how far a word-level analyzer can get by combining knowledge of permissible morpheme sequences with knowledge of how those sequences are written.
Deep dive: A Two-Level Computer Formalism for the Analysis of Bantu Morphology. An Application to Swahili
How SWATWOL analyzes Standard Swahili by tracing prefixes, roots and suffixes and checking how their underlying forms appear in writing. · about 39 minutes to read
The problem and its context
Getting to the root
A dictionary can identify a verb and explain its meaning. An analyzer given a word from a book or newspaper faces a preliminary task. It has to work out where the lexical material is, which grammatical pieces accompany it and whether the resulting combination belongs to the language. This can involve more than looking for a known string inside a longer one. The surrounding pieces can determine what counts as a possible root, and the letters visible at a boundary may differ from the symbols used to represent the adjoining pieces in the lexicon.
The paper uses Bantu languages to illustrate the problem. A Swahili verb can put markers for the subject, tense or aspect, a relative expression and the object before the root. A relative marker can refer to a noun that the verb describes, as in the reference to the thing read in walichotusomea. After the root, a suffix can change the relationship between the action and its participants, and a further suffix can operate on the stem that results. Inflection supplies grammatical distinctions such as person or tense. Derivation builds a stem with an altered meaning or grammatical behavior. Both have consequences for how the analyzer reaches the end of the word, even though the paper treats their structure differently.
For a program that reads from left to right, the prefix material is the first evidence available. Its usefulness depends on knowing which sequences the grammar permits. Once the program arrives at what could be a root, that entry needs to specify which suffixes can follow. Different roots can share a prefix construction and differ in their possibilities for derivation. A lexicon suitable for this purpose therefore carries information about grammatical surroundings in addition to the spelling and interpretation of its entries.
Hurskainen sets this task amid growing interest in computing for African languages, including their study and teaching. He describes contemporaneous computational work on translation, syntactic parsing, lexical resources and packages for language work. The discussion of word analyzers also included practical questions about running time and memory, and whether a system could process forms of a lexeme it had never encountered. A lexeme here is the vocabulary item whose various grammatical forms the analyzer is trying to recognize. Whether an unfamiliar lexeme can be recognized by its surroundings depends partly on how those surroundings are arranged.
The paper discusses an analyzer by Jäppinen and Ylilammi that processes input from right to left. They present this direction as an advantage for handling forms whose lexical base is absent from the dictionary. In a system built for suffixing inflection, the program can encounter recognizable endings first and use them as evidence before it reaches the unfamiliar base. Hurskainen grants that advantage for the arrangement concerned. For languages with grammatical material on both sides of the base, starting at either edge can leave the program with an unfamiliar stretch in the middle and further material to account for on the other side. The ordering of the search alone supplies little information about how that unknown middle should be licensed.
SWATWOL searches from the left and uses an explicit inventory of lexical entries. This turns the distribution of prefixes into information the program can use before it reaches a root. It also makes the vocabulary a condition of the coverage claim. A regular word with an absent root can evade analysis even when the program knows the construction in which it occurs. As the experiments show, that condition becomes particularly visible in texts with many names.
Describing a spelling and its underlying form together
The second problem is what to do when grammatically related forms have different written shapes. A particular prefix can appear with a vowel in one word and without it in another. A written sequence that looks like a different prefix may realize the same underlying entry in a different environment. The grammar needs to state what changes, where it changes and how it can still recover the proposed lexical form from the writing.
The two-level formalism and its original processing program came from Kimmo Koskenniemi. Its two levels are the lexical string used by the grammar and the surface string that represents the realized form. As presented in the paper, both directions matter. Starting with a lexical string, one can ask how the symbols are realized. Starting with a surface string, one can look for the lexical strings that could give rise to it. A feature of the formalism is that the rules see correspondences between the levels throughout the operation.
Hurskainen compares this with the ordered rewriting used in generative phonology. In an ordered account, a rule can create an intermediate form that is then the input to another rule. For example, the loss of a vowel could create an environment for the loss of an adjacent consonant. In a two-level account the vowel and the consonant each have a position in an alignment, even if neither appears in the writing. Parallel constraints can describe the conditions for both correspondences. The analyzer can consider them together when it asks whether that alignment is acceptable.
Earlier implementations also give Hurskainen a way to explain the changes required for Swahili. When most grammatical material follows the root, the initial stage of lexical lookup can lead fairly directly to a root collection. A root can then open continuations to noun endings, verbal endings or attached grammatical elements. A Swahili lexicon needs substantial organization before the lookup of a root as well. Paths have to separate where prefix constructions differ, converge where they can use the same roots, and branch again wherever the roots license different derivations. In the paper’s account, this is the first application of the formalism to a primarily prefixing language.
The author also cites Swedish work to show that the formalism permits different kinds of description. Blåberg’s account uses 35 two-level rules and 13 morphophonemes, symbols for units whose realization can vary with their environment. The account by Karlsson cited in the paper uses eight rules and expresses more of the permitted forms through its lexical organization. The comparison gives SWATWOL a design question. The same outward forms can sometimes be described by a network that lists their distribution or by a grammar that states their relationship to a shared lexical representation. How useful either description is depends on the scale of the pattern and on how much of that relationship the analysis is meant to preserve.
The method, step by step
Following a word through the grammar
The paper’s reading example gives a way to follow the search. In walichotusomea, wa identifies a third-person plural subject of the M/WA class, and li supplies the past tense. The relative marker cho refers to a singular noun of the KI/VI class. The object marker tu indicates ‘us’. The next piece, som, is the root associated with reading. The suffix e is the applicative in this occurrence, and a ends the form. The subject, relative expression and object each contribute different information even though all are represented as prefixes of the same word.
The program sees the letters together. To find the analysis just described, it must discover entries corresponding to the successive pieces and follow the continuations those entries permit. A continuation says where the search can go after accepting an entry. Each successful match can also contribute information to the output. The grammatical description of this reading accumulates from the subject through the tense, relative and object markers to the verb and its applicative. The terminal vowel is part of the accepted word, with no additional output label in this example. The printed analysis therefore need not provide a separate label for each visible stretch of letters.
The order of these tasks matters. The lexical network proposes possible pieces as the analyzer advances, and the rules check the correspondence of lexical and surface symbols along the route. A path can fail because the lexicon offers no continuation or because a proposed correspondence is incompatible with its environment. A complete path must account for the whole form and reach a permitted endpoint. More than one set of choices can meet those requirements.
From Swahili text to SWATWOL readings
The steps in order.
The shared processing component is called TWOL. It receives the lexical data and a set of transducers, finite-state devices that check sequences of character correspondences. The paper describes a compiler that turns written rules into these devices. The Swahili work consists of specifying the entries, their continuations and the context conditions that the transducers enforce. The rule inventory and the lexicon supply different evidence about a proposed analysis. The former can determine how a symbol is realized in context, while the latter supplies the permitted pieces and the paths on which they can be encountered.
Reading a correspondence rule
The paper gives the typical shape of a rule as follows. The arrows used here are the Unicode equivalents of its rule operators.
CP op LC __ RC
CP denotes the correspondence being regulated. It can identify a specific lexical and surface pair or use previously defined abstract notation. op specifies what kind of constraint is imposed. LC and RC are the left and right environments. The underscores mark the position of CP between them. Either side can be left without a context condition.
The operator ⇒ restricts where a pair may occur. Encountering the context licenses the pair under that rule, and there may still be a choice of surface realization. The operator ⇐ imposes a particular surface realization on the lexical symbol in the given context, while the pair may also occur elsewhere. The combined operator ⇔ does both jobs. It confines the pairing to the stated environment and requires the specified realization there. Several contexts can be listed for a pairing in the full rules.
A colon separates the two sides of a correspondence. In I:i, the lexical symbol is capital I, and its surface correspondent is lower-case i. A colon with an empty side in a context expression leaves that side unspecified. The default for an ordinary symbol is to correspond to itself. For special symbols the alphabet can specify a default, as it does with A:a and N:0. Here 0 stands for the empty surface position. It keeps a place in the alignment for lexical material that contributes no letter to the written form.
The paper illustrates the notation with an alternation before a present-tense marker. This is the explanatory rule in the body of the paper. The appendix contains fuller rules with additional environments.
I:0 ⇔ #: [n: | l: | z: | k:] _ /: :a
I:0 pairs lexical I with an empty surface position. ⇔ makes the context a condition both for licensing the pair and for requiring the realization. #: specifies a boundary on the lexical side. The brackets group alternative conditions, and | separates them. The items n:, l:, z: and k: specify the respective consonants on the lexical side. _ marks the target position. On its right, /: identifies a lexical slash and :a requires surface a at the following position. The slash is a diacritic in the grammar. Its presence supplies contextual information, and it contributes no written character.
The body of the paper places this example beside one for an alternative realization of the same lexical symbol.
I:y ⇔ #: (:V) _ /: :a
I:y pairs lexical I with written y. ⇔ again gives the combined condition. #: is the lexical boundary, and :V tests for a surface vowel belonging to the defined set V. Parentheses make that vowel position optional. The underscore marks the position of the pair. /: and :a check for the lexical slash and the surface a to its right. This version therefore allows the left environment to consist just of a word boundary or to include an initial surface vowel.
The contrast matters because a surface a can appear in more than one construction. The paper gives a reading example with lexical nI followed by material in which I is realized as i. In the corresponding example with the lexical slash before the present marker, the I of nI has no surface realization. The slash remains available to the rule even when the visible letter sequence gives no direct evidence for it. A rule can distinguish those constructions without stipulating that every written a induces the same correspondence.
Putting the lexicon together
A path begins at the sub-lexicon named START. The main vocabulary can be entered through NORM, with an option for an initial capitalization mark. NUM serves numerals, and the route into PROPN for proper names includes the capitalization mark. That internal mark is an asterisk supplied by preprocessing. It is distinct from the upper-case symbols, such as I, that the grammar uses to identify lexical positions subject to alternation.
NORM is a branch point with continuations to VERB, NOUN, ADPRON and KI. A branch point can give the search choices without contributing letters or labels of its own. The noun branch provides further choices for the class-specific and derived noun paths. This arrangement lets the names of broad groups appear in the grammar while leaves and intermediate branches specify the material that can actually be matched.
A complete entry has a lexical representation, a continuation and an output string. In the paper’s example for a negative prefix, the entry for si contributes a label identifying first-person singular negation and directs the search to P2n. The entry for hu goes to the same next group and contributes second-person singular negation. Their different output persists even though they share a continuation. Conversely, entries in the same sub-lexicon can direct the search to different places if their distribution requires it.
An entry can also refer to a set of alternatives. For example, Vd names a set of continuations for the applicative, causative, stative, passive and a verb ending. The entries under the set’s name are references to those sub-lexicons. They carry neither a lexical string to match nor an analysis label to emit. This allows the set to be shared by roots with the same options. The same formal device thus serves entries with concrete spellings and the organization of the network through which those entries are reached.
Hurskainen began by trying out the proposed network with a small vocabulary. This made it possible to extend the routes as different kinds of entries came to light. Once the organization looked adequate, work shifted to compiling roots in quantity. Machine-readable Swahili dictionaries and word lists were unavailable at the start. Hurskainen scanned Kamusi ya Kiswahili Sanifu and used it alongside lists of recently coined words he had begun collecting and other available lists.
The paper describes putting identifying markers into these resources so that BETA programs could extract groups of entries. The initial extraction collected verbs together, assigned nouns to groups according to class, and grouped adjectives. More work was required within those groups. As the noun and verb cases illustrate, belonging to a broad category leaves considerable room for differences in what a root permits. The author maintained alphabetical order within the sub-lexicons to make duplicate detection easier. Entries with the same reading were removed, and the procedure also declined to enter a listed item again simply on the grounds that it had a further meaning.
The dictionary contained about 15. 000 entries, with approximately 5000 entries in each list of new words. The combined resource is reported to have about 19.000 simplex entries. That count is for the base inventory before the productive processes under discussion. The verbal portion contains 2.530 simplex entries. When verbal derivation and noun formation from verbs are included, the paper puts the inventory above 25.000 entries. The distinction between an entry and a derivative matters here. The paper describes verbal derivation as open-ended, so the larger figure depends on which formations are counted as words in their own right.
Development also included running the analyzer on books and newspapers and extracting the forms for which it returned nothing. That procedure brought several hundred additional words to the author’s attention. A failure gave an item to examine against the existing word lists and grammar. Decisions about where to enter the item and what continuations it should have were part of the construction of the resource. The evaluation later in the paper uses fresh texts, separate from the material used in this process.
Choosing routes before and after the verb root
The prefix portion of a verb has an order that can be described by slots. In the paper’s schematic, possible material proceeds from negation through subject, tense or aspect, and relative and object marking to the root. Aspect here refers to grammatical information about how the event is presented, as in a completed action. The order describes the positions of pieces when they occur. An individual form can omit slots, and choices about one slot can determine what is available in another.
Grouping prefixes by position handles part of the job. The subjunctive and the present negative require more specific arrangements because their permitted sets of prefixes differ from the choices available in other constructions. The author provides parallel routes for them. The prefix network uses 22 sub-lexicons. By the time the routes reach the verbal roots, they have already enforced many of the construction-specific choices. The roots can then be shared across the prefix constructions that are allowed to reach them.
On the other side of a root the arrangement is more flexible. An applicative can relate a participant or circumstance to the event, a causative can express causing the event, and a passive or reciprocal has its own effect on the construction. The paper also includes stative derivation. A stem can carry a sequence of suffixes, and some suffixes can be used again after a derivation. The choice of the next suffix depends on the root and on the path through the material already added.
Hurskainen gives the verbs 13 formal derivational patterns. The patterns describe morphological permission to combine the pieces. The implementation assigns each pattern its own route through derivation, yielding 97 sub-lexicons for this part. Similar entries can occur in corresponding positions on different routes. Their continuations preserve the distinctions that matter further on. The arrangement avoids making any suffix that is appropriate in one position freely available after every root that reaches a superficially similar position.
The output of a derivation provides another reason for paying attention to the root inventory. The paper discusses onea, related to ona, ‘see’, and used with the meaning ‘bully’. Joining the ordinary reading of the base with a label for the applicative would recover the formal relation while missing this specific interpretation. Giving the derived stem a lexical entry makes that interpretation available to the program. Hurskainen treats endelea, related to enda, ‘go’, as another instance in which a formally describable derivation has developed a meaning that merits a stem entry. The analyzer assembles information from local entries, so a separate entry changes what can be recovered about the whole.
Some irregular forms require branching even when a separate meaning is beside the point. In rudi, for example, the final i stays with the stem when the derived rudisha is formed. A lexical entry can hold rudi intact and permit it to finish in the basic form. A second continuation leads through derivation and supplies the usual final A after the suffix. This captures the coexistence of the retained stem vowel and the derived ending. For a common stem such as som, the final A belongs after the root in the basic form and after any added derivational material in the derived form.
The paper works through another choice with ka, ‘sit’. In some derived forms an l appears after the stem vowel. One description stores kaL, with L a lexical consonant that can be realized as l or as zero. The other stores ka and lets the choice of continuation supply an l when it is needed. A route can go directly to the verb ending for an underived form or add the consonant before proceeding to selected derivations. The visible forms can be recovered by either account. The position assigned to the consonant in the lexical analysis, and the place where its distribution is recorded, depend on the choice.
Why some roots are listed on several paths
Swahili’s monosyllabic verbs illustrate a case in which the author accepts duplication. A short stem needs preceding ku in environments where stress would otherwise fall on a morpheme unable to bear it. The paper identifies some tense or aspect markers and the relative prefixes as relevant. Hurskainen finds no convenient shared formal property of those markers that can serve as the context of a general correspondence rule. The root inventory affected is small enough to give the same entries several explicitly controlled points of access.
The sub-lexicon +kuR is reached on the path that supplies ku. It goes straight to the final vowel, since adding a derivational suffix would remove the short-stem condition behind the use of ku. The root group -kuR represents the underived route without ku. In the described arrangement, that path is reached through the object-prefix sub-lexicon and also terminates with the final vowel. The third group, -kuRd, opens the continuation to derivation and can be reached from tense and relative material. Each copy of the root inventory thus serves a different combination of preceding and following material.
The author makes a similar use of lexical routing for the exceptional infinitives kwenda and kwisha. The prefix entry kw leads to the group containing their roots. The entry ku gives access to the other roots in the description of this exception. A small distribution can be stated directly as a choice of destination. This has a different purpose from assigning the realizations of A to the rule system. With A, copying the large population of roots just to accommodate distinct endings would duplicate data that the constructions can share.
Nouns, agreement and prefix spelling
For nouns the sequence of class prefixes and roots is a primary organizing principle. A class groups nouns that follow a pattern of number marking and agreement. The lexicon sends a prefix of the M/WA class to the noun roots taking the relevant class prefixes. Other classes have corresponding routes. A root can occur in more than one class, sometimes with a different meaning. The paper notes that some nouns can also be classified in JI/MA or N/N without a meaning change. The assignment is therefore a property of the noun entry, with room for multiple entries where the distribution warrants them.
If every class had perfectly uniform prefixes and plural formation, a small collection of root groups would suffice. Hurskainen uses 20 sub-lexicons containing nominal roots because classes can have internal variation in their plurals or in the way the prefix is realized. Adjectives create a different distribution. Inflecting adjectives take their class from the noun they qualify and can be reached from the various agreement prefixes. The corresponding prefix inventories for adjectives and nouns are kept apart because their alternations differ. Non-inflecting adjectives use their own group. The noun system thus restricts which roots a class prefix reaches, while the adjective system makes broader use of shared destinations.
The paper also organizes prefixed numerals, uninflected words and forms such as possessives in their own groups. For the demonstrative beginning in h, the lexical system handles vowel variation directly. Hurskainen considers the class small and closed, meaning its inventory has a definite set of members for this purpose. Listing the forms through continuations gives a description without using the three rules he says would otherwise be needed.
A useful example of the rule-based option is the N/N class. Hurskainen adopts an underlying NI, which can yield a visible n, m, ny or an empty prefix. In ndege, the alignment pairs the initial lexical N with n and I with zero. In mbegu, N is paired with m while I again has no surface letter. In nyumba, N pairs with n and I with y. In taa, neither prefix symbol contributes a letter. The roots determine which environments are present, and a single lexical prefix makes the relationship among the outcomes explicit.
The historical sources discussed by Hurskainen give him grounds for choosing NI. It supplies a position for the part of the prefix that becomes y before relevant vowel-initial stems. That position also clarifies the treatment of taa. The zero realization of I and the zero realization of N can be checked in the same alignment. An account with ordered rewriting could characterize the vowel loss as a step that enables the nasal loss. Here each outcome is a constraint on a pair of symbols, and the rules have access to the entire sequence of pairs.
An analogous argument leads the author to use mU for some agreement and object markers. In the object marking discussed in the paper, the w before vowel-initial verbs can be treated as a realization of U. Hurskainen considers an earlier account in which the w arose from an older form of the root for ‘see’. Forms such as alimwambia and alimwiga show why he wants a description that works with other roots too. Putting the symbol in the prefix gives it a place in every relevant lexical string. Lexical capitals also delimit the scope of rules, so an alternation specific to an abstract I can leave an ordinary i untouched.
How adjacent rules produce a spelling together
The singular KI/VI prefix illustrates the constraint that the alignment works character by character. The alternation between lexical kI and surface ch is expressed by assigning one pair to each letter of the result. The appendix gives complementary rules for those pairs.
k:c ⇔ [#: | %*:] _ I: :Vi
k:c pairs lexical k with surface c. ⇔ requires that pairing in the specified environment and confines it to the environment. The brackets and | define alternatives. #: is a lexical word boundary, and %*: identifies the literal asterisk used as a capitalization marker on the lexical side. % makes the following asterisk literal in this notation. _ is the position of k:c. To its right, I: checks for lexical capital I, and :Vi checks that the next surface character is in the defined subset Vi of vowels. The empty sides of the colons are unspecified by these context conditions.
I:h ⇔ [#: | %*:] k: _ :Vi
I:h pairs lexical I with surface h. ⇔ gives the same combined restriction and requirement. The bracketed alternatives #: and %*: check for the boundary or the literal capitalization mark, with | separating the options. k: requires lexical k before _, the position of I:h. :Vi specifies the surface vowel subset to the right. Together the rules can license the written ch by checking adjacent positions in the same alignment.
The lexical routes also determine which roots get this treatment. Many vowel-initial roots retain ki or vi. An entry reached through a literal prefix with lower-case i is outside the alternations written for kI and vI. The lexicon can therefore direct the relevant exceptions away from the abstract prefix while retaining a general statement of the relationship among the varying forms. The system’s 18 rules include three that Hurskainen calls partial rules. The split between k:c and I:h shows what it means for a rule to describe only part of a change that a reader sees as a unit.
Enforcing dependencies across the root
Some decisions involve a prefix region and a suffix region with a large shared group of roots between them. The general relative is a case in point. It occurs after the final vowel of the verb, and its route must exclude a tense or aspect marker and the relative prefix. The paper contrasts a construction with earlier tense and relative material with a construction whose relative marker comes at the end. Both can express the intended reference to a person doing the reading. The distribution of the markers has to be enforced across the intervening pieces of the verb.
Hurskainen explains a possible feature mechanism using entries that would contribute values for the same grammatical category. The following illustrates the assignments for tense.
TENSE=PR1
TENSE names the feature for tense information. = assigns the value on its right, and PR1 is the present-tense value assigned by the sample entry na.
TENSE=NIL
TENSE again refers to the same feature. = assigns NIL, the value calling for the absence of the tense marking in the example of the general relative suffix. A path giving TENSE both values would be rejected under the proposed mechanism.
The same account could assign a relative-prefix feature to both kinds of relative entry. A relative prefix could give RELP the value for its class and number, while a final relative would require RELP to have the value NIL. The paper uses this to explain how features could preserve compatibility after paths had converged at the roots. SWATWOL as reported enforces the relevant restrictions through its rule component. The feature assignments describe a possible implementation.
The actual general-relative constraints refer to invisible markers placed at different points in the lexicon. The first is restricted by looking to the right.
%+: ⇒ _ :* %&:
%+ identifies a literal lexical +, and the colon leaves the surface side of the pair open in the rule. The marker is defined to have an empty realization. ⇒ signifies context restriction. _ is the position of the + pair. In :*, the colon represents a pair with neither side specified, and the asterisk allows repetition, including no intervening pairs. %&: specifies the literal lexical & on the right, with its surface side likewise open in the condition. That second marker also has an empty realization.
The companion condition looks back from the later point in the word.
%&: ⇒ %+: :* _
%&: identifies the lexical & pair as the one being restricted by ⇒. %+: requires the literal lexical + to its left. :* allows intervening pairs, and _ locates the target & pair. The two restrictions require the earlier and later markings to accompany one another in that order. The shared roots and any permitted material around them can stand between the diacritics. Neither marker adds a visible letter.
Other invisible markers help the grammar specify the final vowel. The stem-final symbol A can appear as a, e or i. A subjunctive ending in e shares the absence of ordinary tense or aspect marking with constructions that take other endings. A marker introduced in the lexical path gives the rule more specific evidence. A different marker can condition the present negative in i. The paper’s explanation locates the grammatical distinction in the route and lets the correspondence rule enforce its written effect across the root.
The nominal derivation discussed near the end of the rules section also makes use of paired context restrictions. The process permits nominal prefixes of classes 1, 2 and 11 to combine with verbal material ending in a and the suffix ji. Markings on the early and late parts of the path license the shared passage through the verb inventory. The paper gives a storage rationale for the design. Describing the process once in the grammar avoids listing large numbers of individually formed nouns. It gives the analyzer access to possible formations even when they have seldom been encountered as dictionary entries.
Experiments and results
Preparing the samples
The tests use four collections that had been kept out of the earlier testing and correction process. MZAL comprises editorials from the Tanzanian weekly MZALENDO (1990). CHEZO draws its sports reports from the same newspaper. ISIM contains linguistic writing from a conference publication of the Institute of Kiswahili Research at the University of Dar es Salaam (1983). BIN comes from the book Binadamu na Maendeleo by Julius K. Nyerere. These samples present the same analyzer with different kinds of vocabulary, different concentrations of names and different sources of spelling problems.
Each sample passed through PREPROC.SWA, a BETA program. It separates punctuation from words and, when needed, separates punctuation marks from one another. It can keep internal periods in an abbreviation such as k.mf.. When a word was split with a hyphen across a line break, the program rejoins it. The input convention expects an @ to mark paragraph boundaries. After preprocessing, the test material was arranged with one word on each line for analysis.
Capitalization carries useful information if the grammar can distinguish its purposes. The preprocessor represents an initial capital by the corresponding lower-case letter preceded by an asterisk, so a name such as Nyerere can become *nyerere. A word printed in all capitals for a heading can also receive a single initial mark. An abbreviation that is conventionally all capitals, such as TAZARA, receives a mark before every letter. Lexical lookup can recognize the resulting abbreviation if it has an entry. The paper also describes spotting anomalous mixed capitalization and rejecting partly capitalized versions of the abbreviations concerned. These decisions affect the form SWATWOL receives and the routes available from START.
The main outcome is whether a prepared form yields an analysis. The author then distinguishes spelling errors, forms outside the intended vocabulary and items he judges the analyzer ought to cover. The second group includes rare Swahili forms and foreign material. The descriptions of the individual samples also put many unfamiliar names in that group. This inspection matters because a missing common derivation and a participant’s unfamiliar surname can both appear as an empty result from lookup, even though they raise different questions about the resource.
How the reported failures are distributed
The editorial set, MZAL, has 5670 word form types in the paper’s description. SWATWOL leaves 196 forms unanalyzed, for a reported rate of 3.5%. The breakdown gives 36 instances of misspelling, 132 forms classed with rare or outside vocabulary, and 28 the author considers candidates for inclusion. Place names and personal names figure in the explanation of the overall residue. The paper highlights a form from the derived root wekez, related to wek, as well as vitega, as cases worth inspecting in the editorial material. Among the items judged appropriate for coverage, it reports 9 different word forms.
For CHEZO, the paper gives 4943 word form types and 306 forms without analyses, or 6.2%. The published counts assign 35 to misspellings, 265 to the group covering rare and foreign material, and 6 to the group the author thinks should be covered. Names of teams and players from several countries and English terms used in sports reporting help explain the large middle category. The paper treats much of this material as outside the intended inventory. The larger raw failure rate thus describes a genuine difference in how often the program can give a reading for material in the reports, while the classifications identify the kind of vocabulary driving much of that difference.
ISIM has 4028 words as described in the paper, with 81 unknown to the program and a reported unanalyzed rate of 2%. The breakdown assigns 35 to misspellings, 45 to the rare group, which here consists largely of names and foreign words, and 1 to the group recommended for coverage. That item is kujibizana. The linguistic prose thus presents a relatively small residue in the report, with the remaining failures chiefly attributed to the condition or scope of the input.
BIN has 5028 word form types and 26 unanalyzed forms, or 0.52%. Hurskainen assigns 23 to spelling errors, 2 to rare material and 1 to the items suitable for coverage. He attributes the predominance of spelling errors among these failures to the state of the scanned copy and its editing. In this sample, the leading explanation for an unanalyzed item is consequently different from that in the sports sample.
SWATWOL’s percentage of forms left unanalyzed across the Swahili test samples
The rate was lowest in the book prose and highest in the sports reports.
The numbers
| System or setting | Unanalyzed forms % |
|---|---|
| BIN book prose (this paper) | 0.52 |
| ISIM linguistic writing | 2 |
| MZAL editorials | 3.5 |
| CHEZO sports reporting | 6.2 |
The pooled figures in the paper give 19,669 word forms and 609 without an analysis, for a reported 3.10%. The breakdown lists 129 misspellings (0.66% of the total), 444 rare or outside-vocabulary items (2.26%), and 36 forms judged appropriate for inclusion (0.18%). The first percentage for the pooled experiment refers to every output with no reading. The smaller percentage attached to the last group refers to a specific classification made after the run. The two figures answer different coverage questions, one about the text encountered and the other about gaps under the intended scope of the lexicon.
What the comparison measures
The paper makes a separate statement that recall in average prose is above 99.8%, even before additions made after the tests. It places that figure alongside the 99.7% reported for Karlsson’s SWETWOL analyzer of Swedish. This is a point of comparison with another application of the formalism. Here the analyzer, the language and the test conditions differ. For the Swahili samples themselves, the paper gives no run with a competing analyzer. The comparison with a common system and a clearly stated outcome is across the text collections.
The term recall in the prose claim needs to be read with the author’s discussion of which words belong in scope. The paper also publishes raw rates that include every item without a reading. Those sample rates retain failures attributed to misspelling and foreign material. The average-prose claim and the percentage for an individual sample are reported in different terms, and the paper gives no separate calculation detailing the eligible set for the average-prose figure. Reporting both preserves the information the paper gives about the observed residue and the author’s narrower assessment of coverage.
The appendix supplies a different kind of evidence. Its first sentence includes the verb aliyekwishatusomesha. The analysis displays a past construction with a relative marker, a completive element, a first-person plural object and a causative. The completive label gives information about the action having already occurred. The causative relates this complex form to the root for reading. Alongside it, dukani is analyzed as a noun with locative marking, and vitu receives a plural classification. These examples show the range of grammatical information present in output that a failure tally simply treats as successful recognition.
The other example sentence supplies an illustration of ambiguity. taa receives an uninflected adjective analysis as well as noun readings. zile can be a plural demonstrative or receive verbal analyses with different grammatical labels. The written zote also receives analyses for different classes. For an evaluator counting whether a form was analyzed, these cases have passed. For a person trying to recover the intended reading of each word in the sentence, the work includes choosing among the returned possibilities. The appendix displays candidates at the word level and gives the reader a sentence in which to see why a further decision would matter.
What the ablations show
The paper reports no component ablation or controlled rerun with the rules or lexicon altered. It does examine the distribution of failures and compare alternative grammatical descriptions on specific constructions. Those analyses explain where the design choices make a difference in the representation or in the range of forms that can be licensed.
A vowel at the start of the root is only part of the evidence
The most concrete comparison within the grammar concerns the KI/VI class. In the relevant environment, the singular prefix can appear as ch and the plural as vy. The paper counts 24 vowel-initial noun roots that take altered prefixes and 134 vowel-initial roots that retain ki or vi. These are counts of roots by prefix behavior. They show why vowel onset alone is insufficient to predict whether the writing will change.
One possible lexical description gives the altered prefixes their own entries and lets them lead to the appropriate small group of roots. Hurskainen’s implementation instead uses abstract symbols in the prefixes for roots that take alternations, and literal prefix forms for roots that retain the written vowel. It uses both the rule contexts and the lexical grouping. The descriptive gain is that the alternate forms can be assigned a common prefix on the lexical side, while membership in the special groups determines which roots share that account. The paper gives counts to motivate this policy and gives the related rules. It offers no difference in test coverage or running time between the chosen arrangement and the lexical alternative.
The N/N analysis examines the problem from a different angle. A single NI prefix accounts for several realizations through the rules, allowing the ordinary class routes to share roots without sorting them solely by visible prefix shape. The author also observes that many newer nouns entering this class, including loanwords, appear without a prefix. He puts such items on a route with a zero prefix. The distinction expresses his judgment about how much an abstract NI contributes in each set of nouns. In the alternating set it supplies positions whose distribution can be traced through the forms. In the newer group the directly stated zero prefix gives the form the author wants the lexicon to record.
How much grammar a path can share
Several examples compare the cost of creating separate lexical routes with the cost of expressing a dependency in rules. The short-root problem can be handled by repeating a small group of lexical entries. The general relative creates pressure in the opposite direction. Its restrictions cross a large inventory of roots and would require preserving a distinction from well before root lookup until after the final vowel. The paired lexical markers retain that information while using the shared verbal inventory. This explains why the paper accepts duplication in one construction and puts a long-distance condition in the rule component for another.
The feature assignments discussed for the general relative sharpen the comparison. A feature-based treatment would detect conflicting descriptions supplied by individual entries on a path. The treatment actually used checks whether particular invisible characters occur in the right relationship. Both descriptions specify what compatibility means for the path. Only the character-based treatment contributes to the measured SWATWOL results. The feature proposal is evidence about an alternative way of expressing the dependency, with no corresponding evaluation run.
The ji noun derivation shows a separate tradeoff. Hurskainen says that using the productive construction reduces the size of the stored lexicon by thousands of lines and lowers memory requirements. He also says that it licenses some grammatical formations that are seldom used. This is a comparison between a compact description that can construct possible forms and an inventory that would have to list formations more selectively. The paper describes the direction of the storage benefit and the linguistic side effect. It supplies no detailed memory measurements for the two choices.
Reading the failure groups across genres
The genre comparison holds the analyzer fixed while varying the text. In particular, CHEZO and MZAL are drawn from the same newspaper and show different profiles. The sports reports yield more raw failures, and the group containing unfamiliar names and foreign material dominates their list. The editorials yield fewer raw failures but contribute more items to the group that Hurskainen judges appropriate for the lexicon. Reading the groups alongside the rates reveals a difference that ranking samples by their overall coverage would miss.
The comparison with BIN adds the condition of the text itself. Its unanalyzed list is small, and most of the items on it are classified as spelling errors. Better coverage of regular Swahili roots alone could therefore address only a limited part of that particular residue. The samples give concrete reasons for the variation in results, while genre, topic, name inventory and the quality of scanning or editing vary together. The paper’s inspection is a diagnosis of the failures observed under those conditions.
Limitations
Limits identified by Hurskainen
The analyzer’s reach depends on which lexical items it has. The author gives the proper-name collection as 1.300 names plus 500 derived names and suggests that there may be room to extend it. The presence of a name category in the output and a proper-name route from START supports the analysis of names represented there. As the newspaper tests show, it still leaves unfamiliar people, places and teams among the unrecognized material. Hurskainen regards some such vocabulary as a reasonable omission from the general lexicon, so the choice of what belongs in the resource affects how he interprets the failures.
Reduplication is another explicitly identified gap. It forms an expression by repeating linguistic material. SWATWOL lists common reduplicated forms individually. The paper says that some prose may contain many unrecognized forms of this kind. Simply opening a route that combines pieces to produce repeated forms would risk accepting combinations outside actual use. The project therefore has coverage for the listed examples while a more productive treatment would require a better account of the conditions governing repetition.
For verbal derivation, Hurskainen points to incomplete knowledge of the productivity of individual roots. Some stems support sequences of suffixes that other stems do not, and some combinations produce established meanings specific to the derived word. The network records the morphological patterns the author describes, with separate stem entries where an ordinary compositional output would miss a meaning. He suggests that more research and testing could simplify portions of the derivational network. On the nominal side, the acknowledged overgeneration with ji shows that grammatical possibility under the description can extend beyond familiar vocabulary.
The author identifies a different kind of boundary in the applicative. A suffix can be identified as applicative on the evidence available within a word, while its contribution in the sentence can involve a beneficiary, an instrument, a destination, a location, a reason, a time or a manner. The morphology records the derived form. The interpretation of the extra relation may depend on the sentence and its construction. That places a limit on the semantic detail that can be made reliable through the word’s lexicon route and character correspondences alone.
Limits visible in the evidence
The quantitative evaluation begins with the items for which no analysis appeared. A full measurement of how frequently the right analysis is among the recognized readings would require checking those readings against independently established analyses. A measurement of contextual accuracy would additionally need to determine which reading the sentence licenses. The report gives neither measurement for the test samples. The appendix lets the reader see convincing detail and genuine ambiguity in examples. It leaves open how the recognized portion of each sample would fare under systematic annotation and checking. The paper’s strong claims about precision have this narrower empirical foundation.
The reporting units also limit detailed numerical interpretation. Several sample totals are described as counts of word form types, while the ISIM total is given as words and the discussion of failures sometimes distinguishes occurrences from distinct spellings. Some category percentages printed beside the sample counts are inconsistent with those counts. The headline percentages and the pooled breakdown can be attributed to the paper as reported. The report does not support reconstructing a uniformly defined type-level or occurrence-level measure, or making fine comparisons from the printed within-sample percentages.
The held-out texts give evidence beyond the material used to extend and correct the lexicon. Each still comes from a selected source with the preparation described in the paper. The sports and editorial samples share a newspaper. The linguistic material represents a specific publication, and the scanned prose has the editing issues the author mentions. The study does not vary preprocessing while holding the text fixed or supply a measure of how much each preparatory step contributes. It also gives no common runtime or memory benchmark for the grammar alternatives. The storage argument for productive derivation comes from the construction of the resource, and the failure rates come from the complete system run under the paper’s test procedure.
Some details in the rule descriptions require caution as an implementation specification. In particular, the diacritics shown in the body examples for the subjunctive and the present negative appear in opposite roles in the corresponding final-vowel rules of the appendix. The body and appendix make the same design idea intelligible, namely that a lexical marker can give a distant final vowel its grammatical context. The precise assignment of those literal marks is ambiguous in the printed descriptions. This affects an attempt to reproduce the rules symbol for symbol from the paper.
The implementation and tests concern Standard Swahili. They give a concrete case in which the framework handles substantial material on both sides of the root. Extending that result to another variety or Bantu language would require identifying its root inventories, continuations and alternations. The paper gives no test on a second Bantu language and no breakdown across Swahili varieties. Its argument for wider applicability rests on the demonstrated flexibility of the formalism and the structure of the problems it addresses.
What came after
Hurskainen documents several uses that were already under way and describes further development he expected to follow. The paper traces those uses to the information the analyzer makes available. It gives contemporaneous accounts of the dictionary and corpus work and describes other applications as proposals, without documenting their later outcomes.
For lexicography, Hurskainen built a version restricted to lexical material from Kamusi ya Kiswahili Sanifu. Its purpose was to find forms in running text that the dictionary-based analyzer could not read. The program extracted the forms with surrounding context, giving a dictionary editor evidence about how the candidate occurred in use. The paper says that this process was being used to gather material for the dictionary’s second edition. The same kind of observation that helped enlarge the original SWATWOL lexicon could thus be directed at gaps in a particular dictionary inventory.
Another use was linguistic annotation of the DAHE corpus. The paper describes it as containing 1 million words of Standard Swahili and says that SWATWOL was being used to tag the material. The author also proposes using morphological analysis before searching ordinary text. The recovered lexical and grammatical information would give a search access to related forms whose visible spellings differ. The paper presents this as a direction for information retrieval and text extraction, with the proposed benefits described separately from the reported word-coverage figures.
Under the proposal to extend analysis to sentences, a program built on the Constraint Grammar Parser would receive possible readings from SWATWOL. The next stage would use evidence from the sentence to disambiguate words, identify clause boundaries and analyze surface syntax. In the test examples, a spelling such as zile can already be assigned a set of morphologically possible readings. A sentence grammar can start from that set and use relations among words to decide which readings fit. The paper presents this division of labor as a development goal.
A smaller extension had already been implemented for examples involving phrases. Hurskainen connects the component words with underscores and represents the connections in the lexical network. The noun mtoto and its possessive, adjective and demonstrative can then be treated as successive positions with agreement and order conditions. The paper illustrates permitted placements of the demonstrative yule relative to the adjective mzuri, with an emphasis difference associated with one placement. Continuations also exclude orders judged ungrammatical. The example adapts a device originally used to constrain combinations inside a word to a bounded set of combinations across word boundaries.
That phrase work also figures in the proposed teaching applications. Hurskainen envisages learners supplying verb forms and noun phrases for the program to analyze, with the returned analyses making agreement and word order available for inspection. He reports constructing English–Swahili and Finnish–Swahili dictionaries within the lexicon system to give learners access to roots. The paper also distinguishes generating a written form from a lexical string, which TWOL can already do, from generating a form from a set of grammatical instructions, which would require an additional component. The illustrative target ninakisoma brings together an instruction for a first-person singular subject, present marking, the relevant object concord and the verb for reading.
The paper additionally discusses spell checking and dictionary lookup. Recognition could serve as the basis for a spelling check with the grammatical labels suppressed. A dictionary implementation could display a root, a gloss and details of the form’s construction. Across these applications, the role given to morphology differs with what the user needs to recover. A dictionary editor examines unmatched forms with context, a corpus records grammatical readings, and a sentence analyzer uses those readings as candidates for decisions that reach beyond the word.
Cite
Cite as Arvi Hurskainen. 1992. A Two-Level Computer Formalism for the Analysis of Bantu Morphology. An Application to Swahili. Nordic journal of African studies.
@article{hurskainen1992two,
title = {{A Two-Level Computer Formalism for the Analysis of Bantu Morphology. An Application to Swahili}},
author = {Arvi Hurskainen},
journal = {Nordic journal of African studies},
year = {1992},
doi = {10.53228/njas.v1i1.61},
url = {https://doi.org/10.53228/njas.v1i1.61}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/hurskainen-1992-two-level-computer-formalism-analysis/