---
title: "Predicting the presence of a Matrix Language in code-switching"
description: "Bullock and colleagues test when word counts and grammar identify the same dominant language in Spanish–English code-switching."
canonical: "https://research.elamur.ai/free/en/papers/bullock-2018-predicting-presence-matrix-language-code/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/bullock-2018-predicting-presence-matrix-language-code/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2018](https://md.research.elamur.ai/free/en/papers/2018/) / Predicting the presence of a Matrix Language in code-switching

# Predicting the presence of a Matrix Language in code-switching

Paper · 2018 · Barbara Bullock, Wally Guzmán, Jacqueline Serigos et al.

**Authors:** [Barbara Bullock](https://md.research.elamur.ai/free/en/authors/barbara-bullock/), [Wally Guzmán](https://md.research.elamur.ai/free/en/authors/wally-guzman/), [Jacqueline Serigos](https://md.research.elamur.ai/free/en/authors/jacqueline-serigos/), [Vivek Sharath](https://md.research.elamur.ai/free/en/authors/vivek-sharath/) and [Almeida Jacqueline Toribio](https://md.research.elamur.ai/free/en/authors/almeida-jacqueline-toribio/) · **Year:** 2018 · **Venue:** Proceedings of the Third Workshop on Computational Approaches to Linguistic Code-Switching · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the Third Workshop on Computational Approaches to Linguistic Code-Switching · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/W18-3208/)
- [PDF](https://aclanthology.org/W18-3208.pdf)
- [DOI 10.18653/v1/w18-3208](https://doi.org/10.18653/v1/w18-3208)

## Summary

When bilingual speakers use material from different languages in the same sentence, does one language supply the grammatical frame? The Matrix Language Frame framework treats some kinds of code-switching this way. It assigns the frame to a matrix language and treats material from the other language as embedded within it. Finding that frame in a real sentence is harder than describing the distinction. The language that supplies the most words might differ from the language of its verbs or grammatical markers. Bullock and colleagues ask how frequently these clues agree, and whether the way a sentence switches languages can tell us when to expect agreement.

The authors study Spanish and [English](https://md.research.elamur.ai/free/en/topics/english/) in conversational transcripts, interviews and a bilingual literary work. They bring the corpora into a common annotation scheme and retain 7,879 sentences containing both languages. For each sentence, they identify the language with more tokens overall, the language with more verbs and the language with more items in a selected set of grammatical categories. The criteria identify the same matrix language in 58% of the mixed sentences. Agreement varies across collections. It reaches 71% in the selected Texas interview data, SpinTX, and falls to 45% in the bilingual literary material, Killer Crónicas.

A logistic regression predicts whether the criteria will agree using corpus identity and measures derived from the sequence of word-level language labels. The measures describe how evenly the languages are represented, how often adjacent words change language and how variable the lengths of uninterrupted stretches in each language are. The methods section reports an F1 score of 69.3% for the final specification. Agreement becomes less likely as the language counts approach balance and more likely as switching becomes burstier. The relationship between switching frequency and agreement varies with the corpus.

The results support word counting as a first approximation when one language supplies a substantial share of a sentence and the other appears in sporadic stretches. The Miami and S7 conversations show why that approximation has limits. Their patterns of mixing can look broadly insertional, yet the regression yields a wider variety of predictions within them. The paper argues for a continuum between inserting material into a dominant frame and moving between stretches with different grammatical frames. Its direct evidence concerns the convergence of counting rules, and the cases where those rules diverge locate sentences that need closer grammatical analysis.

## Deep dive: Predicting the presence of a Matrix Language in code-switching

Bullock and colleagues test when word counts and grammar identify the same dominant language in Spanish–English code-switching. · about 36 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

#### What it means for a language to supply a frame

Code-switching can involve a speaker bringing a word or phrase from another language into an utterance, or moving from a stretch organized in one language to a stretch organized in another. Both can put material from different languages inside a sentence. A transcript can therefore establish that a sentence is mixed while leaving open how its parts fit together. The paper investigates that second question by examining whether several practical ways of identifying a dominant language produce the same answer.

The Matrix Language Frame framework gives the languages unequal roles in insertional switching. The matrix language provides the grammatical organization. The embedded language contributes material placed within that organization. The distinction concerns the relation between the parts of the utterance. A speaker may have a preferred language in other situations, and a collection may contain more words in one language overall. The paper asks which language plays the framing role in the unit being analyzed.

A related distinction separates content morphemes from system morphemes. A morpheme is a unit that contributes meaning or grammatical function. Content items carry meanings such as the action expressed by a lexical verb. System morphemes, in the sense relevant here, include a subset of grammatical items such as determiners, quantifiers, auxiliaries and conjunctions. The paper describes these items in terms of thematic roles, the relations that connect participants to events or states. The system items at issue neither assign nor receive such roles. Their language is of interest because the framework expects grammatical organization to come from the matrix language.

The paper's Marathi example makes the distinction concrete. The word for the action comes from English, while Marathi supplies the construction around it, including a quantifier and a light verb. A light verb participates in forming the predicate while the associated lexical item supplies much of the action meaning. The order of the words and the language of the grammatical material point to a Marathi frame. An English item can therefore be indispensable to what the sentence says while occupying a place organized by Marathi grammar.

An embedded contribution can be larger. The authors discuss an analysis of a sentence with a Hindi frame and an English phrase that has grammatical structure of its own. The framework calls such a constituent an embedded-language island. The analysis allows grammatical relations inside the island to follow English while the larger clause is framed in Hindi. This matters for sentence-level measurement. A long constituent can supply several tokens to a count, and some of those tokens can belong to grammatical categories, even when the entire constituent is analyzed as embedded.

#### Where insertion gives way to alternation

Insertion and alternation are established descriptions of how languages can combine. In an insertional analysis, an item or constituent belongs inside a frame supplied by the other language. In an alternational analysis, the speaker moves between stretches organized by different grammars. A change in language on the page provides evidence of a switch. Deciding what kind of switch occurred requires an account of the stretches on either side and how they relate.

The boundary is hard to draw from surface examples. A multiword stretch can be read as a constituent embedded in a larger construction. In a different context, a stretch of comparable length can form part of an analysis in which the speaker moves between grammatical systems. The paper discusses a passage from Killer Crónicas that moves through material in both languages and appears to alternate between frames. It also discusses the Hindi example where a stretch of English is analyzed as an island. The different analyses depend on the grammatical role of the stretch, a property its length alone leaves open.

An earlier study of Japanese–English bilingual data illustrates the practical scale of the problem. Namba could not assign a matrix language to examples of a particular kind that made up 42% of the clauses in that corpus. The example discussed by Bullock and colleagues begins with an English expression of desire and continues into Japanese material around a word for a goalkeeper. A reader can locate much of the material by language while still facing a difficult decision about which grammar supplies the frame. Such cases motivate a procedure that records disagreement rather than requiring each instance to receive a single unqualified grammatical interpretation.

Insertion can also be difficult to distinguish from borrowing. The paper notes that research communities use *code-mixing* in several ways. Some use it specifically for insertion. Others use it for insertion and alternation together, or use it for switching inside an utterance and reserve *code-switching* for changes at or above the utterance boundary. The paper cites the [English–Hindi Facebook study on borrowing and mixing](https://md.research.elamur.ai/free/en/papers/bali-2014-i-am-borrowing-ya-mixing/) in its discussion of terminology.

For the experiment, the authors can select sentences with both language labels while leaving their structural interpretation open. That selection keeps eligibility separate from the question under investigation. A sentence enters because it contains a language mixture, and the subsequent counts can converge or diverge. If entry required a prior judgment that a sentence had a matrix language, the study would have had far less opportunity to examine when the concept is difficult to apply.

#### The different clues earlier work used

Earlier researchers associated the matrix language with different observable properties. Numerical dominance makes the language with more words the candidate. The finite verb gives a more selective clue by attending to the language of a central grammatical element of the clause. Another proposal uses the language encountered first in a left-to-right parse. These criteria attend to quantity, grammatical function and position, respectively. Their agreement is an empirical question because different parts of a mixed utterance can point in different directions.

Wood counts are attractive because the required language labels can be collected for every token. A grammatical criterion may have greater relevance to the idea of a frame, yet its application depends on which grammatical distinctions an annotation scheme captures. For instance, the language of a finite verb is a different question from the language that supplies the majority of all verbs. An annotation can reliably flag a word as a verb while leaving the distinction between finite and non-finite forms unresolved. The paper's choice of criteria responds both to the linguistic debate and to the distinctions available in its corpora.

The unit of analysis adds another choice. The framework developed by Myers-Scotton applies the matrix-language notion to a clause-sized unit. Bullock and colleagues use sentences, which give them a consistent way to process their corpora and calculate the local pattern of switches. A sentence can have multiple clauses. The authors expect many of the conversational sentences to contain a single clause because spoken sentences tend to be shorter and structurally simpler, but that expectation leaves room for a sentence to combine more than one grammatical frame.

The paper also identifies a gap between analysis of selected examples and measurement over a corpus. A carefully interpreted example can show what one explanation of a construction looks like. Estimating how widely the explanation applies requires a procedure that can be run across many sentences, including ones with ambiguous or conflicting clues. The authors recognize earlier studies that calculated matrix languages over larger collections, particularly in natural language processing. Their contribution starts from the need for replicable measurements across corpora that differ in their patterns of switching.

#### From examples to corpus measurements

Earlier quantitative work approached code-switching as a phenomenon with several measurable dimensions. A collection can vary in its balance of languages, in the frequency of switches, in the variability of uninterrupted stretches and in the order in which stretches of different lengths occur. The paper draws on measures developed to represent these dimensions using labels attached to words. Such measures make it possible to ask how similar two samples are without starting from a judgment that all their sentences belong to a single linguistic type.

The dimensions describe different aspects of the same sequence. Language balance records how much material each language contributes. Switch frequency records the transitions between neighboring words. Span variability records how the words group into stretches before a switch occurs. The order of those spans can carry information beyond their lengths, because the same collection of lengths can be arranged in different sequences. Separating these aspects gives the authors multiple ways of describing a sentence whose grammatical interpretation is uncertain.

The computational motivation extends beyond describing corpora. The paper connects matrix-language decisions to grammatical analysis and to the processing of multilingual text and speech, including speech synthesis and automatic speech recognition. A decision about the frame can affect how a system represents the input. The practical concern is whether a simple and widely available signal such as token language helps identify when a stronger structural assumption is plausible.

The authors draw a further distinction between naturally produced and generated data. Earlier work by Bhat and colleagues generated mixed sentences under grammatical constraints and submitted them to human judgments. The judgments varied considerably, with the register of some lexical choices suggested as a possible explanation. Bullock and colleagues use language produced by bilinguals themselves to avoid making the test depend on the acceptability of sentences produced by a generation procedure. That decision leaves them with a different practical obstacle. They need records of bilingual language use that already provide, or can be given, both language and grammatical labels.

### The method, step by step

#### Prepare sentences with comparable labels

The procedure starts with tokens that carry a language label and a [part-of-speech tag](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/). A token is an individual item in the annotated sequence. Its language label tells the authors whether it contributes to a Spanish or English count. Its part-of-speech tag identifies a category such as verb, determiner or auxiliary. With both labels, the authors can count all tokens in each language and then repeat the count on grammatically defined subsets.

The corpora were prepared under different annotation schemes. The authors map the existing part-of-speech tags for S7, Miami and SpinTX to the core inventory of [Universal Dependencies](https://md.research.elamur.ai/free/en/concepts/universal-dependencies/). A lookup table translates the pertinent TreeTagger or Bangor Autoglosser labels into the common categories. For Killer Crónicas, abbreviated KC, the authors create part-of-speech annotations directly in that inventory. A professional linguist who spoke both languages annotated the material, and the annotations were checked by two others. The KC text had already received automatic language labels.

This preparation supplies a common meaning for the categories used by the counts. A verb selected in SpinTX and a verb selected in Miami enter the comparison under the same category even though the original annotations came from different workflows. The conversion also sets the detail available for the experiment. The 17-tag core inventory gives the authors the grammatical classes they need for their selected function items. At that level it leaves finite and non-finite verbs in the same category for the purpose of the rule. Infinitives, participles and gerunds can therefore contribute alongside finite verbs.

Before running the counts, the authors perform sentence [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/), deciding where one sentence ends and the next begins. S7, Miami and SpinTX already have sentence-end markers in their original annotations. The authors use those markers before conversion to the common inventory. KC requires manual boundary marking because the punctuation category used in its new annotations collapses distinctions the sentence splitter would need. The authors report that workable sentence tokenizers for mixed-language data were unavailable at the time of the study.

The sentence boundaries govern both halves of the experiment. They specify which tokens have a chance to contribute to the same matrix-language candidate. They also determine which changes of language count as switches within that candidate's sentence. Joining two units or splitting one would change the pool of words and could change the lengths and ordering of the monolingual spans. A decision that looks like routine preparation thus helps define the linguistic unit the regression will describe.

From annotated bilingual text to predicted agreement The steps in order.

#### Filter for mixed sentences and conversations

The target population of the experiment is sentences with internal switching. After locating the sentence boundaries, the authors discard monolingual sentences. This matters for interpreting the agreement rate. An unfiltered count would admit many sentences in which all material assigned a language comes from the same language, making agreement easier to obtain whenever the relevant grammatical categories are present. The authors are interested in how the rules behave when the labels do offer a choice between languages.

The filter also removes some conversational material that is unlikely to contain a switch, such as a monolingual restart. It works through the presence of both languages and leaves the interpretation of disfluencies incidental to that goal. A restart that survives the language filter is still part of the sentence allocated to it by the boundary procedure. The method describes an annotated sample of conversation, instead of defining a separate category for every kind of conversational interruption.

Additional filters operate on whole conversations. In Miami, the authors exclude herring11 and maria21. For SpinTX, they remove conversations whose Integration Index is below 0.1. The purpose is to retain material with a baseline amount of mixing. The conversation-level rule determines which sources supply sentences for the analysis. Within those sources, the sentence-level rule still determines which individual sentences count as mixed.

The resulting analytical collection has 7,879 mixed sentences. Each contributes an agreement outcome and a collection of predictors measured for that sentence. That organization makes it possible to distinguish the overall character of a conversation from the local pattern in any given sentence. A retained conversation can contain many kinds of mixed sentences, and the regression can assign different agreement estimates to those sentences even though they share a corpus label.

#### Turn competing linguistic clues into counting rules

TOTAL uses all tokens counted by language. If English supplies more, the rule nominates English. If Spanish supplies more, it nominates Spanish. Equal counts give the result Tie. TOTAL supplies the simplest proposed heuristic and the one a researcher could use with language labels alone. It is also deliberately insensitive to the kinds of words responsible for a majority. A stretch of content words and a stretch containing several grammatical markers can contribute equally many tokens.

VERB repeats the comparison inside the verb category. It asks which language contributes more of the tagged verbs. That is an adaptation of the idea that a verb can reveal the governing language of a clause. Because the input lacks the required distinction in verb form, the study pools the verbs present in the common inventory. The outcome can reflect a change in the relative contribution of either language at this narrower level, even when the whole-sentence count has a clear majority.

FUNC counts a selected set of function items. Its categories are [determiners](https://md.research.elamur.ai/free/en/concepts/upos-det/), [subordinating conjunctions](https://md.research.elamur.ai/free/en/concepts/upos-sconj/), [coordinating conjunctions](https://md.research.elamur.ai/free/en/concepts/upos-cconj/), [pronouns](https://md.research.elamur.ai/free/en/concepts/upos-pron/) and [auxiliaries](https://md.research.elamur.ai/free/en/concepts/upos-aux/). In the annotation inventory these appear as DET, SCONJ, CCONJ, PRON and AUX. The authors pool the tokens in those categories by language and apply the same majority rule. FUNC is an observable proxy for the grammatical material of interest to the framework. Its input is a list of categories attached to tokens, so applying it requires neither a clause-by-clause analysis nor a judgment about how a particular phrase was embedded.

The rules thus share the same decision procedure and differ in what they count. A token classified as a verb contributes to TOTAL and can contribute to VERB. A token belonging to the selected function categories contributes to TOTAL and can contribute to FUNC. These overlapping inputs are useful for the study's question. They show whether a whole-sentence majority persists when attention narrows to grammatical subsets. The overlap also matters to interpretation. Agreement means that the different views of the sentence lead to the same language label, even though the views are based partly on shared evidence.

The rule for a jointly identified matrix language can be written as follows.

```
AGREE(L) = (TOTAL = L) ∧ (VERB = L) ∧ (FUNC = L)
```

Here L is a candidate language, either Spanish or English. TOTAL, VERB and FUNC are the outcomes of the three counts for the same sentence. The equals signs inside parentheses test whether a rule returned L. The outer equals sign defines the condition AGREE for L, and ∧ means that every enclosed test has to hold. A sentence that receives English from one count and Spanish from another fails the conjunction for both languages. A Tie on one count likewise prevents agreement on a unique language when the remaining counts nominate a language. The paper presents the target as convergence on a language and gives no separate accounting for a sentence in which every count yields Tie.

The worked example in the paper shows the distinction between agreement by a majority of rules and the unanimity the experiment requires. The KC sentence concerns noticing an accent and includes several stretches in each language. TOTAL counts 6 English and 6 Spanish tokens and returns Tie. VERB counts 0 English verbs and 1 Spanish verb. FUNC counts 2 English items and 3 Spanish ones. Both grammatical counts nominate Spanish, while the sentence as a whole is balanced by TOTAL. The outcome is DISAGREE in spite of the grammatical counts pointing in the same direction.

This example explains what the target measures. A disagreement can arise because the rules nominate different languages, or because a rule returns a tie while others identify a language. Both prevent unanimous assignment. In the accent example, Spanish has evidence from verbs and function items, and the total count supplies no preference. The binary outcome records the lack of unanimity. The three individual outcomes preserve the reason for it.

#### Describe the sequence of languages

The predictors are computed from the language labels in sentence order. Once the labels have been assigned, these measures can be calculated without consulting the part-of-speech tags. The tags still matter to the experiment because two constituent rules behind the outcome rely on them. The predictor and the outcome therefore make different uses of the annotation. The predictor characterizes the surface distribution of languages, while the outcome partly reflects the grammatical categories assigned to the words.

The Mixing Index, or M-Index, measures the balance of the languages represented. The paper traces it to a measure derived from the Gini coefficient. Its scale runs from 0 for monolingual material to 1 when the languages occur in even proportions. In the mixed-sentence sample, a high value therefore describes a sentence in which neither language has much of a numerical advantage overall. The index summarizes the counts. It gives the same kind of information whether tokens from the less frequent language appear together or are scattered.

The Integration Index, or I-Index, measures the tendency to switch between neighboring words. A value of 0 describes monolingual text at one endpoint of the scale. A value of 1 describes the endpoint at which successive words continually change language. The index addresses a property absent from the overall proportions. A sentence can distribute its tokens evenly between languages by grouping them into stretches or by repeatedly switching between them. Similar balance can coexist with very different levels of integration.

Burstiness concerns the regularity of switches. A span, for this purpose, is a run of tokens in the same language. A switch ends one run and starts the next. The measure treats the lengths of these stretches as intervals between switching events, adapting an idea from the study of complex systems. The scale in the paper runs from -1 to 1. The low endpoint describes periodic switching. Higher burstiness captures the more intermittent pattern that arises when short spans coexist with longer uninterrupted ones. This asks how switching is distributed within the sentence rather than only how much switching occurs overall.

These measures help describe the conditions in which a particular switch is surrounded by a long stretch of the other language. Language balance can show that one language contributes relatively little. Switch frequency can show whether repeated changes occur. Burstiness can show how unevenly the stretches are distributed. Each answers a separate question about the sequence, and the regression can consider those answers together. None supplies a syntactic analysis of the spans. For instance, the presence of a short span can be consistent with an insertion, while the function of that span requires information beyond its length.

The authors also calculate a measure called Memory, which concerns the order of spans. The idea is to ask whether the length of a span is related to the lengths next to it, beyond the overall distribution of lengths. The computation has a divisor formed by multiplying standard deviations. Short sentences often have spans of equal length, in which case a required standard deviation is zero. The authors encounter many divisions by 0 and exclude Memory from the regression. The fitted procedure consequently represents language order through switches and span variability, with no additional predictor for dependencies between successive span lengths.

#### Predict unanimity from the sentence and its source

The authors fit logistic regression with agreement as the outcome. Logistic regression relates the supplied predictors to the probability of a binary outcome, here AGREE or DISAGREE. The initial specification includes the M-Index, the I-Index and Burstiness as continuous quantities. It also includes Corpus as a categorical predictor, allowing the expected agreement to vary with the collection from which the sentence was drawn.

The corpus term matters because annotated sentences with similar index values can come from collections with different distributions of agreement. The regression can use a corpus label to account for some of that difference. The paper then examines the effect of the I-Index and finds that its relationship with agreement varies across collections. The authors add an interaction between Corpus and I-Index. In the resulting specification, the association between adjacent-word switching and agreement can differ by corpus, along with the more general differences represented by the corpus term.

The prediction concerns whether the three counts will pick out a common language. It does not require the regression to output Spanish or English. That distinction gives word counting a specific role in the proposed interpretation. TOTAL can supply a candidate language, and the regression can indicate how likely broader agreement is under the observed mixing conditions. The experiment assesses the probability of conjunction among rules, so its predictive score pertains to that binary judgment.

### Experiments and results

#### What the corpora represent

S7 documents one conversation among three Spanish–English bilinguals. It contains roughly 8,000 words before the mixed-sentence analysis. English and Spanish TreeTagger parameters supplied its automatic language and part-of-speech labels. The collection offers a sustained conversational record. Its many sentences reflect one conversation, a fact that matters when interpreting a corpus label as evidence about a wider population of speakers.

Miami comes from the Bangor Miami Corpus. The material records informal conversations between bilinguals in Miami, and its original automatic annotation used the Bangor Autoglosser. This makes Miami and S7 conversational sources with a shared language pair and different annotation workflows. Their common part-of-speech inventory allows the same counting rules to be applied, while the original workflow remains part of the provenance of the labels on which the rules depend.

SpinTX draws on selected interviews from the Spanish in Texas Corpus. Speakers were Spanish–English bilinguals living in Texas. The original part-of-speech annotation used the English and Spanish versions of TreeTagger in sequence. The study selects conversations by their level of integration and then retains the mixed sentences. As a result, the results for SpinTX describe the interview material that passes the study's filters, a narrower set than all language use represented in the underlying corpus.

KC brings in bilingual literary writing from Susana Chavez-Silverman's Killer Crónicas. The segment with part-of-speech annotation contains approximately 8,000 words, with English and Spanish nearly evenly represented. The book is epistolary, and the analyzed writing is a different kind of evidence from a recorded interview or an informal conversation. The contrast gives the study a varied set of mixing patterns within the language pair. It also means that corpus differences can be associated with the kind of text, the annotation workflow and the sample of language use together.

The reported size of 7,879 refers to the pooled collection of mixed sentences after filtering. The approximately 8,000 words reported for S7 and for the annotated KC segment describe the sources in word units. These figures answer different questions. Source size indicates how much annotated material is available, while the pooled sentence count gives the number of observations eligible for the agreement study. The experiment's rates use sentences as their unit.

#### How often the criteria agree

The first result is a direct count of outcomes. Across the 7,879 retained sentences, the criteria converge on a matrix language in 58% of cases. This percentage reports how often the language majority over all tokens coincides with the majorities among verbs and function items. It is a property of the labels constructed from the corpora, before any prediction using the regression.

The corpus rates provide a more specific view. SpinTX reaches agreement in 71% of its retained sentences. S7 reaches 65%, and Miami reaches 57%. KC reaches 45%. These results describe unanimity across TOTAL, VERB and FUNC within each collection. They are independent of which language wins in an agreeing sentence. English and Spanish can each contribute agreement outcomes, and the percentages report the outcomes together.

Matrix-language agreement across the retained Spanish–English corpora The word, verb and function-item counts converge most often in SpinTX and least often in Killer Crónicas.

**The numbers**

| System or setting | agreement % |
| --- | --- |
| Killer Crónicas | 45 |
| Miami | 57 |
| S7 | 65 |
| SpinTX (this paper) | 71 |

The chart measures the frequency of a particular analytical outcome. Its highlighted setting has the highest measured agreement, which tells us how often the definitions converge there. The ordering has no implication for the quality of any corpus or the bilingual practices it records. Higher agreement makes the single-frame interpretation easier to support through the paper's chosen cues. Lower agreement sends a larger share of the corpus to the category in which at least one of those cues fails to support a shared language.

SpinTX and KC furnish the most distinct cases in the reported comparison. The selected interviews more often yield compatible evidence across the whole-sentence and grammatical counts. KC more frequently presents a combination in which some clue differs or ties. S7 and Miami occupy intermediate positions in the observed rates. A single rate can place them between the endpoints, while the distribution of individual regression predictions reveals a further kind of variation within them.

A pooled agreement rate and a corpus agreement rate also answer questions at different levels. The pooled value describes the outcome for the complete selected sample. A corpus value allows comparison across sources even when their contribution to the sample differs. Neither percentage tells a reader the language of a particular sentence's frame. That would require examining the individual counts and, where the grammatical question matters, the organization of the sentence.

#### How well the regression predicts agreement

The authors first fit the regression with separate terms for each of the mixing indices and for corpus identity. They then examine how the relationship between I-Index and agreement varies by corpus and fit the specification with the interaction. The methods section reports an F1 score of 69.3% for the updated specification across the corpora. F1 combines precision and recall. For an agreement prediction, precision concerns how often predicted agreement is observed, and recall concerns how much of the observed agreement the predictor finds. A single F1 score gives a combined summary of those properties.

The discussion calls the same 69.3% figure accuracy. Accuracy ordinarily gives the fraction of all predictions that match their labels. The methods section explicitly identifies F1 and provides the more specific account of the result, so 69.3% is best reported as F1 with the terminology discrepancy visible. The paper gives no separate accuracy value with which to resolve the difference, and the headline figure is not tied to a specified held-out split.

The empirical agreement rates are distinct from the performance score. The 58% rate says how frequently the counting rules agree across the sample. It gives the prevalence of the target outcome. The F1 score describes the regression's ability to predict the target according to the paper's evaluation. Subtracting or comparing the two directly would not measure the effect of the regression, since one is a frequency of observed labels and the other summarizes prediction quality.

The paper supplies no baseline F1 for a rule that always predicts the more frequent outcome, nor a separate F1 for the specification before the interaction. TOTAL plays a different role from a prediction baseline because it helps construct the target. Its language label provides the simple approximation the authors wish to assess, and its concurrence with the grammatical rules determines part of the answer. The reported F1 is for predicting that combined outcome from the distribution of language labels and corpus identity.

#### Which sentence properties carry the association

The paper reports that M-Index, I-Index, Burstiness and corpus identity are significant predictors. Its odds-ratio analysis identifies M-Index and Burstiness as the strongest, with effects in opposite directions. Greater balance between Spanish and English goes with a lower chance of agreement. Greater burstiness goes with a higher chance of agreement. The result for I-Index is expressed through its varying relationship with agreement across corpora.

The direction of the M-Index association follows a difficulty the counting procedure makes visible. When the total amounts are close, evidence for a majority over all words is weak and a tie is possible. Restricting the count to verbs or function items can then yield a different result. The accent example illustrates an exact tie at the overall level, followed by Spanish majorities on both grammatical subsets. An association across the sample says such conflicts become more likely as the counts approach balance. It leaves the classification of any particular balanced sentence to the individual observations.

The positive association with burstiness is consistent with the authors' account of sporadic embedding. A sentence can contain a stretch of one language interrupted by material from the other, with the dominant stretches retaining much of the grammatical evidence. The index describes the distribution of spans, and a higher value makes agreement more likely in the regression. That association gives a reason to examine such sentences for insertional organization. Their spans have to be interpreted grammatically to establish whether and where insertion occurred.

The variation in I-Index matters because it limits what a general measure of switch frequency can say. A frequency counts changes across adjacent tokens, leaving open the grammatical roles occupied on either side of the change. A corpus can also present contrasts between sentences that differ in language balance or span lengths. The interaction permits the contribution of I-Index to reflect the collection in which the pattern is observed. It captures heterogeneity in the data without assigning that heterogeneity a particular grammatical cause.

#### What the prediction distributions reveal

The paper plots the density of predicted agreement for each corpus. These plots summarize where the regression's outputs concentrate, rather than simply giving each collection a single decision. The SpinTX distribution favors AGREE, and the KC distribution favors DISAGREE. The authors still see overlapping or ambiguous cases within these collections. A corpus that usually produces a certain outcome can include sentences that differ from its prevailing pattern.

S7 and Miami have predictions distributed across several humps. This is what the paper means by multimodal distributions. Rather than concentrating around a single typical prediction, the sentences collect in several areas of the prediction scale. The authors interpret small peaks around 0 on that plotted scale as cases where the predictor has insufficient information to choose clearly between AGREE and DISAGREE. The location refers to the plotted agreement score as described by the authors. It should not be read as a claim that these sentences have a probability of agreement of zero.

This distributional view explains why the corpus rates do not settle the question of mixing type. S7 or Miami can look broadly insertional when described in terms of low balance and relatively bursty switching, yet a subset of its sentences still falls where the predictions are uncertain. The authors regard those intermediate patterns as evidence for a continuum. They suggest that some cases may involve congruent lexicalization, a pattern that combines aspects of insertion and alternation. The density plots show variability and uncertainty. Assigning particular sentences to that linguistic analysis remains a separate task.

### What the ablations show

The paper reports no formal ablation series with scores for systematically removed predictors. It does offer comparisons among the counting criteria, an examination and revision of the regression specification, a comparison of predictor associations, and an analysis of which corpora contain ambiguous predictions. These analyses answer different questions about why the approach succeeds more readily in some settings than in others.

#### What changing the counted words reveals

TOTAL, VERB and FUNC form a comparison within each sentence. They receive the same sentence boundaries and token language labels. What changes is the set of tokens allowed to influence the decision. An agreement outcome means that restricting the count to grammatical subsets preserves the candidate that emerges from the entire sentence. A disagreement shows that a change in the evidence considered is enough to disrupt unanimity.

The worked KC example isolates one possible source of that disruption. The full token inventory is evenly divided while the grammatical subsets each favor Spanish. The example gives concrete meaning to the M-Index association. Overall balance can make the numerical rule indeterminate even when a language has a clear advantage inside the grammatical subsets. The disagreement label is appropriate under the study's rule, while the individual counts suggest where to start a further analysis.

The same design allows other kinds of divergence in principle. A language could be the overall majority while the verb count points elsewhere, or a function-item count could be tied while the other criteria agree. The paper calls for examining which method most often departs from the others. Its aggregate rates combine different routes to disagreement. They show how frequently unanimity fails, while leaving the relative frequency of those routes unresolved.

The comparison therefore provides limited support for substituting TOTAL for the more detailed rules. When all the counts converge, TOTAL has delivered the same label with less annotation. The agreement prevalence and its variation by corpus describe how often that opportunity occurs in the selected material. To determine whether verbs or function items provide the strongest independent grammatical clue would require a target established beyond agreement among the counts.

#### What the I-Index interaction changes

The original specification gives I-Index a single relationship with agreement across the data, alongside the terms for corpus, balance and burstiness. The authors' effects plot shows that the I-Index relationship differs by corpus. Adding the interaction allows a given amount of variation in adjacent-word switching to have a different association with the outcome depending on the collection.

This is a targeted change prompted by an observed pattern. Its value is clearest as a correction to the assumption of a shared association. A measure of local switching can behave differently in samples where switches belong to different kinds of stretches or arise under different conditions. Corpus-specific effects give the regression the flexibility to represent that. Without scores for both specifications under a common evaluation procedure, the size of the improvement attributable to the interaction remains undetermined.

This distinction matters when extending the idea to additional corpora. The interaction describes the behavior of collections already represented in the regression. A new collection would need its own evidence if the goal were to estimate how I-Index behaves there. The reported association gives a reason to investigate such variation, while the study's findings concern the corpora whose labels were included.

#### What the predictor comparison supports

The odds-ratio analysis contrasts the direction and strength of the fitted associations. Much of the tendency toward agreement in the reported regression appears in the negative relationship with M-Index and the positive relationship with Burstiness. Those directions make sense together under a pattern of sporadic embedding. One language supplies much of the material, and the switches punctuate stretches of different lengths. A whole-sentence majority in such a setting has a greater chance of being accompanied by majorities among verbs and function items.

Part of the M-Index association is built into the task. The index measures the balance of all language labels, and TOTAL uses those labels to choose a candidate. In particular, an even balance creates a tie for TOTAL. This shared input makes the M-Index relevant by construction and helps explain why its association is strong. The prediction still has to account for how the grammatical counts behave. In sentences with an overall majority, the M-Index cannot identify who supplied the verbs or function items from the proportions alone.

Burstiness adds a property with a different relation to the target. It measures how the sequence groups material into stretches, using information that the three majority rules do not explicitly consult. Its association indicates that the grouping of labels carries evidence about whether the counts will converge. The study gives no performance score for Burstiness in isolation or for a version that drops it. An odds-ratio comparison describes the fitted regression, while a removal experiment would quantify what predictive performance is lost without the feature.

Corpus identity also carries information, although the fitted term cannot say which property of a corpus accounts for it. Formality, source genre, speaker selection and the annotation pipeline are bundled in the samples. The qualitative difference between the SpinTX and KC predictions shows how the regression responds to those samples as they are. A controlled comparison that holds their other differences fixed would be needed to attribute the effect to any one property.

#### Where the available measurements run out

The decision to drop Memory is an analysis of whether a measurement works at the chosen scale. The authors computed the measure and found that the standard-deviation terms in its divisor frequently reached zero. Short mixed sentences can provide too little variation in span length to support that calculation. The outcome is a practical limit on the features available for sentence-level prediction. The paper does not report a predictive comparison that would establish how much a usable measure of span order could add.

The density plots offer a second way to see where the predictors run out of information. S7 and Miami include sentences for which the regression's outputs are near the uncertain part of the scale, despite features characteristic of broadly insertional mixing. That observation brings the analysis back to the grammar of individual sentences. The same low balance and high burstiness can accompany different arrangements of predicates, function items and embedded spans. Identifying those arrangements would help explain why sentences with evidently similar switching profiles can receive different agreement outcomes.

The paper's argument for a continuum rests on the combination of across-corpus and within-corpus variation. The extremes are distinguishable by their agreement tendencies, and the intermediate sources show more complicated distributions. The regressions and plots establish that these summaries of language sequences have varying relationships with unanimity. They leave open how much uncertainty comes from genuinely intermediate switching patterns, clause boundaries, missing grammatical distinctions or other differences across the sources.

### Limitations

#### Limits identified by the authors

The authors emphasize the scarcity of bilingual data with suitable part-of-speech annotation. Their choice of corpora was constrained by the need for language labels and grammatical tags on the same tokens. They also note that switching can break the context that monolingual taggers use to identify a token's grammatical category. Creating a common tag inventory makes cross-corpus counts possible, but the quality of the original predictions remains an issue wherever tags were assigned automatically.

The authors also describe limits set by the common annotation itself. The core Universal Dependencies categories give them the classes they need to count selected function items. They lack the granularity necessary to use finite verbs alone. VERB therefore answers a majority question over all tagged verbs, a different operation from choosing the language of the finite verb in a clause. The paper identifies this adaptation explicitly. Studies with richer annotation could investigate whether the behavior of the two rules differs.

A further limit concerns sentence length. Memory is of interest in longer sequences, where the order of monolingual spans can be studied with more information about their variation. At sentence level, equal-length spans often make the calculation undefined. The authors' decision to drop the measure narrows the description of sequential structure to the remaining indices. It also illustrates that a quantity intended for comparisons over corpora may become difficult to estimate when each observation provides only a short sequence.

The authors recognize a gap in their account of S7 and Miami. The current measures leave some predictions uncertain even where the overall mixing profiles look insertional. They call for deeper syntactic study of the constructions in those datasets. They also propose looking more closely at which matrix-language criterion most often diverges, testing other language pairs and investigating entropy-based predictors. These are directions for further work arising from the observed disagreement and from the limitations of the three retained measures.

#### Limits of the target and the unit of analysis

A reader can infer a separate limit from the construction of the target. AGREE is defined by the concurrence of the operational rules. The paper provides no independently annotated matrix-language answer against which to check those decisions. Consequently, a correctly predicted agreement demonstrates that the available cues converge. Validating the claimed frame would require examining the grammatical structure itself. Shared conclusions from overlapping token counts can be informative while still leaving open whether the conclusion captures the structural role intended by the framework.

For the same reason, DISAGREE covers a range of linguistic and measurement situations. It can arise when grammatical subsets favor different languages, when TOTAL ties, or when a particular subset offers too little evidence to produce a majority. A sentence with several distinct frames could also frustrate a sentence-wide assignment. The binary target groups these possibilities because all of them interrupt unanimity. Its meaning is specific enough for prediction and broad enough that diagnosing an individual disagreement requires inspecting the underlying counts and sentence.

The distinction between a clause and a sentence is especially important here. If different clauses in one sentence have different frames, a rule applied across the sentence pools their material. A majority in that pooled unit can reflect which clause contributes more tokens. Conversely, a close split can lead to disagreement even if the clauses have clear frames when examined separately. The authors expect much of the spoken material to consist of short, simple sentences. The procedure does not verify that every analysis unit is a single clause or separately evaluate sentences with multiple clauses.

Token order is represented in the predictor through adjacent switches and span lengths. The counting rules themselves discard order once the relevant subsets have been selected. The framework assigns importance to grammatical organization, which can depend on the relation of a constituent to the rest of a clause. A set of language and part-of-speech counts can reveal agreement in the cues correlated with that organization. It cannot establish constituent boundaries, scope or the placement of embedded material from the totals alone.

The typological interpretation needs the same care. The paper finds a range of agreement patterns and suggests that some intermediate patterns could correspond to congruent lexicalization. It does not give an independent classification of individual sentences by insertional, alternational or congruent type. The reported prediction is for agreement among matrix-language criteria. Evidence that the corpora resist a simple division follows from the variability in those predictions and counts, while the grammatical nature of each intermediate case remains open.

#### Limits of the corpus comparison and evaluation

The percentages apply to the chosen bilingual material after filtering. Excluding monolingual sentences focuses the analysis on the relevant cases. Removing selected conversations in Miami and applying the 0.1 conversation threshold in SpinTX further changes the population from which those cases are drawn. The rates therefore describe switching within the retained sources. They do not estimate how common a particular kind of switching is across the underlying communities, including speakers or situations absent from these collections.

Corpus identity also absorbs several differences at once. KC is literary writing with checked manual part-of-speech annotation. The conversational and interview data have automatic annotations produced under different workflows. The language use, the way the material was prepared and the kinds of situations represented can all vary together. Mapping tags to the common inventory controls their category names and interpretation for counting. It leaves differences in tagging accuracy and sampling outside the analysis.

The counts from grammatical subsets are particularly exposed to those differences when the evidence is sparse. A sentence with few verbs or function items gives each tagged item substantial influence. A changed part-of-speech label can then affect which language wins or whether the count ties. The study describes the preparation and checking of the annotations, but gives no estimate of how disagreements in tagging would propagate to the target. Corpus differences should therefore be read as differences in the measured outcomes of these annotated collections.

The reported predictive score has a narrower scope than performance on an unseen community, genre or language pair. The paper gives an F1 score across its corpora and describes the variation of predictions within them. It does not specify a held-out protocol that separates speakers, conversations or entire corpora, nor a separate result for any such split. With corpus identity in the regression, the distinction is consequential. Sentences from a known corpus have a categorical predictor already estimated from that corpus. Performance for a collection absent from fitting would need a different evaluation.

The paper's results establish a context for using word counts as a first approximation. When the mixed material has a marked numerical imbalance and the switches occur sporadically, the grammatical counts more frequently support the same choice. The balance measure and TOTAL share the input counts, and the remaining evidence concerns associations over a selected sample. That combination supports a practical heuristic whose reliability depends on the kind of mixture and the quality of the annotation. A grammatical claim about a difficult individual sentence still needs the evidence that motivated the paper in the first place, including how the languages contribute to the construction around the switch.

### What came after

The Survey of Code-switching cites the paper. Published in 2021, the survey considers linguistic and social perspectives in relation to language technologies. It gives the study a place in a broader discussion whose scope includes both the structure of mixed language and the purposes for which that structure is analyzed. The citation establishes that the survey takes the study into account. A particular reuse of its regression, counts or corpus filters is unspecified.

The connection between the papers is clearest at the level of the question they address. Bullock and colleagues take a linguistic concept, define observable criteria for it, and measure how consistently those criteria apply across data sources. A survey spanning linguistic and social perspectives on code-switching can situate that question alongside the rest of the field's work on how bilingual language use should be represented for language technology. In Bullock and colleagues' experiment, corpus identity and patterns of switching both matter to the prediction. The study thereby offers a documented case of why the choice of data and the definition of a linguistic label have to travel together when comparing results.

## Cite

Cite as Barbara Bullock, Wally Guzmán, Jacqueline Serigos, Vivek Sharath and Almeida Jacqueline Toribio. 2018. Predicting the presence of a Matrix Language in code-switching. Proceedings of the Third Workshop on Computational Approaches to Linguistic Code-Switching.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/w18-3208](https://doi.org/10.18653/v1/w18-3208)

```bibtex
@inproceedings{bullock2018predicting,
  title = {{Predicting the presence of a Matrix Language in code-switching}},
  author = {Barbara Bullock, Wally Guzmán, Jacqueline Serigos, Vivek Sharath and Almeida Jacqueline Toribio},
  booktitle = {Proceedings of the Third Workshop on Computational Approaches to Linguistic Code-Switching},
  year = {2018},
  doi = {10.18653/v1/w18-3208},
  url = {https://doi.org/10.18653/v1/w18-3208}
}
```

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