Linguist vs. Machine: Rapid Development of Finite-State Morphological Grammars
Paper · 2020 · Sarah Beemer, Zak Boston, April Bukoski et al.
Summary
How much work does it take to teach a computer to produce the right form of a word? A trained grammar writer can describe how a language changes a word to express tense, number or another grammatical distinction. A neural system can learn to make the same predictions from examples. Beemer and colleagues test how these approaches compare when developers have a short time to work, incomplete sets of example forms and a shared benchmark. The question matters especially for languages that have few ready-made computational resources. The experiment concerns word structure and the changes it undergoes in use, the domain of morphology.
The authors recruited 19 students with some prior training in finite-state grammar writing. Using data from a SIGMORPHON shared task, the participants judged which languages looked feasible, looked for recurring patterns and encoded their analyses as grammars. For a dictionary entry the grammar already knew, it could use the entry’s assigned inflectional class. For an unfamiliar entry, a separate component could make a guess. The authors also built a system that learned transformations between forms within a word’s paradigm, the set of forms available for that word. It filled gaps by borrowing transformations from other paradigms and giving more weight to examples with similar inflectional behavior.
The team submitted hand-written grammars for 25 languages. They matched or exceeded the strongest neural participant on 13 languages. The authors highlight Ingrian and Tagalog, where detailed work on consonant alternations and reduplication, respectively, helped the grammars achieve results ahead of the competing systems. The automatic paradigm-completion system improved on the organizers’ non-neural baseline, and the strongest neural systems remained ahead of it. Its additional role was to give grammar writers plausible candidates for forms missing from their data.
The cost of reaching competitive accuracy varied widely. The authors estimate at least 40 person-hours on average for a competitive hand-written grammar, excluding infrastructure development and planning. This is an estimate based on prior course surveys, since the participants’ project hours were unrecorded. Some regular languages required much less work, and the authors suggest that difficult cases can demand far more. A detailed grammar can pay off when the data reveal complex but systematic patterns. When the examples omit distinctions needed for prediction, or encode the same request inconsistently, the grammar writer has less to work with.
Deep dive: Linguist vs. Machine: Rapid Development of Finite-State Morphological Grammars
How hand-written finite-state grammars compare with neural systems for word inflection, and what it takes to build them quickly. · about 31 minutes to read
The problem and its context
What an inflection system has to predict
Word inflection changes the form of a lexical item to express a grammatical distinction. The dictionary entry gives a starting point, but a request for an inflected form also needs to specify the grammatical features of the intended output. For instance, the dictionary entry can identify a verb while features identify the tense and kind of form requested. In the paper, the dictionary entry is the lemma. The resulting string is the word form.
A lexeme is the lexical item considered across its different forms. A paradigm organizes those forms into slots, with each slot identified by a grammatical description. The paper calls this description an MSD, short for morphosyntactic description. In a generation task, an input consists of a lemma and an MSD, and the system must produce the target form. An analyzer can work in the other direction, determining which lemma and features are compatible with a form. The shared task gives the authors a direct way to compare generation. The finite-state grammars they build are designed with analysis as well as generation in mind.
A paradigm can be incomplete in the examples available to a developer. A known form might provide a clue to the missing one, such as a part of a stem that persists across several grammatical settings. Other clues come from comparing different lexemes. If a group of words makes the same kinds of changes when moving between corresponding slots, those changes may be useful for predicting the forms of another word in the group. Grammar development therefore involves determining both which forms belong together and which parts of their behavior can be generalized.
The authors emphasize a distinction between inflectional classes and morphophonology. An inflectional class groups lexemes that follow a common inflection pattern. Morphophonology concerns the changes that occur when the pieces of a word combine. In the paper’s example from English, the plural spellings cats and buses look as though they have different endings. A grammar can account for the extra e in buses through a rule conditioned by the sounds at the boundary, treating the words alike for the choice of plural ending. The distinctions used in the lexicon then reflect behavior that requires separate treatment. The example comes from English.
This division has consequences for a grammar’s coverage. If each surface difference leads to a new class assignment, a developer has more individual decisions to make and less general guidance for new words. If a developer assumes that every alternation follows from the surrounding sounds, distinctions between words can disappear from the grammar even when they matter for prediction. The hard cases are the ones where a small set of observed forms supports several plausible accounts.
Why the comparison mattered
The paper describes hand-written grammars as a longstanding standard for building systems that understand or produce inflected words. Finite-state transducers were already an established way to implement these grammars. In a transducer, a path through a set of states relates an input sequence to an output sequence. In morphology, the relation can connect a lemma and its grammatical features to a surface spelling. A developer can build separate transducers for pieces of the problem and combine them into a larger grammar.
Sequence-to-sequence learning offered a different route. A system sees examples of input and output strings and learns how to predict the latter from the former. In the shared tasks described by the authors, these systems had shown that examples could support effective inflection across many languages. The earlier evaluations included the 2017 SIGMORPHON reinflection task and the 2018 SIGMORPHON reinflection task.
That success changed the practical question. A careful grammar might perform very well once its author has accounted for the lexicon, the classes and the alternations. A team that needs a usable resource quickly has to ask how much of that work can be done with the available examples and expertise. The paper places this question in the context of building fundamental resources for low-resource languages.
A reason to write rules remains even when automatic prediction is accurate. The authors discuss institutions that issue guidance on spelling, orthography and inflection. A grammar that explicitly encodes a convention can express the rule the institution intends to apply. Performance on example forms leaves a separate question about whether that particular convention has been acquired. This is one reason the paper treats accuracy and the purpose of the grammar as distinct considerations.
What earlier comparisons had tested
As the authors describe it, there was little extensive comparative evidence on carefully developed manual grammars and neural inflection systems. They point to Pirinen’s comparison between a hand-written Finnish analyzer and a successful shared-task entry. That experiment put a rule-based resource and a learned system in direct comparison on Finnish morphology. The authors characterize it as a small experiment.
They also discuss work by Moeller and colleagues on Arapaho. There, a hand-designed transducer provided examples to a neural system. The experiment asked how closely the system could learn the behavior of the transducer as the supply of examples grew. The present paper starts from partial shared-task data and gives those examples to prospective grammar writers. The writers have to decide which generalizations to encode, and the test forms provide the comparison.
The authors trace their automatic completion system to earlier work on paradigm generalization. That research treated relationships among the forms of a word as useful evidence for reconstructing a paradigm. Beemer and colleagues also make those relationships accessible during grammar development. A collection of transformations can serve as evidence for grouping lexemes, then supply possible outputs for a missing form. This connects the practical problem of inspecting unfamiliar data to a benchmark submission that can compete on the same prediction task.
The method, step by step
Choosing languages and preparing the evidence
The project drew on the 2020 SIGMORPHON shared task, where the team worked with a development group of languages and a surprise group. Here, development languages names a group of languages available to the participants. A development set is a data split within a language, used to check performance while working on it. The authors conducted the initial review of languages again when the surprise group arrived.
The 19 participants were students with a background in linguistics or computer science and some experience writing finite-state morphology. Before they began writing grammars, the authors asked them to survey the languages in groups of three for about an hour. The survey was a way to estimate where a small amount of effort might reveal the main patterns, and where analysis could consume much of the project.
Participants were asked to rate difficulty from 1 for easy to 5 for very difficult. They considered how familiar the writing system was, how many slots the paradigms appeared to contain, what kinds of alternations they saw and how many classes they suspected. This was an informal forecast. For example, a language could look as though it had many classes until someone found an alternation that explained the apparent differences. Participants were encouraged to choose work that looked interesting and feasible. The surprise languages were judged harder on average, with paradigm size a major factor.
The shared-task examples arrived as records identifying a lemma, a grammatical description and a target form. The authors’ support software rearranged them into partial paradigms. This changes the unit a developer inspects. Entries for a lemma can be read together, making it easier to compare forms and to see which evidence is absent. A developer reviewing an unfamiliar language can ask what changes as a particular feature changes, then look for the same relation in other paradigms.
The software also extracted the alphabets used in the data and put the feature tags in a canonical order. A consistent order matters when a representation serves as a key for a particular slot. It brings together occurrences of the same description whose tags were arranged differently. The tags came from UniMorph.
A template gave developers a starting point for a grammar driven by general morphophonological rules or one that assigned lexemes to explicit inflectional classes. They wrote and compiled all grammars in foma, the finite-state software named in the paper. After compilation, the development environment could evaluate the grammar on the training and development sets and provide error reports. The authors also make the grammars and support software available in the repository they call 7565tools.
From shared-task examples to a finite-state inflector
The steps in order.
How a grammar produces a form
The grammar first interprets the lemma and the requested features. This stage selects the morphemes, or meaningful pieces of the word, in their canonical representations. Where a language has distinct inflectional classes, the lexicon identifies which class a known lemma belongs to, and that assignment helps determine which pieces to select. The resulting representation is intermediate. It records the grammatical construction before the final spelling changes take effect.
A cascade of transducers then applies the morphophonological alternations. A cascade passes the output of one transducer into the next. This lets the intermediate representation and the surface output stay distinct even when the spelling obscures a boundary. An alternation can treat the same morpheme differently in different environments, while the stage that chooses the morpheme can use a common representation.
Take the distinction illustrated by cats and buses. The grammar writer can account for their shared plural construction at the stage that assembles the word. The stage that handles the spelling can express the additional material where the environment calls for it. For an alternation that depends on the identity or class of a lexeme, the first stage can preserve a distinction for the relevant rules to use. A rule about the environment and a statement about class membership express different hypotheses about why forms differ.
The lexicon gives the grammar access to a known lexeme’s stored properties. To make predictions for unfamiliar lexemes, the authors integrate a component they call a guesser. It accepts a valid lemma from outside the lexicon and sends it through the relevant morphophonological part of the grammar. The guesser can use patterns expressed in the rules, including patterns applicable to many lemmas, but an unfamiliar lemma comes without the recorded class assignment that a known entry can supply.
The grammar integrates these paths so that its lexicon-based output takes precedence where a known lexeme can be inflected by that route. Finite-state operations implement that precedence inside the combined transducer. Accordingly, a guess at a generic form does not compete with an output the developer has licensed for that particular known word. The lookup and guessing paths serve different amounts of available evidence.
Much of development consisted of refining these distinctions. Reconstructing paradigms made it easier to ask whether an error belonged to a family of errors. After recompiling, a developer could see whether a proposed class or sound alternation accounted for several examples and whether it affected predictions elsewhere. Training results gave rapid feedback on how much of the observed data the grammar covered. Development results helped evaluate grammars against examples outside that immediate set and informed which languages the team eventually submitted.
Learning a transformation from an observed pair
The authors also wanted a way to inspect possible classes before assigning them by hand. Their procedure starts inside a single lexeme’s partial paradigm. Wherever the data supply forms for a pair of slots, the software aligns the strings. An alignment places corresponding characters opposite each other and allows a character in one string to correspond to an empty position in the other. The authors use an existing Monte Carlo aligner for this operation.
Each alignment is then converted into a regular expression that approximates the observed transformation. The rule keeps concrete changes from the alignment and generalizes across stretches that stay the same. A concrete change can mean substituting one character for another or writing a character on just one side. An unchanged stretch is represented as a sequence of arbitrary symbols shared by the input and output. The regular expression can then be compiled into a transducer.
For the change from runs to ran, the paper gives the following expression in foma notation.
?+ u:a ?+ s:0
The spaces separate consecutive pieces of the expression. The question mark ? stands for an arbitrary symbol, and + requires that the pattern it follows occur one or more times. In these positions, ?+ stands for a nonempty sequence copied from input to output. The colon : separates the input and output parts of a correspondence. The pair u:a writes a in place of u, and s:0 consumes s without writing a character. The symbol 0 marks an empty output.
The rule can therefore handle more than the observation that produced it. It changes outruns to outran, since the copied stretches can include additional characters. It can also turn pulls into pall. That output satisfies the string pattern, but the underlying analogy is wrong. This example captures the tradeoff in making the copied regions flexible. A transformation can transfer to another lexeme with the same behavior, and it can transfer to another lexeme whose spelling happens to fit.
The grammatical identity of each pair of slots is part of the procedure. The authors compare the changes made between corresponding source and target slots. An ending that disappears on the way to a past form offers different evidence from the same character change in an unrelated slot transition. The comparison concerns the way a lexeme moves through a paradigm, anchored in the grammatical descriptions that identify the forms.
Making rules from all observed pairs gives the authors several possible views of each lexeme. A recurring relationship can be visible in a pair that never involves the citation form. The choice to use those pairs also means that missing slots matter beyond the individual forms they hide. If a form is missing, all pairwise transformations requiring it are unavailable for that lexeme.
Comparing lexemes and forming clusters
The similarity calculation compares the transformations collected for a pair of lexemes. A match is a transformation rule shared between them for the relevant slot pair. The authors normalize the number of matches by the total internal evidence from the two paradigms.
sim(l₁, l₂) = (2 × #shared(l₁, l₂)) / (#shared(l₁, l₁) + #shared(l₂, l₂))
Here, l₁ and l₂ are the lexemes being compared. The subscripts distinguish their roles as the first and second arguments. sim is their similarity, and #shared counts identical slot-to-slot rules. A call to #shared with the same lexeme in both positions counts the rules present in that lexeme’s own paradigm. The constant 2 weights the shared count, × marks multiplication, + adds the self-counts and / divides the weighted shared count by that sum. The equals sign defines the score. Parentheses enclose function arguments or group arithmetic, and commas separate arguments.
The denominator matters because some lexemes have better-attested paradigms than others. The same number of shared rules can be a large share of the available evidence for a pair of sparsely attested lexemes and a small share for lexemes whose data cover many more comparisons. The self-counts give the calculation a reference point that varies with the pair. On the paper’s scale from 0 to 1, the lower endpoint denotes no shared rules and the upper endpoint denotes complete overlap.
To use the measure for clustering, the authors turn similarity into distance.
distance(l₁, l₂) = 1 − sim(l₁, l₂)
distance is the value passed to clustering. l₁ and l₂ again identify the lexemes, and sim is their previously defined similarity. The constant 1 is the upper endpoint of the similarity scale, − indicates subtraction, and = assigns the result to the distance. The parentheses and comma enclose and separate the two arguments. Lexemes sharing more of their transformations are closer by this measure.
The authors use single-link agglomerative hierarchical clustering. The procedure starts with separate lexemes and successively joins groups. In single-link clustering, the distance between two groups is the distance between their closest members. The resulting hierarchy lets a developer inspect which lexemes join early and which groups connect only later. A cluster can include lexemes connected through intermediate members, so membership is evidence for further inspection of a common analysis.
The paper illustrates this with Ingrian and a selection of English verbs. The Ingrian figure covers the full training data used for that illustration, with partial paradigms for 50 lexemes. It also shows the eventual class assignments proposed by the grammar writers. This puts the automatic grouping and the later linguistic judgment side by side. The English illustration uses a small subset to show how the procedure behaves on familiar examples.
Using transformations to complete paradigms
The same collection of rules powers a separate shared-task submission. The authors observed that much of the development and test data asks for forms of lexemes that already have some observed forms. A system can then use those observed slots as the starting points for transformations to the requested slot. The useful evidence can come from elsewhere in the paradigm, even when the input available from the task itself names the lemma.
Suppose the requested output is a past participle. The procedure looks in other lexemes’ paradigms for transformations whose destination is the past-participle slot. For each such transformation, it needs a form of the target lexeme in the source slot. If that form is present and the rule applies to it, the resulting string is a candidate. Different source slots and different donor lexemes can produce the same candidate. They can also produce competing strings.
The paper illustrates the procedure with MacGyver and the requested slot V.PTCP.PST. In that notation, V marks a verb, PTCP a participle and PST the past feature. The figure shows how other paradigms can provide transformations from known slots to that destination. The displayed paradigms illustrate the procedure, which pools candidates across the available donor tables. A candidate can receive support from several transformations.
The basic decision is a vote over those outputs. The authors also try weighting the vote with the lexeme similarity score. A donor paradigm that shares many slot-to-slot transformations with the target paradigm can contribute more strongly. The logic is that agreement on observed forms provides evidence about which donor will be a good guide to an unobserved form. This connects two distinct operations. String matching determines which candidates a transformation can produce, and shared behavior across slots helps determine how much influence its output has.
The weighted version became the team’s non-neural submission, CU-7565-02. The hand-written grammars were submitted under CU-7565-01. CU-7565-02 could also serve as an aid to analysis, since it supplied hypotheses about empty cells a developer could compare with a developing account of the language. Its transformations and votes were a separate route to prediction from the hand-written grammar’s lexicon and guesser.
Experiments and results
Data, comparison systems and accuracy
The evaluation uses the training, development and test divisions of the SIGMORPHON task. The training examples were the starting material for writing the grammars and obtaining transformations. The development examples provided ongoing feedback and informed the submission decisions. The test examples assessed the submitted predictions. Each requested form is identified by a lemma and its grammatical description, and the reported metric is accuracy on the corresponding target forms.
The authors report that development started for some 40 languages, with approximately 20 in the initial development group and a similar number after the surprise release. The team entered hand-written predictions for 25 languages. Their criterion for submitting a grammar was that it had reached a usable level of maturity, judged by whether its development accuracy was within 5% of the neural baselines provided by the organizers. The reported set of grammars thus reflects both the initial choices and subsequent progress.
The neural baselines helped the team decide what to submit. The comparison in the results also asks how the submitted grammars fared against the strongest neural participants, a separate reference point. For the automatic completion system, the authors make another distinction. They compare it with the organizers’ non-neural baseline as well as with the strongest neural systems. The main results table gives the team’s own language-by-language accuracies and indicates where they met or exceeded the best participants. The outside systems’ individual scores are unavailable in that table, so the numerical comparisons below use the two team entries.
For CU-7565-01, the paper gives training, development and test accuracy. That breadth reflects how the developers monitored their grammars. For CU-7565-02, the table gives test accuracy where available for the languages being shown. The automatic entry participated in almost all 90 languages, so the table covers part of its run. The two systems therefore have different sets of reported results as well as different ways of producing a form.
How the hand-written grammars performed
The authors report that the hand-written entries equaled or surpassed the strongest neural participant on 13 languages. They describe several of these as relatively easy to analyze, sometimes because there was little morphophonology to account for. Among the test results, the hand-written grammar reaches 100.0 for aka, dje and gaa. The same test accuracy is also reported for lin, mlg and nya, as well as for sna, sot and swa. A perfect score on the recorded test forms is evidence of fit to that evaluation. The authors point out that simple systems of inflection were often also easy for neural entries to learn from examples.
Ingrian and Tagalog are the cases the authors emphasize when discussing an advantage from detailed grammar writing. Both involved a substantial class analysis and complex alternations. In Ingrian, the authors draw attention to consonant gradation, where consonants change across forms of a word. The partial tables show the developer pieces of this behavior. A grammar brings those pieces together by specifying which alternations apply and when.
On Ingrian, the hand-written grammar achieves 93.4 on the training set, 91.1 on development and 92.9 on test. The automatic paradigm-completion entry achieves 77.2 on the Ingrian test set. This comparison holds the test language and the metric constant while changing how predictions are obtained. The authors also report that the grammar was ahead of competing entries on Ingrian, although the comparison shown here is with their own automatic submission.
Hand-written grammar and paradigm completion on Ingrian test accuracy
The hand-written grammar produces more correct Ingrian test forms.
The numbers
| System or setting | accuracy % |
|---|---|
| Paradigm completion | 77.2 |
| Hand-written grammar (this paper) | 92.9 |
Tagalog illustrates a different kind of complexity. The paper reproduces working notes that lay out candidate inflection patterns for verb forms associated with actor and object focus. The notes use R to flag copied material from the start of the stem. In the figure’s CV(V) notation, C is a consonant, V is a vowel and the parentheses mark the possible additional vowel. The author of the grammar has to account for what is copied and how the copied material fits with the other changes associated with the requested form.
The Tagalog grammar records 77.9 on the training set, 75.0 on development and 77.8 on test. The authors identify this as an especially strong result relative to competing systems. The test accuracy is lower than Ingrian’s, but the comparison the authors make is within each language, where all entries confront the same target forms. The paper gives no numeric result for its automatic Tagalog entry in the table, so it supplies no direct comparison of the two team entries there.
Accuracy across the splits varies in ways the developers had to interpret. Cebuano, listed as ceb, has hand-written accuracy of 85.2 on training, 86.2 on development and 86.5 on test. Chichicapan Zapotec, listed as zpv, has 84.3 on training, 77.9 on development and 78.9 on test. The authors observe that test accuracy can exceed training accuracy. Because this happens in several languages, they see little sign of a general tendency for the grammar writers to fit the training forms at the expense of the test forms. Other patterns in the table, including noticeably weaker scores on test, make this an observation about the experiment’s results, with no general guarantee.
What the automatic entry achieved
The authors report that the weighted paradigm-completion system improved substantially on the organizers’ non-neural baseline. They describe it as the strongest non-neural approach of which they were aware. They also report that it never surpassed the strongest neural entry on a language. Both comparisons matter because the automatic system is offered as a way of exploiting partial paradigms without writing a grammar for each one. Its large submission coverage gives it a different practical role from CU-7565-01.
Its relative performance against the hand-written entry varies. On dje, gaa, lin, nya and swa, both team entries record test accuracy of 100.0. On Akan, listed as aka, the grammar obtains 100.0 on test and paradigm completion obtains 89.8. On Crimean Tatar, listed as crh, the hand-written system obtains 96.4 on test, while the automatic entry obtains 97.7. Those cases show that the ranking of the two entries depends on the language being evaluated.
Zenzontepec Chatino is another case where the automatic entry scores higher than the hand-written one. The paper discusses inconsistent use of hyphens and en dashes in this dataset. The test comparison gives the result of each complete system on all the evaluated forms, so the ranking by itself supplies no measurement of the effect of punctuation.
Hand-written grammar and paradigm completion on Zenzontepec Chatino test accuracy
Paradigm completion achieves the higher test accuracy on Zenzontepec Chatino.
The numbers
| System or setting | accuracy % |
|---|---|
| Hand-written grammar | 72.5 |
| Paradigm completion (this paper) | 76.1 |
The Māori results show a different challenge. For the hand-written grammar, accuracy is 85.5 on training, 85.7 on development and 66.7 on test. The automatic entry reports 57.1 on the test set. The paper uses this language to discuss a specific shortage of evidence about stems. The test outcome shows the performance of both approaches under that shortage, while the linguistic analysis explains why some of the distinctions needed for generation can be hard to recover.
Hand-written grammar and paradigm completion on Māori test accuracy
The hand-written grammar scores higher on the Māori test forms.
The numbers
| System or setting | accuracy % |
|---|---|
| Paradigm completion | 57.1 |
| Hand-written grammar (this paper) | 66.7 |
How much development the team estimated
The authors consider development effort alongside accuracy because the experiment concerns how quickly a usable grammar can be built. They did not keep individual time records during the project. They instead refer to surveys from earlier offerings of the same course, in which students averaged 6.6 hours per week on course projects. Nineteen people took part in the project over its five-week duration. On that basis, the paper reports an estimate of 627 person-hours for the grammar effort.
The team judged 13–15 language grammars substantially complete or close to it. The rest of the 25 submitted languages still needed work, although the authors believed the remaining effort to make them competitive was small. These judgments about completion and remaining work are separate from the count of 13 languages on which the grammars matched or exceeded the strongest neural participant. A grammar’s perceived maturity includes the developers’ assessment of the patterns it covers. A benchmark score measures how it handled the requested forms.
By the authors’ conservative estimate, writing an analyzer and a generator that can compete with a strong neural system takes an average of at least 40 person-hours, with planning and infrastructure development left out of the calculation. They also exclude the training the students had before the experiment. The estimate covers a wide range of experiences. In very regular cases, the authors report that 30 minutes could suffice to express the relevant behavior. In complex cases, they suggest that even trained developers may need hundreds of hours to take a grammar ahead of the strongest learned approach. The latter figure is a prospective judgment informed by the project, instead of an observed time for a named grammar.
What the ablations show
The paper has no formal ablation series. Its most direct component comparison is between plain and similarity-weighted voting in the automatic system. It also examines the relation between clustering and hand-assigned classes, compares behavior across data splits, and describes cases where the data shape the errors a grammar can make.
Weighting votes by evidence from other slots
In plain voting, each applicable transformation can cast support for the candidate it produces. This uses the fact that a donor lexeme has an observed transformation to the needed slot. The weighted variant adds a question about that donor. How much other inflectional behavior does it share with the word being completed? Donors with more similar paradigms can have a greater effect on the decision among candidates.
The authors report a slight edge for similarity weighting in their development evaluations across the languages tried, and they used it in the final automatic submission. This comparison supports using the transformations in a paradigm as context for selecting among possible analogies. A candidate can fit the characters in a source form while having less support from the pattern the lexeme exhibits elsewhere. The weight can favor a donor that provides both kinds of evidence.
The paper provides no per-language numerical breakdown for the weighted and unweighted variants. The comparison therefore establishes the direction of the reported development effect and explains the design choice for CU-7565-02. The weighted system’s test accuracy measures the completed pipeline, which also depends on the observed source forms, the alignments and the candidate rules. Comparing that test accuracy with the grammar’s accuracy changes much more than the voting procedure.
What the clusters reveal about a possible class
The Ingrian visualization sets the automatically computed hierarchy alongside the class identifiers the linguists later assigned. This shows what each analysis uses. The hierarchy uses the overlap of observed changes between slots. The grammar assigns classes as part of a fuller explanation, including morphophonological rules that can account for some visible differences without assigning separate classes.
A close cluster can give the grammar writer a group worth inspecting together. The writer can ask which shared transformations explain the grouping, and whether they reflect a common choice of morphemes or a common phonological environment. A separation can likewise identify a pair of words whose behavior deserves a closer look. Since the data are partial, inspecting them includes checking whether the relevant pair of slots is present at all. The example is qualitative. It tells the reader what evidence the clustering exposes and what kind of judgment remains for the linguist.
The English illustration gives a second view of the same process on a small set of verbs. Its scope is to demonstrate how transformations produce a hierarchy. The paper does not measure cluster agreement against an independently labeled inventory, or compare the speed and accuracy of developers who worked with and without the clustering display. The evidence for the display’s role comes from the analysis it makes possible to inspect.
Where grammar and task data diverge
The authors’ language notes analyze several errors in terms of what the input records ask the system to predict. Māori supplies the clearest example of information that can disappear from an observed form. The paper gives active–passive alternations including neke and nekehia, nehu and nehua, and kati and katia. The examples have different visible boundaries between the stem and the material marking the passive. A grammar can explain such forms by positing a stem and rules for what happens when the ending is added.
For neke, the traditional analysis discussed in the paper gives the stem as /nekeh/. The active has an empty ending, and the stem-final consonant disappears at the end of the word. In nekehia, the passive suffix -ia follows the consonant, putting it in a position where the deletion rule does not apply. The surface active neke gives no direct evidence for recovering that particular consonant. The paper also discusses vowel deletion in nehua, where the stem and suffix bring vowels together.
This makes the direction of prediction important. A passive form can preserve a distinction that the active has lost. Starting from the active alone, the generator has to guess which hidden consonant, if any, should appear in the passive for that lexeme. The authors describe how an attested gerundive with the suffix /-aNa/ could preserve the consonant and help identify it. That is an analysis of what richer paradigms would make inferable. The reported benchmark did not add those gerundive forms and measure how much they changed accuracy.
These error analyses place the test comparison in context. A hand-written grammar can make consistent predictions that follow from a plausible linguistic account, while an incomplete lexical record still leaves an individual prediction uncertain. Conversely, a system can learn a useful tendency about which output is likeliest without recovering the underlying form of every stem. The observable benchmark result includes both the effect of general rules and the consequences of which evidence the task makes available.
Limitations
Limits identified by the authors
The authors characterize the work as a preliminary comparison. Their participants had prior training in the relevant craft, but the project lasted 5 weeks and covered only the languages the teams had time to tackle. The team saw some languages as impractical to analyze under those conditions. Erzya and Meadow Mari are the examples given, each with 1,597 forms per lexeme. The magnitude of those paradigms shaped the participants’ judgment about what they could reasonably complete.
Their estimates of labor come from earlier course surveys, so the paper cannot attribute a measured number of hours to an individual language or establish how labor was divided between different activities. A grammar with a difficult lexicon and a grammar with difficult phonological rules might impose very different workloads. The recorded benchmark results can show how the grammars performed after the project. The survey estimates give a rough context for that performance and leave the allocation of effort uncertain.
The authors also describe inconsistencies that they judged unproductive to encode. The Hiligaynon data sometimes list a lemma with several alternatives. A record that bundles alternative forms into the lemma field can be awkward for a grammar designed to start from a single citation form. The developers chose to leave that transformation untreated. The paper identifies related problems in Syriac, Sanskrit, Oromo and Tohono O’odham, where the same lemma and MSD sometimes appear on different lines with different target forms. The problem was widespread enough in languages listed as ctp and pei that the writers excluded them from their selected set.
In Chichicapan Zapotec, some targets combine alternatives in a slash-separated string. The authors found no regular basis for predicting when to produce such a string and left that behavior untreated. In Zenzontepec Chatino, the mixture of hyphens and en dashes offered a different problem. The writers found no apparent rule for the choice of mark. A system evaluated on the recorded target string can lose credit for a punctuation mismatch even when its prediction captures the inflection that a grammar writer meant to express.
The authors suggest that learned systems may cope better with some of these inconsistencies. The paper reports the observations that motivated that judgment, and the authors hoped to revisit the comparison with cleaned data once test data became available. The experiments in the paper leave the effects of cleanup unmeasured. There is also a difference between recording legitimate alternatives and repairing inconsistent formatting. Either can affect exact prediction, while each calls for a different account of what constitutes an acceptable target.
Māori illustrates the authors’ separate concern about predictability. The dataset supplies at most two forms per verb, active and passive. In the authors’ analysis, a surface active form alone can conceal material that matters to the passive. Even a grammar with a good account of the alternation can need a source of lexical information that those examples do not supply. The suggested gerundive is a concrete example of the evidence the authors think would help.
Limits that follow from the design
The submission rule limits what the headline count can establish. Participants chose languages after an informal feasibility assessment, and the team generally submitted a grammar when development accuracy showed it was close enough to a neural baseline. The 13 languages on which the grammars met or exceeded the strongest neural participant come from this selected set. The result demonstrates that rapid grammar development worked competitively in a substantial set of actual cases. It gives only indirect evidence about the likelihood of success on a language selected without that initial screening or progress check.
The automatic and manual entries also operate over different coverage. The automatic procedure was applied to nearly all 90 languages, whereas the team sent hand-written entries for 25. A table restricted to languages that received a hand-written entry makes sense for comparing the two methods where possible. It offers limited evidence about how their deployment costs and accuracy would compare across the full task, particularly for languages the developers passed over because of their size or difficulty.
Within a language, benchmark generation and the usefulness of an analyzer are distinct outcomes. The hand-written implementation is designed to represent a relation that can support both tasks. The reported scores measure the system’s ability to generate requested strings. An analysis evaluation would have to consider which readings are returned for already inflected forms, including cases where the same spelling has several interpretations. A prescriptive evaluation would in turn have to examine whether the rules capture the conventions that motivated the authors’ discussion of normative grammars.
The evaluation mixes requests involving familiar lexemes with the design goal of handling unfamiliar ones. The architecture explicitly gives unseen lemmas a guessing path, and the authors describe many development and test requests as missing forms of lexemes already represented in the examples. The paper supplies no separate headline scores for wholly unfamiliar lemmas and missing slots of known lexemes. The test accuracy therefore describes the complete system on each language’s requests. It leaves the relative contribution of the lexicon and the guesser unresolved.
Similarly, Ingrian and Tagalog show that intensive human analysis can pay off on a difficult language within this task. The paper connects that advantage to linguistic properties the writers studied closely. It does not isolate the effect of any specific class assignment, gradation rule or reduplication pattern while holding the rest of the grammar fixed. The results support the possibility of an advantage from detailed analysis, and the paper’s notes give plausible accounts of where it arose. The scores cannot allocate that advantage among individual decisions.
The interpretation of the training and test results also has a boundary. A test score higher than the training score is compatible with a grammar that generalized well. It can also occur when a test split happens to contain a more favorable mix of forms. The paper does not give a matched breakdown that controls for the particular lexemes and slots in each split. The authors’ observation thus speaks to the absence of a uniform drop in their table. It does not establish a general resistance to overfitting for the development process.
Finally, there are limits to what the automatically learned transformations represent. They approximate changes given by character alignments, and the example of pulls shows how a rule can match a word by accident. The normalization of the similarity score adjusts for the amount of observed evidence, while the available slots still determine which comparisons can be made. Two lexemes that share a true pattern may have few comparable examples. Two with matching changes in the examples may diverge in slots omitted from both paradigms. The clustering and voting procedures exploit the evidence they have, while the paper’s classification examples leave the reliability of those judgments under different amounts of missing data open.
What came after
The later citations place the experiment in discussions of word representation, morphological documentation and grammar engineering. They establish that the paper was cited in those settings. The specific uses of its procedures are unreported, so the connections below concern the questions the works address.
Word forms and open vocabularies
The historical survey by Mielke and colleagues concerns open-vocabulary methods and the choice of units between whole words and characters. Beemer and colleagues confront a related problem for morphology. A lexicon can store information about known lemmas, while the guesser needs some representation that also works on strings absent from that lexicon. The comparison between a known entry and an unfamiliar string is part of the design of their inflector. The survey approaches word and character representations through the broader problem of tokenization. Between words and characters
Documenting the evidence for inflection
CommonMorph is described as a platform for participatory morphological documentation. Documentation is closely related to a problem the grammar writers encounter before they encode a rule. Observations arrive as partial records, and reconstructing them as paradigms makes both regularities and missing evidence easier to see. The Māori example shows why the choice of recorded forms can affect what a future analyst can infer about a stem. This is the connection between the earlier experiment’s concern with the contents of the data and the later paper’s stated focus on collecting and organizing morphological knowledge. CommonMorph
Automating parts of grammar construction
Voloshina’s paper concerns a modular approach to automating morphological components in grammar engineering. The earlier experiment already divides the work into components with different sources of information. A human assigns classes and writes rules, a compiler combines finite-state components, and an automatic procedure can propose missing forms from analogous paradigms. That division is relevant to the later work’s stated focus on automating components within grammar construction. The citation establishes a connection to the earlier experiment, while the particular components carried forward are unspecified. Modular Approach to Automating Morphological Components in Grammar Engineering
Cite
Cite as Sarah Beemer, Zak Boston, April Bukoski, Daniel Chen, Princess Dickens, Andrew Gerlach, Torin Hopkins, Parth Anand Jawale, Chris Koski, Akanksha Malhotra, Piyush Mishra, Saliha Muradoglu, Lan Sang, Tyler Short, Sagarika Shreevastava, Elizabeth Spaulding, Testumichi Umada, Beilei Xiang, Changbing Yang and Mans Hulden. 2020. Linguist vs. Machine: Rapid Development of Finite-State Morphological Grammars. Proceedings of the 17th SIGMORPHON Workshop on Computational Research in Phonetics, Phonology, and Morphology.
@inproceedings{beemer2020linguist,
title = {{Linguist vs. Machine: Rapid Development of Finite-State Morphological Grammars}},
author = {Sarah Beemer, Zak Boston, April Bukoski, Daniel Chen, Princess Dickens, Andrew Gerlach, Torin Hopkins, Parth Anand Jawale, Chris Koski, Akanksha Malhotra, Piyush Mishra, Saliha Muradoglu, Lan Sang, Tyler Short, Sagarika Shreevastava, Elizabeth Spaulding, Testumichi Umada, Beilei Xiang, Changbing Yang and Mans Hulden},
booktitle = {Proceedings of the 17th SIGMORPHON Workshop on Computational Research in Phonetics, Phonology, and Morphology},
year = {2020},
doi = {10.18653/v1/2020.sigmorphon-1.18},
url = {https://doi.org/10.18653/v1/2020.sigmorphon-1.18}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/beemer-2020-linguist-vs-machine-rapid-development/