---
title: "Code-switching in Irish tweets: A preliminary analysis (2019)"
description: "This study traces where Irish Twitter users switch to English, how the switches fit Irish grammar, and what a separate English tag does for…"
canonical: "https://research.elamur.ai/free/en/papers/lynn-2019-code-switching-irish-tweets-preliminary/"
---
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/lynn-2019-code-switching-irish-tweets-preliminary/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / Code-switching in Irish tweets: A preliminary analysis

# Code-switching in Irish tweets: A preliminary analysis

Paper · 2019 · Teresa Lynn and Kevin Scannell

**Authors:** [Teresa Lynn](https://md.research.elamur.ai/free/en/authors/teresa-lynn/) and [Kevin Scannell](https://md.research.elamur.ai/free/en/authors/kevin-scannell/) · **Year:** 2019 · **Venue:** Proceedings of the Celtic Language Technology Workshop · **Licence:** [CC BY-ND 4.0 (stated in the PDF)](https://creativecommons.org/licenses/by-nd/4.0/)

[Cited by **8** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/lynn-2019-code-switching-irish-tweets-preliminary/cited-by/) · Proceedings of the Celtic Language Technology Workshop · [licence](https://creativecommons.org/licenses/by-nd/4.0/)

- [Publisher's page](https://aclanthology.org/W19-6905/)
- [PDF](https://aclanthology.org/W19-6905.pdf)

## Summary

An Irish tweet can move into English for a separate remark, incorporate an English noun into an Irish phrase, or combine material from both languages inside a word. These patterns ask different questions about how bilingual writers use grammar and address their readers. Earlier research on switching in Irish had mainly examined speech. Teresa Lynn and Kevin Scannell study informal writing, using tweets to examine where English enters an otherwise Irish message and what it does there. Their starting point is a manually labelled corpus for [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/).

The original corpus contained 1537 tweets and grouped English words with abbreviations and other miscellaneous items under the tag G. The authors remove 41 tweets that they judge to have English as their main language, leaving 1496. They give English tokens a separate tag, EN, and mark whether a switch occurs between sentences or clauses, repeats a message in both languages, occurs within a sentence, or occurs inside a word. For switches within a sentence, they also record the English token’s grammatical category. The resulting annotations distinguish where a switch takes place from the role that the inserted material plays.

The authors report code-switching in 254 tweets, given as 16% of the corpus. The inventory includes 412 INTER tokens, reported as 43% of English tokens, and 297 INTRA tokens, reported as 31%. An English noun can enter a phrase whose adjective placement and compound structure follow Irish patterns. Of the 34 English verb occurrences tagged INTRA-V, 5 appear as lone English verbs in an Irish context. The authors read these patterns as evidence of grammatical flexibility among bilingual writers. Two annotators obtained Cohen’s kappa values of 0.69 for the broad switch categories and 0.74 for the finer labels.

Repeating earlier automatic tagging experiments with EN produced small improvements in overall accuracy in most comparisons. The experiment concerned the distinction between English and the old miscellaneous category. Automatically classifying the kinds of switching would require more data. The authors released the annotated corpus and describe it as a starting point for studying why writers switch languages and for developing a collection of Irish social-media text annotated for grammatical structure.

## Deep dive: Code-switching in Irish tweets: A preliminary analysis

This study traces where Irish Twitter users switch to English, how the switches fit Irish grammar, and what a separate English tag does for automatic tagging. · 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

#### Informal writing as evidence of bilingual use

Irish and English can both appear in a message that a writer treats as Irish. Identifying the predominant language of the message tells a reader something useful, but it leaves open how the English material participates. It might make sense by itself, serve as a version of the message for another reader, or complete a phrase begun in Irish. The paper uses *code-switching* as an umbrella term for this mixing. Its classification gives researchers a way to ask which of those relations holds when the vocabulary of both languages is present.

The choice of Twitter changes the kind of evidence available. The authors explain that much of the published writing available before widespread online communication had been selected and edited. Its language consequently reflected editorial conditions that could discourage forms common in everyday use. User-generated content, which the paper abbreviates as UGC, offers access to writing produced under different conditions. A short public post may contain informal turns of phrase and switches that would be edited out of a more formal text. Those choices can be inspected directly as writing, without first turning an audio recording into a transcript.

The setting matters especially when a minority language shares social space with a dominant one. The authors describe situations in which the dominance of a majority language can discourage minority-language use and suggest that online communities can make room for both. A bilingual post may retain Irish as the principal language while bringing in English for a particular part of the message. A writer may also give readers access to the same information in both languages. A count of English words alone would treat much of this activity alike, even though the relationship between the two languages differs across these cases.

The paper places its account against a history of negative judgments about switching. Earlier attitudes treated it as evidence that speakers could not express themselves fully in either language. The account of bilingualism that the authors adopt makes grammatical skill a plausible explanation. A writer who inserts a word from one language while maintaining the phrase structure of the other displays a different kind of knowledge from a writer who simply produces separate passages in each language. The study’s grammatical examples therefore matter alongside its frequency counts. They show which configurations occur in actual messages, as opposed to reducing bilingual use to how much space each language occupies.

#### What Irish research had already examined

The authors describe prior research on Modern Irish as largely grounded in speech. They cite work on code-switching in the Gaeltacht, Irish-speaking regions, and note that Ní Laoire had identified a gap in the representation of switching in Irish corpora and descriptions of the language. They discuss Stenson’s account of English influence in the context of concern for Irish in a bilingual environment. The question in that work, as the paper presents it, includes what contact with a dominant language means for the continued use of Irish.

Other studies in the paper’s account use more specific settings to examine how speakers mix languages. Hickey investigated switching and borrowing in the unscripted speech of leaders of Irish-language preschools in Irish-speaking communities. The distinction is important because the history of a word and its status in a particular utterance raise separate questions. A form associated with English may have become established in Irish, while another use of English may be better understood as an alternation within a particular utterance. Atkinson and Kelly-Holmes considered language and identity in spoken comedy. Their setting brings the function of switching into view, alongside questions about the form it takes.

There was also written evidence before social media. In the authors’ account, Bannett Kastor surveyed examples from Irish literary writing in which language changes could carry part of a work’s meaning or contribute to comedy. Such examples can be deliberately constructed around a change of language. The authors are interested in writing produced in a less curated environment, where switching may serve the immediate needs of a message. Twitter supplies a different setting in which to ask some of the same questions about how linguistic form, readership and communicative purpose interact.

Work on medieval Irish manuscripts extends the comparison. The paper cites studies of switching between Irish and Latin by writers working in multilingual settings. This evidence establishes a history for mixed-language Irish writing well before contemporary online communication. The authors draw on Stam’s proposal that switching in some informal written genres can resemble switching in speech in certain respects. They also see a question for contemporary research in Stam’s treatment of switching as a way to organize a text or express an identity shared by writer and reader. The tweet annotations allow researchers to locate passages where those questions can be asked.

#### From recognizing mixed text to describing its structure

The computational problem begins with deciding which part of a text belongs to which language. At the message level, a language identifier has to summarize a post that may contain strong evidence for more than one language. At the token level, the decision concerns a particular word or other unit. A system for the latter task needs to cope with the fact that neighboring words can have different labels without either label being an error. The paper situates this problem in the research activity represented by the [First Shared Task on Language Identification in Code-Switched Data](https://md.research.elamur.ai/free/en/papers/solorio-2014-overview-first-shared-task-language/) and the [Second Shared Task on Language Identification in Code-Switched Data](https://md.research.elamur.ai/free/en/papers/molina-2016-overview-second-shared-task-language/).

Assigning a grammatical category adds a different judgment. Once a token has been identified as English, a researcher may want to know whether it acts as a noun, verb, determiner or another kind of word. Earlier work discussed in the paper had addressed this question for mixed English and Spanish text in [Part-of-Speech Tagging for English-Spanish Code-Switched Text](https://md.research.elamur.ai/free/en/papers/solorio-2008-part-speech-tagging-english-spanish/). For Irish and English, the authors mention preliminary analysis by Minocha and Tyers in the context of automatic language identification. The present work puts the language decision and the grammatical decision into the same corpus, where each can be examined at the appropriate level.

There is a broader reason to make these distinctions machine-readable. A sociolinguistic investigation can pose questions about speakers, settings and communicative choices that require a close reading of messages. A searchable annotation can bring relevant examples together across a much larger body of text than a researcher might otherwise read by hand. It can also retain enough local detail to let that researcher revisit an automated count. This is the connection the paper makes to [Computational Sociolinguistics: A Survey](https://md.research.elamur.ai/free/en/papers/nguyen-2016-computational-sociolinguistics-survey/).

The authors’ own earlier tagging study supplied a practical entry point. It had already separated words into grammatical categories across an Irish Twitter corpus. Its general category, G, put English words alongside items such as abbreviations, rare foreign-language words and material outside the expected vocabulary. That was a usable decision for an initial grammatical tagging project. For a study of bilingual usage, a G label could indicate an English word but could equally indicate something that belonged to a different problem. The new study begins by making English material retrievable in its own right, then adds distinctions that the original project had little reason to make.

### The method, step by step

#### Establishing which tweets belong in the study

The material comes from the authors’ earlier corpus of 1537 tweets with manually assigned grammatical labels. These labels serve as a gold standard, meaning that the researchers use the human annotation as the reference against which automatic predictions can be evaluated. The new study revisits that material. It can add information about language contact while keeping the earlier grammatical labels as the basis of the tagging experiment. Most of the work consists of refining what the corpus says about an existing token, the unit that receives an individual label after [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/).

The first decision is about the tweet as a whole. The authors want to study English in messages whose matrix language is Irish. Here the matrix language is the principal language of the message, the one relative to which the other material is treated as a switch. A bilingual tweet can contain material readily recognizable as Irish and still have English as its principal language. The authors find 41 such cases in the earlier dataset. They treat those cases as errors in the language identification relevant to this study and remove them, retaining 1496 tweets.

The distinction is independent of how interesting the removed messages might be to another investigation. A passage that is a switch into Irish in an English message answers a different question from a passage that is a switch into English in an Irish message. The boundary is consequential because a document can satisfy a broad description such as containing Irish while falling outside the particular sampling definition the authors need. Classifying the whole tweet and describing each English token are therefore separate steps in the [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/).

The paper illustrates the difficulty with messages in which a longer English announcement and some Irish text occur together. A title, topical phrase or brief introduction may carry conspicuous signs of Irish even when English does most of the work of the post. The language decision requires reading enough of the message to see how these parts relate. It differs from the subsequent decision about whether a particular English span is part of the sentence around it. An annotator can resolve an individual word’s language with confidence while still needing to assess the structure of the whole tweet.

From Irish tweet corpus to annotation and evaluation The steps in order.

#### Giving English its own token label

At the original grammatical tagging level, English tokens move from G to EN. The remaining uses of G can continue to cover material for which the corpus already used that category. Thus an abbreviation beside a passage in English does not automatically become EN because its neighbors do. The authors’ annotated example with an English conversational aside has just this property. The aside’s words receive EN, while an initial abbreviation keeps G. The immediate purpose of the change is to give the English words a uniform label across the ways they can enter a tweet.

EN by itself does not specify the grammatical function of an English word. It also carries no information about its scope. A noun integrated into an Irish phrase and a noun in a separate English sentence both qualify. Researchers can therefore retrieve English material using the same label without having to settle every question about what the material does. They can then use the added column to recover the distinction that matters for an analysis of switching. This is also why the tagger experiment can use EN without attempting the entire annotation scheme.

The broad switch category is recorded for each English token. A passage can contain several tokens that all receive the same type, so the type has both a local representation and a larger unit of interpretation. For inter-sentential switching, for instance, the annotator first understands the span as a phrase or sentence and then applies the resulting category to its tokens. The difference matters when reading the paper’s totals. Several tokens in the same category may represent one decision about a stretch of text.

#### Telling the switch types apart

INTER covers changes at a sentence or clause boundary. In the paper’s examples, separate phrases can also be treated as INTER when they function as an independent stretch of English alongside Irish. An English aside inserted between dashes illustrates the point. Its words belong together as a conversational unit, with the surrounding Irish proceeding separately. Punctuation can help locate that unit. The interpretation involves the status of the phrase in context, which also explains why punctuation alone would provide an incomplete account of how the label is assigned.

INTER-BI marks an inter-sentential arrangement with a further property. The Irish and English material give readers versions of the same message. One of the paper’s examples presents a film title in Irish and English, with a slash between them. The parallel versions make the information accessible to followers who read either language. The authors also discuss how parallel postings can help people learning Irish. In the corpus, the label records the relationship between the two parts of the message. The social purpose is an interpretation of why authors might choose to present such versions.

Distinguishing INTER-BI from INTER therefore requires looking beyond the boundary where the language changes. An English passage may be a self-contained continuation of what came before, or it may repeat content that the Irish passage has already conveyed. The passage can look similar at the token level in either case. Both might contain an ordinary sequence of English words, all carrying EN. Only a comparison of what the passages communicate can distinguish the special bilingual category from the broader one.

INTRA covers switching within a sentence or clause. An example is an English noun that occupies the place of a noun in an Irish expression and is modified by an Irish adjective. The category also covers stretches of English material within a larger sentence. The diagnostic question is how the English relates grammatically to the context. An Irish phrase with an English noun in its structure differs from an Irish sentence followed by a separate English comment even when their English portions are short. This distinction is central to the paper’s analysis of [syntax](https://md.research.elamur.ai/free/en/topics/syntax-grammar/).

WORD applies when the switch falls inside a word. The study describes these cases in terms of morphemes, the parts of a word that contribute a meaning or a grammatical function. An Irish emphatic prefix and an English lexical root can combine in a single written form. Its analysis therefore concerns internal word structure, whereas INTRA describes how material fits inside a larger construction. The language boundary is found within the written token, so this category gives the researchers a way to record mixed [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/).

Taken together, the categories let the researchers ask several questions about the same material. INTER and INTRA distinguish the grammatical scale at which a switch occurs. WORD locates the junction inside the word. INTER-BI distinguishes a use of separate English material by the relationship between the meanings conveyed in both languages. This combination makes the taxonomy useful for examining both structure and communication, and it accounts for some of the judgment required of annotators. Identifying an English form is only the start of deciding which category applies.

#### Adding grammatical detail within sentences

When the broad category is INTRA, annotators add a suffix for the English token’s part of speech. INTRA-N identifies a noun and INTRA-V a verb. The same scheme can represent adjectives, prepositions, determiners, adverbs, interjections, pronouns, a general category, conjunctions, verbal nouns and particles. These labels describe the English material at the point where it participates in the mixed construction. Recording both levels preserves the link between the whole set of within-sentence switches and any particular grammatical category.

This extra layer is designed around the questions that arise once a writer uses both languages in the same structure. A researcher can look for all English tokens that belong to a sentence containing Irish material, then select only those that act as nouns or verbs. That allows a close comparison of how nouns and verbs enter an Irish context. For instance, counting English verbs as verbs in the INTRA category leaves aside verbs that happen to occur in the independently formed English part of a bilingual announcement. The resulting count is more directly relevant to which English grammatical elements appear inside mixed sentences.

The three labels associated with an item thus supply distinct kinds of information. EN identifies it as English within the corpus’s tagging inventory. INTRA, where applicable, identifies the site of alternation. The added grammatical category describes the token’s role. An annotator can agree with a colleague that a word is English while disagreeing with the colleague’s analysis of the boundary around it. Another annotator might agree on a within-sentence switch and face a separate question about the grammatical category of the inserted word. The layers make such decisions visible.

#### Measuring agreement

The authors give both annotators the retained collection of 1496 tweets. Their instructions begin with assigning EN to the English items, then assigning a coarse switch category, then adding the grammatical distinction for INTRA. The reported agreement concerns the switch labels on 943 tokens identified as English in the corpus. This evaluation is narrower than agreement on the identity of every token in every tweet. It asks how consistently annotators describe switching on the tokens used for the comparison.

The measure is Cohen’s kappa. Raw agreement counts how often two annotators give an item the same label. If both annotators use a particular label frequently, a certain amount of matching can also be expected from their separate tendencies to use that label. Kappa adjusts observed agreement for this expectation.

```
κ = (P(A) − P(E)) / (1 − P(E))
```

Here κ is Cohen’s kappa. P(A) is the observed proportion of items on which the annotators agree, with A referring to actual agreement. P(E) is the expected proportion of agreement based on their individual label frequencies, with E referring to expectation. The numeral 1 represents the full proportion. The numerator subtracts expected agreement from observed agreement, and the denominator expresses the amount of agreement available above that expectation.

The expected agreement is obtained from the proportions with which each annotator uses each label. For any given label, the two proportions are multiplied. The contributions from all labels are then added.

```
P(E) = Σⱼ pⱼ,₁ × pⱼ,₂
```

P(E) is the expected proportion of agreement used in the preceding expression. The index j denotes a possible label, and Σⱼ means to sum over all such labels. The quantity pⱼ,₁ is the share of items that annotator 1 assigned to label j, and pⱼ,₂ is the share that annotator 2 assigned to it. The multiplication sign gives the contribution for a match on that label under the expectation derived from the annotators’ separate label frequencies.

The authors apply the measure to the broad switch categories and to the finer inventory that adds grammatical information for INTRA. Those inventories can have different frequency distributions, so their expected agreement can also differ. Comparing the scores entails comparing both the observed matches and the baselines implied by the individual annotators’ use of the labels. The authors also look at concrete disagreements, since an agreement statistic can summarize how often judgments align without showing which boundaries need a clearer explanation.

#### Repeating the automatic tagging experiments

The automatic part of the study uses the earlier tagging experiments as a point of comparison. The authors report the earlier results and repeat the experiments with training and test material revised to distinguish EN. The named configurations are BaseMorf, NormMorf and ArkLemma#URL@. The first two use the tagger described in [Learning Morphology with Morfette](https://md.research.elamur.ai/free/en/papers/chrupala-2008-learning-morphology-morfette/). The third uses ARK, the Twitter tagger presented in [Part-of-Speech Tagging for Twitter](https://md.research.elamur.ai/free/en/papers/gimpel-2011-part-speech-tagging-twitter-annotation/).

A suffix of +EN in the results marks a run with the revised labels. In the original task, an English token could be correctly tagged G even though that prediction gave the reader no way to distinguish it from other uses of G. In the revised task, predicting EN instead exposes the English material directly. At the same time, the remaining G examples are a narrower and potentially easier group to learn from. The experiment tests the combined effect of changing those distinctions in training and evaluation. Classifying INTER, INTER-BI, INTRA and WORD automatically would require learning finer distinctions from much less abundant examples, so the authors stop the experiment at EN.

### Experiments and results

#### Counting tweets and counting tokens

The first result is about how often code-switching appears, under the study’s definition, in the retained corpus. The authors find 254 tweets with some form of switching and report the share as 16% of the 1496 tweets. The tweet is the unit in this result. A message containing one mixed word and a message containing a long English passage each contribute a tweet to the count. The measure answers how widespread the presence of switching is within the sample.

The paper separately counts English tokens, reporting 943 for the corpus, and describes the distribution of switch tags. The largest reported group is INTER, with 412 tokens, given as 43% of English tokens. INTER-BI accounts for 246 tokens, reported as 26%. INTRA has 297 tokens, reported as 31%. The authors also identify two WORD instances. These figures are the paper’s reported category counts and shares. The category counts and the separately stated English-token total do not reconcile, so the reported values are best read as separate descriptions rather than as an exact partition of a shared denominator.

Counting English tokens gives weight to the length of a passage. A separate English sentence can contribute several INTER tokens, while a mixed noun inside an Irish phrase can contribute one INTRA token. A bilingual announcement can likewise add a full parallel stretch of English. The predominance of INTER by the reported token counts therefore describes where the English text is concentrated. A ranking of switch events would require counting passages or boundaries as events, with a decision about where one ends and another begins. The paper presents the tweet and token measurements, which answer different questions from that event-level one.

The distinction also helps interpret the relatively large body of material assigned to INTER-BI. It establishes that parallel presentation accounts for a visible part of the English material under the annotation scheme. A long version of a message in English can account for more tokens than several brief bilingual notices. Neither its length nor its label establishes how many writers use bilingual presentation routinely. What the annotation adds is the ability to examine those stretches as a class and see what the English version contributes to the tweet.

#### Grammatical patterns inside sentences

The paper’s figure for INTRA groups English material according to its assigned grammatical role. The authors’ discussion gives particular attention to nouns and verbs. Nouns show how English vocabulary can enter an Irish phrase while the dependencies among the words retain an Irish arrangement. Verbs give the authors a way to consider grammatical differences between the languages, since the placement of the verb relative to its subject is one of the contrasts they highlight.

A phrase about tally figures for Connemara illustrates the noun pattern. In the paper’s analysis, the Irish word for figures is the head, the word that determines what kind of entity the expression names. The English word *tally* contributes a narrower description. In the English equivalent, *tally* precedes the head. The corpus example puts the Irish head before the English noun, and the Irish adjective meaning new follows the head as well. The placement of the borrowed-looking lexical material is therefore evidence about the phrase as a whole. Seeing an English noun by itself would not reveal this structure.

The paper describes related combinations with English words for keyboards, podcast, album and stuff. Irish adjectives follow these nouns in the examples. The album case also illustrates why spelling and grammar can be considered together. The authors give *albam* as an Irish spelling and explain that with that form the phrase would use *t-albam* in the relevant context with the definite article. The attested wording with *album* lacks that form. This makes the example informative because there is evidence from how the word is written and from how it behaves beside the article, alongside the Irish ordering of noun and adjective.

For the verb cases, the authors note the contrast between the subject–verb–object order associated with English and the verb–subject–object order associated with Irish. They report 34 tokens with the INTRA-V label, of which 5 are lone English verbs in an Irish context. One example begins with the English verb *wish* and continues with an Irish clause expressing what the writer wishes. The paper describes the other 29 occurrences as belonging to a longer string. Its illustration pairs an Irish expression for a time with the English predicate *sounds good*. The comparison distinguishes an isolated switched verb from a verb appearing as part of a larger sequence. These are observations about attested constructions, without an experiment that varies verb placement.

WORD switching has much less material in the corpus. The two annotated cases combine the Irish emphatic prefix *an-* with the English roots *talent* and *time*. The authors had expected more cases because forms of this kind were familiar to them from speech. They also give examples that targeted searches could find on Twitter, involving English roots with the Irish ending *-áil*. This separates what is easy to locate when searching for a specific construction from what happens to occur in a previously compiled collection. The annotated cases give direct evidence that writers use the prefix pattern, while the sample leaves the overall frequency of mixed words open.

#### How closely the annotators agreed

Cohen’s kappa is 0.69 on the coarse labels and 0.74 on the fine labels for the English-token agreement study. Both scores fall in the range that the scale adopted from Landis and Koch calls substantial agreement. That description is an interpretation of chance-adjusted agreement. It supports the use of the labels for organizing the corpus while leaving room for differences in how annotators understand certain spans.

The authors identify INTER versus INTER-BI and INTER versus INTRA as recurring contrasts in the disagreements they inspected. The former depends on whether the English passage conveys the same message as the Irish one. The latter depends on the relationship between the English passage and the surrounding phrase or clause. A single judgment about a longer English span can affect the category assigned to each word in it. Thus the token-level score reflects both the number of contested decisions and the fact that some decisions affect more tokens than others.

#### What changed in automatic tagging

The automatic experiment reports overall part-of-speech tagging accuracy on development and test data. Accuracy measures how frequently the predicted token label matches the human reference. The development and test columns are separate sets of predictions. The earlier rule-based baseline scored 85.07 on development and 83.51 on test. It provides a reference point for reading the learned taggers’ results. The comparisons that directly address the label change are the named original configurations and their +EN counterparts.

For the two Morfette configurations, development accuracy increases from 86.77 to 87.16 for BaseMorf and from 87.94 to 88.06 for NormMorf. The test figures are 88.67 and 88.64 for BaseMorf and BaseMorf+EN, and 88.74 and 89.22 for NormMorf and NormMorf+EN. The distinction between splits is important here. BaseMorf improves on development and slips slightly on test, while NormMorf improves on both. The authors’ general description of a small improvement is consistent with a collection of comparisons whose individual changes are small and vary by setting.

Morfette accuracy on the Irish tweet development split The settings with a separate English tag score higher than their counterparts.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| BaseMorf | 86.77 |
| BaseMorf+EN | 87.16 |
| NormMorf | 87.94 |
| NormMorf+EN (this paper) | 88.06 |

ARK occupies the high end of the accuracy results. The original ArkLemma#URL@ scores are 91.46 on development and 91.23 on test, with the corresponding +EN scores given as 91.89 and 91.98. The revised ARK configuration gives the highest reported test accuracy. Its score is for the overall POS task with EN in the inventory. It represents performance across the tweet tokens evaluated in that setting, and the table gives no separate measure of how precisely or completely ARK finds English spans.

The authors relate the small scale of the changes to how infrequently English tokens appear across the corpus as a whole. They propose that splitting the catch-all category helps in another way as well. A tagger trained with many consecutive G labels can learn to continue predicting G beyond an English token, extending the label onto a following Irish word. The authors report that this appears less frequent after EN is introduced. That observation supplies a concrete account of how a distinction on English tokens could also affect the accuracy of predictions for neighboring Irish material.

### What the ablations show

The paper has no formal ablation of tagger components. It offers a paired comparison of tag inventories, an inspection of annotation disagreements and a descriptive comparison of grammatical patterns. Each works at a different scale. The paired runs show how overall tagging responds to a change in supervision. The disagreement inspection shows where the annotation depends on a difficult reading of context. The grammatical observations use the completed annotations to examine differences among kinds of words and constructions.

#### The tag inventory is the changed condition

The closest comparison to an ablation is the repetition of the earlier experiments with the EN category. A tagger in an original condition sees English items in a category shared with other material. Its counterpart in the revised condition can associate English examples with EN and reserve G for the remaining uses. The comparison holds the named tagger configuration in place while changing what a correct prediction means on these items. Overall accuracy in the new setup therefore reflects success at the revised labelling task.

This point matters when interpreting the direction of the change. The new inventory asks the tagger to make a distinction that was absent before. At the same time, it removes one source of variation from the training examples labelled G. Those two changes occur together. The results show that the richer inventory is compatible with a small improvement in overall accuracy in most of the comparisons. The setup cannot isolate how much of a change comes from better recognition of English, improved treatment of what remains in G or better predictions immediately after a switch.

The authors’ account of G spillover is specific enough to clarify what that last possibility means. In the original material, some English spans supplied a run of G tags. A tagger that assigns the next Irish word G may get the span length wrong even when it recognizes much of the English material. With more coherent labels, the transition out of a stretch of English can be learned as its own kind of transition. The paper offers this as an explanation suggested by the errors the authors saw. It gives no count of those specific errors or comparison designed to remove the influence of neighboring tags. The mechanism remains an interpretation of the observed change.

The Morfette test comparison also qualifies the strength of the result. An inventory change can help one configuration, have little effect on another and produce somewhat different effects depending on which set of tweets is evaluated. The earlier tagging setup provides a concrete comparison point for the change, and the figures describe its observed size. Establishing a stable benefit for every setting would require evidence beyond these accuracy figures. In particular, the single lower test score matters when generalizing from the favorable development results.

#### Disagreements locate ambiguity in the scheme

The agreement analysis shows where the categories ask annotators to make different kinds of judgments. Distinguishing INTER from INTER-BI calls for an assessment of what the paired passages communicate. Two passages may concern the same subject, and an annotator must judge whether they give readers versions of a single message. Distinguishing INTER from INTRA calls for an assessment of syntactic attachment. A short English expression could read as a separate remark to one annotator and as a continuation of the Irish construction to another. Both judgments depend on more than which language supplied the words.

Because the broad category is attached to every English token in the span, uncertainty about a boundary or a relationship can cascade through the annotation. Two annotators may already agree about the extent of a passage in English but disagree on which switch label the whole span merits. Each affected token then contributes a disagreement. Conversely, a label for an isolated inserted noun can contribute only on that noun. This is one reason to read the kappa values in conjunction with the authors’ examination of examples. The metric serves the token-level scheme, and the examples reveal the span-level decisions driving some of its variation.

The higher reported kappa for the fine labels does not establish that adding a part of speech makes the entire assignment easier. Kappa’s expectation term depends on the available labels and their use. Dividing INTRA into grammatical categories changes the set of possible chance matches as estimated by the measure. The finer result does show that the added grammatical distinctions can coexist with substantial agreement on this corpus. The disagreement inspection points more directly to where the authors see a need to clarify the guidelines.

#### The grammatical comparisons show how integration varies

The fine labels make it possible to ask whether English material enters an Irish construction in the same way across grammatical categories. The authors’ noun examples can be examined in terms of where the head and its modifiers occur. They show that the English item can occupy a position set by Irish grammar. The English origin of an individual word thus gives an incomplete account of the grammar that organizes the phrase. The comparison with the English ordering in the tally example makes that distinction particularly clear, because the direction of modification can be inspected directly in the attested phrase.

The verb observations bring in a different kind of context. The authors distinguish lone switched verbs from other occurrences and discuss the result in light of differences in clause order. The example containing *sounds good* allows the English predicate to bring more than a lone verb into the mixed construction. This offers an account of the configurations that were found. It cannot determine whether a particular unattested combination would be acceptable to the same writer, or which competing constraints governed the decision to switch at that point. The paper also mentions a similar observation about the rarity of switched verbs in Irish–Latin historical texts, a comparison that gives context to the question without equating the two corpora.

The word-level observations are informative in a different way. Familiarity with a type of switch from speech led the authors to expect to encounter it in the tweets. The corpus supplied only the two instances discussed, both using the same Irish prefix. The targeted examples show that the prefix is only one way that mixed words can occur online. The corpus and the search evidence answer complementary questions. The corpus count describes what was annotated in a collection assembled for a broader purpose, while examples from focused searching establish that further forms occur.

### Limitations

#### Limits the authors identify

The authors characterize the corpus as a starting point and say it needs to grow. The problem is especially clear for automatic prediction of the broad switch types. English already represents a relatively small part of the overall tagging data. Dividing that material into switch types leaves the system with fewer training examples for individual categories, with very few for WORD. The paper gives results for separating English tokens from the old general category because that is the level at which the authors can carry out the repeat tagging experiment. They judge the available material insufficient for an effective tagger for the finer switch distinctions and for the data-driven approaches they envisage for future switching detection.

They also identify a need to revise the guidelines. The reported agreement is substantial under the interpretation they adopt, but the inspection locates distinctions whose wording could be clearer. INTER-BI poses a question about what qualifies as conveying the same content. INTRA poses a question about grammatical integration in text that may be fragmentary or loosely punctuated. More examples and clearer instructions would give annotators a better basis for applying the categories consistently when the message does not fall neatly into the easiest cases.

The paper treats writer motivation as a direction for future sociolinguistic work. Its corpus includes examples in which an English noun phrase might fill a gap in Irish terminology and others in which an official Irish expression might exist but be unfamiliar to the writer or less preferred. These possible circumstances matter for language planning because they would suggest different explanations for the observed English wording. A token annotation identifies the place to investigate. It does not reveal what the writer knew, what alternatives the writer considered or why the English expression appeared. The authors propose a closer investigation of motivations and the clues that patterns in the messages might offer.

Another future use they identify is a treebank, a corpus with explicit annotations of grammatical structure. Labelling the English part of speech for INTRA provides information a treebank could build on. A treebank would need to state structural relationships among words, including relationships that cross language boundaries. The present labels describe words and switch types. In the authors’ view a substantially larger resource would be required before a data-driven system could learn to analyze such structures from Irish user-generated content. The proposed resource belongs to the broader work of building [treebanks](https://md.research.elamur.ai/free/en/topics/treebanks/).

#### Limits of the sample and the counts

The corpus is inherited from an earlier Twitter tagging project. It gives the study authentic examples and an existing grammatical reference, but the paper’s frequency claims concern the retained collection. Wider claims would depend on how the earlier tweets were gathered, how users or topics were represented, and what kinds of messages the matrix-language filter excludes. A frequency measured in this collection may be affected by the kinds of messages included. Bilingual announcements, personal asides and commentary can each offer different opportunities for English to appear.

The selection rule deliberately makes the analysis directional. When the authors remove messages whose principal language is English, they obtain a corpus suited to the study of English inside Irish tweets. That design provides no basis for comparing the relative frequencies of switching into English and switching into Irish across Twitter as a whole. It also limits what one can infer from the scarcity of WORD forms. The observation about spoken usage is the authors’ impression, while the Twitter evidence comes from an existing written sample. A comparison between media would need corresponding spoken and written material and a way to apply equivalent counting rules to each.

The interpretation of the distribution is also limited by its accounting. The paper states its English-token total and gives individual category counts as well as percentages. It leaves the mismatch between those figures unresolved. The broad pattern of substantial inter-sentential material and a sizeable body of within-sentence examples survives as a description of the reported results. An exact calculation using the category values as a partition of 943 tokens would require reconciling the counts. The token frequencies also remain distinct from the proportion of tweets containing a switch and from the unreported proportion of switch events of each kind.

There is a further distinction between finding evidence of a construction and assessing how readily a writer could use it. The noun examples establish that some writers produced phrases with English words and Irish word order. The verb examples show attested ways of mixing material in contexts that involve a verb. They give direct evidence about those messages. They leave room for variability across writers and across alternative expressions that never occur in the sample. The corpus does not contain an assessment of individual proficiency that could test the relationship between these choices and an independent measure of grammatical knowledge.

#### Limits of the agreement and tagging evaluations

The kappa calculation is conditional on the set of English tokens used in the comparison. It gives evidence about the consistency of switch labels on that set. Agreement about which words qualify as English across the whole corpus is a related question, particularly where conventional Irish spellings coexist with English forms or where an expression may have become established through borrowing. The album example shows why form and grammatical behavior can both be informative. The reported scores do not break down reliability for the prior language or borrowing decision, nor do they characterize agreement for each switch type separately.

The same caution applies to the automatic evaluation. The reported measure is overall token accuracy, and a common tag can have more influence on that measure than a rare one. The paper does not give separate measures of how many English tokens the tagger recovered or how frequently an EN prediction was correct. Nor does it report how accurately the taggers locate complete English passages. The accuracy results support the narrower conclusion that the revised tag inventory worked in the repeated experiments, with small changes in overall performance. They leave the extent of accurate English detection and the reliability of full-span boundaries to be measured.

The comparison also uses reference annotations that differ in the categories available. A prediction of G for an English item can be correct in the earlier experiment, where the gold tag for that item is G. The revised experiment requires EN for that part of the material and retains G elsewhere. Thus the accuracy comparison says something about how well the taggers handle the original and revised schemes in their respective settings. It leaves open how the systems would compare under a common, independent evaluation of whether English is identified correctly.

Finally, the evidence for a grammatical interpretation and the evidence for improved tagging are different. A well-formed phrase with an English word in a position organized by Irish syntax illustrates a bilingual writing choice. A higher tagging score indicates closer correspondence between automatic labels and human annotation under a particular inventory. Neither result by itself answers why the writer chose that wording. The detailed labels make the relevant examples and errors available for closer analysis, while questions about social purpose, language knowledge and automatic detection require their own evidence.

### What came after

A later study cites the paper while posing a transfer question about North African Arabizi. Its title asks whether multilingual systems can transfer to a dialect unseen by those systems. The subject therefore moves from describing English switches in Irish tweets to asking about the reach of multilingual technology in another linguistic setting. The associated citation documents a connection between those research topics. The scope of the later question is evident in the title of the [North African Arabizi transfer study](https://md.research.elamur.ai/free/en/papers/muller-2020-multilingual-language-models-transfer-unseen/).

The change of emphasis helps locate the contribution of the Irish study. Lynn and Scannell begin with a corpus whose labels group together several kinds of material, then make local language and grammatical distinctions explicit. The question named in the later study concerns what can transfer when a dialect has not been seen. The citation alone leaves open how the later authors used the Irish paper and whether any corpus, annotation category or tagging procedure carried over. The connection that can be established is through the problems the two works address. Both concern linguistic material for which familiar categories or previously available examples may offer incomplete coverage, while the Irish paper supplies a specific analysis of how that problem appears within bilingual messages.

## Cite

Cite as Teresa Lynn and Kevin Scannell. 2019. Code-switching in Irish tweets: A preliminary analysis. Proceedings of the Celtic Language Technology Workshop.

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

```bibtex
@inproceedings{lynn2019code,
  title = {{Code-switching in Irish tweets: A preliminary analysis}},
  author = {Teresa Lynn and Kevin Scannell},
  booktitle = {Proceedings of the Celtic Language Technology Workshop},
  year = {2019},
  url = {https://aclanthology.org/W19-6905/}
}
```

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