---
title: "Natural language processing for under-resourced languages:"
description: "The Welsh Natural Language Toolkit adapts GATE for Welsh text, with evaluations on news and tweets and a case study that extracts…"
canonical: "https://research.elamur.ai/free/en/papers/cunliffe-2021-natural-language-processing-under-resourced/"
---
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/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/cunliffe-2021-natural-language-processing-under-resourced/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / Natural language processing for under-resourced languages: Developing a Welsh natural language toolkit

# Natural language processing for under-resourced languages: Developing a Welsh natural language toolkit

Paper · 2021 · Daniel Cunliffe, Andreas Vlachidis, Daniel Williams et al.

**Authors:** Daniel Cunliffe, Andreas Vlachidis, Daniel Williams and Douglas S. Tudhope · **Year:** 2021 · **Venue:** Computer Speech & Language · **Licence:** No open licence stated (free-to-read copy; rights reserved) — text kept private

Computer Speech & Language

- [PDF](https://discovery.ucl.ac.uk/10136398/1/WNLT%20author%20-%20accepted%20version.pdf)
- [DOI 10.1016/j.csl.2021.101311](https://doi.org/10.1016/j.csl.2021.101311)

## Summary

A search for a Welsh word can miss an occurrence because the beginning of the word changes in context. A system that tries to recover the dictionary form has to decide whether the spelling reflects such a change and, if so, what the original form was. This is one of several problems the authors tackle in building the Welsh Natural Language Toolkit, or WNLT. They ask how a small project can provide the foundations for [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/) in Welsh. Their answer is to adapt the open-source GATE framework, supply it with existing Welsh lexical resources, and write rules for the linguistic patterns that require dedicated treatment.

The toolkit splits text into words and sentences, assigns grammatical categories, recovers dictionary forms, and identifies named entities such as people, places, and organisations. Its [lemmatization](https://md.research.elamur.ai/free/en/concepts/lemmatization/) component combines dictionary lookup with rules for inflection and for initial consonant changes triggered by nearby words. The named entity component, CymrIE, keeps the annotation format of GATE’s existing English pipeline while drawing on Welsh name lists and grammatical patterns. The resulting annotations can support applications that need more specific information than the core modules produce.

Against expert annotations on a set of 10 news stories totalling 2,200 words, WNLT achieved F-measures of 98.25% for tokenization, 81.03% for part-of-speech tagging, and 79.69% for lemmatization. The authors also extended the pipeline to handle Welsh tweets. On 120 annotated tweets, its recall remained broadly comparable to the news results, while its precision was lower for all the outputs evaluated. A separate wedding-announcement application used named entities to infer roles and event details. On 32 manually selected announcements, the F-measure was 92.88% for service dates and 62.22% for service locations. The authors traced part of the difficulty with locations to gaps in the vocabulary of specific venues.

The paper shows what reuse can deliver when appropriate language resources already exist. A common processing framework handles much of the work of running components and passing annotations between them. The project can then concentrate on Welsh-specific decisions, from interpreting an apostrophe to checking a proposed dictionary form. The results also show where that approach leaves work to do. Grammatical categories can depend on context, some consonant changes lie outside the rules, and an application inherits gaps in the dictionaries and name lists it uses. The authors released the toolkit as open-source software, with access through GATE as well as a Java interface, a command line, and a standalone graphical application.

## Deep dive: Natural language processing for under-resourced languages: Developing a Welsh natural language toolkit

The Welsh Natural Language Toolkit adapts GATE for Welsh text, with evaluations on news and tweets and a case study that extracts wedding details. · about 32 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

#### The resources behind an application

A language technology application frequently depends on decisions that its users never see. A tool that finds people mentioned in a document needs some account of where a name begins and ends. A search system that groups occurrences of the same word needs a way to connect their spellings. An application that extracts a date from a notice needs to find a date expression and may also need to infer which event the date belongs to. These are separate tasks. The paper focuses on building software for the earlier tasks so that application developers can start from usable linguistic annotations.

The authors place the project in the context of [low-resource languages](https://md.research.elamur.ai/free/en/topics/low-resource-languages/). In their account, under-resourcing can mean a shortage of funding, specialist skills, lexical resources, or commercial incentives. It can also mean that useful work is hard to find or hard to combine with other software. A dictionary and a text analysis program might both be available, for instance, while the program still needs a way to interpret the dictionary’s grammatical labels. Several small resources can therefore require substantial integration before they support a single application. A toolkit gives the authors a way to address integration and linguistic coverage together.

The paper discusses earlier efforts to help communities identify which digital resources they have and which to develop next. It describes the Basic Language Resource Kit as one such planning approach, alongside doubts about how well it served languages with limited resources. The Digital Language Vitality Scale and Digital Language Survival Kit are presented as efforts more directly concerned with those languages. The latter considers steps ranging from dictionary development to speech technology. WNLT occupies a particular part of that agenda. Its core work is to process written text and make the results available to other software.

Welsh, or Cymraeg, already had resources that made this project possible. The authors describe Welsh spelling and grammar checkers, electronic dictionaries, and terminology resources from Bangor University’s Language Technologies Unit. They also point to work on a service for Welsh lemmatization, a national language technology portal, and speech technology. The Welsh Government’s language technology policy encouraged both the development of tools and the skills to use them. The project had funding through its Welsh-language Technology and Digital Media programme and was intended to serve developers who might have little experience in computational linguistics.

This combination explains the authors’ choice of what to build. Welsh had enough digital lexical material to support reuse, including the Eurfa dictionary, and enough language-specific requirements to make a direct transfer of an English pipeline inadequate. The missing work included both linguistic adaptation and software integration. A developer could use an existing dictionary as evidence about word forms, but the dictionary still had to be fitted to the tagger and the lemmatizer. A developer could use an existing rule engine to identify names, but its rules still had to express the order and vocabulary found in Welsh names.

#### Why GATE was a starting point

GATE, the General Architecture for Text Engineering, already provided a common way to load texts, run processing components, and store their outputs. The authors distinguish language resources, such as documents and collections of documents, from processing resources, such as a tokenizer or a sentence splitter. A processing component adds [linguistic annotations](https://md.research.elamur.ai/free/en/concepts/annotation/) to the document. An annotation identifies a span of text and can carry features, such as a grammatical category or the dictionary form that the program has assigned. Later components can examine these annotations alongside the text itself.

The existing ANNIE pipeline gave the authors a working approach to [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/), the task of locating and categorising mentions such as personal names, places, and time expressions. ANNIE combines term lists with rules over annotations. A term list can supply evidence that a string is a name. The rule engine can consider where that evidence appears and what accompanies it before assigning a category. Crucially for this project, the authors could reuse the mechanisms for looking up terms and applying rules while changing what the lists contained and what the rules matched.

The paper places this choice within earlier work on [multilingual and cross-lingual NLP](https://md.research.elamur.ai/free/en/topics/multilingual-nlp/). GATE’s Unicode support and earlier adaptations of its entity recognition components made it a practical candidate for another language. The authors cite work on Cebuano as evidence that a language could be brought into the framework with limited initial resources. They also describe examples where a component from outside GATE was integrated for a particular language. Available functionality varied by language and task. The presence of one component, such as an entity recogniser, gave little guarantee that another, such as a tagger, would already be available.

The authors also had previous experience building information extraction applications in GATE for archaeological texts. That experience and the framework’s maintenance history mattered to a project that wanted its software to be usable beyond the initial development period. Prior adaptations offered concrete examples of how to handle a new language, while experience with an applied pipeline helped the team judge which components could be carried over. The Welsh project builds on that history by adapting the parts that can share an interface and directing development effort towards differences in written form, grammar, and vocabulary.

### The method, step by step

#### How a document moves through the toolkit

Given a Welsh document, the core pipeline first identifies pieces of text that should be treated as tokens. It groups these into sentences and assigns a grammatical category to each token. The morphological analyser then looks for a dictionary form and, where appropriate, records information about mutation or an affix. CymrIE uses linguistic annotations and vocabulary lookups to identify named entities. A specialist application can add a further pass that interprets those entities for its own purpose.

How WNLT processes a Welsh document The steps in order.

The outputs attach to the document at different levels. A token annotation can record the boundaries and kind of a piece of text. Grammatical and morphological information can be attached as features of that token. An entity annotation may span a name or expression made up of several tokens. An application can then attach a more specific interpretation to the same text, such as the role a named person plays in a wedding notice. Keeping the original span available makes it possible to inspect how far the software got and where its interpretation changed.

The distinction between a resource and a processing step matters throughout this design. Eurfa contains entries that can be looked up. It takes separate processing logic to decide which entry to consult, convert its grammatical label, use its lemma, or check a candidate against it. Likewise, a gazetteer is a list of terms organised for lookup, while a rule decides how a list match contributes to an entity annotation. The Welsh adaptations cover both sides. The authors import or prepare resources, and they change how the processing modules interpret the evidence those resources supply.

#### Deciding what counts as a word or a sentence

[Tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/) establishes the units that later modules will examine. WNLT starts from GATE’s Unicode tokenizer, modifies its regular expressions, and adds a post-processing pass. A regular expression describes a pattern over characters. A post-processing transducer can use patterns over annotations to revise the segmentation produced on the first pass. This lets the authors keep the general machinery for recognising pieces of text and concentrate the Welsh rules on cases where the initial boundaries need adjustment.

Hyphens illustrate the decision. A hyphen can be part of a compound or a place name, and the toolkit treats selected patterns as a single token. The paper gives *cyd-aelod* as a compound and *Cil-y-cwm* as a place-name example. It also handles certain sequences of consonants across a hyphen, as in *cybydd-dod*. The authors give *is-lywydd* and *lled-wyro* as examples that the tokenizer splits. Downstream lookup operates on what this stage has selected as a unit, so the way a hyphen is handled can affect whether a later component finds the intended dictionary entry.

An apostrophe creates a different kind of ambiguity. It can mark a contraction, or show that a vowel or consonant has been left out of a word. For the patterns specified in the toolkit, the tokenizer can retain the apostrophe within a single token. The paper uses *'Deryn* for a form with initial vowel loss and *hapusa'* for a form with final consonant loss. The authors also distinguish apostrophe uses that the tokenizer treats separately. The same stage keeps written ordinals such as *31ain* together and treats certain fixed expressions, including *Er mwyn*, as units for further processing. In this toolkit, the token is the unit that downstream rules need to work with. Its boundaries depend on more than spaces between characters.

Sentence splitting addresses a related ambiguity at a larger scale. A full stop may end a sentence or belong to an abbreviation. GATE’s existing splitter combined regular expressions with abbreviation lists, and the Welsh module extends those lists with approximately 400 Welsh abbreviations drawn from dictionary resources. The categories include linguistic, narrative, scientific, spatial, and temporal abbreviations. A period within a known form can then be interpreted in light of its lexical use. The splitter marks sentences and their breaks separately. It also retains an alternative rule set for documents in which a new line can signal a new sentence. The standard and alternative rules therefore serve documents that use layout differently.

#### Assigning a grammatical category

[Part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/) assigns categories such as noun, verb, or adjective to the units identified by the tokenizer. WNLT adapts GATE’s Hepple tagger. The English implementation uses a lexicon and rules learned from a Wall Street Journal corpus. The Welsh adaptation follows the example the paper describes for Cebuano by relying on a substantial lexicon and omitting the corresponding trained rule set. It adds manually written suffix tests for forms that the lexicon does not cover. Its practical task is to make a usable decision for each token using the lexical and spelling evidence available.

The lexicon comes from Eurfa, which the paper describes as containing roughly 210,000 words, including mutated forms and verb inflections associated with 10,393 lemmas. The dictionary and the tagger used different categories and different names for them. A mapping was therefore needed before a dictionary match could become a token annotation. Eurfa’s `adv`, for instance, maps to the tagger’s `RB` for adverb. Multiple dictionary distinctions can feed the same output category. The mapping in the paper puts several Eurfa adjective categories under `JJ`, while comparative and superlative adjectives have dedicated tags.

The authors also extend the output labels to carry distinctions they need for Welsh. They use `NNM` for masculine nouns and `NNF` for feminine nouns alongside the generic noun label `NN`. The tag inventory includes dedicated labels for verb forms such as the imperfect, pluperfect, and future. This matters to the pipeline as well as to the person reading its output. A later rule can specify the feminine noun category when applying a mutation pattern. It can draw a distinction the same rule would be unable to make if all nouns had been given a generic label.

At runtime, the tagger checks whether the token appears in Eurfa and assigns a mapped category when it has a dictionary match. For an unknown form, it examines suffix patterns up to a maximum of 5 characters. The tests can give a longer, more specific ending priority over a short one. The authors explain that a word ending in *a* generally takes a verb tag under this scheme, while *dra* and *fa* have more specific noun outcomes. Other patterns can assign a plural noun, infinitive, or adjective tag. If none of the tests succeeds, the module assigns `NN`. This final fallback gives later stages a category to work with, even though it may reflect the absence of stronger evidence.

The authors distinguish these hand-written tests from the trained rules in the original Hepple tagger. WNLT has an interface for adding learned rules, but the paper’s Welsh tagger uses the dictionary and programmed patterns just described. The resource-building work consisted of selecting the lexical input, aligning the labels, and writing the fallback rules. The expert-annotated documents used in the evaluation have a separate purpose. They serve as a reference for assessing the resulting annotations.

#### Recovering the dictionary form

A [lemma](https://md.research.elamur.ai/free/en/concepts/lemma/) is the dictionary form associated with a word as it appears in text. The WNLT morphological analyser receives the token and its grammatical category. The category can determine which type of rule applies, and the analyser can produce a lemma, a mutation feature, and, in some cases, an affix. Welsh [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/) makes this a combination of tasks. Nouns have different ways of forming plurals, verbs occur in inflected forms, and a word can change at its beginning in response to its grammatical surroundings.

For noun plurals, the authors write 21 general regular-expression rules and specify 75 irregular cases. A rule has a pattern that must match and an action that runs when it does. One example in the paper tests for the ending *esau*, then deletes just the *au*. The following notation expresses the rule’s action.

```
x·esau → x·es
```

Here `x` stands for the part of the noun before the matched ending. The dot `·` means that the pieces of the written form are joined. The strings `esau` and `es` are literal endings. The arrow `→` indicates the output of this rule when the full ending matches. For *athrawesau*, the resulting singular is *athrawes*. The longer match is important because it restricts the shorter deletion to the intended pattern. An irregular pair such as *nyrsys* and *nyrs* is represented explicitly in the rules. For verbs, the authors draw on Eurfa’s entries for inflected forms and their lemmas.

Initial consonant mutation needs a different type of evidence. The module handles contact mutation, where a nearby word triggers a change, in its soft, nasal, and aspirate forms. A spelling at the beginning of a word can suggest a possible reversal. The preceding text helps the analyser decide whether to consider that reversal. The proposed form can then be checked against the dictionary. The text feature displayed for *gyfrwng* in the paper illustrates the output. The token retains the spelling that appeared in the text, while its lemma feature gives *cyfrwng* and a separate feature records the mutation.

The dedicated mutation transducer uses 12 JAPE rules. JAPE, the Java Annotation Pattern Engine, lets a rule examine sequences of annotations and their features. The rules have different levels of specificity. A broad pattern allows a recognised soft-mutation trigger followed by a token to generate a candidate. A narrower pattern looks for *dwy* followed by a feminine noun, taking advantage of the `NNF` tag assigned upstream. A more detailed pattern checks for *yng* followed by a word beginning with *Ngh*. Features added earlier allow these rules to combine literal spellings with grammatical categories.

Dictionary validation comes after candidate generation in the mutation procedure. The paper describes a Eurfa validation resource containing 168,785 lemmas. If a proposed lemma fails validation, WNLT discards the proposal and uses the mutated form itself for the lemma attribute. This choice keeps an unsupported restoration out of the output. It also means a genuine restoration can fail when the dictionary lacks the corresponding entry. The dictionary therefore has distinct roles in the analyser. It can directly supply a lemma for a known form, and it can decide whether a form proposed by a contextual rule is admissible.

#### Recognising named entities

CymrIE is the Welsh adaptation of ANNIE’s entity recognition pipeline. Its gazetteers include over 70,500 unique terms in 70 new lists, and it retains 51 lists from ANNIE. The new resources cover names of people and places and terms related to subjects such as time, numbers, and sport. The authors assemble the lists from existing digital resources, including Welsh Wikipedia and public-sector pages. They also obtain permission to use entries from Y Lolfa’s directory of Welsh organisations and companies. This part of the work expands the set of strings the software can recognise without requiring the team to compile every list from scratch.

A Welsh gazetteer sometimes replaces an English one. The names of the days of the week provide a case where the entries correspond directly. Other lists supplement the existing resources. Welsh personal names add coverage that the original name list lacks, and place names may occur in Welsh or English forms. The paper also describes entities specific to Welsh-speaking communities, such as the community newsletters called *papurau bro*. The appropriate relationship between the lists depends on which entities exist and which names writers use for them.

The rules determine how lookup evidence becomes an entity annotation. Some of ANNIE’s rule logic already works with categories of lookup matches, which makes it possible to supply Welsh lists to an existing pattern. Other rules need adjustment for Welsh grammar and vocabulary. The authors account for nouns preceding adjectives, the use of the definite article in organisation names, and forms such as *ac* for “and” and *Sant* for “saint.” CymrIE keeps ANNIE’s annotation categories and feature names. A place is still represented as a `Location`, for instance, and a feature can distinguish a city from a country. An existing application can therefore work with familiar output categories while receiving annotations produced by Welsh-specific resources.

#### Adapting the pipeline to wedding notices and tweets

The wedding demonstration uses CymrIE for general [information extraction](https://md.research.elamur.ai/free/en/concepts/information-extraction/) and then asks a more specific question of its output. A person found in a notice might be a bride, a groom, a parent, or another participant. A place might be where the service took place or where a person lives. The authors add vocabulary for this domain, including a partial list of Welsh chapels and a list of choirs, and write rules to assign roles or event details. These rules use the entity annotations already present, which allows the application to concentrate on what those entities mean within a wedding announcement.

The application uses 18 heuristics, or practical rules based on regularities in how the notices are written. The first woman mentioned is treated as a likely bride, and a date in the notice is treated as a likely service date. The output can differentiate the bride and groom from their parents and can identify the service venue and date. These interpretations depend on the conventions of the genre. The same ordering of names would carry much weaker evidence about people’s roles in a document written for another purpose.

TwitterCymrIE adapts the same infrastructure in a different way. It keeps the Welsh tokenizer, sentence splitter, tagger, morphological analyser, and named entity recogniser while borrowing resources from GATE’s TwitIE pipeline. Its unchanged components capture tweet metadata, identify the language with TextCat, and standardise emoticons. The metadata annotations distinguish such items as a user mention, a hashtag, and a URL. The language identifier writes its result as a feature of the tweet annotation. The authors could use these components as they stood because the processing they required was already available.

The hashtag splitter and tweet normaliser needed Welsh resources. A hashtag can join several words in a single string. The splitter searches for clues such as a capital letter marking the start of a word and consults Eurfa and CymrIE’s named entity lists when trying to segment the string. The normaliser uses dictionary and gazetteer entries to look for nearby spellings. It considers a correction when the Levenshtein distance, which measures spelling changes between strings, is 2 or less. A separate list handles abbreviated or slang forms by mapping them to known full forms. One Welsh example is *v* mapped to *fi*. Users can inspect changes or switch normalisation off. That option preserves the ability to study the original spellings as well as to process text with the proposed replacements.

#### Making the modules available and defining the measurements

The authors made WNLT available as an official GATE plugin and distributed the open-source project through SourceForge. They also developed a Java API, a command-line interface, and a standalone graphical application. The API gives a software developer access to the full CymrIE pipeline or individual components, such as tokenization and tagging. The command line supports scripting, and the graphical interface lets a user obtain annotations without configuring a pipeline in GATE Developer. The standalone distribution and API also include TwitterCymrIE. These access routes serve the project’s aim of supporting people with different levels of familiarity with the underlying framework.

For evaluation, the authors compare system annotations with human annotations treated as a gold standard, meaning the reference against which outputs are scored. Precision asks what fraction of the system’s retrieved annotations agree with the reference. Recall asks what fraction of the reference annotations the system retrieves. F-measure combines the two through a harmonic mean. The metric definitions can be written as follows, with matches counted according to the evaluation’s annotation criteria.

```
P = M ÷ S
```

`P` is precision. `M` is the number of system annotations credited with a match, and `S` is the number of system annotations assessed. The division sign `÷` gives the fraction, and `=` identifies that fraction as precision.

```
R = M ÷ G
```

`R` is recall. `M` again counts credited matches, and `G` is the number of annotations in the human reference for the task. The signs `=` and `÷` give the equality and division in the same way as in the precision expression.

```
F = 2 × P × R ÷ (P + R)
```

`F` is the reported form of F-measure, with `P` for precision and `R` for recall. The factor `2` gives the harmonic mean of those two quantities. The sign `×` indicates multiplication, `+` adds the precision and recall values within the parentheses, and `÷` divides by that sum. The sign `=` identifies the result as `F`. Low precision or low recall pulls the combined score down. The value depends on what the evaluators count as an agreeing annotation, a distinction that matters when reading the news and tweet results.

### Experiments and results

#### Tokenization, tagging, and lemmatization on news

The main evaluation used a 2,200-word document assembled from 10 BBC Cymru Fyw news stories. The stories covered politics, lifestyle, and community news. A Welsh language expert received instructions for producing word-based annotations, including lemma attributes. The authors ran separate assessments for the tokenizer, the part-of-speech tagger, and the morphological analyser. For each, they report recall, precision, and F-measure, along with categories that help explain how the system disagreed with the reference. This is an evaluation against an expert reference. The paper does not report a score for the original English GATE components on the same Welsh news set.

The evaluation credits partially correct annotations when the system and reference spans overlap. A missing annotation is one that the reference contains and the system fails to match. A false positive is an output that lacks a corresponding accepted match in the reference. These categories establish what the resulting scores measure. In particular, the tokenization figures allow some boundary overlap. A downstream application that needs exact character spans has a stricter condition than the one underlying those scores.

For tokenization, the authors report 98.65% recall, 97.86% precision, and 98.25% F-measure on the news set. The run produced 23 partially correct matches and 25 false positives. The authors trace most of the partially correct matches to single quotation marks. A mark around a quoted phrase can resemble an apostrophe within a word, leading the tokenizer to apply one of its rules for contraction or letter loss. Many of the false positives are associated with prefixes such as *sgrin* and *aml* that the rules miss. These examples show why a high score on the whole text can coexist with an identifiable group of errors around punctuation and word structure.

The news part-of-speech run reached 81.36% recall, 80.71% precision, and 81.03% F-measure. The reported error categories include 13 partially correct matches and 419 false positives. A grammatical label had to agree at the level evaluated. A noun prediction marked `NN` can capture the broad category of a reference item labelled `NNF`, but the evaluator records the annotation as a false positive because the feminine category differs. Other disagreements involve words whose roles change with context. The authors give *a*, which can function as a conjunction or a pronoun, and *y*, which can be a determiner or a pronoun.

On the same news material, the morphological analyser reached 80.01% recall, 79.37% precision, and 79.69% F-measure. It had 2 partially correct matches and 460 false positives. The result measures agreement on lemma annotations for this material as a whole. The output reflects both dictionary-based decisions and cases that require further processing. The evaluation does not provide a separate F-measure for identifying a mutation trigger or for recovering a lemma for each mutation type.

WNLT module F-measures on the BBC Cymru Fyw news set Token boundaries agree with the expert annotations more often than grammatical categories or lemmas do on their respective tasks.

**The numbers**

| System or setting | F-measure % |
| --- | --- |
| Tokenization (this paper) | 98.25% |
| Part-of-speech tagging | 81.03% |
| Lemmatization | 79.69% |

The chart puts the stages on the same metric while each bar still corresponds to a different decision. Finding where a unit begins and ends is one task. Assigning its grammatical category and recovering its dictionary form require further agreement with the reference. The scores can guide attention toward the kinds of annotation that need more work, but they cannot tell a reader how frequently a particular error in one module caused an error in the next.

#### Which wedding details the application found

The domain demonstration was evaluated on 32 wedding announcements from *Llais Cwmtawe*, a community newsletter covering parts of the Swansea valley. The researchers manually extracted the notices and coded them for evaluation. The relevant comparison is between application annotations and the manual coding. An ordinary CymrIE `Person` annotation and an application annotation such as `Bride` represent different tasks, so the published results are for the specialised pipeline instead of a score comparison against the unextended entity recogniser.

The service date reached 89.7% recall, 96.3% precision, and 92.88% F-measure. The authors had developed rules specifically for Welsh temporal expressions, and the convention that a notice generally uses the date for the ceremony offered further evidence. The bride category reached 67.7% recall, 100% precision, and 80.74% F-measure. In the manual coding, the system correctly identified 21 bride annotations and missed 10. Its predictions for that role were reliable in the sample, while a user trying to collect every bride mentioned would still face a substantial coverage problem.

For the groom, the results were 62.5% recall, 95.2% precision, and 75.46% F-measure. The parent roles show that having a recognisable person name and finding a specific relationship are different achievements. Bride mothers had 54.2% recall and 100% precision, with an F-measure of 70.30%. Bride fathers reached 52.4% recall and 91.7% precision, with an F-measure of 66.69%. The F-measures for groom fathers and groom mothers were 70.98% and 62.10%, respectively. Across these role labels, the paper’s early assessment of the application rests on the relatively high precision alongside the number of annotations left to retrieve.

Service location had 58.3% recall, 66.7% precision, and 62.22% F-measure. The application recorded 14 correct service locations, 10 missing ones, and 7 false positives for that category. The authors attribute some of the difficulty to gaps in the lists consulted for specific venues, including chapel and street names. This makes location a different extension problem from service date. A date detector has recurring temporal patterns to use, while a venue detector may encounter names absent from the resources available to the project.

CymrIE wedding announcement extraction F-measure by annotation Service dates have the highest F-measure, while service locations and some family roles are harder to recover.

**The numbers**

| System or setting | F-measure % |
| --- | --- |
| Service date (this paper) | 92.88% |
| Bride | 80.74% |
| Groom | 75.46% |
| Groom father | 70.98% |
| Bride mother | 70.30% |
| Bride father | 66.69% |
| Service location | 62.22% |
| Groom mother | 62.10% |

The role labels make sense only when interpreted within the sample. The notices were short and similar in content and organisation, which is the condition that lets a small group of rules extract some details with high precision. The experiment starts with the notice already selected. Searching a whole issue for candidate announcements is a separate information retrieval task that the authors identify as future work.

#### Transferring the toolkit to tweets

The evaluation of TwitterCymrIE used 120 tweets in Welsh drawn from the Corpus of Welsh Language Tweets. The authors again used expert word-based annotations with lemmas. The system used some part-of-speech distinctions finer than those in the human annotations. Before scoring, the researchers mapped those distinctions to the reference categories. The paper illustrates this by grouping several detailed verb labels under `VB`. This harmonisation makes it possible to compare the tweet output with the expert’s intended level of detail.

Tweet tokenization reached 99.87% recall, 87.66% precision, and 93.37% F-measure. The token category annotations reached 81.32% recall, 71.38% precision, and 76.03% F-measure. The lemma annotations reached 79.39% recall, 69.69% precision, and 74.22% F-measure. The metric pattern is consistent across the evaluated annotation types. The system retains recall broadly comparable to the news run, while accepting the tweet output as accurate requires more filtering because the reported precision is lower.

The authors describe the overall performance decrease across the annotation types as roughly 5% and the decrease in precision as almost 10%. They connect the change with the difficulty of microblog text, pointing to colloquial forms, abbreviations, and special characters. The comparison covers the outputs of the tweet pipeline as a whole. The metrics concern tokens, grammatical categories, and lemmas. Although the pipeline also annotates hashtags, account names, and other tweet-specific elements, the paper illustrates those outputs without reporting separate precision and recall for them.

#### A coverage comparison with CyTag

The paper also discusses a comparison from work on the CorCenCC corpus of contemporary Welsh. CySemTagger, a system that assigns broad semantic categories, had used the WNLT tagger during its development. CyTag, developed for CorCenCC, subsequently offered higher text coverage and was adopted for CySemTagger. The comparison measures the percentage of words in a test corpus identified by the taggers. The paper reports 92% coverage for CyTag and 73% for WNLT, and describes lemmatization performance as the main source of the difference. It also points to CyTag’s use of constraint grammar, rules that use grammatical context to narrow possible analyses.

Tagger text coverage in the CorCenCC comparison CyTag identifies a larger share of words in the comparison corpus.

**The numbers**

| System or setting | Text coverage % |
| --- | --- |
| WNLT tagger (this paper) | 73% |
| CyTag | 92% |

Coverage answers a different question from the standalone news evaluation. It measures how much of the test text the tagger identifies in the comparison. The news F-measure measures agreement with reference annotations for the specified task. The CyTag result is therefore evidence about which system covers more of the comparison text. The reported figures do not give the relative precision of the taggers on the BBC Cymru Fyw stories.

### What the ablations show

The paper reports no component ablations, and its closest evidence comes from paired system coverage, annotation error analysis, and comparisons across genres and extraction categories.

#### Which errors the annotations make visible

The tokenization errors show the tension in giving the same character several functions. Rules for contractions and omitted letters help the pipeline recognise Welsh forms in which the apostrophe belongs to the word. A single quotation mark creates similar local evidence while serving a different function. The authors suggest recognising known contractions more narrowly and removing the general rules for some kinds of letter loss. The examples explain why that revision might help. Its effect on well-formed cases of letter loss remains unmeasured because the paper evaluates the existing rules as a group.

For tagging, the analysis reveals two sources of disagreement with different consequences. A generic noun tag in place of a feminine noun tag preserves the broad grammatical category. It loses a feature that a mutation rule may need. A conjunction tag in a position where the word serves as a pronoun reflects a different grammatical analysis. Exact agreement counts both as errors. The authors regard the reported tagging result as a lower bound in the sense that a coarser comparison could credit some noun, verb, or adjective decisions. The paper does not report a revised news score under such a comparison.

The tweet evaluation offers an example of changing the label comparison. The researchers align the output categories to the coarser human annotations before calculating the published tweet scores. This addresses a difference in label inventories. The paper does not give paired scores with the original and aligned categories, so the size of the effect is unknown. It also has implications for reading the news and tweet numbers together. The corpora differ in genre, and the tagging evaluation on tweets includes this additional alignment step. The two published scores are aggregate results under their respective protocols.

#### What varies across systems and tasks

The comparison with CyTag puts the WNLT tagger beside an independently developed Welsh tagger on a shared measure of coverage. The authors associate CyTag’s advantage mainly with lemmatization and identify contextual constraint rules as a likely contributor. Both systems embody different development choices and resources. The comparison does not selectively add one feature to WNLT or remove one from CyTag. It therefore provides a relative result for the complete systems while leaving the contribution of individual design decisions open.

The wedding case study gives a controlled point of reference of a different kind. Service dates, venues, and person roles are assessed on notices from the same collection. The categories differ in their regularity, glossary support, and relation to the events described. Dates have distinctive temporal expressions and a substantial advantage in F-measure. Specific venues rely partly on having enough local names available for lookup. The comparison identifies where the application succeeds within the genre. Because the paper does not repeat the run with expanded venue lists or altered role heuristics, it cannot quantify how much either change would improve extraction.

The news and tweet evaluations illustrate what happens when related stages of the toolkit are used in different settings. Lower tweet precision appears in tokenization as well as in category and lemma annotations. That pattern places some of the practical difficulty at the level of the initial segmentation. In a pipeline, an extra or incorrectly bounded token can also affect which output a later stage produces. The aggregate scores do not trace errors across stages, so the extent of that effect remains unknown. The overall comparison is consistent with the authors’ interpretation that colloquial spellings and abbreviations create difficulties, without isolating the consequences of any one Twitter-specific resource.

#### What the project effort figures establish

The authors also use development effort to explain which forms of reuse mattered in practice. They report roughly 6 months of developer effort on the core pipeline in the initial phase and roughly 4 months on the demonstration applications and additional interfaces in the subsequent phase. Within that work, they identify the morphological analyser and the Twitter pipeline as especially demanding. These estimates describe how this project spent its time. They do not estimate the savings against a newly built system, since the paper gives no parallel implementation against which to measure the effort.

The details of the resulting software support a narrower conclusion. Adapting the existing modules still involved writing Welsh grammatical patterns, aligning labels, and assembling vocabulary. The project reports 5,200 lines of named entity grammars created or adapted from the English ANNIE rules. Reuse made the framework and annotation interfaces available at the start. The adaptation effort then depended on what the existing resources covered and how much new linguistic behaviour the project needed to describe.

### Limitations

#### Limits the authors identify

The authors identify the coverage of the dictionary and gazetteers as a lasting constraint. These resources support several decisions that can fail when an entry is absent. A tagger can fall back to a suffix or a generic category, and the morphological analyser can fail to validate a legitimate restoration. An entity recogniser may find a general expression around a place without knowing the specific venue name. Enlarging a dictionary or list is therefore relevant to several modules, but each depends on different entries and a different use of lookup. A resource that improves one category of annotation may leave another largely unchanged.

The authors also limit the scope of the mutation rules to simple contact patterns. Welsh has changes whose interpretation depends on a broader context. These remain outside the analyser’s coverage. The existing transducer can be extended, and the authors point to iterative evaluation as a way to introduce additional context patterns. The reported lemmatization scores describe the current scope of the module. They do not measure how far such extensions would handle the remaining forms or how the new rules would interact with existing proposals.

Grammatical ambiguity imposes a separate limit. A dictionary can tell a tagger about a word’s categories, and a suffix can suggest a category for an unknown form. Resolving the role a short word plays in a particular sentence may require contextual evidence unavailable to the current tagger. The authors discuss post-processing rules and training on a corpus as possible directions. Training would itself depend on access to appropriately annotated material. The availability of a rule interface establishes room for that work, while the current tagger’s evaluation establishes the results of the rules and dictionary actually used.

In the applications, the authors give explicit reasons to limit generalisation. The wedding texts were manually selected, short, and similar to one another. The venue vocabulary fell short of the range of places the application was asked to identify. The Twitter evaluation gives weaker precision than the news evaluation and leads the authors to call for further adaptation. In both cases, the application was designed to demonstrate how a specialist pipeline could be built. The measurements apply to the task and material the authors evaluated.

The authors also caution against carrying their development estimates directly to another language. Welsh had appropriate resources available in digital form, and the team had previous experience with GATE. The amount of work a new project would face depends on the age, form, and quality of its resources, the fit between the language and the available components, and its developers’ technical and linguistic experience. Where suitable dictionaries are scarce or hard to repurpose, the authors suggest that improving those resources may be a better starting point.

#### Additional limits of the evidence

The news evaluation gives a detailed first measurement of the core modules on a small group of articles from one outlet. A broader claim about how the pipeline handles Welsh writing would require evidence from other text collections and annotation conditions. The paper describes expert annotation for the evaluation material and does not report agreement among multiple annotators. Its scores show agreement with the reference annotations the project used. The evidence leaves open how consistently another annotator would set the same boundaries or choose a grammatical label at the same level of detail.

The component scores also leave a question about attribution. The tokenizer produces units that the tagger then categorises, and the morphological analyser can use the part-of-speech feature. The paper reports aggregate scores for those decisions. It does not quantify how the tagger or lemmatizer would perform with manually corrected upstream annotations. That information would help locate a failure in the component that made the initial mistake. Without it, an error in a lemma annotation can be consistent with a lexical gap, an unsuitable rule, or information inherited from an earlier stage.

There is also a difference between showing an annotation and measuring it. CymrIE’s general entity outputs illustrate how the Welsh pipeline represents people, locations, and organisations. The wedding study scores a particular application that uses those outputs. The paper does not supply a broad entity-recognition benchmark for CymrIE across Welsh genres. Likewise, the tweet study shows tweet-specific annotations but measures the core token, category, and lemma outputs. The demonstrated interfaces and entity examples establish that those outputs can be produced. They leave accuracy for the unscored annotation types open.

Finally, the study demonstrates feasibility for Welsh under the circumstances of this project. It does not compare the total cost of adaptation with an independently developed alternative. It also does not measure what happens to end users when the toolkit is integrated into search or other applications. The contribution is a working set of modules, accompanied by evidence about several outputs and examples of extending them. Claims about the relative efficiency of reuse or its impact in a deployed application would need different measurements.

### What came after

#### From grammatical tags to semantic categories

The clearest documented reuse in the paper is CySemTagger. Its developers used WNLT’s part-of-speech tagger while building a Welsh semantic annotation system for CorCenCC. The semantic system takes grammatical information as a starting point and assigns broader categories such as emotion, time, and food and farming. That work illustrates the relationship between the core toolkit and a downstream task. The tagger supplies grammatical evidence, while the semantic annotation system uses that evidence to tell a reader something about what the text discusses.

CySemTagger subsequently adopted CyTag after the evaluation reported higher word coverage for CyTag. The change illustrates how a downstream application can use a component during development and later replace it when another implementation better serves its needs. The paper also describes a related Welsh tagging experiment that reused the manually annotated CorCenCC evaluation corpus for work on both grammatical and semantic tagging. In that account, existing corpus annotations reduce the work involved in preparing examples, just as existing dictionaries and gazetteers reduced part of the work of creating WNLT.

#### Later work on profiling and mutation

[Proffiliadur: Welsh Language Text Profiling Toolkit](https://md.research.elamur.ai/free/en/papers/rolon-2026-proffiliadur-welsh-language-text-profiling/) cites WNLT and addresses Welsh text profiling. The connection visible from its title is at the level of purpose. WNLT supplies token boundaries and word-level annotations that make structured examination of Welsh text possible, and Proffiliadur concerns a toolkit for profiling that text. The citation establishes a relationship between the papers. It leaves open which, if any, WNLT components, lexical resources, or evaluation procedures Proffiliadur carried forward.

[Unsupervised Labelling of Mutation Triggers in Welsh](https://md.research.elamur.ai/free/en/papers/rolon-2026-unsupervised-labelling-mutation-triggers-welsh/) also cites WNLT. Its stated task is to label mutation triggers. In WNLT, a known trigger is one of the inputs used to propose a dictionary form for a following word, and the proposed form is checked against Eurfa. The later title identifies the trigger itself as the object of labelling. This connects the work to a specific decision inside the earlier pipeline while leaving the later paper’s use of WNLT’s rules, dictionary, or annotations unspecified.

## Cite

Cite as Daniel Cunliffe, Andreas Vlachidis, Daniel Williams and Douglas S. Tudhope. 2021. Natural language processing for under-resourced languages: Developing a Welsh natural language toolkit. Computer Speech & Language.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1016/j.csl.2021.101311](https://doi.org/10.1016/j.csl.2021.101311)

```bibtex
@inproceedings{cunliffe2021natural,
  title = {{Natural language processing for under-resourced languages: Developing a Welsh natural language toolkit}},
  author = {Daniel Cunliffe, Andreas Vlachidis, Daniel Williams and Douglas S. Tudhope},
  booktitle = {Computer Speech \& Language},
  year = {2021},
  doi = {10.1016/j.csl.2021.101311},
  url = {https://doi.org/10.1016/j.csl.2021.101311}
}
```

> 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)
