Elamur Research

Normalisation of Historical Text Using Context-Sensitive Weighted Levenshtein Distance and Compound Splitting

Paper · 2013 · Eva Pettersson, Beáta Megyesi and Joakim Nivre

Summary

Historical writing creates a practical obstacle for language analysis: familiar words can appear in spellings that contemporary software does not recognise. A reader may understand the sentence, while a dictionary lookup or grammatical tagger treats its words as unfamiliar. Eva Pettersson, Beáta Megyesi and Joakim Nivre investigate whether spelling normalisation can bridge that gap. Their method converts historical Swedish word forms into contemporary spellings, then passes the resulting text to an existing tagger. The aim is to make historical material more accessible to ordinary language-processing tools without first requiring extensive grammatical annotation of historical documents.

The method begins with a modern dictionary. For each historical token, it searches for entries that resemble its spelling, measuring resemblance through Levenshtein distance: the cost of changing one character sequence into another through edit operations. Several refinements make that comparison better suited to historical writing. Common spelling changes receive lower costs than unusual changes. Operations can involve character groups rather than isolated letters. A compound splitter provides a fallback when a complete word has no acceptable dictionary candidate. An optional cache supplies manually checked spellings before the automatic search begins. Where several candidates remain equally close, their frequencies in contemporary text help choose the output.

The experiments concern Swedish court records and church documents dated from 1527 to 1812. On the evaluation sample, 64.6% of the original tokens already match the manually established target spelling. The dictionary-based method reaches 77.0% without using historical annotation to learn edit weights or populate the validated cache. Adding the learned weights, compound handling and the fullest validated cache produces 86.9% normalisation accuracy. The earlier handwritten-rule approach reaches 72.7% on the same evaluation material. These figures describe agreement with the chosen modern spelling, instead of a judgment about whether the historical spelling was legitimate in its original setting.

The practical test asks whether those spelling changes help identify verbs. Using a contemporary tagger, verb-identification precision rises from 77.9% on untreated historical text to 83.3% after the strongest automatic normalisation setting; recall rises from 64.2% to 86.2%. Manually normalised historical text still yields better results, and contemporary text performs better again. The paper therefore supports normalisation as a useful bridge, while also showing that spelling is only part of the historical-language problem. Its “context-sensitive” edits concern nearby characters within a word. The method selects among competing spellings without considering the surrounding sentence, a limitation the authors identify for future investigation.

Interesting ideas

Let a modern lexicon supply the destination

A dictionary can define plausible outputs even when historical training material is scarce. Instead of learning every historical-to-modern correspondence in advance, the system searches among spellings that already have lexical support. This makes the basic approach usable before a project has accumulated a substantial annotated corpus. The broader engineering idea is to separate knowledge of acceptable destinations from knowledge of how inputs deviate from them. In another normalisation task, a trusted terminology list or contemporary corpus could serve the same role, provided its coverage suits the intended outputs.

Charge less for changes that recur

Not every character difference carries the same evidence. A change that repeatedly connects historical and modern forms should count less heavily against a candidate than an equally sized but unusual change. The paper derives those costs from observed edit frequencies relative to preservation of the source characters. This turns a general string-distance procedure into a task-sensitive comparison while keeping its decisions inspectable. The reusable principle is that observed transformation counts can improve a similarity measure without replacing it with an opaque decision process.

Treat character groups as meaningful edits

A historical spelling pattern may involve a group of letters that corresponds to a shorter or longer contemporary sequence. Dividing that pattern into unrelated character operations can obscure the regularity. The paper therefore includes operations such as replacing a pair of characters with a single character. This is useful wherever the unit of systematic variation does not coincide with the unit used by a basic algorithm. The important design choice is to extend the operation inventory around real correspondences, instead of assuming that every useful transformation acts on an isolated symbol.

Use decomposition when whole-word lookup fails

A productive compound can be valid even when no dictionary lists it as a complete entry. The paper handles this by splitting a difficult word, normalising its components and joining the results. The splitter runs after the ordinary lookup has failed, so it extends lexical coverage at a particular point in the workflow. This fallback pattern is useful when a resource covers reusable components more thoroughly than all their combinations. It also gives a clear interpretation to success: the system found support for the parts, even though the original whole-word search found none.

Store checked decisions, including decisions to preserve

Manual validation is valuable even when the correct action is to leave a spelling alone. The cache records unchanged forms alongside changed forms, preventing the automatic procedure from repeatedly proposing unnecessary alterations. It can also retain several validated outputs for an ambiguous historical form. This suggests a general design for correction systems: preserve reviewed decisions explicitly, allow more than one supported answer where the evidence requires it, and distinguish human validation from an automatically generated result that is merely remembered for efficiency.

Measure the task that normalisation is meant to help

Agreement with a spelling reference is informative, but the intended benefit is better analysis of historical text. The authors therefore also evaluate verb identification. That additional test establishes that the changes help a real downstream operation, while the manually normalised comparison reveals how much difficulty remains after spelling has been corrected. The transferable lesson is to evaluate an intermediate representation both on its own terms and through its intended use. A cleaner-looking input does not by itself establish a more useful final result.

Deep dive: Normalisation of Historical Text Using Context-Sensitive Weighted Levenshtein Distance and Compound Splitting

How weighted edit distance, compound splitting and checked spellings help normalise historical Swedish and improve verb identification. · about 32 minutes to read

How Mova uses it

Mova is a small, transparent language system written in Rust. Its relevant implementation is under tools/translate: meta.rs contains merge and compound handling, while profile.rs contains the cache-as-delta arrangement. These existing pieces give the paper a concrete connection to Mova. The connection is architectural: the paper separates reusable transformation behaviour from a collection of checked lexical decisions, and it treats compound processing as a way to reach beyond complete-word dictionary coverage.

The weighted-edit proposal fits Mova’s rule-oriented design because its evidence is countable. An edit receives a cost based on how often a correspondence occurs and how often the source characters instead remain unchanged. That calculation can be exposed alongside the rule it supports. A proposed normalisation could therefore be explained through the operations involved and the observations that made those operations inexpensive. This is an appropriate extension to investigate for Mova; the existence of meta.rs does not establish that the paper’s weighting formula or its full operation inventory has already been implemented.

The compound procedure is especially relevant to Mova’s open problem 2. The paper offers a specific sequence: attempt the complete form first, split only after that search finds no suitable candidate, normalise the components independently, then merge their outputs. This sequence provides a concrete way to connect compound handling with candidate generation. Mova already has compound and merge machinery in meta.rs; the research contribution supplies a policy for when that machinery should participate in a spelling-normalisation search.

Length restrictions address the same open problem from another direction. A compound-aware search still needs limits on which alternatives it considers. The paper distinguishes the permitted difference in string length from the permitted edit cost, then evaluates those controls separately. It also examines a word-length-dependent distance bound intended to reduce implausible alterations. Mova could use these distinctions to make its search rules explicit: what size changes are allowed, what transformation cost is acceptable, and when decomposition becomes available. The paper does not establish which setting would be best for Mova’s own inputs.

The validated cache corresponds to the delta shape already used in profile.rs. A base procedure supplies general behaviour, while a separately stored set of checked mappings supplies specific decisions. In the paper, these mappings take precedence over automatic edit-distance proposals. They also include identity mappings and ambiguous mappings with several accepted outputs. That is a useful specification for a delta: it can express a reviewed change, a reviewed decision to preserve the input, or a set of permitted alternatives.

The honest boundary is between those established implementation connections and a demonstrated reproduction of the research system. Mova has the relevant merge, compound and delta structures. Count-based edit costs, the paper’s candidate bounds and its precise fallback order are ideas that fit those structures and can guide their development. The Swedish accuracy and verb-identification results belong to the authors’ experiments. They do not measure Mova, and they cannot be used as evidence of Mova’s performance without a corresponding evaluation.

The problem and its context

Why recognisable writing can defeat an analyser

The immediate problem belongs to natural language processing for historical documents. Many existing tools depend on lexical entries or statistical patterns learned from contemporary writing. A word that falls outside those familiar spellings can receive a poor analysis even when its meaning is apparent to a human reader. Historical material makes this difficulty routine rather than exceptional.

Variation occurs at several levels. Earlier spelling differs from present-day spelling, but the historical record is not itself uniform. The paper describes differences across writers, genres and periods, as well as variation inside an individual author’s text. A single conversion list is therefore unlikely to account for every form. The system must accommodate recurring patterns without assuming that every historical writer followed the same conventions.

One response would be to train specialised tools directly on historical language. The obstacle, as the authors frame it, is the shortage of suitable linguistic annotation. Training a grammatical analyser requires more than digitised documents: the relevant linguistic information must also be marked. The paper instead investigates a route that reuses contemporary resources by changing the spelling of the input.

This reframes normalisation as a spelling-correction problem. The historical form is compared with plausible contemporary forms, and the system selects a modern counterpart. That framing is operational. It does not imply that historical writers made mistakes by failing to follow conventions that belong to a later period. The purpose is to construct an input representation that works better with available software.

The approach also has a clear boundary. Converting orthography cannot guarantee that vocabulary, inflection or sentence structure will become contemporary. Those dimensions of language change can continue to challenge an analyser after every spelling has been normalised correctly. The later verb-identification experiment makes this distinction visible.

Earlier dictionary and rule approaches

The authors place their work among methods that use spelling correction before linguistic analysis. Some depend mainly on manually written resources, some learn transformations from data, and some combine the approaches. Their own system keeps a modern lexical resource at its centre while making historical supervision optional.

One earlier example is VARD, developed for historical English. As described in the paper, it used a manually assembled mapping resource with 45,805 entries, supplemented by fuzzy matching and contextual rules for ambiguous forms. Its evaluation compared the specialised tool with contemporary spell checkers. The reported comparison suggested that a resource designed around historical variation could recover forms that a general spelling checker missed.

VARD2 subsequently combined the inherited word list with additional data-driven mechanisms. The paper identifies phonetic comparison against a modern dictionary and replacement rules based on recurring spelling patterns. This matters to the present study because it illustrates a hybrid strategy: a trusted mapping resource need not be the whole system, and automatic similarity methods need not operate without lexical guidance.

The closest handwritten-rule comparison is the authors’ earlier Swedish work. That study developed 29 rules from part of a court-record text and tested them on material spanning court records and church documents. Its scope covered documents dated from 1527 to 1812. The rules helped across the periods and genres examined, despite having been developed from a narrower source.

That earlier result provides a meaningful baseline for the new paper. Handwritten transformations can capture genuine regularities, but their coverage depends on which patterns have been anticipated. The Levenshtein approach asks whether a general comparison procedure, supplied with a modern dictionary and optionally adjusted using historical examples, can achieve broader coverage.

Phonetic similarity and sentence context

The related-work discussion also considers approaches based on pronunciation. Jurish’s phonetic method compares representations of how words sound, rather than only their written characters. Its motivation is that historical spellings may reflect speech when orthographic conventions are weak. The method described in the paper uses a grapheme-to-phoneme conversion resource adapted for historical forms.

This offers a different answer to the similarity question. An orthographic distance asks how much the written sequences must change. A phonetic comparison asks whether different spellings could correspond to similar pronunciations. Neither representation automatically solves ambiguity, but each can expose correspondences that the other treats as distant.

The paper also describes Jurish’s later use of sentence context. Candidate normalisations were generated using several token-level techniques, then a Hidden Markov procedure selected among them with contextual information. That earlier work is important for interpreting the present title. Pettersson and colleagues know that context can mean the surrounding sentence, but their own context-sensitive edit operations concern character sequences.

The distinction separates candidate similarity from contextual disambiguation. A spelling procedure may correctly recognise several possible destinations without knowing which one the sentence requires. Contemporary frequency can provide a default preference, but a common word is not necessarily the appropriate word in a particular historical passage.

Learning from parallel spellings

Bollmann and colleagues provide another point of comparison. Their earlier German normalisation work derives transformations from aligned historical and later versions of the same text. A word-aligned parallel resource makes the intended correspondence available during learning: the historical form and its target can be directly compared.

The present paper shares the use of Levenshtein-based similarity but changes the resource requirement. Its basic search compares a historical token against entries in a contemporary lexicon. It does not require a parallel edition of the historical document. That difference is central to the authors’ claim of applicability where resources are limited.

Optional manual normalisation still helps. The distinction is that it refines an already operational method, rather than supplying an indispensable aligned corpus. Historical examples can teach edit costs and populate the validated cache. Without them, the dictionary search remains available, though the experiments show that its strongest results depend on those additional resources.

This modularity connects the work to low-resource languages. The paper proposes that the method could be useful beyond the Swedish setting because its basic requirement is comparatively narrow. That is a statement about the design’s resource dependencies. The actual experimental evidence remains confined to the Swedish material studied.

The method, step by step

The workflow separates finding possible spellings from choosing an output. This separation makes the role of each resource easier to see. The dictionary defines searchable destinations. Edit operations determine which destinations count as close. The cache supplies reviewed answers. Compound splitting expands the search when whole-word comparison fails. Contemporary frequency helps settle remaining ties.

From historical spelling to a modern candidate

The steps in order.

From historical spelling to a modern candidateStep 1: Check stored and validated mappings1. Check stored and validated mappingsStep 2: Search modern dictionary entries2. Search modern dictionary entriesStep 3: Apply length and edit restrictions3. Apply length and edit restrictionsStep 4: Split compounds when whole-word search fails4. Split compounds when whole-word search failsStep 5: Normalise components and merge them5. Normalise components and merge themStep 6: Prefer frequent candidates among distance ties6. Prefer frequent candidates among distance tiesStep 7: Return the selected spelling7. Return the selected spelling

Establish the historical and contemporary resources

The historical collection is described as containing 787,122 tokens across 15 Swedish documents. The genres are court records and church documents, and the dates run from 1527 to 1812. The material was digitised automatically. Only portions had undergone manual checking for optical character recognition errors, so the input is not guaranteed to contain historical spelling variation alone.

The authors create separate training and evaluation samples. Each contains 600 sentences, obtained by selecting 40 sentences from each document. The training sample has 30,827 tokens; the evaluation sample has 33,544 tokens. Training sentences come from material left after the evaluation sample has been selected.

Here, “training” includes estimating the method’s parameters and extracting validated normalisations. It does not mean that every system configuration requires those annotations. Some experiments deliberately omit the learned costs and the validated cache to examine what dictionary comparison can accomplish on its own.

The modern lexical resource is SALDO, version 2.0, described as having roughly 100,000 lexical entries. It provides candidate forms for present-day written Swedish. A historical token is compared with entries in that resource rather than with an unrestricted space of possible character sequences.

A separate contemporary corpus supplies frequency information. The Stockholm-Umeå Corpus, abbreviated SUC, contains roughly one million tokens and represents varied Swedish text types from the 1990s. Its role in normalisation is narrower than SALDO’s: it helps choose among candidates already tied by edit distance.

Consult the cache before searching

The cache can contain manually validated historical-to-modern mappings. When the input form has such an entry, the system uses the stored candidate or candidates instead of generating alternatives through Levenshtein comparison. Manual validation therefore has precedence over the general similarity procedure.

A checked mapping can preserve the spelling. The paper’s example och maps to och, meaning “and.” This matters because a correction procedure can make an already suitable form worse. Recording the decision to preserve it supplies evidence that no automatic alteration is wanted.

A historical form can also have several validated targets. The form i is stored with both i, meaning “in,” and ni, meaning “you.” The cache therefore represents observed correspondences rather than enforcing a single universal conversion for every written form.

This ambiguity is not resolved through sentence interpretation. The cache narrows the permitted candidates, but the system still needs a selection policy when several remain. The paper’s general policy relies on contemporary frequency and, if necessary, random choice.

The implementation also remembers unvalidated results for efficiency. Previously computed outputs and forms recognised in the modern dictionary can be cached to avoid repeating work. These entries serve a different evidential purpose from the manually checked mappings. Remembering a result saves computation; it does not independently establish that the result is correct.

Generate candidates through edit distance

For an input without a decisive validated entry, the system compares the historical spelling with modern dictionary forms. Levenshtein distance measures the cost of transforming one sequence into another through permitted edits. In the unweighted version, ordinary edit operations have unit cost.

The nearest acceptable dictionary entries become candidates. “Nearest” is therefore conditional on the search restrictions: a candidate must satisfy both the permitted length difference and the permitted edit-distance bound. A form that is close under the distance calculation can still be excluded by its length.

This is a constrained search for plausible modern spellings. The method does not select an arbitrary dictionary word merely because some transformation path exists. The restrictions aim to stop the search from stretching so far that a distant, unrelated entry becomes an acceptable correction.

If several entries share the lowest permitted distance, the system retains the tie for candidate selection. This is an important separation of responsibilities. The edit procedure measures orthographic compatibility; another resource can then express which of those compatible candidates is more frequent.

Examine how much word length changes

The authors first inspect the manually normalised training pairs. Of the 30,827 training tokens, 10,735 differ from their target spelling, corresponding to roughly 35%. These changed forms provide evidence about the amount and direction of historical-to-modern variation.

A familiar spelling-correction assumption allows the intended word to be at most a single character longer or shorter than the input. In the training analysis, that range covers approximately 86.9% of the relevant observed cases. A broader, asymmetric range covers more: permitting the modern form to be at most a single character longer or four characters shorter covers approximately 99.5%.

The asymmetry matters. Historical-to-modern conversion is not treated as equally likely to add and remove the same amount of material. The training examples include historical forms that become substantially shorter after normalisation. Restricting the search symmetrically around the original length would exclude some of those correspondences.

The experiments test several ranges instead of adopting the broadest range automatically. The selected basis for subsequent comparisons allows a candidate to be +1 to −3 characters relative to the source. This choice follows evaluation of the competing settings; it is not a universal property of historical spelling.

The paper’s examples also show why length and edit distance are separate. A substitution can change the spelling without changing the number of characters. A deletion changes both. Knowing the output length therefore cannot tell the system how many spelling operations are required.

Examine how many edits are needed

The training analysis also counts ordinary edit distances between historical forms and their manual targets. A maximum distance of 1 covers approximately 55.8% of the relevant training observations. Extending the permitted distance through 4 covers 98.8%.

These findings motivate testing bounds beyond the simplest spelling-correction assumption. Historical variation can involve several coordinated changes inside a word. A restrictive distance limit may protect against bad corrections, but it also prevents the system from proposing many correct historical-to-modern correspondences.

A fixed bound creates its own risk. If the same maximum applies to words of very different lengths, it can permit an excessive transformation of a short form. The authors therefore also investigate a bound that depends on source-word length.

They estimate an average of 0.27 edits per character in the changed training forms, with a standard deviation of approximately 0.18. Their length-dependent acceptance rule is:

distance ≤ 1 OR distance ≤ ((0.27 * wordlength) + (1.96 * 0.18))

Here, distance is the edit distance between the historical form and a proposed normalisation. wordlength is the length of the historical input. The value 0.27 is the observed average edit count per character, and 0.18 is its reported standard deviation. The multiplier 1.96 is introduced to obtain the authors’ intended 95% coverage allowance. The first condition guarantees that a single edit remains permissible for a very short input.

They also express the same rule using a maximum:

distance ≤ max(1, ((0.27 * wordlength) + (1.96 * 0.18)))

The function max selects the larger of its arguments. Consequently, the accepted bound cannot fall below 1, while longer source forms can receive a larger allowance through wordlength. The remaining symbols and constants have the same meanings as in the preceding expression.

This formula is a candidate filter, not a score for deciding which sentence meaning is intended. Its purpose is to regulate how far a spelling may move from its source. The authors compare it with fixed distance limits and find a precision–recall tradeoff instead of a universally superior setting.

Learn cheaper costs for recurring edits

Ordinary edit distance counts all edits equally. Historical spelling gives reasons to question that equality. A recurring correspondence between historical and modern characters should be more compatible with a plausible normalisation than an unusual substitution.

The authors observe 8,881 edits in the training material and assign special costs to edits occurring at least 50 times. Their calculation compares the frequency of an edit with the frequency at which its source characters remain unchanged:

w = 1 − E / (E + U)

Here, w is the cost assigned to the edit. E counts occurrences of that edit in the training comparisons. U counts cases in which the relevant source characters are preserved in the target spelling. The expression reduces the cost as the edit becomes more frequent relative to preservation.

The paper also gives the equivalent form:

w = U / (E + U)

The symbols retain the same meanings. This version makes the preservation comparison especially direct: the numerator counts unchanged cases, while the denominator includes both the edit and preservation observations. These are costs for the distance calculation, rather than guarantees that a particular candidate is correct.

The worked example concerns deleting h. The training data contain 2,382 deletion cases and 3,912 cases in which the letter remains. The resulting calculation is:

wₕ = 3912 / (2382 + 3912) ≈ 0.6215

The symbol wₕ denotes the cost of deleting h. The quantities 2382 and 3912 are the deletion and preservation counts written in the formula without separators. The resulting cost, roughly 0.6215, is below the ordinary unit cost. A candidate requiring that deletion is therefore penalised less heavily than it would be under unweighted distance.

The formula gives a simple explanation for the adjustment. A low cost is supported by recurring training evidence, not merely by an intuition that a change looks historically plausible. At the same time, the minimum-frequency requirement means that not every observed edit receives its own learned discount.

Extend the edits to character sequences

The method’s context sensitivity operates within spelling. Some correspondences are more naturally represented as transformations of a character group than as independent changes to its members.

For instance, the paper compares oförsichtigt with oförsiktigt. The relevant difference can be understood as ch becoming k. A single-character account must instead describe a deletion and a substitution, and there is more than one way to assign those operations.

The authors therefore extend the available operations. They include deleting a character pair, inserting a character pair, replacing a single character with a pair, and replacing a pair with a single character. Their examples include l becoming ll and ss becoming s.

These operations let the distance calculation recognise a recurring sequence correspondence as a unit. That is the sense in which the edit is sensitive to context: the neighbouring character changes the transformation being counted. The method does not inspect the surrounding clause to determine which normalisation fits its meaning.

The training counts do not assume a unique decomposition of every changed word pair. For a nonidentical pair, the authors count possible single-character and multicharacter edits. In the ch example, the observations can support alternative deletion-and-substitution accounts as well as the grouped substitution.

That detail limits how the learned weights should be interpreted. They reflect the paper’s procedure for collecting possible correspondences. They are not a manually established inventory in which every character difference has been assigned exactly one historical explanation.

Recover compounds through their components

Compounding creates a coverage problem for a dictionary-based system. A legitimate contemporary compound need not have a complete dictionary entry. If the normaliser insists on finding the whole word, it can fail even when its components are familiar.

The paper incorporates a splitter developed by Stymne. Its position in the workflow is specific: ordinary whole-word comparison happens first. Only when that process finds no appropriate normalisation candidate does the token reach the compound splitter.

If the splitter recognises components, each component undergoes normalisation separately. The resulting outputs are then joined to create a complete candidate. The dictionary can therefore support the final word through its parts, rather than requiring a listed entry for the whole.

The example is krigztienst. The splitter supplies krigz and tienst; these become krigs and tjänst. Merging them yields krigstjänst. The example demonstrates both spelling conversion inside components and reconstruction of the compound.

This mechanism should not be confused with a general procedure for deciding whether adjacent tokens should be joined or a written word should remain separated. The described operation starts with a token, decomposes it for processing and returns a merged candidate. The paper does not establish a broader solution to historical word-boundary variation.

The fallback order also limits what the splitter can repair. If a whole-word candidate is accepted, compound processing does not automatically compare an alternative component-based interpretation. Its contribution is concentrated on cases where the earlier search has failed.

Select among the surviving candidates

Candidate generation can produce several dictionary entries with the same lowest distance. In the simplest setting, the system chooses randomly among those tied candidates. The optional frequency resource replaces that default preference where it provides usable evidence.

With SUC available, the most frequent tied candidate is selected. Random selection remains when none of the tied candidates occurs in the corpus or when frequency does not distinguish them. Contemporary corpus frequency is therefore a tie-breaker within an already constrained candidate set.

This ordering matters. A highly frequent word does not automatically defeat every less frequent word in the dictionary. It must first belong to the best-distance candidates. The system combines spelling similarity and frequency in stages rather than treating frequency as an unrestricted correction rule.

The remaining weakness is ambiguity across contexts. If a written form permits different modern readings in different sentences, a fixed frequency preference cannot adapt to those local meanings. The authors explicitly identify contextual candidate selection as an unresolved extension.

Experiments and results

What the evaluation measures

The principal spelling measure is normalisation accuracy. It counts the proportion of output tokens whose spelling agrees with the manually checked reference. This includes words that already had the target spelling before processing, so the untreated-text baseline is essential for interpreting the result.

The authors also report error reduction. Their formula subtracts the initial agreement rate from the final agreement rate, then divides by the initial disagreement rate:

ErrorReduction = (CorrectAfterNormalisation − CorrectBeforeNormalisation) / IncorrectBeforeNormalisation

CorrectAfterNormalisation is the percentage matching the reference after processing. CorrectBeforeNormalisation is the matching percentage in the untreated input. IncorrectBeforeNormalisation is the percentage initially differing from the reference. ErrorReduction expresses the net gain relative to that initial pool of spelling disagreements.

Because the numerator is a net change, harmful alterations can offset successful corrections. The measure should not be read simply as the fraction of originally different tokens that received some alteration. It rewards changes that increase reference agreement while accounting for losses elsewhere.

The evaluation uses the 33,544-token sample. Results are pooled across its documents rather than reported separately by genre or period. As a consequence, the headline figures describe performance on that combined evaluation set.

Dictionary search, rules and the complete setting

The untreated historical text has 64.6% agreement with the target spelling. The handwritten-rule comparison reaches 72.7%. The basic Levenshtein configuration reaches 77.0% with the selected length range and distance limit.

Those figures establish that the dictionary-based search is useful before learned edit costs and the validated cache are added. The stronger result comes from the fuller configuration, which combines weighted edits, compound handling and validated mappings from the training material.

Historical Swedish evaluation sample, normalisation accuracy

Dictionary-based search improves on handwritten rules, while the full configuration achieves the strongest agreement.

Historical Swedish evaluation sample, normalisation accuracyUntreated historical text: 64.6Untreated historical text64.6Handwritten rules: 72.7Handwritten rules72.7Levenshtein without learned weights or validated cache: 77.0Levenshtein without learned weights orvalidated cache77.0Weighted Levenshtein with compounds and cache1 (this paper): 86.9Weighted Levenshtein with compounds andcache1 (this paper)86.9
The numbers
System or settingaccuracy %
Untreated historical text64.6
Handwritten rules72.7
Levenshtein without learned weights or validated cache77.0
Weighted Levenshtein with compounds and cache1 (this paper)86.9

The corresponding error-reduction figures distinguish the same stages. The handwritten approach has 22.9% error reduction, the unweighted Levenshtein setting has 35.0%, and the fullest cache setting reaches 63.0%. These measurements concern spelling agreement, not complete linguistic analysis.

The phrase “without historical annotation” also needs a precise reading. The basic procedure does not need manually normalised examples to supply its edit weights or cache. However, the paper uses annotated material to investigate suitable parameter settings and evaluate them. The result demonstrates a low-supervision operating configuration, while the experimental study itself benefits from reference data.

The effect of validated mappings

The cache experiment varies which historical forms qualify for manual mappings according to their frequency in the training sample. A label such as cache100 means that a form must occur at least 100 times to enter that cache.

At this threshold, the cache contains 28 entries. Accuracy reaches 80.9%, with 46.0% error reduction. This is an important result for annotation planning because it shows a useful gain from validating a small set of frequent forms.

Lower thresholds add more entries and improve the reported accuracy at every tested setting. The fullest cache, cache1, includes forms regardless of how infrequently they occur in the training material. It contains 8272 entries and produces the best overall spelling result.

Historical Swedish evaluation sample, accuracy by validated-cache threshold

Broader coverage by manually validated mappings improves accuracy throughout the tested cache settings.

Historical Swedish evaluation sample, accuracy by validated-cache thresholdWeighted Levenshtein without validated cache: 79.1Weighted Levenshtein without validatedcache79.1cache100, 28 entries: 80.9cache100, 28 entries80.9cache50, 51 entries: 81.5cache50, 51 entries81.5cache40, 71 entries: 81.8cache40, 71 entries81.8cache30, 107 entries: 82.1cache30, 107 entries82.1cache20, 156 entries: 82.5cache20, 156 entries82.5cache10, 319 entries: 83.5cache10, 319 entries83.5cache1, 8272 entries (this paper): 86.9cache1, 8272 entries (this paper)86.9
The numbers
System or settingaccuracy %
Weighted Levenshtein without validated cache79.1
cache100, 28 entries80.9
cache50, 51 entries81.5
cache40, 71 entries81.8
cache30, 107 entries82.1
cache20, 156 entries82.5
cache10, 319 entries83.5
cache1, 8272 entries (this paper)86.9

The associated error reductions follow the same direction. The paper reports 47.7% for cache50, 48.6% for cache40, 49.4% for cache30, 50.6% for cache20 and 53.4% for cache10.

The authors suggest sorting forms by frequency before manual validation. Under that workflow, the most frequent forms can be checked first, capturing repeated errors with relatively few lexical decisions. The experiment supports that prioritisation, although it does not measure annotation time or compare alternative annotation strategies.

Does the normalised text help a tagger?

The downstream experiment evaluates part-of-speech tagging through verb identification. The corpus originates in the Gender and Work project, where verbs are of particular interest. Verbs in the evaluation material have been marked manually, making it possible to assess whether the tagger identifies them.

The tool is HunPOS, described as an open-source reimplementation of the HMM-based TnT tagger. It uses a pretrained contemporary Swedish resource based on SUC. The experiment therefore tests the intended reuse scenario: historical spelling is changed before an existing contemporary tagger processes the text.

Precision indicates the proportion of extracted items that are verbs, while recall indicates the proportion of annotated verb material retrieved by the method. The paper also reports F-score, which summarises the precision–recall result. These measures concern verb identification specifically, instead of every grammatical category assigned by the tagger.

Historical Swedish evaluation sample, verb-identification F-score

The strongest automatic normalisation improves verb identification, while manual normalisation leaves further room for improvement.

Historical Swedish evaluation sample, verb-identification F-scoreUntreated historical text: 70.4Untreated historical text70.4Handwritten-rule normalisation: 79.0Handwritten-rule normalisation79.0Weighted Levenshtein with compounds and cache1 (this paper): 84.7Weighted Levenshtein with compounds andcache1 (this paper)84.7Manually normalised historical text: 91.2Manually normalised historical text91.2
The numbers
System or settingF-score %
Untreated historical text70.4
Handwritten-rule normalisation79.0
Weighted Levenshtein with compounds and cache1 (this paper)84.7
Manually normalised historical text91.2

On untreated historical text, precision is 77.9% and recall is 64.2%. Handwritten normalisation changes those figures to 80.0% and 78.0%. The strongest automatic Levenshtein setting produces 83.3% precision and 86.2% recall.

The manual-normalisation comparison reaches 90.1% precision and 92.3% recall. It indicates how much the tagger benefits when spelling follows the reference, but it does not eliminate every difficulty in the historical material.

For contemporary SUC text, the paper reports 99.1% precision, recall and F-score. This is a comparison on different text, so it should not be treated as another normalisation setting for the historical sample. Its purpose is to show that historical language remains harder for the contemporary tagger even when spelling has been manually normalised.

What the ablations show

The paper offers a staged sequence of controlled comparisons instead of a complete experiment containing every combination of components. It varies length restrictions, distance limits, edit weights, compound handling and cache thresholds. Later comparisons generally retain settings selected in earlier ones.

Length restrictions need an asymmetric allowance

The length-range experiment holds the maximum edit distance at 4 and omits weighted edits, compound processing and validated mappings. This isolates the effect of allowing candidates to be shorter or longer than the source.

A +1 to −1 range produces 76.2% accuracy and 32.7% error reduction. Expanding the shortening allowance to +1 to −2 produces 76.9% accuracy and 34.9% error reduction. The +1 to −3 setting reaches 77.0% accuracy and 35.0% error reduction.

Allowing +1 to −4 yields the same reported accuracy and error reduction as the preceding setting. The authors consequently retain +1 to −3. The finding supports additional shortening freedom on this material, but it does not imply that continually widening the search is helpful.

The analysis is useful because it distinguishes empirical coverage from final accuracy. A broader interval can include more correct training correspondences while also admitting more competing candidates. The best practical bound must account for both effects.

A distance bound trades coverage against caution

With the selected length range fixed, a maximum distance of 1 produces 74.7% accuracy and 28.5% error reduction. Increasing the maximum to 2 produces 76.7% accuracy and 34.1% error reduction.

The distance-3 setting reaches 77.0% accuracy and 34.9% error reduction. The distance-4 setting also has 77.0% accuracy, with 35.0% error reduction, and becomes the basis for subsequent experiments.

The word-length-dependent alternative produces 76.2% accuracy and 32.9% error reduction. On the aggregate spelling metric, it is weaker than the selected fixed bound. The authors nonetheless find that it makes fewer incorrect normalisations while leaving more forms incorrectly unchanged.

That pattern is especially apparent for words of 4–9 characters. It gives the adaptive bound a possible role where avoiding harmful changes matters more than recovering every normalisable form. The paper’s preferred setting reflects its overall accuracy criterion; a different application could reasonably prioritise the more conservative behaviour.

Learned costs help, and grouped edits add more

The weighting experiment retains the +1 to −3 length range and the maximum distance of 4. Without special costs, the method has 77.0% accuracy and 35.0% error reduction.

Adding context-free edit weights changes those figures to 78.7% and 39.9%. Adding the context-sensitive operations produces 79.1% accuracy and 40.9% error reduction. Both comparisons support adapting the distance calculation to historical correspondences.

The grouped-edit result is narrower than a claim about understanding context generally. It shows a benefit from recognising multicharacter spelling patterns in this setup. It does not test the use of sentence meaning, neighbouring words or grammatical agreement to choose among candidates.

The authors note that the changed training material contains 10,735 tokens and suggest that additional data might make weighting more effective. That suggestion is plausible within their account, but the paper does not include a training-size experiment that establishes it.

Compound splitting has a modest reported contribution

Adding the splitter leaves the rounded accuracy at 79.1%. The accompanying token-level figures report 26,997 reference-matching outputs without compound handling and 27,013 with it.

Those counts require caution. They do not align cleanly with the stated evaluation size and percentage. The safest interpretation is therefore the limited one supported by the authors’ discussion: compound handling is reported as helpful, but its effect is small enough to disappear at the displayed accuracy precision.

The comparison also reflects the splitter’s restricted role. It only processes tokens for which ordinary candidate generation has failed. A small aggregate contribution does not establish that compounds are unimportant in the language; it describes the net effect of this particular fallback within this particular system.

The cache delivers lexical knowledge rather than another distance adjustment

The cache experiment differs from the weighting comparison. Edit weights generalise across forms sharing a correspondence. A validated mapping instead supplies an answer for a particular historical spelling.

Its gains therefore show the value of combining general rules with reviewed lexical exceptions. Frequent forms are especially influential because the same decision is reused across many tokens. The monotonic improvement across tested thresholds supports expanding validated coverage within this evaluation.

However, the staged design does not separately report every component’s downstream effect on verbs. The verb-identification experiment uses the strongest combined configuration. It establishes the value of that configuration as a whole, without isolating how much of its tagging benefit comes from weights, compounds or the cache individually.

Limitations

Author-stated limits: final selection ignores sentence context

The authors explicitly identify contextual candidate selection as unfinished work. Their system chooses normalisations word by word. A historical form that has different appropriate readings in different sentences cannot receive a locally informed decision from this procedure.

Neither the validated cache nor contemporary frequency removes that problem. The cache can preserve several accepted mappings, and frequency can establish a general preference among them. What is missing is evidence from the particular sentence in which the form occurs.

This limitation is especially important because “context-sensitive” appears in the title. The demonstrated context sensitivity belongs to edit operations over character sequences. Reading it as sentence-aware disambiguation would attribute a capability that the paper expressly leaves for future investigation.

Author-stated limits: spelling does not remove linguistic distance

The manual-normalisation tagging result shows that historical language remains difficult after spelling has been corrected. The authors point to vocabulary, morphology and syntax as remaining sources of difference.

This prevents a strong interpretation of normalisation as complete modernisation. The output uses more contemporary spellings, but it remains historical language. An analyser trained on contemporary text may still encounter unfamiliar lexical uses, inflectional patterns or constructions.

The verb experiment supports a practical benefit without establishing that spelling conversion is sufficient. A project requiring reliable grammatical analysis would need to consider those remaining dimensions separately.

Author-stated limits: wider transfer remains to be tested

The authors propose experiments on other periods and languages. They also suggest phonetic similarity as an alternative candidate-generation mechanism. These are research directions, rather than demonstrated extensions.

The method’s modular resource requirements make transfer conceivable. A project can begin with a contemporary dictionary and omit the validated cache when historical annotation is unavailable. Yet resource modularity alone does not prove that the same thresholds, edit inventory or compound strategy will work elsewhere.

The claims should therefore stay at different levels. The Swedish results are measured. Applicability to other historical settings is motivated by the design. Success on those settings remains an empirical question.

Careful-reader limit: the test shares documents with training

Training and evaluation use different sentences, but both samples are drawn from the same documents. This is suitable for testing generalisation to held-out material within that collection. It is a narrower test than applying the system to entirely unseen documents, authors or periods.

The distinction particularly affects interpretation of the cache. Historical forms observed in a document’s training sentences may recur elsewhere in that document. The evaluation demonstrates that storing their validated mappings helps on the held-out sentences, but it does not separately measure performance when the document itself is new.

The paper reports pooled results, so it also does not establish equal gains across all dates and both genres. An aggregate improvement can coexist with uneven performance. The authors refer readers to their earlier study for an investigation of age and genre, rather than presenting that breakdown for the new method.

Careful-reader limit: reference data influence configuration choices

The basic algorithm can operate without manually normalised historical training pairs. That operational claim is supported by its design: dictionary candidates can be compared using ordinary edit costs and fixed bounds.

The experimental choices are less independent of annotation. Training analysis informs plausible length and distance ranges, and evaluation comparisons identify settings carried into later experiments. The paper does not describe a separate development partition alongside the training and evaluation samples.

As a result, the 77.0% result should not be interpreted as proving that those exact settings could be chosen optimally for an unfamiliar collection without reference data. It demonstrates the performance of the selected unweighted, uncached configuration on this evaluation material.

Careful-reader limit: the strongest result includes substantial lexical supervision

The best accuracy depends on the fullest validated cache, which contains 8272 entries. This does not diminish the result, but it changes what the result represents. It combines general spelling similarity with a sizeable collection of checked historical mappings.

The smaller cache experiment provides separate evidence about a modest validation effort: 28 entries already help. The fullest-cache result should not be described as if it required only that smaller amount of review.

The paper does not report elapsed annotation effort. It argues that frequency ordering can make validation efficient, but the experiment measures entries and output quality rather than person-hours or the cost of resolving ambiguous forms.

Careful-reader limit: lexical support can exclude legitimate outputs

The contemporary dictionary constrains the candidate space. That is useful when it prevents implausible outputs, but it also means the method depends on what the resource contains. A valid destination absent from the lexicon cannot be recovered by ordinary whole-word dictionary search.

Compound splitting addresses one part of this coverage problem. It cannot guarantee that all missing vocabulary becomes analysable, and its component normalisations still depend on the available resources.

Contemporary corpus frequency introduces a related preference. It favours common contemporary candidates among distance ties, even when a less frequent candidate would suit the historical sentence better. The paper does not measure the frequency tie-breaker separately, so its independent benefit remains unspecified.

Careful-reader limit: downstream evaluation is deliberately narrow

The grammatical annotation supports verb identification, not a full assessment of every part-of-speech category. The improvements therefore establish better verb extraction under the tested setup.

They do not establish corresponding gains for every linguistic task that might follow normalisation. A successful spelling conversion could affect different analyses differently, especially where historical distinctions matter to the research question.

The manually normalised text is also a reference for this chosen transformation task. Agreement with it measures conformity to the target spelling convention. It is not a general measure of how faithfully every linguistic property of the historical document has been preserved.

Careful-reader limit: some reporting details remain unresolved

The documents were only partly checked for optical character recognition errors. The experiment therefore operates on material that may combine historical orthographic variation with digitisation noise. The paper does not provide separate results for those sources of difficulty.

The compound token counts also create an internal reporting uncertainty, as noted above. They support the direction of the authors’ stated comparison only cautiously and do not justify a precise independent estimate of its size.

Finally, some unresolved ties are settled randomly. The paper does not report repeated-run variation or uncertainty intervals for the results. Where random selection matters, the reported figures do not show how stable the exact outcome would be across repetitions.

What came after

The later citing work identified here is Diacritic Restoration, a 2026 study whose title specifies low-resource Indigenous languages and case studies involving Bribri and Cook Islands Māori.

The citation establishes a connection to later research on written-form restoration under limited-resource conditions. Its title identifies a task different from converting historical Swedish into contemporary spelling: restoring diacritics. Both concern the relationship between an observed written form and a desired representation, but that broad connection does not establish shared implementation choices.

There is no basis here for saying that the later study adopts the weighted-distance formula, the compound fallback or the validated-cache procedure. Nor is there evidence for attributing a particular experiment or result to its use of this paper. The defensible account is that the historical-normalisation work is cited in that later diacritic-restoration study, while the precise methodological role of the citation remains unspecified.

The earlier paper itself leaves several concrete directions open. Sentence-aware candidate selection would address ambiguity that character-level comparison cannot resolve. Phonetic candidate generation would test a different notion of similarity. Evaluation on new languages and periods would examine how far the modular design transfers. Those proposals define a research agenda; the later citation alone does not establish which of them was subsequently carried out.

 Institutions

 Fields, topics and concepts

Cite

Cite as Eva Pettersson, Beáta Megyesi and Joakim Nivre. 2013. Normalisation of Historical Text Using Context-Sensitive Weighted Levenshtein Distance and Compound Splitting. Proceedings of the 19th Nordic Conference of Computational Linguistics (NODALIDA 2013).

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

@inproceedings{pettersson2013normalisation,
  title = {{Normalisation of Historical Text Using Context-Sensitive Weighted Levenshtein Distance and Compound Splitting}},
  author = {Eva Pettersson, Beáta Megyesi and Joakim Nivre},
  booktitle = {Proceedings of the 19th Nordic Conference of Computational Linguistics (NODALIDA 2013)},
  year = {2013},
  url = {https://aclanthology.org/W13-5617/}
}

References

17 references, 2 of them with a card of ours. Each entry links to our card when we hold the work, else to OpenAlex and Google Scholar searches for it.

  1. Ågren, M., Fiebranz, R., Lindberg, E., and Lindström, J. (2011). Making verbs count. The research project ’Gender and Work’ and its methodology. Scandinavian Economic History Review, 59(3):271–291. Forthcoming. OpenAlex ↗ · Scholar ↗
  2. Baron, A. and Rayson, P. (2008). Vard2: A tool for dealing with spelling variation in historical corpora. In Postgraduate Conference in Corpus Linguistics, Aston University, Birmingham. OpenAlex ↗ · Scholar ↗
  3. Black, A. W. and Taylor, P. (1997). Festival speech synthesis system: system documentation. Technical report, University of Edinburgh, Centre for Speech Technology Research. OpenAlex ↗ · Scholar ↗
  4. Bollmann, M. (2012). (semi-)Automatic Normalization of Historical Texts using Distance Measures and the norma tool. In Proceedings of the Second Workshop on Annotation of Corpora for Research in the Humanitites (ACRH-2). OpenAlex ↗ · Scholar ↗
  5. Bollmann, M., Petran, F., and Dipper, S. (2011). Rule-based normalization of historical texts. In Proceedings of the Workshop on Language Technologies for Digital Humanities and Cultural Heritage, pages 34–42, Hissar, Bulgaria.
  6. Borin, L., Forsberg, M., and Lönngren, L. (2008). Saldo 1.0 (svenskt associationslexikon version 2). Språkbanken, University of Gothenburg. OpenAlex ↗ · Scholar ↗
  7. Brants, T. (2000). TnT - a statistical part-of-speech tagger. In Proceedings of the 6th Applied Natural Language Processing Conference (ANLP), Seattle, Washington, USA.
  8. Ejerhed, E. and Källgren, G. (1997). Stockholm Umeå Corpus. Version 1.0. Produced by Department of Linguistics, Umeå University and Department of Linguistics, Stockholm University. ISBN 91-7191-348-3. OpenAlex ↗ · Scholar ↗
  9. Halácsy, P., Kornai, A., and Oravecz, C. (2007). HunPos - an open source trigram tagger. In Proceedings of the 45th Annual Meeting of the Association for Computational Linguistics, pages 209–212, Prague, Czech Republic. OpenAlex ↗ · Scholar ↗
  10. Jurish, B. (2008). Finding canonical forms for historical German text. In Storrer, A., Geyken, A., Siebert, A., and Würzner, K.-M., editors, Text Resources and Lexical Knowledge: Selected Papers from the 9th Conference on Natural Language Processing (KONVENS 2008), pages 27–37. Mouton de Gruyter, Berlin. OpenAlex ↗ · Scholar ↗
  11. Jurish, B. (2010). More Than Words: Using Token Context to Improve Canonicalization of Historical German. Journal for Language Technology and Computational Linguistics, 25(1):23– 39. OpenAlex ↗ · Scholar ↗
  12. Kukich, K. (1992). Techniques for automatically correcting words in text. ACM Computing Surveys (CSUR), 24(4):377–439. OpenAlex ↗ · Scholar ↗
  13. Levenshtein, V. (1966). Binary Codes Capable of Correcting Deletions, Insertions and Reversals. Soviet Physics Doklady, 10(8):707–710. OpenAlex ↗ · Scholar ↗
  14. Pettersson, E., Megyesi, B., and Nivre, J. (2012). Rule-based normalisation of historical text - a diachronic study. In Proceedings of the First International Workshop on Language Technology for Historical Text(s), Vienna, Austria. OpenAlex ↗ · Scholar ↗
  15. Rayson, P., Archer, D., and Nicholas, S. (2005). VARD versus Word – A comparison of the UCREL variant detector and modern spell checkers on English historical corpora. In Proceedings from the Corpus Linguistics Conference Series on-line e-journal, volume 1, Birmingham, UK. OpenAlex ↗ · Scholar ↗
  16. Stymne, S. (2008). German compounds in factored statistical machine translation. In Ranta, A. and Nordström, B., editors, Proceedings of GoTAL, 6th International Conference on Natural Language Processing, volume 5221, pages 464–475, Gothenburg, Sweden. Springer LNCS/LNAI. OpenAlex ↗ · Scholar ↗
  17. Stymne, S. and Holmqvist, M. (2008). Processing of Swedish Compounds for Phrase-Based Statistical Machine Translation. In Proceedings of the 12th EAMT conference, Hamburg, Germany. OpenAlex ↗ · Scholar ↗

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/pettersson-2013-normalisation-historical-text-context-sensitive/