Elamur Research

Adapting SimpleNLG to German

Paper · 2011 · Marcel Bollmann

Summary

A program can know who gave a book to whom and still have work to do before it can write a German sentence. It needs to choose the forms of the words, put the finite verb in the right place, and arrange phrases so that the sentence begins with the person, the book, or the time of the event, as intended. Marcel Bollmann’s adaptation of SimpleNLG addresses that last stage of text generation. The program calling the realiser supplies words, phrases, grammatical features and any desired ordering. The realiser turns that specification into a sentence.

The adaptation retains SimpleNLG’s ability to combine grammatical building blocks with fixed text. German makes that convenience harder to preserve. An entry in the lexicon can point to an inflection pattern that supplies forms for a word, and a compound noun or a separable verb can take its pattern from a designated part of the word. Agreement requires information about how words are used together. A relative pronoun, for instance, gets its gender and number from the noun it refers to and its case from its role inside the relative clause. Even a fixed name may need a gender feature so that the realiser can choose its article. These are different demands on the same interface for handling morphology.

The largest change concerns word order. The original engine produced the subject at sentence level and the objects inside the verb phrase. The German adaptation arranges them together inside the verb phrase, so the subject can appear among the other constituents. A caller can specify the order of subject and objects, then place a modifier before or after one of them. The modifier keeps that relationship if the order changes. In a declarative main clause, the first eligible constituent occupies the opening field before the finite verb. The adaptation also accommodates sequences of modal verbs and lets the caller specify where perfect tense applies when a modal and a main verb occur together.

The paper demonstrates coverage through worked grammatical examples and a small survey of randomly selected Wikipedia articles. The realiser covered 115 of 152 sentences in that sample, reported as 75.66%, when fixed text was allowed only for uninflectable elements. The paper describes the sample as non-representative. It identifies verb phrase coordination as the main source of failures in the survey and describes gaps in negation, infinitives with zu after semi-modal verbs, and the placement of a verb cluster at the beginning of a sentence. The examples show how much of German sentence construction the interface can handle when a caller supplies the intended structure.

Deep dive: Adapting SimpleNLG to German

Adapting SimpleNLG to German explains how a sentence realiser handles German inflection, agreement, flexible word order and verb clusters. · about 34 minutes to read

The problem and its context

From a sentence plan to a sentence

A surface realiser sits between a program’s specification of an utterance and the words a reader sees. The specification may identify a verb, its subject, its objects and additional information such as the time of an event. It may also say that the utterance is a main clause or that a phrase contains a relative clause. The realiser uses this structure to arrange the words and produce the forms required by the language. The final mapping includes spelling and punctuation as well as choices such as how to inflect a verb or which form of an article belongs before a noun.

That division of work matters because the same grammatical operations recur across applications and sentences. The program might make a decision about what to say or what part of an event to put first. Forming the resulting sentence then calls for rules whose relevance is independent of the subject matter. A relative pronoun needs the same kinds of information whether the surrounding text is about a person or another referent. An application can hand those decisions about form to a realiser if it has a way to express the information the grammar requires.

The paper takes as its starting point Gatt and Reiter’s SimpleNLG: A Realisation Engine for Practical Applications. In the engine described by Bollmann, a developer builds a sentence from lexical items and specifications for different kinds of phrases. Features on these objects control details of the output. A piece of canned text, meaning a string supplied in an already usable form, can stand in for a more structured representation where appropriate. This makes it possible to build a clause compositionally while supplying one of its names as written. The original engine was designed for English.

The German adaptation is a Java framework based on version 3.8 of SimpleNLG. The paper records that version 4.3 had been released by June 2011 and mentions plans to move the adaptation to the 4.x architecture. The architectural comparisons in the paper concern the older version. That scope matters wherever the paper attributes a design constraint to SimpleNLG, such as the separation of subject and verb phrase at the point where each produces text.

Why a change of language reaches into the architecture

Inflection is the production of forms of a word as its grammatical surroundings or function require. In the paper’s description of the English engine, regular expressions, which describe patterns in strings, suffice to form most English words. An English lexicon is available as an option. German puts greater weight on knowing which inflection pattern a particular word follows. A noun can, for instance, change a vowel in its plural as well as take an ending. A verb stem can lose a vowel in a particular form. The rules must be able to associate such behavior with the relevant word or class of words.

Agreement introduces a related problem. When one word changes form to match features of another, the realiser has to carry those features across the structure. The paper characterizes English agreement as limited in comparison and draws attention to the singular present verb ending. German also requires agreement between determiners and nouns and between adjectives and nouns. A name supplied as a string may be perfectly usable in isolation. Once a determiner or a referring pronoun depends on the name’s gender, the string needs grammatical information attached to it.

German constituent order presents a deeper problem for the original division of work. A constituent is a unit that the grammar can place together, such as the entire phrase naming the recipient of a book. In a German declarative main clause of the kind discussed in the paper, the finite verb occupies the position after the opening constituent. A subject can occupy that opening position, and so can an object or a time expression. In the rest of the clause, the order of the non-verb constituents can vary as well. Putting the verb second therefore says where the verb goes relative to the opening unit while leaving room for different arrangements of the other phrases.

Bollmann illustrates the choice with a woman giving a book to a man. The same event can be presented with the giver, the recipient, the book or the time in the opening field. The differences can carry emphasis. The paper also observes that preferred order can depend on syntax, meaning and the circumstances of an utterance. Its engineering task is to produce the orders a caller specifies and to provide a default. The choice of which variant best serves a particular utterance remains with the caller. That distinction defines the scope of the paper’s treatment of syntax and grammar.

The linguistic descriptions behind the design

The paper draws on traditional descriptions of German inflection for its division into patterns. Its discussion also uses the German tradition of describing a clause in terms of fields. In an ordinary declarative main clause, the opening field is the vorfeld. The mittelfeld is the area between the finite verb and the verb material that closes the bracket in the description used by the paper. The field terminology gives the implementation a way to talk about the opening constituent and the position of other material without treating the subject as the defining landmark of a German sentence.

The paper refers to Askedal’s account of German fields and sentence types, and to Eisenberg’s grammar for descriptions such as the default ordering of the subject and the two objects. It also relates the decision to place the subject inside the verb phrase to work by Haider and Oppenrieder. Haider supplies arguments for an internal subject position. Oppenrieder questions the grounds for a German verb phrase constituent that contains the verb’s other arguments while excluding the subject. For Bollmann, the decision has an immediate engineering purpose. A phrase returns a string once it has been realised. Any phrase that needs to appear between the verb phrase’s existing elements is easier to arrange while those elements are still available separately.

The resulting design deals with several levels of structure. It needs a way to describe forms of individual words, a way to pass features between words and phrases, and a way to arrange whole constituents. A separable verb touches both the first and the last of these levels. Its base supplies inflectional information, while the finished clause governs whether the prefix is attached or appears apart. A relative clause touches all three. Its pronoun has a form, that form depends on information from inside and outside the clause, and the clause as a whole can be embedded at different points in a larger structure.

The method, step by step

What the caller supplies

A caller builds a specification from lexical items, phrase specifications and, where appropriate, strings. A lexical item gives the grammar a word it can inspect and inflect. A phrase specification records the structure and grammatical features of a larger expression. A fixed string can supply material that already has the required form. The caller can also set sentence and verb phrase features, such as tense or a desired order of complements. Helpers for relative clauses accept a clause and information about how the antecedent is represented within it.

A useful way to follow the implementation is to distinguish the decisions that need lexical information from the decisions that depend on a word’s function in a phrase. The fact that a base verb follows a particular inflection pattern belongs in its lexical description. The need for a particular form in the current sentence depends on the sentence specification. The same principle applies to larger units. The grammatical function of a noun phrase and its position in the sentence are separate pieces of information. A direct object can remain a direct object while moving to the front.

The diagram traces those dependencies from structured input to a sentence. Decisions about form and position meet during realisation. A separable prefix, for instance, has lexical information that the engine must retain until it knows how to put the clause together.

From a German sentence specification to surface text

The steps in order.

From a German sentence specification to surface textStep 1: Supply words, phrases and grammatical features1. Supply words, phrases and grammatical featuresStep 2: Look up inflection patterns for lexical items2. Look up inflection patterns for lexical itemsStep 3: Pass agreement and case information through phrases3. Pass agreement and case information through phrasesStep 4: Arrange arguments and modifiers in verb phrase slots4. Arrange arguments and modifiers in verb phrase slotsStep 5: Place constituents and verb material for the clause5. Place constituents and verb material for the clauseStep 6: Produce inflected words and finished sentence text6. Produce inflected words and finished sentence text

The implementation described in the paper uses rules, lexical data and feature settings. Its lexical data for testing and evaluation came from IMSLex. The paper describes an import into a framework that stores lexicon files in XML. Its account of the design is procedural, with word formation examples, an illustration of the ordering slots and an example of the interface for specifying order. There is no statistical training procedure or fitted formula to reproduce.

Inflection patterns, bases and boundaries

German word forms share enough structure for an engine to reuse rules across words, but selecting the right rule requires information about the word. The adaptation packages rules in objects called inflection patterns. An inflection pattern holds a sequence of endings and supplies methods for attaching them to a stem. The grammatical category determines what endings the pattern needs to represent. A noun’s pattern serves a different inventory of forms from a verb’s. The chosen pattern can also carry features for changes that go beyond adding an ending.

An umlaut in a plural is one such change. A feature tells the pattern whether to make the relevant vowel change in addition to handling the plural ending. Another is the loss of an e in certain verb stems ending in -el or -er. The paper illustrates the latter with sammeln, meaning to collect, and the form sammle in the first-person singular. A procedure that starts with the stem and adds the right ending also needs to know whether the stem changes in that environment. Encoding that behavior with the pattern gives the procedure access to both decisions.

The lexicon assigns words to the patterns. This gives the program a way to find the appropriate behavior for a lexical item while keeping the operations themselves reusable. It also puts a boundary on what the program needs to store as a separate entry. Where a more complex word takes its inflection from a component and the caller can identify that component, the same entry can support several forms of lexical composition.

Separable verbs explain why that boundary is important. The paper’s example ankommen means to arrive. The prefix an can occur attached to the base, as it does in the infinitive. In the main-clause illustration with a singular first-person subject, the base appears as komme and an follows separately. Joining the pieces is appropriate in one environment and separating them is appropriate in another. The engine keeps the prefix apart from the base in its representation so that both arrangements remain available.

The base verb supplies the inflection pattern for the separable verb. If the lexicon has an entry for kommen, the framework can use it with a separable prefix supplied by the caller. The input an|kommen uses a vertical bar to mark what has been supplied as the prefix and what should be looked up as the base. The bar belongs to the specification. The clause produced from it contains whatever placement and joining of those parts is appropriate to that realisation.

A visible boundary in the interface also leaves a choice with the caller that the spelling alone can obscure. The paper takes umfahren as an example. The reading in which someone knocks something over has a separable prefix. The reading in which someone drives around something has an inseparable one. The same written infinitive therefore gives incomplete information about the construction to use. Marking the separable reading is part of specifying the intended word. The engine can carry out the formal consequences once the caller makes that choice.

Compound nouns use a similar notation with a different grammatical effect. In Heimat|stadt, the initial part combines with Stadt, the word for town, to give the compound meaning hometown. The final stem supplies the inflection class. German compounding is productive, so the lexicon is designed to serve compounds that the framework can assemble from such specifications. The caller identifies the boundary and the lexicon supplies the pattern used by the final component.

The parallel between the two uses of the bar is economical. A caller can identify the part that contributes the inflection class in both a compound noun and a verb with a separable prefix. After that, the rules diverge. The compound is a noun whose inflection follows its final stem. The separable verb also has material whose location can vary with the structure of the clause. A single interface convention therefore supports lexical reuse while the grammar still distinguishes the constructions.

Agreement when a phrase contains fixed text

Canned text gives a caller a way to use names or other already formed material directly. Proper names are a natural case because a particular name may be absent from the lexicon and may show little or no inflection where it is used. The caller can supply the written name and still build the larger phrase around it from grammatical pieces. What works depends on whether the phrase needs any features from that name.

The paper illustrates this dependence with the clubs FC Liverpool and Eintracht Frankfurt. In the expressions it compares, the same preposition, bei, combines with an article associated with each club name. The expression with FC Liverpool begins with beim, a contraction containing the preposition and an article. The expression with Eintracht Frankfurt begins with bei der. The difference shows that a proper name can have consequences for the form of neighboring words even when its own spelling is stable.

A string alone supplies the spelling. A lexical item can carry a gender value as well. When the surrounding expression needs that value, the caller can construct a lexical item from the name and assign the appropriate gender. The realiser then has information it can use to form the article or a pronoun referring to the named entity. The burden of entering the name into the general lexicon is avoided in this case. The burden of knowing its gender remains.

This is a precise condition on the convenience of fixed text. The suitability of a string depends both on its own form and on the features other parts of a phrase need from it. In the club example, it is possible to leave the letters of the name alone and still require a grammatical specification for it. In an environment that makes no such demand, the caller can exploit the simpler representation. The paper keeps both forms of input available as part of the same sentence-building interface.

Building a relative clause

A relative clause supplies additional information about a noun phrase. In the paper’s examples, the noun refers to a woman and the relative clause describes a relationship involving her or her child. The noun phrase that the relative pronoun refers back to is its antecedent. Producing the pronoun requires information from the antecedent and from the position the pronoun will have in the embedded clause.

The noun phrase specification class, NPPhraseSpec, offers a helper for this construction. The caller supplies a sentence structure to embed and indicates the grammatical role through which the head noun is represented inside it. The engine creates a relative pronoun and sets its gender and number from the noun. It then inserts the pronoun into the supplied structure in the specified role. The role supplies the context for case, the form distinction tied here to the pronoun’s grammatical function within the clause.

The two sources of features are essential to the design. Suppose the antecedent supplies the features of the noun for woman. These determine the gender and number of the referring expression. The clause that follows could use that expression in different ways, each making its own demand on case. Copying all the antecedent’s features without considering the role inside the clause would miss the second dependency. Looking only at the clause would leave out the information supplied by the noun to which the clause is attached.

The interface extends to a prepositional phrase. When the caller supplies a preposition in place of a direct specification of grammatical function, the engine builds a phrase around the relative pronoun with that preposition. In the paper’s example using auf die, the woman is the person of whom the speaker is proud. The words auf die express the dependence of the relative pronoun on the prepositional construction, while the pronoun still refers to the woman. The helper gives the caller a way to express both links with the clause and its antecedent.

A possessive relation calls for another arrangement. In the illustration using deren Kind, the child is the subject of a description, while the relative expression identifies whose child it is. The caller supplies the noun phrase containing Kind and adds the relative pronoun as a specifier of that phrase. A specifier is an element that helps determine the reference of the noun phrase. Here the pronoun has a position inside the phrase about the child and a reference back to the woman. The whole noun phrase can then occupy its role in the relative clause.

A caller can also construct a relative clause with the general phrase-building operations. This route takes more code, but the completed clause can be embedded somewhere other than in the noun phrase of its antecedent. That makes relative clause extraposition possible. In extraposition, a clause associated with a noun phrase appears at some distance from it. The helper suits the usual construction in which the clause is built through its antecedent’s noun phrase. Manual construction exposes the individual pieces when their final locations need to be specified separately.

Making the subject available for ordering

The original engine produces the subject as part of the sentence and produces other arguments within an embedded verb phrase. An argument is a participant that the verb makes available in its construction, such as the giver or recipient of a transfer. In Bollmann’s example, arranging the recipient before the finite verb is only part of the work. The rest of the clause still needs to place the subject relative to the time expression and the direct object. The realiser needs those constituents in an orderable form at the same point in the process.

One difficulty already arises with passives. The earlier architecture has to take a complement from inside the verb phrase and put it in subject position. It also has to construct a passive complement from the original subject and make that complement available inside the verb phrase. The adaptation could have introduced more movement operations across the same boundary for changes in constituent order. That would have required special handling for subjects at a stage when the other arguments were already handled together.

There is also a practical limit to rearranging the output afterward. Once the original verb phrase has realised its contents as a single string, its individual constituents are no longer available as separate phrase objects at the sentence level. Inserting a subject between an object and a modifier would require reopening a unit that the architecture has already finished. The German adaptation performs subject realisation within the verb phrase so that its order can be decided while the other arguments and modifiers are still accessible.

This change concerns the location of the operation in the software. A subject still has a distinct grammatical role, and that role can have consequences for agreement with the verb. The subject’s place in the ordering procedure is now governed by the same mechanism that handles the objects. The approach also distinguishes an item’s grammatical role from the field it eventually occupies. A constituent that fills the vorfeld can be identified after the ordering procedure without reassigning it the role of subject.

Ordering complements and placing modifiers

The first layer of the ordering system is a property of the verb phrase. It records a permutation, meaning an arrangement of the grammatical roles represented by S for subject, I for indirect object and O for direct object. Its default is SIO, the syntactically unmarked order identified in the paper. The permutation specifies the relative order of the arguments. It gives the caller a compact way to change several positions while leaving the grammatical descriptions of the arguments intact.

A role has a single slot in this arrangement. When several complements share a grammatical function, the framework groups them in a coordinated phrase. Coordination combines elements into a single larger unit. Once the group has been formed, its members can travel together through the ordering procedure. A genitive object uses the same ordering treatment as a direct object. These conventions give a precise interpretation to an instruction that refers to an object position.

The second layer governs other constituents, such as adverbs and prepositional phrases used as modifiers. A modifier adds information such as a time or circumstance. By default, the realiser places modifiers after the complements. A caller can choose an absolute position at the beginning or end of the verb phrase, or a relative position before or after a particular complement. A relative position takes its meaning from the role named in the instruction. If the order of the arguments changes, the modifier stays on the specified side of that argument.

The paper’s slot illustration makes the distinction concrete. There is an absolute opening position. The subject has a slot with a position on either side for associated material. The indirect and direct objects each have a slot and corresponding before and after positions. The default location for modifiers comes at the end. Changing the complement order changes the arrangement of those groups of slots. The slots associated with a complement move as a group in this arrangement, so an instruction such as putting an adverb before the subject survives a change in the subject’s position.

During realisation, the engine visits the slots from left to right in the chosen arrangement. Constituents assigned to the same slot are handled in the order in which the caller added them. This convention resolves the order of several items that share a placement instruction. In the declarative examples, the first constituent produced in that traversal is then put into the vorfeld. The finite verb comes immediately after that opening constituent, and the remaining constituents follow as required by the clause. The paper also identifies verb-initial and verb-final clause types as configurations the adaptation had to accommodate.

The position mechanism covers further material besides ordinary modifiers. The paper mentions subordinate clauses and the complements formed automatically for passives. These can use placement specifications as well. The slot system is therefore a common way to order several kinds of clause material. Its scope follows the kinds of constituents the implementation makes available to it. The verb cluster, which the paper treats separately, illustrates the consequences of that boundary.

Following the order of a single event

Take the event in which a woman gave a man a book. Add the time expression gestern, meaning yesterday. The subject describes the woman, the indirect object describes the man and the direct object describes the book. The source of those role assignments remains the clause specification throughout the paper’s examples. Each variant presents the same participants and time with a different constituent arrangement.

With a subject-led main clause, the phrase die Frau fills the opening field and the finite verb gab follows. The example then puts the recipient before the time expression and the book. Other versions start with the recipient or with the book. In each, it is the whole phrase that occupies the opening field. An article and noun that form the direct object make up a single constituent for the purpose of locating the finite verb.

For the book-led variant, the paper chooses OSI. It places gestern before the subject. With the direct object first in the argument order, the phrase for the book is available before the subject and its associated slots. The book therefore occupies the opening field. The time expression occurs later in the clause, immediately before the phrase for the woman. The recipient follows the subject within the order chosen for the remaining arguments.

Now restore SIO and leave the time expression’s setting in place. The slot before the subject comes first among the occupied positions in this specification. The adverb therefore becomes the opening constituent. The subject appears after the finite verb, followed by the recipient and the book. Both versions honor the instruction to put gestern before the subject. The change in the argument order is sufficient to change which constituent fills the opening field.

The example also explains why the default order of modifiers and the ability to specify their position both matter. A caller that accepts the default can omit a placement decision. A caller that needs an adverb between particular arguments can put it there through a dedicated position. A caller that expects to reuse or revise the sentence can assign the adverb relative to an argument, preserving that decision across different arrangements of the larger clause.

Verb clusters and the scope of the perfect

A verb phrase may contain a main verb and modal verbs. In the paper’s examples, the main verb expresses the action of doing something and the modal expresses a qualification such as ability or possibility. German can have more than one modal in a sentence. The adaptation therefore gives the verb phrase a list of modals. This representation holds the verbs that the clause needs to realise as a cluster, a grouping of verb forms within the sentence.

The paper explains another change through the perfect, a tense construction used here with an auxiliary and other verb material. Consider the interpretation that someone was able to do something. In the example hat es tun können, the perfect applies at the level of the modal. The finite auxiliary hat carries the finite inflection, and the forms associated with doing and being able appear together later. Setting the sentence to perfect through the usual tense feature gives the adaptation this reading when a modal is present.

For the interpretation that someone might have done something, the modal appears as the finite kann. The event of doing is expressed in the perfect through getan haben. The paper adds a feature that specifically requests a perfect construction for the main verb. With that setting, the caller can request the second structure while leaving the modal as the finite verb. The caller’s decision about where the perfect applies has an observable effect on both the verb forms and the distribution of the verb material.

When the verb phrase contains no modal, using the main-verb feature produces the same result as requesting perfect through the ordinary tense setting. In the presence of a modal, the two settings can also be used together, so both levels can be realised in the perfect. The discussion specifies these settings and illustrates the two separate scopes. Its focus is on the interface’s capacity to express the distinction and on the verb forms that result from each of the illustrated choices.

Experiments and results

How the coverage survey was conducted

Bollmann treats grammatical coverage as a question about what structures a user can build with the realiser. The paper examines five randomly selected Wikipedia articles and explicitly describes the resulting sample as non-representative. The recorded article titles refer to such subjects as Michael Joseph Savage, Zubringerstraße and Hapag-Lloyd-Flug 3378. The paper gives 18.05.2011 as the retrieval date. It counts sentences across the articles and assesses whether the grammar can express their constructions.

The coverage judgment allows canned text only for uninflectable elements. This restriction is central to the evaluation. A realiser that accepts fixed strings could reproduce a difficult sentence if it were handed enough of the wording already formed. Restricting those strings leaves the engine responsible for the grammatical work the survey is intended to evaluate. At the same time, it allows the survey to use the normal interface for elements whose forms do not need to be generated. The question is whether the engine can construct the sentence under that division of work.

The paper says that each kind of grammatical construction encountered was recreated in the framework once. The procedure tests whether a construction can be specified and realised. In the wider count, the unit is a sentence, and a sentence qualifies as covered when the engine can realise it under the restriction on canned text. A construction can therefore matter to the totals through the sentences in which it appears. A single sentence may also require the engine to combine several mechanisms, such as inflection and a particular arrangement of clauses.

The evaluation uses existing text as a source of constructions to recreate. There is no reported input representation from which the engine has to discover how each Wikipedia sentence was built. The distinction matters for interpreting “covered.” It means that the grammar and interface can express the example given the relevant sentence specification. The survey measures grammatical reach under that condition. It leaves open the problem of deriving such specifications automatically from some upstream source.

The reported coverage

The grammar covers 115 of the 152 sentences in the Wikipedia sample. The paper reports coverage of 75.66% under its criterion for canned text. The chart uses the reported counts and places the observed coverage against full coverage of the same sample. The full sample is a reference for reading the count. The paper supplies no measured baseline for another engine and no result for the original English SimpleNLG on the German sample.

Observed and full coverage in the Wikipedia survey, sentences covered

The grammar covered most sentences in the sample under the restriction on canned text.

Observed and full coverage in the Wikipedia survey, sentences coveredFull coverage reference for the same sample: 152Full coverage reference for the samesample152SimpleNLG for German (this paper): 115SimpleNLG for German (this paper)115
The numbers
System or settingsentences covered
Full coverage reference for the same sample152
SimpleNLG for German (this paper)115

This percentage is a coverage figure for the sentences in the survey. It weights each sampled sentence as a unit. A construction that occurs repeatedly in those articles can affect the result repeatedly, whereas a construction absent from them can make no contribution to the count. The types demonstrated by the paper and the sentence-level survey therefore provide different kinds of evidence. The examples establish that particular constructions are expressible. The survey indicates how much text the available constructions could account for in this sample under the chosen criterion.

The paper presents the survey as an indication that the framework could serve real applications. The result is relevant to that claim because the sentences came from articles and were chosen through article selection, whereas the preceding demonstrations were selected to explain particular grammatical features. Its scope is still the sampled material. Assessing another application would require knowing which constructions that application has to produce, how often they occur and whether its sentence planner can supply the necessary features.

What was covered and where the survey found difficulty

The range shown in the paper includes word formation and clause structure. The engine handles inflection classes, the reuse of a base verb with a separable prefix, and the reuse of a final stem in a compound noun. It can contract a preposition with an article in the environments described. At the clause level, the demonstrations cover relative clauses and their extraposition, modal clusters, perfect constructions and several choices of constituent order. These capabilities place demands on different parts of the interface. Some are about forming words, while others are about keeping a phrase available until its final location has been chosen.

The most consequential gap in the survey was verb phrase coordination. The paper attributes most of the sentences outside the realiser’s coverage to that gap. That diagnosis is qualitative. The paper gives the total covered count and identifies a leading cause of difficulty, without supplying per-construction counts or success rates. The ability to group complements that share a grammatical role coexists with this gap. Coordination of the verb phrases themselves calls for a different construction.

Other gaps receive descriptions through the behavior of the engine or through individual examples. Negation can be expressed by inserting nicht in a fixed location. The placement of negation across a wider set of constructions remains outside that support. The paper also singles out semi-modal verbs that take a zu infinitive and clauses whose initial constituent comes from the verb cluster. These observations explain why success on constituent reordering should be read in terms of the material that can enter the ordering system.

The empirical record consists of a sample-level total, a qualitative account of the main source of failures and demonstrations of particular constructions. The quantitative result answers whether the current framework covers a substantial portion of the surveyed sentences. The individual examples answer more local design questions, such as whether an adverb can retain its position relative to the subject. The paper leaves runtime, developer effort and comparative output quality unmeasured.

What the ablations show

The paper contains no ablation study that disables components and remeasures coverage, but it does offer worked comparisons of feature settings, alternative specifications and failures associated with particular representation choices.

Changing the order while keeping a placement instruction

The closest thing to a controlled comparison is the change from OSI back to SIO while keeping the instruction to place gestern before the subject. The event, grammatical roles and modifier remain the same. In the first configuration, the book is in the opening field and the time expression comes after the finite verb. In the second, the time expression fills the opening field and the subject follows the finite verb. Its position relative to the subject is preserved in both.

The comparison shows the operational difference between the two ordering layers. One chooses the order of the arguments. The other attaches a modifier to a position relative to an argument. The vorfeld is filled from the resulting arrangement. The same modifier setting can consequently lead to two different locations in the clause. An instruction to use an absolute opening position would express a different intent, since it would place the modifier at the front independently of the argument order.

The paper’s wider set of giving examples illustrates how this flexibility changes what begins a sentence. The woman, the man, the book and the time can each serve as the opening constituent. Taken together, the cases show why the realiser needs access to the subject alongside the other orderable units. They demonstrate realizable choices, while leaving the preference among those choices to the intended use of the sentence.

Comparing the two perfect settings

The modal examples hold the broad lexical ingredients steady. They involve a form of the verb for doing, a form of the modal for ability or possibility, and the expression of perfect tense. In the case interpreted as past ability, the perfect is formed at the level where the modal is realised. In the case interpreted as the possibility of a completed action, the main verb is realised in the perfect under a finite modal. The examples make the grammatical distinction behind the separate settings visible.

The paper also describes what happens without a modal. In that environment, the conventional perfect setting and the main-verb perfect setting coincide in their effect. Their independent value arises when the verb phrase contains a modal and the caller needs to choose the scope of the perfect. The possibility of combining both settings further shows that the interface treats the two choices as independently assignable. The paper’s examples demonstrate the two separate choices and explain the representation behind them.

Finding which information a construction needs

The football club examples compare two names in a similar prepositional environment. The choice between beim and bei der reflects grammatical information supplied by the name as it is used. This helps locate the difficulty with using canned text. Inflecting the name itself is beside the particular point illustrated. A form elsewhere in the phrase depends on a feature of the name. Adding gender to a lexical item gives the realiser the missing input in a form it can use.

The relative clause examples expose a different division of information. The relative pronoun can be introduced in a structure with a preposition or used as a specifier in a larger noun phrase. Its reference to the antecedent persists in both. The internal construction determines its role and case, while the antecedent contributes gender and number. The helper methods encode that division, and the option to construct the clause manually extends placement choices to extraposition. This comparison identifies what the caller specifies through the helper and what the caller must assemble when more control over embedding is required.

Locating the boundary of the slot system

The verb cluster fronting example begins with Gesehen, the participle for seen, before the finite hatte. It tests a distinction that is absent from the examples about fronted objects and adverbs. Those objects and adverbs are kept as constituents that can be arranged through the slots. The current framework holds the verbal material separately and assigns it a fixed place. The opening position is available in the grammar of the sentence, but the participle is unavailable to the mechanism that fills it in the implementation.

The paper explicitly connects this failure to the internal representation. The contrast establishes the reach of the slot mechanism more precisely than a list of accepted word orders would. The method can change the positions of constituents made available to it. To extend that behavior to the fronted participle, the representation would have to make verb material available for that movement. The author also observes that such fronting is pragmatically marked, which is a reason to weigh its importance differently from the more common difficulty observed with verb phrase coordination.

The strongest conclusion about the sources of coverage comes from matching these cases to the mechanisms that handle them. The examples identify how a feature or representation supports an individual construction. The survey identifies which missing construction affected the greatest share of the failures according to the author’s diagnosis. The paper reports no separate sentence-level result for each component, leaving the quantitative contribution of the morphology, relative clause and ordering changes unresolved.

Limitations

Limits the author states

The paper expressly calls the Wikipedia survey non-representative. Selecting articles at random gives some variation in the sentences examined, and the resulting score pertains to the selected articles. A larger assessment of grammatical coverage is difficult because there are many possible German constructions. The examples selected for exposition give evidence about the cases they illustrate, while the article survey extends the test to grammatical demands encountered in a small collection of naturally occurring sentences.

The author regards verb phrase coordination as the most important gap. This judgment has a direct basis in the survey, where it accounted for most of the unrealised sentences. It matters even though the engine has a way to aggregate noun phrases or other complements sharing a role for the purposes of ordering. That aggregation gives each role a single constituent to move. Realising coordinated verb phrases requires handling the verbal structures being joined, which the paper identifies as a separate area of incomplete support.

Negation has limited support. The engine can put nicht into a fixed position, so it covers uses compatible with that placement. The paper identifies the limited implementation as a gap in wider grammatical coverage. Semi-modal verbs introduce a different issue. They take an infinitive with zu, a construction the adaptation does not explicitly support. The presence of modal lists and the two settings for the perfect consequently tells the reader about particular kinds of verbal structure. Infinitival constructions have their own requirements.

Verb cluster fronting is also explicitly outside the covered grammar. The paper traces this to the fixed position and separate representation of the cluster. Allowing adverbs, objects and subordinate clauses to occupy different slots does not bring separately represented verb forms into the same ordering operation. The author notes that the example is pragmatically marked and treats its practical importance as potentially peripheral. The paper gives a more immediate reason to address coordination, since its consequences appeared repeatedly in the survey.

The adaptation preserves the option of canned text, with the qualification that callers must supply grammatical information when it is needed. In particular, they may have to build a lexical item for a proper name and assign its gender. Callers must also identify the boundary for a separable verb when specifying it, since the intended interpretation can affect whether the verb separates. These requirements limit how much the interface can infer from raw strings. The paper presents them as consequences of the information that the realiser needs to apply the German rules.

The architectural scope is explicit as well. The implementation is tied to version 3.8 of SimpleNLG, and the paper describes a move to the newer architecture as planned. Its closing statement says that the full German Java package would be made available after preparation for release. That establishes the release intention at publication. The paper gives no account of the completed port or of a subsequent release.

Limits that follow from the setup

The sentence coverage result depends on the types of text in the sample. Sampling whole articles means that the constructions counted can reflect both the topics of those articles and the ways their sentences are written. The survey does not provide coverage by article or by construction. A reader therefore cannot use the reported percentage to determine the expected rate in a different domain or to tell how evenly the covered sentences were distributed across the selected articles. Those are separate empirical questions.

There is also a distinction between sentence coverage and the coverage of grammatical types. A recurring construction can dominate the failures in a collection even if many other absent constructions would also be difficult for the engine. The paper’s qualitative account of coordination applies to the sentences it examined. Its identification of additional gaps is informative even where the survey gives no separate frequency for them. The coverage result and the inventory of implemented features should be used at their respective levels.

The evaluation relies on a person recreating grammatical constructions in the framework. Its criterion therefore assumes that the caller can identify relevant roles, choose features and supply the desired structure. It provides evidence about the availability of an output when those choices are made. Automatic inference of clause structure, choice of a separable reading, assignment of gender to unseen names and selection of a pragmatically appropriate order are upstream needs whose performance the survey leaves open.

The order examples also leave questions of preference unresolved. The permutation property can describe different orders and uses SIO as a default. The examples show different ways of arranging the same event and the paper notes that order can carry emphasis. There is no evaluation of which order readers prefer in a particular discourse, or of how often the default aligns with the intended presentation of an event. An application that needs contextual choice would have to provide a way to make that choice in the sentence specification.

The lexical import supports the reported implementation work, and the paper explains how patterns can be reused for compounds and separable verbs. It does not quantify the size or coverage of the imported entries. The extent to which a particular application can rely on the lexicon depends on the words and readings it needs and on the specifications it can supply. The reuse mechanism explains how one entry can do more work. It gives no estimate of how often a needed base entry will be available in new material.

Finally, the paper motivates the interface in terms of ease of use and illustrates places where it reduces mechanical work. The ability to request a relative clause through its antecedent and the role of its pronoun is a concrete example. The paper does not report a developer study, counts of implementation effort, or timing results. Its evidence for simplicity is in the operations the interface lets a caller express directly and in the examples showing the resulting sentences. The survey supplies a complementary check on coverage, with no comparative measure of the cost of obtaining it.

What came after

A Simple Surface Realization Engine for Telugu appeared in 2015 and cites Bollmann’s German adaptation. The later work takes up the problem of building a simple surface realiser for Telugu. Its subject places it alongside the German paper as work on the same stage of generation for another language, where the engine must turn a sentence specification into text that follows the target language’s grammar.

The German paper gives a concrete precedent for examining what a compact realisation interface must expose when the language changes. Its treatment of German identifies decisions about lexical patterns, agreement features and the point in the architecture at which constituents can be reordered. The Telugu paper’s citation establishes a connection to that earlier work on language-specific surface realisation. The details of any reuse of the Java framework, its inflection patterns or its ordering mechanism remain unspecified.

Cite

Cite as Marcel Bollmann. 2011. Adapting SimpleNLG to German. Proceedings of the 13th European Workshop on Natural Language Generation.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{marcel2011adapting,
  title = {{Adapting SimpleNLG to German}},
  author = {Marcel Bollmann},
  booktitle = {Proceedings of the 13th European Workshop on Natural Language Generation},
  year = {2011},
  url = {https://aclanthology.org/W11-2817/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bollmann-2011-adapting-simplenlg-german/