Low-Resource and Endangered Languages › Worked Example: One Skeleton, Three Readings

Michael BrenndoerferNovember 26, 20264 min read
Language AI HandbookAll chapters
Part 26 of 67Multilingual Language Models and Cross-Lingual Transfer
Chapter 187Low-Resource and Endangered Languages › Worked Example: One Skeleton, Three Readings
Reading section 7 of 14 · Worked Example: One Skeleton, Three Readings · 4 minSection 7 of 14 · 4 min

Section 7 of 14 · 4 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Consider the Arabic root k-t-b, written with the consonants ك ت ب. Without vowel diacritics, the same three-letter skeleton carries several distinct words.

Three vocalised Arabic forms that share an unvocalised spelling.
VocalisedRomanisationGlossSkeleton
كَتَبَkatabahe wroteكتب
كُتِبَkutibait was writtenكتب
كُتُبkutubbooksكتب

The three example words share one written form. Surrounding syntax can indicate whether كتب is a verb or a noun, and sentence context can favor a reading such as 'he wrote', 'it was written', or 'books'. The reader's knowledge of Arabic supplies the prior that the skeleton alone does not carry.

Stripping vowel marks is a normalization step within the Arabic script. Applied to these examples, it merges three written forms into one. The stripped string alone cannot identify which marked form was present. If the task needs that distinction, test whether keeping the marks or using context helps. If the task treats the three forms alike, it can use the shared spelling.

Take a string with exactly LL character positions. Give each position kk independent binary choices for omitted distinctions. The number of raw assignments in this toy model is:

2kL2^{kL}

where:

  • kk: the modelled number of independent binary choices per character, for example whether a hypothetical mark is present
  • LL: the length of the string in characters
  • 2kL2^{kL}: the number of raw assignments before spelling or context rules out candidates in the toy model

In practice strong priors shrink this dramatically, but the point stands: the candidate lattice is large, and choosing among candidates is a modeling problem, not a table lookup.

The growth is easier to see than to state. The heatmap below plots the log of the upper bound from the formula for modest values of kk and LL.

PythonIn [4]
CollapseExpand
import numpy as np

omitted_distinctions = np.arange(1, 5)
word_lengths = np.arange(2, 10)
candidate_log10 = (
    omitted_distinctions[:, None] * word_lengths[None, :] * np.log10(2.0)
)
VisualizationOut [5]
CollapseExpand
Heatmap of log10 candidate counts by omitted binary choices per character and string length.
Base-10 log of the toy candidate bound for strings of exactly L characters, with k independent omitted binary choices at each position. Spelling and context can rule out assignments.

Two practical consequences follow:

  • Check whether your chosen mapping preserves the distinctions that matter for the task. A deterministic forward conversion can still lose information. An inverse can use spelling rules to narrow the candidates, and context can help where multiple legal forms remain.
  • Evaluate transliteration with multiple references. Character error rate against a single reference punishes a system for choosing a different, equally valid reading. Where ambiguity is real, report the fraction of outputs matching any acceptable reference, and sample a few hundred outputs for human review. A system that gets the "right" reading 70% of the time and a valid reading 95% of the time is better than its single-reference score suggests.

The code section implements a deterministic syllabics-to-Latin table and an Arabic diacritic stripper. The first demonstrates a rule-governed conversion. The second demonstrates a collision that no inverse can undo from the stripped word alone.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy