---
title: "Shallow-transfer rule-based machine translation for Swedish to"
description: "How Apertium translates Swedish into Danish with dictionaries and local grammar rules, and how its output compares with commercial systems."
canonical: "https://research.elamur.ai/free/en/papers/tyers-2009-shallow-transfer-rule-based-machine/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/tyers-2009-shallow-transfer-rule-based-machine/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2009](https://md.research.elamur.ai/free/en/papers/2009/) / Shallow-transfer rule-based machine translation for Swedish to Danish

# Shallow-transfer rule-based machine translation for Swedish to Danish

Paper · 2009 · Francis M. Tyers and Jacob Nordfalk

**Authors:** [Francis M. Tyers](https://md.research.elamur.ai/free/en/authors/francis-m-tyers/) and [Jacob Nordfalk](https://md.research.elamur.ai/free/en/authors/jacob-nordfalk/) · **Year:** 2009 · **Venue:** Proceedings of the First International Workshop on Free/Open-Source Rule-Based Machine Translation · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

[**10** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2149058695) · [Proceedings of the First International Workshop on Free/Open-Source Rule-Based Machine Translation](https://aclanthology.org/volumes/2009.freeopmt-1/) · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/2009.freeopmt-1.6/)
- [PDF](https://aclanthology.org/2009.freeopmt-1.6.pdf)
- [OpenAlex](https://openalex.org/W2149058695)

Citations: OpenAlex, 2026-10-14.

## Summary

A Danish reader may understand a Swedish sentence and still need substantial changes to make it read like published Danish. Francis M. Tyers and Jacob Nordfalk take that distinction as the starting point for a system for Swedish-to-Danish [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/). Their goal is to produce a Danish draft that a human editor can prepare for publication. They build the translator in the free-software Apertium platform and ask how much correction its drafts require, where the errors come from, and how the system compares with commercial alternatives.

The translator identifies the dictionary forms and grammatical features of Swedish words, chooses an analysis for each word in context, and uses a bilingual dictionary to find Danish equivalents. A set of 17 transfer rules handles local differences in grammar. For instance, a Swedish phrase can express definiteness both in its determiner and in the form of its noun. In the corresponding Danish construction, the determiner carries definiteness and the noun takes a different form. The rules can make that adjustment when analysis identifies the relevant words and features. Building the dictionary was a substantial part of the project. The authors combined manually entered items with candidates from spelling similarities, wordlists, Wiktionary, Wikipedia, and a translation lexicon derived from parallel text.

In a post-editing test on 65 sentences from a Swedish Wikipedia history article, covering 1,151 words, Apertium recorded a word error rate of 30 % and a position-independent error rate of 28 %. Gramtrans scored better on both measures in the comparison. Google Translate scored worse than Apertium when word order counted and better when the metric ignored positions. Across the much larger corpora used to measure vocabulary recognition, Apertium returned at least one analysis for 71.84% of Swedish Wikipedia tokens and 80.48% of Swedish EuroParl tokens. Those figures measure recognition of written forms. The authors judged the system unready for post-editing use, even though it compared reasonably well with the commercial systems. One reason is that an unfamiliar word can cause trouble twice. It can survive in Swedish in the Danish draft, and its missing grammatical analysis can prevent a rule from correcting the phrase around it.

## Deep dive: Shallow-transfer rule-based machine translation for Swedish to Danish

How Apertium translates Swedish into Danish with dictionaries and local grammar rules, and how its output compares with commercial systems. · about 30 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Readable Swedish and publishable Danish

The paper describes Swedish and Danish as largely mutually intelligible. It traces them to Old Norse and associates their standardization with the speech of the Stockholm and Copenhagen areas, respectively. For the translation project, the practical consequence of that relationship is that much of a Swedish text may already be accessible to its intended Danish readers. The value of a translator then depends on what readers want to do with the text. Someone consulting an article for information can work around an unfamiliar word or a construction that sounds Swedish. Someone preparing the same article for publication needs a Danish version whose wording and grammar can stand by themselves.

The authors describe these purposes as assimilation and dissemination. Assimilation means using the translation to understand the source. Dissemination means producing target-language text for circulation, with a human editor correcting the machine draft as needed. The distinction makes the final text the standard for judging the draft. A source word that a Danish reader can recognize can still require replacement. A noun phrase whose parts are all intelligible can still require an inflectional change. Even a quick correction matters when the same kind of error recurs throughout a document.

The task is directional. The system takes Swedish text and produces Danish text, so it must recognize the distinctions made in Swedish and decide how to express them in Danish. A Danish form that is suitable in a particular construction may correspond to a different grammatical category or a different distribution of features on the Swedish side. The source language can also leave something unexpressed that the destination construction requires. These issues explain why a dictionary that lists plausible equivalents is only part of the solution. The system needs a way to recognize the contexts in which an equivalent must change form or be accompanied by another word.

Closeness between the languages makes a local approach plausible. Much of the work can be framed as retaining the source sentence's general organization while changing particular forms and short sequences. Consider a phrase with an adjective and a definite noun. The translator can use information within the phrase to decide where Danish marks definiteness. The same approach can handle an auxiliary and the verb it accompanies if the relevant pattern is visible in the adjacent words. These are the kinds of differences the authors target with shallow transfer, which selects and rewrites limited grammatical patterns within a sentence.

#### The resources and approaches available to the authors

Apertium already provided a transfer architecture. In a transfer system, analysis produces a grammatical representation of the source, transfer turns that representation into one suitable for the destination language, and generation turns the destination representation into written words. The paper describes an original Apertium configuration that applies a single set of structural rules and a configuration with three stages that can group words into chunks and operate on those chunks later. The authors use the single-stage configuration for Swedish to Danish because of the closeness of the languages. The choice locates the language-pair work in dictionaries and a set of local grammatical rules.

The open resources available to build those dictionaries varied in what they supplied. The aspell spelling dictionaries offered extensive inventories of written forms for both languages. An inventory can tell a lexicon builder that a form is attested in a spelling resource. To use it for translation, the system also needs to know which dictionary entry the form belongs to and which grammatical features it expresses. To tackle part of the problem, Extract searched for ways in which the lists of forms matched inflectional patterns. Wiktionary supplied a different kind of evidence. Its entries could include inflection tables and cross-language equivalents, giving the authors information with which to build a grammatical dictionary or propose a bilingual entry.

The authors also describe an access problem in grammatical disambiguation. Both languages had tagged corpora and constraint grammars, which use contextual restrictions to narrow the possible grammatical readings of a word. The resources the paper identifies for Swedish and Danish were unavailable as free resources. Text from Wikipedia offered a way to train a tagger without depending on manually tagged data. The choice still left the tagger with a separate job from the morphological dictionary. The dictionary could propose readings, and the tagger could use context to choose among the readings that had been proposed.

In bilingual lexicography, mutual intelligibility also affected the resources the authors could find. The paper connects the limited demand for general Swedish–Danish dictionaries to the fact that speakers can often understand each other's language. At the same time, publication-quality translation creates demand for systematic lexical distinctions that a reader might otherwise bridge by intuition. The authors addressed this mismatch by assembling translation candidates from several sources. A candidate could begin as a recognizable cognate, a pair in a wordlist, an entry extracted from Wikipedia, or a probable correspondence in translated documents. It still needed to fit the grammatical resources on both sides.

The commercial systems in the paper represent different approaches already available for the pair. Gramtrans applies a rule-based approach built on constraint grammar. Google Translate uses statistical translation. Apertium also draws on a statistical translation system during resource construction, to propose dictionary entries. The distinction is between a method for finding possible equivalents before deployment and the procedure used to translate a sentence at run time. The paper's proposed system uses its reviewed dictionary and authored rules when it translates.

### The method, step by step

#### Following a sentence through the translator

The first job is to recover information hidden in the written forms. Suppose the sentence contains a noun whose ending marks definiteness. To handle the noun in Danish, Apertium needs to know both which noun it is and that the Swedish writer used its definite form. An analysis associates the form with a [lemma](https://md.research.elamur.ai/free/en/concepts/lemma/), the headword under which related forms are grouped, along with its part of speech and grammatical features. This analysis of word structure and inflection belongs to [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/). The result gives the later stages separate access to the word's identity and to properties such as definiteness.

An input form can have several grammatical readings. The next stage performs [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/) and selects a reading in context. In Apertium's output from this stage, the selected part of speech travels with the lemma and the rest of the morphological information. Together they form what the paper calls a lexical unit. A rule can work with such a unit as a noun or verb and can look at the features that distinguish particular forms. That representation also gives the bilingual dictionary a way to keep equivalents for different parts of speech apart.

Transfer combines word choice and grammatical adjustment. Lexical transfer finds Danish equivalents for the selected Swedish items. Structural transfer recognizes fixed-length patterns of lexical units and can change the material that will be generated. Its operations include inserting an item, removing an item, substituting one item for another, and adjusting grammatical agreement. The paper locates lexical and structural transfer in the same module. A rule can therefore work with both the grammatical pattern of the source and the needs of the Danish expression it is assembling.

Generation uses the resulting Danish entries and features to produce the words of the draft. If transfer changes a noun from definite to indefinite form because a separate determiner supplies definiteness in the Danish phrase, generation realizes that instruction as the appropriate written noun. There is a corresponding dependency on the Danish dictionary. The system needs an entry whose inflectional information supports the requested output. This is why a bilingual correspondence must be backed by resources for both source analysis and target generation.

From a Swedish sentence to Danish text The steps in order.

#### Analysis, ambiguity, and generation

Apertium uses finite-state transducers for the work of relating inflected forms to lexical information. A transducer can be understood as a device that reads one sequence of symbols while producing a corresponding sequence. In morphological analysis, its useful correspondence is between the letters of a written word and a representation containing a lemma and tags. In generation, the desired output is the written word associated with a lemma and a set of tags. The paper identifies lttoolbox as the package used for these operations in the Swedish–Danish pair.

A compact dictionary can describe many forms through an inflectional paradigm. A paradigm specifies the way a class of words forms its variants. Entries can share the pattern when their forms vary in the same way. For analysis, that organization lets the system recognize the forms licensed by an entry and its paradigm. For generation, it lets the system request a particular combination of features. The language pair therefore uses a Swedish morphological dictionary and a Danish morphological dictionary alongside the bilingual transfer dictionary. Each of the three encodes a different relationship.

The Swedish dictionary answers questions about the source form. For example, is the token a noun, and does its ending mark definiteness? The bilingual dictionary answers questions about the corresponding Danish lexical entry. The Danish dictionary answers questions about how that entry should appear in a specific grammatical form. When those relationships are available, a change in grammar need not be stored as a separate translation for every surface form. A transfer rule can specify the intended feature, and generation can supply the form for the selected Danish word.

The tagger deals with cases where analysis yields competing lexical units for the same spelling. The authors train a basic unsupervised bigram HMM tagger using `apertium-tagger`. Here, *unsupervised* means that the training does not rely on a corpus in which every token has already been assigned its correct grammatical tag by an annotator. The written words are observable, while the sequence of grammatical readings is what the tagger must infer. A bigram arrangement uses the relationship between neighboring tags, giving the tagger a basis for preferring a reading that fits its immediate grammatical context.

The training texts come from the Swedish and Danish Wikipedias. The paper names the dumps as `svwiki-20090208-pages-articles.xml.bz2` and `dawiki-20090917-pages-articles.xml.bz2`, respectively. The authors explain that the Apertium tagger available during development supported bigram tagging and lacked support for trigram tagging, which would use a longer tag context. In the direction evaluated, the relevant sequence at translation time is the Swedish input. The paper describes the tagger as returning a single selected analysis, so the downstream transfer rules work with the choice it has made. The tagger's job is distinct from recognizing new words, which depends on the analyses the lexical resources can supply.

#### Constructing the morphological dictionaries

The two monolingual dictionaries were built differently because the available information differed by language. In both cases the authors described the closed grammatical categories manually. These are categories such as pronouns, determiners, and prepositions, whose members can be treated as a relatively stable inventory. Their entries matter to transfer because such words help signal the local environments that rules are designed to recognize. A determiner can be evidence for the kind of noun phrase in which an inflection needs to change. An auxiliary can help locate a verb construction and establish how the following form should be realized.

On the Swedish side, the authors drew on Wiktionary's inflection tables. They downloaded pages by category and used scripts to recover the information about forms. They then used `speling-tools` to describe a paradigm for each word from that information. Paradigms were subsequently merged, with duplicates removed. The process turns a collection of individual pages into structured lexical data: the word has an entry, and its forms can be accounted for by an explicit inflectional pattern.

The Swedish resources also included Den stora svenska ordlistan, a free lexicon that lists full forms, and entries obtained from the Swedish aspell dictionary with Extract. A full-form lexicon gives the builder actual written forms to work with. An extraction paradigm describes the relationships to look for among those forms. Extract proposes a link between a lemma and an inflectional pattern when the input forms fit. That link is what makes the evidence usable for grammatical analysis. Simply adding a spelling as a recognized string would leave the transfer module without the features it needs to reason about the word.

Spelling dictionaries were resources for both languages. The paper explains the Swedish acquisition procedure more closely and characterizes the Danish entry policy as more permissive for automatically generated material. As of version 0.5.0, the Swedish morphological dictionary contained 5,230 lemmas and the Danish dictionary contained 10,694 lemmas. The authors expect some erroneous Danish entries as a consequence of the more permissive policy. The different totals therefore describe the size of the stored inventories under different acceptance procedures. They say little by themselves about the accuracy of the individual forms licensed by those inventories.

#### Constructing the bilingual dictionary

The authors built the transfer dictionary by hand and through semi-automatic candidate collection. They entered closed-category items manually and also added some words from open categories, which can readily acquire new members. For the rest, they brought together sources that offered different evidence of a correspondence. A recurring spelling change was one source of evidence. A wordlist explicitly pairing a Swedish word with a Danish word was another. Translated documents could suggest an equivalent even when a bilingual dictionary entry was unavailable.

Cognates offered a direct starting point. Some words have the same forms in both languages, while others show recurring differences. The paper gives Swedish *ö* corresponding to Danish *ø* and Swedish *ä* corresponding to Danish *æ*. It also describes the change from Swedish *-a* to Danish *-e* in verb endings. That last case involves an inflectional ending as well as a visible difference in spelling. Such patterns can bring plausible pairs to a lexicographer's attention. A plausible candidate still needs to denote the intended word and belong to the relevant grammatical category.

The team also found free Swedish–Danish wordlists whose entries lacked grammatical tags. They tagged the Swedish and Danish sides and made entries where the parts of speech agreed. For nouns, the procedure also required agreement in gender. Those checks connect a pair of written expressions to the grammatical representations that the translator will encounter. For an ambiguous spelling, the category can be important to identifying which entry the equivalent should be attached to. The check for noun gender imposes another condition on which pairs this procedure proposes.

Translations mined from the Swedish and English Wiktionaries were handled in a similar way. Wiktionary thus contributed to the project in distinct forms. An inflection table could help describe the variations of a Swedish word. A translation listing could supply a candidate Danish equivalent for a Swedish entry. The former supports recognition and generation, while the latter supports the cross-language mapping. The authors also used an existing Wikipedia extraction method to collect equivalents for items such as proper names and place names.

The remaining source was a probabilistic lexicon from Moses, which the authors trained on Europarl parallel text. A parallel corpus supplies texts available in corresponding languages, so the training procedure can propose lexical correspondences with probabilities. The authors took the most probable translation that was supported by both monolingual dictionaries and applied the same kind of processing as for the wordlist candidates. The statistical training serves a specific purpose in this pipeline. It produces candidate entries for the bilingual dictionary, which is the resource Apertium uses during translation.

All accepted bilingual material went through manual checking. The authors corrected bad entries or discarded them. They also excluded candidates that lacked the necessary entries in the Swedish or Danish morphological dictionary. The Swedish side was a particularly important bottleneck because relatively few lemmas had made it into that dictionary. A translation pair can look sound when read as text and still be unusable if the source analyzer cannot connect an input form to it, or if the generator cannot realize the proposed Danish equivalent. The bilingual inventory recorded in the paper contains 6,854 lemmas. Its size reflects the entries the authors could integrate, instead of the full pool of candidates they collected.

#### Writing local grammatical rules

The authors wrote 17 structural transfer rules. A rule's pattern has a fixed length and is expressed in terms of lexical units. This gives the author access to categories and features that would be cumbersome to enumerate as strings. The same structural issue can arise with different nouns or verbs, and a pattern built from grammatical information can identify instances across those words when their analyses are available. Operations on the selected sequence can change which lexical units are passed through and how those units are marked for generation.

One recurring problem is double definiteness. In the Swedish construction the authors describe, a definite determiner accompanies an adjective and a noun that also has definite inflection. The comparable Danish construction retains the determiner and uses the noun form without the marker of definiteness. In the paper's example, the noun goes from Swedish *utmaningen* to Danish *udfordring*. The whole Danish phrase remains definite. The features of the phrase and those of the individual noun therefore need to be distinguished. Transfer is where that distinction becomes an instruction for the generator.

Another problem is the Swedish supine. The paper describes it as a verb form that functions in some respects like a past participle and can appear with or without an auxiliary. Danish generally uses a different grammatical form in the situations the authors discuss. The Swedish sequence *blivit trott*, for instance, corresponds to Danish *blevet troet* in their example. A transfer rule must link the forms used in the source construction to forms available in Danish. The auxiliary introduces a related issue. When an auxiliary is missing from the Swedish expression, an adequate Danish rendering can require the system to supply one.

Auxiliary choice can also change when the auxiliary is present in the source. In the paper's example involving people who have begun something, Swedish has *har börjat* and Danish uses *er begyndt*. Looking up *har* and the main verb independently would leave the system without the information that this Danish construction selects a different auxiliary. Recognizing the sequence gives transfer the opportunity to handle the combination. This is a case in which the Danish word chosen for a grammatical function depends on the verb it accompanies.

The authors describe passive constructions with a similar need for coordination. With certain Swedish passive verbs, Danish calls for an inflected form of *blive*, meaning “become,” together with a past participle. Transfer must make the material available for generation as a sequence. In a separate pattern, a Swedish passive form followed by an infinitive corresponds to Danish with an explicit infinitive marker. The paper illustrates this using *tros* and *menes*, with Danish *at* inserted before the equivalent of the following infinitive. Both cases go beyond changing the spelling or inflection of a single word, while remaining within a short grammatical environment.

These examples also explain the role of the single-stage choice. The authors encode the changes as patterns and operations in the same transfer stage that looks up target equivalents. For the phenomena described, a local sequence can carry the information needed to decide what change to make. A noun phrase rule needs the appropriate sequence of items and features, and an auxiliary rule needs access to the relevant verb construction. The system's ability to apply the rules consequently depends on what its earlier stages recover from the input. A rule can be linguistically appropriate and still be unavailable to a particular sentence if the sequence it expects has been interrupted by an unrecognized word.

### Experiments and results

#### Recognition on Swedish Wikipedia and EuroParl

The evaluation addresses several questions that require different evidence. A large-corpus test measures whether the system can analyze written Swedish tokens. A post-editing test measures the distance from its Danish draft to a corrected text. A qualitative examination investigates particular errors, while a comparison with commercial systems places the post-editing scores in context. The corpus recognition results describe the reach of the source analysis, including on material that was never individually checked for translation quality.

The authors call their measure *naïve coverage*. A token is covered if the system returns at least one analysis for its surface form. In this test a surface form is the word as it appears in the corpus, while a running token is an occurrence of a form. A form appearing repeatedly can therefore contribute repeatedly to the known-token count. A recognized form can have a partially complete inventory of readings, so a positive coverage decision can coexist with a missing reading that would have mattered in context.

For Swedish Wikipedia, the paper reports 30,662,861 running tokens and 22,030,690 known tokens, giving naïve coverage of 71.84%. For Swedish EuroParl, it reports 15,531,107 running tokens and 12,499,971 known tokens, giving naïve coverage of 80.48%. The higher coverage on EuroParl shows that the same criterion for recognizing a token yields different results on the two bodies of text. The scores characterize the word forms encountered in those corpora under the system's analysis. They leave open which differences in vocabulary or form frequency account for the gap.

The Wikipedia test uses the Swedish database dump, while the EuroParl test uses the Swedish sentences from the parallel corpus. The project also uses Wikipedia and Europarl during resource construction, for purposes such as tagger training and extracting probable bilingual entries. The coverage evaluation should therefore be read as a broad check of how frequently the system can return an analysis on the tested corpora. The paper frames it as a measurement of practical lexical reach. It gives no separate claim that those resources were screened out of dictionary construction or tagger training to create a held-out test of recognition.

Naïve coverage also has a different unit from the dictionary counts. The count of lemmas describes the entries that organize inflected forms. Coverage describes occurrences of forms in text. A single lemma can account for several forms, and well-covered frequent words can contribute many recognized tokens. Conversely, a missing compound can count as unknown even when its constituents occur as independent entries. The relationship between dictionary size and token coverage therefore depends on the forms that the resource can analyze and on how frequently those forms appear in the test corpus.

#### How post-editing was measured

For translation quality, the authors select 65 sentences from a history article in Swedish Wikipedia. The selection contains 1,151 words. They translate it into Danish with Apertium and have a human post-editor correct the output. The corrected Danish supplies the reference against which the original machine draft is measured. This makes the test directly relevant to the intended use. It asks what textual changes separate a translator's first pass from the edited version produced for the passage.

Word error rate, abbreviated WER, uses word-level insertions, substitutions, and deletions to express the distance between the machine output and the post-edited text. Consequences of word placement appear in the score because the two word sequences must be brought into alignment. A correctly chosen word in a different position can still contribute to the edits required to align the sequences. The edit distance is the count underlying this type of comparison. WER expresses that comparison as a rate, and lower values indicate that fewer word edits are needed relative to the reference.

Position-independent error rate, abbreviated PWER, also compares the words in the output and the corrected text but disregards where they occur. It captures discrepancies such as words that are missing, extra, or different even when the metric treats word placement as immaterial. The two rates therefore ask related questions. One concerns how closely the machine reproduces the corrected sequence. The other concerns how closely it reproduces the corrected inventory of words. The authors use `apertium-eval-translator` to calculate both measures from the machine output and the edited text.

On this post-editing task, Apertium's WER is 30 % and its PWER is 28 %. The paper also reports 38 % for what it calls *free rides*, words whose forms are identical in Swedish and Danish. These words can legitimately be the same on both sides of a translation. Their presence is relevant when interpreting the draft because a correct output form can sometimes be obtained with no visible alteration to the input word. The reported percentage describes form identity. It gives a different kind of information from an error rate and does not establish that all words copied in practice were suitable in context.

The authors conclude from the error rates that the system still needs work before use in a post-editing setting. Their measurements quantify changes between two texts. They do not record how long the editor spent correcting the words or attending to errors in the surrounding clauses. A small word edit can be obvious to a reader or can take careful interpretation of the source. Conversely, several changes can follow quickly once an editor identifies the construction. The edit-based result gives a concrete measure of textual revision while leaving the editor's effort in time and judgment unmeasured.

#### Comparison with Gramtrans and Google Translate

The comparison uses the same 65 source sentences for Apertium, Gramtrans, and Google Translate. This holds the subject matter and source constructions constant across the systems. The reference procedure is especially important for interpreting Gramtrans. Because the authors had limited time and considered the Gramtrans and Apertium drafts similar, they used the post-edited Apertium text as the corrected target for Gramtrans as well. They describe this decision as introducing a small disadvantage for Gramtrans. A separate editor working from the Gramtrans draft could have retained appropriate choices that differ from the wording of the Apertium-based reference.

Word error rate for the Swedish Wikipedia history sentences Gramtrans has the lowest sequence-sensitive error rate, and Apertium falls between the commercial systems.

**The numbers**

| System or setting | WER % |
| --- | --- |
| Gramtrans | 26 |
| Apertium (this paper) | 30 |
| Google Translate | 35 |

In the comparative table, Gramtrans records a WER of 26, Apertium 30, and Google Translate 35. The associated edit distances are 304 for Gramtrans, 350 for Apertium, and 415 for Google Translate. On the sequence-sensitive metric, Apertium occupies the middle position. The result for Gramtrans is better in spite of the possible disadvantage that the authors associate with reference reuse. The comparatively large edit distance for Google Translate describes the changes needed to align its output with the corresponding edited text on this passage.

Position-independent error rate for the Swedish Wikipedia history sentences Gramtrans again has the lowest error rate, with Google Translate ahead of Apertium when word positions are ignored.

**The numbers**

| System or setting | PWER % |
| --- | --- |
| Gramtrans | 20 |
| Apertium (this paper) | 28 |
| Google Translate | 22 |

The comparative table gives PWER as 20 for Gramtrans, 28 for Apertium, and 22 for Google Translate. Gramtrans leads on both metrics. The order between Apertium and Google Translate changes. For the word forms counted without regard to position, Google Translate's output is closer to its corrected text. For the ordered word sequence, Apertium's output is closer to the corrected version used in its evaluation. This is the evidence behind the paper's claim of broadly comparable performance. Describing the commercial comparison with a single ranking would conceal the way the ranking depends on the metric.

The two metrics also describe different potential post-editing experiences. An output can contain useful Danish words in placements that need revision. An output can preserve much of the source sequence and still leave forms that should be replaced. The sample sentence the paper displays makes these possibilities concrete, because the systems differ both in how closely they resemble the Swedish sentence and in which details they render idiomatically in Danish. The corpus-level scores establish the relative distances for the selected passage. The sentence example helps explain what kinds of change those distances can include.

### What the ablations show

The paper reports no component ablations. Its evidence about the sources of errors comes from coverage comparisons, inspection of particular grammatical and lexical failures, and comparisons of complete systems under the two edit metrics. These analyses can connect an observed failure to a step in the pipeline when the input and output reveal the mechanism. An aggregate contribution from a component would require a controlled run in which that component changed and the rest of the system stayed fixed.

#### How a lexical gap becomes a grammatical error

The Swedish phrase for the Baltic Sea gives the clearest example of a local error propagating. It contains the adjective *baltiska* and the definite noun *havet*. The authors show Apertium retaining the Swedish adjective and the source noun form in its Danish draft. The expected Danish phrase uses *baltiske* and *hav*, with definiteness carried by the determiner. Thus the intended correction concerns both the adjective and the feature structure of the noun phrase.

The paper attributes the failure to the unknown adjective interfering with the rule match. The rule for double definiteness expects grammatical information about a local sequence. The adjective is part of that sequence, so recognizing the determiner and noun alone leaves the system short of what it needs. The unknown word consequently produces a lexical problem and blocks a separate grammatical correction. This makes the relationship between vocabulary coverage and structural accuracy concrete. A wider dictionary can potentially let a rule handle a construction it was already written to handle.

The illustration also helps interpret the recognition metric. Imagine the system encountered the adjective and returned some analysis. That token would then count as covered under the paper's criterion. The larger syntactic benefit would depend on whether its available and selected reading met the rule's pattern. Coverage is therefore a prerequisite for this use of the rule, and the quality of the individual analysis matters after recognition. This is an inference from the described architecture and example. The paper offers no aggregate count of cases where an unknown word prevented an otherwise applicable rule from firing.

#### Compound words expose a failure at analysis

The paper locates another source of unknown words in the system's handling of compounds. Its example is *universitetsbibliotek*, meaning “university library.” The constituent words *universitet* and *bibliotek* are in the dictionaries, but lttoolbox in this system lacks productive compound analysis. For the analyzer, having entries for the constituents is insufficient to recognize the whole compound. The token reaches the rest of the pipeline without the lexical analysis that a stored simple word could have supplied.

This differs from the Baltic Sea example in where the obstacle first arises. The compound illustrates a limitation in constructing an analysis from available pieces. The adjective example shows what happens to a recognized grammatical pattern when one of its pieces is unavailable. Adding an entry for a particular compound could address the illustrated token. Productive analysis would address the broader class by allowing the system to work with combinations of constituents. The authors identify this as an area for future work, so the paper's evidence is the observed failure of the existing package to analyze the example.

For interpretation of the coverage totals, the example shows why enlarging the list of independent words and improving the treatment of compounds are distinct changes. A dictionary can grow and still leave some familiar-looking combinations uncovered. Likewise, a mechanism that proposes compositional analyses would make room for new questions about which analyses are appropriate. The paper establishes the obstacle at recognition. It gives no measured result for a compound-handling alternative.

#### A known construction can still need a missing rule

The omitted auxiliary in a Swedish supine construction illustrates an error that the authors locate in structural transfer. The Swedish input *Han blivit trott* produces Danish *Han blevet troet* in the system. The corrected version given in the paper calls for *er blevet troet*. Recognizing the verb forms and rendering their Danish counterparts gets the draft part of the way there. An additional transfer operation must supply the auxiliary that the Swedish input leaves implicit.

The unusual feature of this case is the absence of an input word to translate. When Swedish supplies an auxiliary and Danish selects a different one, a rule can change a lexical unit already present in the source pattern. Here the pattern needs to trigger insertion. The rule has to read the existing verb sequence as evidence of a construction whose Danish realization contains more material. The paper's example shows that the current set of rules omits this case, even though the architecture can perform insertions and the authors had already identified some other supine-related changes.

This contrast within the error analysis gives a practical way to locate a problem in the pipeline. In the double-definiteness example, a rule may be available and go unused because one word cannot be analyzed. In the missing-auxiliary example, the required transfer behavior still needs to be written. Correcting vocabulary in the former would make the necessary pattern more accessible. Extending the rules in the latter would add a behavior the system lacked. Neither proposed change has a measured effect in the paper.

#### What the complete-system comparisons can explain

In the sample sentence from the history passage, Gramtrans leaves fewer unknown items than Apertium. It produces the Danish *overfart* for Swedish *överfart* and realizes the Baltic Sea phrase as *det baltiske hav*. The authors see Gramtrans and Apertium as using similar direct translation strategies in this example, despite differences in how much of the source each can handle. Together with the low recognition coverage reported for Apertium, that observation supports the authors' account of lexical coverage as an important contributor to its errors.

The observations come from complete systems with different resources and grammatical procedures. The comparison therefore leaves open how much of Gramtrans's advantage comes from a larger or more effective lexicon, how much comes from disambiguation, and how much comes from structural transfer. The example can identify a translation that one system supplies and the other misses. It cannot assign the overall gap in edit distance to a particular change in Apertium. The authors' explanation is most persuasive at the level of the displayed errors, where the link from a missing word to a draft correction is visible.

Google Translate's version of the same sentence differs more extensively in its wording. The paper singles out *passage* for *överfart*, describing the choice as less precise than *overfart* and treating it as an English-influenced feature of the draft. That observation concerns the particular output. A single lexical choice leaves the procedure that produced it undetermined. The larger methodological comparison comes from the error measures. Google Translate's relative position improves when word positions are ignored, so the ordered match and the position-independent match tell different stories about this passage. The paper supplies no breakdown that traces the change in ranking to individual sentences or constructions.

### Limitations

#### Limits identified by the authors

The authors qualify their vocabulary measurement at the outset. Naïve coverage requires an analysis of a surface form, and the analyses returned for that form can be incomplete. The right reading for a particular occurrence can still be missing. As a consequence, the reported coverage figures are best understood as rates of token recognition. The paper offers no corresponding corpus-wide rate for recovering the correct lemma, part of speech, and morphological features together.

The authors also point to shortcomings in the resources themselves. On the Danish side they accepted automatically generated entries more freely and expected some errors in the resulting dictionary. On the Swedish side the inventory restricts which bilingual entries can be put to use. The authors generated more possible equivalents than they included because an entry needed support from the monolingual dictionaries. Improving a bilingual candidate list alone would leave that integration constraint in place. These observations explain why the paper treats better vocabulary coverage as unfinished work even after assembling multiple sources of candidates.

The paper identifies productive compounds and auxiliary omission as specific gaps. Compounds can fail at analysis even with known constituents. In supine constructions like the example it gives, the transfer stage can produce participles while leaving out the Danish auxiliary. The authors propose expanding the relevant rules, improving vocabulary coverage and grammatical disambiguation, and finding a way to handle compounds. They also mention the possibility of adapting a free Norwegian constraint grammar to Danish. That proposal draws on the similarity between Norwegian Bokmål and Danish and describes a possible source of grammatical resources for future development.

The reference used for Gramtrans is a further limitation the authors state. A corrected text based on Apertium can favor choices already present in Apertium's output even when a different rendering is acceptable. Because the systems appeared similar on the selected passage, the authors used one corrected text for both, under a time constraint. They judge the resulting bias against Gramtrans to be small. Its size remains unmeasured because there is no separately edited Gramtrans version in the reported comparison.

Finally, both the intended use and the evaluated direction have explicit boundaries. The comparison with commercial systems supports the claim that a free-software translator could produce a draft of comparable quality on the test, and the authors still regard the post-editing outcome as inadequate for deployment. They identify Danish-to-Swedish translation as future work. That reversal would change which forms need to be recognized at input and which grammatical distinctions must be built into Danish or Swedish output. The reported experiments concern Swedish as the source and Danish as the destination.

#### Limits apparent from the evaluation

The post-editing test is drawn from a single Wikipedia history article. Its 65 sentences support a close look at the systems on the same material, including a concrete sentence-level comparison. The sample leaves performance on other genres, topics, and styles open. The much larger corpus coverage study shows that recognition differs between Swedish Wikipedia and EuroParl, but it supplies no post-editing scores for EuroParl. The observations therefore license different kinds of generalization. The coverage results describe recognition on their respective corpora, while the edit results describe the selected passage and post-editing procedure.

The composition of the development resources also affects what can be inferred. Swedish and Danish Wikipedia supply tagger training data. The dictionary-building process uses Wikipedia for lexical extraction and Europarl for probabilistic translation candidates. The paper does not describe a separation that would allow the recognition scores to be interpreted as performance on vocabulary held out from all development sources. This matters when asking whether the resulting resources would cover another domain with different recurrent forms. The paper's corpus measurements still answer their stated question about how much running text the system recognizes in the available collections.

Human correction is integral to the experiment, but the measurement focuses on the resulting text. The paper reports no time comparison between post-editing and translating from scratch. It gives no separate estimate of agreement between editors about which changes are necessary. A reasonable rendering can differ from a particular corrected text, and edit distance counts those differences just as it counts revisions essential to grammaticality or meaning. WER and PWER give replicable targets for comparing the outputs and references that were used. Claims about editorial labor or the completeness of a publishable rendering require additional evidence.

The comparative scores also lack a measure of variation beyond the passage. An aggregate result can be influenced by which phrases recur, which words appear, and what kinds of choices the post-editor makes. The paper gives the ordering of the systems on the tested material and a qualitative picture of the differing outputs. It supplies no estimate of how stable that ordering would be across articles or under independently prepared references. This condition is particularly relevant to the differing performance of Apertium and Google Translate across the two metrics.

A final limit concerns the reason for the system's observed performance. The architecture gives a detailed account of how lexical coverage, disambiguation, transfer, and generation interact. Yet the study measures complete outputs. It offers no dedicated tagging accuracy test, no separate score for selected grammatical phenomena, and no experiment that isolates the effect of the single-stage architecture from other choices. The examples show specific routes from a dictionary or rule gap to a translation error. How frequently each route accounts for errors in the evaluated draft remains unknown.

### What came after

No documented later study can be connected here to the Swedish-to-Danish system. The paper's account ends with a free-software prototype, a comparison on one history passage, and several proposed extensions. Reverse translation, stronger disambiguation, productive compound analysis, and fuller treatment of supine constructions remained open development directions at that point. Their eventual implementation and effect are undetermined by the reported study.

## Cite

Cite as Francis M. Tyers and Jacob Nordfalk. 2009. Shallow-transfer rule-based machine translation for Swedish to Danish. Proceedings of the First International Workshop on Free/Open-Source Rule-Based Machine Translation.

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

```bibtex
@inproceedings{tyers2009shallow,
  title = {{Shallow-transfer rule-based machine translation for Swedish to Danish}},
  author = {Francis M. Tyers and Jacob Nordfalk},
  booktitle = {Proceedings of the First International Workshop on Free/Open-Source Rule-Based Machine Translation},
  year = {2009},
  url = {https://aclanthology.org/2009.freeopmt-1.6/}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
