Building the Arabic Learner Corpus and a System for Arabic Error Annotation
Paper · 2015 · Abdullah Yahya G. Alfaifi
Summary
To study how people learn Arabic, researchers need examples of what learners actually write and say, along with enough information to compare work produced under similar conditions. The Arabic resources reviewed in this paper offered useful starting points, but they covered writing alone and differed in what researchers could download or analyse. Abdullah Alfaifi built the Arabic Learner Corpus (ALC) to serve both language teaching and computational research. In the second release, 1,585 essays and interview transcripts total 282,732 words and come from 942 students, some studying Arabic as native speakers and others learning it as a second language. The project records who produced each sample and under what conditions, and makes transcripts, scanned handwriting, and recordings available in formats suited to each source.
The paper treats linguistic annotation as a separate problem from collecting the material. An error record preserves the learner’s form, identifies the kind of error, and supplies a suggested correction. The final Arabic error tagset has 29 error types across spelling, morphology, syntax, meaning, and punctuation. A bilingual manual helps annotators choose among labels that could fit the same case. The annotation tool also lets a person reuse a decision for matching forms within a text or carry forward spelling annotations from earlier texts. In a held-out evaluation within the ALC, an average of 88% of the spelling annotations applied by that lookup procedure were judged correct. Some false tags came from applying a valid earlier correction to a form that was already correct in its new sentence.
The experiments separate agreement about what kind of error occurred from agreement about whether there was an error in the first place. In the initial comparison, annotators agreed on 52% of the labels assigned with the new tagset and 33% with the earlier Arabic Interlanguage Database tagset, among errors both people had found. Agreement was higher when the new tagset was revised and paired with training and a manual, although those evaluations also changed the task. In the corpus release described in the paper, error annotation covered a 10,000-word sample, or 3.5% of the collection.
The project also built a search tool that uses learner and task information to narrow a query or assemble a download. Across the queries tested, the default substring search reached 95.23% average recall against its reference, while the stricter Separate Words option reached 99.89% average precision against its evaluation reference. Those results illustrate different search needs. A broad query can find a form inside a longer word, while a strict query can spare a reader from inspecting unrelated words that happen to contain the same letters.
Deep dive: Building the Arabic Learner Corpus and a System for Arabic Error Annotation
How the Arabic Learner Corpus was built from essays and interviews, how its Arabic error tags were tested, and how researchers could search the data. · about 43 minutes to read
The problem and its context
What a collection of learner Arabic needs to preserve
A teacher can spot an unusual expression in an essay and suggest a change. A researcher who wants to know how often that expression occurs has a different problem. The researcher needs enough examples to see a pattern, a way to locate comparable uses, and a record of how those examples came into being. The conditions can matter as much as the number of examples. A student writing a timed essay without a dictionary is doing a different task from someone working at home with time to revise. If the collection preserves both essays and the circumstances of their production, the researcher can examine each group or make the difference in conditions part of the question.
That is the approach to corpus linguistics behind the paper. A corpus is a collection of language samples assembled according to a stated design and stored so that a computer can process it. A learner corpus uses samples produced in a learning setting. Alfaifi includes native speakers in that definition when they are studying the language, as the native Arabic speakers in the ALC were. This choice gives researchers a comparison group that also completed learning tasks. Its role differs from that of a general collection of published Arabic, where the people, reasons for writing, and opportunities for editing may all be different.
The paper describes how researchers use learner corpora to study what learners use unusually often, what they rarely use, and how their use of an expression or construction differs from that of a comparison group. Error labels let them ask a more focused question, such as whether a difficulty has to do with spelling, agreement, or choice of word. A learner dictionary can draw on repeated errors to decide what kinds of usage notes to include. A teacher can inspect the sentences surrounding an error and see what other language the learner was attempting at the time. In grammatical error correction and learner language research, authentic learner production also gives a system for detecting and correcting errors something concrete to train or test on.
These purposes call for different kinds of evidence. A study of speech needs a record of spoken production, and a transcript gives it a way to locate examples by word. A study of handwriting benefits from having the scan alongside the transcript. A study of change within individuals needs observations of those individuals over time. The paper discusses the ASU Corpus as an example of collecting samples at planned intervals to examine development within and across learners. The ALC pursues broader reuse across teaching and computational questions. Its collection tasks and descriptive information make several kinds of comparison possible within the same resource.
What earlier corpora made possible
The thesis began with a survey of 159 learner corpora. It used a list from the Centre for English Corpus Linguistics to identify collections, then sought descriptions from their original sources. It found references for 137 corpora and relied on the list alone for the other 22. The survey considered 11 design aspects. Some described the project itself, such as purpose, size, target language, and access. Others described the participants and what they produced, such as their first languages, levels of study, and the kinds of tasks they completed. The review also looked at what subsequent markup the material carried.
The field offered examples of both broad and highly targeted collections. The International Corpus of Learner English was designed to study how learners use English, and the paper draws on it as a practical precedent for documenting the learner and the task. The ISLE Speech Corpus illustrates a narrower aim, supplying speech for the development and assessment of educational software. The paper also reviews the NUS Corpus of Learner English as a collection of written production by non-native speakers, and KoKo as a collection of work by students learning more about their native German. The Norwegian Second Language Corpus illustrates how a resource can pair error labels with information about word classes and grammatical features.
Most collections in the review focused on a single target language. That focus can coexist with a wide range of first languages among their contributors. Keeping those dimensions distinct is essential to understanding the ALC. Its participants bring many first languages to the collection, but the language they were asked to produce is Arabic. The review likewise distinguishes the mode of the material, such as speech or writing, from the task that elicited it and the genre that characterises it. An interview is a task. A narrative is a genre that a person can produce in an interview or on paper.
For Alfaifi, the survey supplied precedents and choices. It showed that essays and interviews were familiar means of gathering writing and speech. It also showed why merely following the most common practice would have left the project with fewer opportunities for comparison. Building a written collection is easier than building one that also preserves recordings and prepares searchable transcripts. Yet collecting speech as well as writing lets researchers investigate phenomena that essays alone leave out. Likewise, pairing native and non-native learner production was a deliberate choice grounded in the aim of comparison, even though corpora restricted to non-native speakers predominated in the review.
What earlier Arabic resources covered
The Pilot Arabic Learner Corpus combined collection with error analysis. It contained about 9000 words of writing by American learners whose first language was English. The students were at intermediate or advanced levels. Some work was produced in the United States, and some during study in Arab countries. The pilot adapted the French Interlanguage Database tagset to label errors. The paper reports that the pilot’s download address could not be reached when Alfaifi checked it, and that the description left uncertainty about how the annotation had been carried out.
The Malaysian Corpus of Arabic Learners had roughly 87,500 words of advanced learners’ essays. It was built to examine Arabic conjunctions and the combinations of words learners preferred or used inappropriately. Its texts were collected electronically and remained unannotated. The Arabic Learners Written Corpus covered approximately 35,000 w/t and included writing from beginner through advanced levels. It made raw work available as PDF files, with annotation described as a subsequent phase. Each corpus answered a different need, and each gave prospective users a different route to the underlying evidence.
The Learner Corpus of Arabic Spelling Correction pursued a computational objective. Its 65,000 words came from essays by native Arabic speakers, and its manually revised version made spelling corrections available. That kind of revision can show where a spelling form was changed. A study that needs to group changes by their linguistic nature also needs a classification. The thesis identifies another complication in this earlier corpus. Some malformed strings came from entering handwritten material into the computer. A spelling system trained or tested on that material consequently encounters errors of both student writing and data entry.
All of these Arabic corpora centred on written work, and their described releases varied in accessibility, file format, and extent of markup. The ALC therefore had several design problems to address at once. It needed enough Arabic material for reuse beyond a single investigation, an account of the people and tasks behind the material, and a way to preserve speech and handwritten work alongside machine-readable text. To support error research, it also needed a way to record why a form had been changed.
Why Arabic error annotation needed its own working conventions
The earlier Arabic Interlanguage Database, known as ARIDA, supplied an error tagset made for learner data. Alfaifi argues that adapting a French scheme left some labels difficult to interpret in the Arabic teaching tradition familiar to the project’s annotators. ARIDA put grammar and syntax in separate groups, where the tradition described in the paper generally treated them together. Some morphology labels identified where a problem appeared without specifying what kind of change the learner had made. The thesis also identifies spelling distinctions it wanted to give their own codes, including choices among some word-final letter forms.
The Qatar Arabic Language Bank addressed a related problem from the standpoint of correcting texts at scale. Its guidelines instructed annotators how to make corrections and gave examples of several kinds of errors. The ALC project needed explicit codes that could remain attached to the corrected forms so researchers could later extract instances by error type. The two purposes are compatible. The thesis reports that ALC data helped inform the QALB guidelines themselves. Large Scale Arabic Error Annotation
The interface was a practical concern as well. In the thesis’s tests of general annotation software, some Arabic words overlapped, some tags appeared over a different word from the one selected, and another interface presented the text in the wrong direction. These shortcomings matter because choosing the exact location of an error is part of the annotation. A tool can save a valid label in a file and still attach it to the wrong place. For the WebAnno version examined, the thesis documents both difficulties in selecting overlapping words and a mismatch between the selected word and the visible tag location.
The project thus had to specify a linguistic decision and its representation together. The classification determines the questions a researcher can ask after annotation. The representation determines whether the location, label, original form, and correction can be recovered from the files. The ALC’s treatment of these issues also explains why a category that seemed worthwhile in an early tagset could disappear when the project specified which spans its files would support.
The method, step by step
From a collection plan to research data
The project connected the design survey to a practical workflow. The survey informed the prompts, the kinds of learners to recruit, the formats to release, and the information to collect with each contribution. The data then passed through transcription and storage before it could support consistent annotation and retrieval. The annotation and search tools drew on the same collection but served different purposes. Annotators recorded decisions at positions within texts. Search users chose documents by their characteristics and retrieved passages containing a given string.
From learner contributions to annotated and searchable Arabic
The steps in order.
The ALC was collected through a pilot and a main stage. The second release incorporated the pilot rather than replacing its material with an independent collection. A shared task design made it possible to gather new samples under known conditions. The research team explained the project to students, allowed them to ask questions, and sought their consent for publication and research use. Representatives helped recruit learners and collect material, including in institutions where the lead researcher could not attend classes. They used written procedures and bilingual collection instruments.
The paper distinguishes native Arabic speakers studying the language in school or university from non-native speakers learning Arabic or specialising in it at university. In the non-native part of the corpus, the included proficiency levels were intermediate and advanced. The project used institutional placements as indicators of those learners’ levels. Other fields describe educational setting in finer detail, so a comparison can go beyond the broad labels. Modern Standard Arabic predominated in the teaching context described, and the project accepted the Arabic the learners produced, including the limited use of other varieties described in the thesis.
The writing prompts held the topics steady across classroom and take-home versions. Learners could tell the story of a holiday trip or discuss their academic interests and plans. The classroom version allowed 40 minutes for each composition and excluded language references. The take-home version let students consult resources such as dictionaries and grammar books and gave them time before returning their work. Participants could take part in either or both tasks. Where the institution made computers available, an online form collected the same information and writing electronically. The oral task drew on the classroom prompts and asked participants to speak about their topics in recorded sessions.
Repeating the topics helped make the samples interpretable. A researcher comparing home and class writing can hold the subject of the prompt more almost constant than if the samples were unrelated assignments gathered after the fact. The conditions still changed together. The take-home task provided both more time and access to references, and the students chose which tasks to complete. The data document those circumstances and allow the researcher to select cases with certain characteristics.
Keeping the learner profile separate from the text profile
The International Corpus of Learner English provided the questionnaire that was adapted for the project. The ALC separated information about the learner from information about the particular contribution because a student could produce multiple texts. Age, first language, educational institution, and study level describe the participant. Genre, mode, location, timing, medium, and reference use describe the contribution. The database associates a text with 26 fields in all, including 12 about the learner and 14 about the text.
Some apparently similar fields answer different questions. Country of production records where the work took place. Nationality describes the participant. First language provides information about the participant’s linguistic background, which may differ among people with the same nationality. Text mode distinguishes speech from writing, while the medium can distinguish handwriting from writing on a computer. A broad field records whether references were used, and more specific fields record which kinds were consulted. Someone looking for dictionary-assisted writing can make a more specific selection than someone interested in all cases where learners used outside resources.
Educational background is recorded at different levels of detail. The broad division into pre-university and university study contains more specific programme or school levels, which in turn can be described by year or semester. A secondary school student and a student preparing for university in an Arabic language programme can both fall under pre-university education. Their programme labels retain the distinction. This design lets a researcher start with a broad comparison and then inspect what kinds of students each group actually includes.
The test of a metadata field is partly whether it remains meaningful at the moment of selection. An age range can be entered numerically. A researcher can choose first languages from values actually present in the collection. Reference use is expressible as a yes-or-no choice. The ALC’s search interface was designed around these different kinds of values. By recording learner and task variables separately at collection time, the project could later let users combine them without preparing a separate collection for every possible request.
Transcribing handwriting and speech
Typed responses could go directly into the database. For handwriting, the project had to decide which marks on a page to reproduce and how to handle marks with no clear electronic equivalent. The transcribers left out crossed-out material and took a correction written above a word as the intended form. They preserved missing dots when the result could be represented, used the closest feasible form for some overlapping or doubtful letters, and marked words or phrases they could not identify. Paragraph breaks followed evidence in the handwriting. An ordinary line ending on the page carried no automatic implication that a paragraph had ended.
These choices define what the transcript represents. For an error analyst, silently supplying a missing dot can erase part of the evidence. For a transcriber faced with indistinct handwriting, supplying the closest readable character can be the only way to produce usable text. The conventions are a way to make those decisions consistently. Keeping scanned pages gives a user who cares about an individual form a route back to the source. When a page contained identifying details, those details were removed before transcription, and the assistants worked from the sheets without access to learner profiles.
The project adopted the Arabic Broadcast Data version of the Quick Rich Transcription Specification for speech. Under those conventions the transcript can mark hesitation sounds, unfinished words, and mispronunciations. It also records punctuation to identify such things as questions, complete statements, and interrupted sentences. This makes a searchable transcript more informative than a sequence of words from which all hesitation and interruption has been removed. The audio retains acoustic evidence that these conventions compress into written symbols. Identifying information was replaced with a beep in recordings and marked as deleted in the corresponding text.
The team checked its implementation of the conventions by having people transcribe common samples independently. It measured the share of words for which the transcriptions agreed, then discussed disagreements before testing another sample. That check addresses how consistently the rules were applied. Agreement in transcription is a distinct question from whether annotators subsequently agree that a form is a linguistic error. Two transcribers can faithfully preserve the same irregular form, leaving the linguistic question open to the annotators.
A = M ÷ N × 100
A is the percentage agreement in a comparison between transcribers. M is the number of words on which the pair agreed, and N is the number of words in the comparison text. The factor 100 expresses the fraction as a percentage. Where several pairs transcribed the same sample, the paper reports their average agreement.
Storing and counting the corpus
The main database table gave each contribution a record with its title, text, identifier, and descriptive fields. Associated tables handled shared values such as educational institutions, nationalities, and first languages. The project entered the metadata manually and checked it with an assistant. Textual values were recorded in Arabic and English. This structure made the database a source from which the same corpus could be written out in different representations. Changes to how a file was formatted did not require a new round of collection or a separate record of what the learner had written.
The database could generate plain text with or without metadata, and XML, a structured text format, with Arabic or English descriptive fields. The XML files were checked against a document type definition that specifies which elements and attributes can appear. The export could group the entire corpus in one file, keep each contribution in its own file, or place contributions in folders based on features such as genre or learner group. A document identifier kept contributions distinct and also encoded some basic information about the learner and task. The project offered scanned handwriting in PDF and recordings in MP3 for the corresponding materials. Only recordings with permission for release were downloadable.
The paper reports corpus size in terms of both words and segmented items. Its database counted a run of characters bounded by whitespace as a word. The researcher additionally applied the Stanford Word Segmenter for Arabic to separate clitics, short grammatical elements that can be attached to a word in writing. The resulting count treats each occurrence of a segmented item as a token. A type counts a distinct form across those occurrences. This is one use of tokenization in the project. The error editor uses a different segmentation procedure, aimed at making the text easy for people to label. The two counts and procedures answer different questions about the same material.
The project also put markup on titles and paragraphs and made versions with part-of-speech tagging, which assigns labels such as noun or verb to words. One tagged copy used the Stanford Arabic Parser, and another used MADAMIRA. These layers have different coverage from the manual error work. The thesis reports structural and word-class markup for the full collection, with a smaller hand-annotated error sample.
Designing labels that annotators could apply
The Error Tagset of Arabic, abbreviated ETAr, drew on earlier analyses of errors observed in learner writing and speech. The studies reviewed supplied detailed examples in different areas. One was useful for errors of meaning, another for morphology in verbal sentences, and others supplied distinctions relevant to spelling and syntax. ARIDA contributed precedents for labelling punctuation and style, both present in the initial ETAr. The author then had the tagset reviewed and used it in successive annotation exercises.
The resulting classification distinguishes orthography, meaning the conventions of spelling, from morphology, which concerns how words are formed or inflected. Syntax concerns how words function together in a sentence. Semantics includes whether an expression gives the intended meaning, while punctuation covers the signs that organise written text. The tag normally contains a character for the broad category and another for the specific error type. Labels have Arabic and English forms. In the English code OH, O marks the orthographic family and H identifies Hamza. Hamza represents a glottal stop, and the paper emphasises that its written form and placement depend on its surroundings.
Several distinctions are easier to understand by thinking about what the annotator needs to explain. A replacement character in the spelling of a word can be described without assigning the word a new grammatical role. A word that uses the wrong inflection may require the reader to work out what form of the word the writer meant. A gender or definiteness problem can involve an expected relationship between the target and another word. And a word can be properly spelled and formed while still being an unsuitable choice for the intended meaning. The tagset gives annotators ways to express these different diagnoses even where the visible change is just a few letters.
The Error Tagging Manual for Arabic, abbreviated ETMAr, provides definitions, example corrections, and guidance for borderline decisions. It appears in Arabic and English and uses a standard transliteration system in the English version. A rule in the manual tells the annotator to consider broader interpretations before spelling, with punctuation treated separately. When several categories seem applicable, a change that alters meaning can take precedence over a description of its effect on the letters. The manual also gives exceptions. Its role is to make the reasoning behind the tag choice repeatable among people who already have a grounding in Arabic.
Attaching an error to a text and reusing decisions
The Computer-aided Error Annotation Tool for Arabic, abbreviated CETAr, was implemented in Visual Basic for Applications inside the Microsoft Access database. To prepare a text for annotation, it places units on separate lines, splitting at spaces and separating punctuation from adjacent words. It preserves structural divisions around the title and paragraphs. Token boundaries can be edited when a person notices that the automatic split would lead to an inappropriate annotation unit.
The annotator selects the token, chooses a tag, and records the original form and a proposed correction. The design lets a token carry more than one label. The paper illustrates this with a form that needs both a Hamza correction and the restoration of missing characters. Multiple labels on a token are joined by a plus sign. Under the project’s rules, consecutive tokens with the same problem are marked individually. The final tagset gives up some earlier categories as a consequence. An issue such as word order can depend on a span that has to remain intact to explain the error.
The editor can write the result in plain text or XML. Each format can present the information inline, with the annotation alongside the text, or in a token-based representation that identifies the position to which the annotation belongs. The latter is described as stand-off annotation by tokens. The two views suit different ways of using the data. Someone inspecting a passage can read it with its decisions in place. A program that needs particular kinds of errors can work with identified units and their annotation fields. The annotation export preserves the learner’s production as well as the suggested correction.
CETAr offers two kinds of reuse. Smart selection works within the current document. When an annotator chooses a token, the tool selects matching forms in that document so the same label and correction can be assigned to each in a single operation. The annotator can turn this off. The paper gives missing punctuation as a reason to do so. A string may need a comma at one location and appear without one elsewhere for entirely appropriate reasons. Identical text in the token is only a way to find candidates for the annotator’s decision.
Auto-tagging uses the same matching principle across documents. The project adapts the idea of a translation memory, in which previously resolved material is retrieved when it appears again. In CETAr, a table of previously annotated forms supplies the tag and correction for a matching token in a new text. The tool can store tags from all categories, but it selects spellings for automatic reuse, checking for the orthographic category prefix. The author reasoned that spelling problems were more likely to carry across contexts than cases that required analysis of word function or sentence meaning.
The workflow starts with automatic matches, if the annotator chooses to request them. The person then checks the results, removes or changes unsuitable matches, labels additional errors, and saves the reviewed text. Saving expands the table with newly tagged forms that the tool does not already store. The memory itself can be edited if it contains an annotation that would produce a bad match elsewhere. What the paper evaluates as automatic tagging is consequently an exact-form retrieval procedure seeded with human annotations. It can make a proposal as soon as it has a suitable prior record.
Searching the corpus and measuring retrieval
The ALC Search Tool allows the user to select from the corpus’s metadata and then search the matching documents. It presents fields such as nationality as lists of values and fields such as age as ranges. The available text count updates when a selection changes. The Arabic interface changes the reading direction of the layout, in addition to translating its controls. A matching passage appears as a concordance line, a short window of context around the search result. Each result has a document identifier and can be reopened in the full text.
The default mode looks for the query as a sequence of characters, even inside a longer word. Separate Words restricts the display to matches where the query occurs independently in the original surface text. Consider the paper’s query for kaīfa, meaning “how.” The broad search can also return kaīfīya, meaning “method,” and a form meaning “its method.” The separate-word search drops those longer forms. A researcher can thus choose between collecting nearby spellings for inspection and seeing only independent occurrences of the surface form.
The download function takes identifiers for the selected documents and retrieves their files in the requested formats. It groups files by format in an archive. A filter can select several transcriptions and still yield no downloadable recording, because the source media are available only where the corresponding documents and permissions exist. The distinction matters for research that needs the original page or acoustic signal. A count of selected texts alone does not specify how many usable sources there are in a particular format.
To evaluate the search, the paper classifies retrieved strings by whether they share a lemma with the query. A lemma is the base form used to group related word forms. The researcher inspected the retrieved strings for relevance and used counts from another search system to estimate missed cases. The reference for normal search was arabiCorpus, which can search for a character string inside words. For Separate Words the reference was Sketch Engine on a segmented copy of the ALC. A token in that copy could be retrieved even if it had been attached to something else in the original. The paper acknowledges the difference between a token in that reference and a whole surface word in Separate Words.
FN = B − Q
FN is the paper’s estimate of false negatives, the relevant matches missed by the search. B is the number of results returned by the designated reference for the query, and Q is the number returned by the corresponding ALC Search Tool mode. Subtracting counts is the paper’s way of estimating the number of possible omissions.
TN = N − TP − FP − FN
TN is the number of true negatives in the paper’s calculation. N is the total corpus word count used for this evaluation. TP counts relevant results that were retrieved, FP counts retrieved results judged irrelevant, and FN is the estimate of missed relevant results. The calculation assigns the remaining corpus words to TN.
P = TP ÷ (TP + FP)
P is precision, the fraction of retrieved results judged relevant. TP is the count of relevant retrieved results, and FP is the count of irrelevant retrieved results. Their sum is the total returned by the search.
R = TP ÷ (TP + FN)
R is recall, the fraction of relevant cases retrieved under the evaluation. TP counts the retrieved relevant cases and FN estimates the missed relevant ones. The denominator represents the estimated relevant set.
F1 = 2 × P × R ÷ (P + R)
F1 is the search F-measure. P is precision and R is recall. The factor 2 makes the expression the harmonic mean of the two scores, so both influence the combined value and a low value on either pulls the result down. The tables report the search metrics as percentages and average them across queries.
The tagset experiments use a different notion of agreement. They measure how frequently two annotators choose the same label, then use Cohen’s kappa to account for agreement expected by chance. The paper reports weighted kappa for the first tagset comparison and the final whole-text evaluation. In compact notation, its observed-versus-expected adjustment is expressed as follows.
κ = (Aₒ − Aₑ) ÷ (1 − Aₑ)
κ denotes Cohen’s kappa. Aₒ is observed agreement on the assessed items, and Aₑ is agreement expected by chance from the annotators’ label distributions. For weighted kappa these are the corresponding weighted agreement values. The constant 1 represents complete agreement on the proportion scale. The paper reports the resulting coefficients without specifying the weighting scheme, and states which items entered each comparison.
Experiments and results
What ended up in the corpus
The second release contains 282,732 whitespace-counted words. The pilot contributed 31,272 words, all in writing. When the full release was processed with clitic segmentation, the paper reports 386,583 tokens and 29,625 types. The target for collection had been 200,000 words. Much of the material had to be transcribed after collection, so the researcher gathered extra contributions while the final machine-readable word count was still unknown.
The ALC’s 1585 contributions came from 942 learners representing 67 nationalities and 66 first languages. Of the full release’s words, 151,139 came from native speakers studying Arabic and 131,593 from non-native speakers. Those groups respectively account for 53% and 47% of the word count. That balance concerns the volume of writing and speech across the groups. The non-native part alone contained 65 first-language backgrounds, some of which made much smaller contributions than others. All the learner material in this release was collected in Saudi Arabia.
Writing represented 263,045 words, or 93% of the release. The interviews contributed 19,687 words of transcription, or 7%. For permitted audio the paper reports 52 downloadable files and 3 hours, 22 minutes, and 59 seconds of recordings. On the writing side it reports 1257 downloadable scans. The plain-text and XML variants each cover 1585 contributions, since both written responses and transcripts can be distributed as text. These counts describe different kinds of coverage and explain why a query may find a text without finding every possible source format.
The contributions also varied in size. The shortest had 3 words, the longest had 7298, and the reported average was 178 words. Keeping very short responses was a choice to preserve what participants actually submitted. The project met its broad aim of including both discussion and narrative, though narrative accounted for 67% of the full release and discussion 33%. Error tagging in the release covered 10,000 words, or 3.5%, while the full collection was tagged for word classes and marked up for structure.
How consistently people transcribed the material
In the pilot handwriting checks, mean pairwise agreement was 93% on the first sample and 98% after discussion and a new sample. The final pilot comparison, which used the remaining assistant and the researcher, also gave 98%. In the main collection the handwriting checks yielded mean pairwise agreement of 95%, then 97%, then 98%, using a different text for each check. The final main-release example had 377 words. Agreement varied by pair, and the percentages represent agreement on the samples used for those checks.
The speech checks paired the researcher with one assistant and used the same comparison procedure. On three samples containing 206, 219, and 301 words respectively, the reported agreement was 88%, 90%, and 94%. The paper suggests that the task was harder because hearing an utterance involves decisions that have no literal written form to consult. Finding a hesitation boundary or recognising the intended shape of a partial word calls for a different judgement from deciding where a handwritten paragraph ends. The speech checks and the handwriting checks therefore give separate evidence about how consistently people carried out the project’s transcription rules.
How the tagset compared with ARIDA
The initial tagset comparison used two randomly selected pilot texts of 107 and 132 words. Two experienced Arabic teachers who had no previous error-annotation experience marked errors and classified them with both tagsets. They received the tag lists without training. They used ARIDA before ETAr. This setup tested whether the labels themselves could guide new users and retained the same annotators and text when comparing the two inventories.
One annotator marked 80 errors and the other marked 91. They both identified 42 of those cases, which became the basis for comparing assigned tags. On those shared errors, the new ETAr yielded 52% observed agreement and weighted Cohen’s kappa of 0.468. ARIDA yielded 33% agreement and weighted kappa of 0.292. The reported significance for both coefficients was p < 0.001. Both annotators also said the new inventory made suitable labels easier to find. The disagreement about where to mark errors is visible in the counts that preceded the label comparison.
Tag assignment on shared errors in the ALC pilot, weighted Cohen’s kappa
Annotators agreed more often with the new Arabic tagset after accounting for chance.
The numbers
| System or setting | Weighted Cohen’s kappa |
|---|---|
| ARIDA | 0.292 |
| ETAr (this paper) | 0.468 |
How agreement changed across the revision studies
Two Arabic language specialists reviewed the initial inventory and suggested changes to its categories and labels. That review produced a second version with 34 error types. The next experiment used two lists of 100 sentences, constructed to cover 28 specific tags with a similar number of examples per tag. Catch-all categories were left out of this test. The items already identified the errors, so the three annotators could concentrate on classification. They had the manual for guidance. After the first list, they discussed their difficulties and practised how to tag ambiguous cases before completing the second list.
Over both lists, observed pairwise agreement averaged 88%, and mean pairwise Cohen’s kappa was 0.877. The first list had 87% average agreement and kappa of 0.869. The second list had 89% and kappa of 0.886. The paper reports p < 0.001 for each pair on each list. The pair with the highest combined agreement reached 92% and kappa of 0.912. Another annotator left 11 examples without a tag, which contributed to lower agreement in pairs involving that person. In ratings collected with the decisions, 94.5% of the responses said the tag had been very easy to find.
The final ETAr revision reduced the inventory to 29 error types across 5 categories. The next evaluation brought back complete texts and let annotators find errors for themselves. The researcher sampled 20 documents from those between 400 and 600 words long, for a total of 10,031 words in that experiment. The researcher and two other annotators took part. One of the other annotators had worked on the preceding exercise, and the other had no prior error-annotation experience. The training used a practice text outside the sample and asked annotators to discuss decisions in light of the manual. For the evaluation texts they gave the error’s location, the chosen tag, and a suggested correction.
When the researcher and the returning annotator both detected an error, they chose the same label in 908 of 1061 cases. That pair had 86% agreement and weighted kappa of 0.811. The researcher and the other annotator found 1153 cases in common and labelled 1023 alike, giving 89% agreement and weighted kappa of 0.842. The two other annotators agreed on 881 locations and assigned the same label to 732, yielding 83% agreement and weighted kappa of 0.771. The paper’s mean weighted kappa across the pairs was 0.808. On the 757 errors detected by all the annotators, 624 received the same tag from everyone, for 82% observed agreement. This last percentage describes a stricter condition for a common label and applies to its own subset of errors.
How the computer-assisted workflow performed
For the timing comparison, two annotators each marked the same five ALC texts on paper and in CETAr. One started on paper and used the editor the next day. The other started with the editor. The measured outcome was the time to annotate a text in each condition. Average time was 9.15 minutes on paper and 8.6 minutes in the editor. The author suggests that selecting repeated forms together and having the inventory in a menu may both have contributed. The paper reports the timing for the workflow as a whole.
Time per text for paper and computer-assisted annotation on the ALC sample
The editor took slightly less time on average than paper annotation.
The numbers
| System or setting | Mean minutes per text |
|---|---|
| Paper annotation | 9.15 |
| CETAr (this paper) | 8.6 |
The paper also describes differences in how labels were entered. A paper copy contained NI, an invalid tag for the version tested. The editor’s menu admits only valid codes from its inventory. The author also found a repeated form with different syntactic tags on paper. Smart selection lets an annotator assign the same decision to repeated forms when their contexts call for the same analysis. Validating a code and deciding whether it is the right code are separate parts of the workflow.
The automatic spelling experiment used 10-fold cross-validation, meaning that each subset of the test collection was held out in turn while the others supplied examples for lookup. The evaluation comprised 10 samples from the ALC, each made up of two texts, with 10,031 tokens in total under that experiment’s counting convention. At each iteration, annotations from the remaining samples populated the lookup table and the held-out text received automatic spelling tags and corrections. The researcher checked those results manually.
The lowest reported fold correctness was 76%, the highest was 95%, and the average was 88%. The table gives both the number of instances counted and the number judged correct for each held-out sample. In the 1053-token fold that scored 76%, 26 of the 34 instances were judged correct. In the 978-token fold that scored 95%, 56 of 59 were correct. Another 95% result came from the 1022-token fold with 101 correct instances out of 106. Stating the instance counts helps distinguish correctness among the annotations checked from the volume of text the procedure processed.
How the search behaved on actual queries
In the retrieval experiment, the researchers ran 10 queries drawn from the ALC’s 1,000 most frequent words. The researcher chose a word at random from each group of 100 in that frequency range. The reference counts came from arabiCorpus for normal search and Sketch Engine for Separate Words. Relevance among the retrieved items was assessed by hand. These reference systems supplied estimates of possible misses in each mode. The objects being compared in the results are the two ALC search settings under their respective evaluation procedures.
Normal search averaged 84.20% precision, 95.23% recall, and 85.06% F1. Separate Words averaged 99.89% precision, 77.58% recall, and 86.87% F1. The combined scores are close despite the different distributions of errors. The strict setting gives a reader a cleaner list on these queries. The broad setting recovers more of the estimated relevant items against its reference and asks the reader to inspect more extraneous forms.
Mean precision of the two ALC Search Tool settings across the query sample
Separate Words returned a higher share of relevant results under the paper’s relevance judgement.
The numbers
| System or setting | Mean precision % |
|---|---|
| Normal search | 84.20 |
| Separate Words (this paper) | 99.89 |
Individual queries show how much the average can conceal. The normal search for hal, an interrogative particle, had 7.98% precision. As a short sequence of letters, it was liable to appear inside other words. The same query under Separate Words had 98.94% precision. Its irrelevant hit exposed a different boundary problem. An incorrect space inside a learner’s word created a fragment that the software accepted as a whole-word match. Thus even a search that follows visible word boundaries can inherit the learner’s segmentation errors.
For the normal search for ’akbar, meaning “greater,” the paper reports 76.24% recall. Occurrences written without the Hamza in the query were missed by literal matching. The normal search for “the holiday,” by comparison, achieved 100.00% precision and 100.00% recall on the test. Separate Words frequently had lower measured coverage where the corpus contained attached material. For wāǧahtu, meaning “I faced,” its recall was 61.90%. A search for the bare surface form excludes occurrences with attached elements that the segmented reference can find.
The thesis also compared six existing corpus packages on eight functions relevant to handling Arabic. It used a separate ALC sample of 8 files with about 4000 words and examined reading two encodings, displaying diacritics and right-to-left text, normalising diacritics and Hamza, providing an Arabic interface, and accepting external Arabic corpora. Khawas and Sketch Engine each met 7 of the criteria, with different shortcomings. Khawas did not read the test’s UTF-16 input, while Sketch Engine lacked an Arabic interface. aConCorde met 6 criteria. AntConc and WordSmith Tools each met 4, and IntelliText Corpus Queries met 2. These scores describe support for a set of capabilities. The search-quality experiment assessed returned strings under its own procedure.
The paper examined use of the resource through specialist feedback and usage records as well. Seven researchers responded to the ALC Search Tool questionnaire, commenting favourably on its filters and download options and suggesting support for phrase queries and word-class filters. Hosting records report 51,932 visits to the search tool from 25 November 2014 to 25 March 2015. The separate corpus website recorded 16,251 resource downloads from 5 February 2014 to 5 February 2015. The downloads included project materials beyond the corpus files. These observations record interest and use, while the retrieval and annotation experiments address specific behaviours of the software and tagset.
What the ablations show
Where the comparisons isolate a change
The paper reports controlled comparisons and analyses of errors rather than an ablation that removes individual components from the finished system. The earliest tagset comparison holds the texts and annotators fixed and changes the labels available to them. The higher agreement on shared errors supports the claim that those annotators could use the initial ETAr more consistently than ARIDA in that exercise. Their preferences point to organisation and interpretability as possible reasons. The inventory comparison bundled changes in wording, arrangement, and coverage. The experiment leaves the contribution of any particular change unresolved.
The paper-versus-editor comparison similarly changes the working environment while holding the texts fixed and reversing the order for the second annotator. It measures the combined effects of the menu, token display, selection functions, and other differences between using a printed page and filling in the editor. One observed difference has a clear mechanism. The menu prevents a nonexistent code from being entered. The timing result is harder to attribute. A dictionary of visible labels can speed up a lookup, smart selection can reduce repeated work, and the texts vary in how frequently the same error appears. The paper does not report a timing condition that toggles smart selection on its own.
The training exercise has a useful within-study comparison. The same annotators used the same inventory and manual on sentence lists designed to give similar coverage of error types. Their average agreement went from 87% before the discussion and training to 89% afterwards. The paper interprets the higher score as a benefit of training. The design also changes the actual examples, and everyone worked in the same order. It supports an association with the training step under this procedure while leaving an exact training effect undetermined.
Across the larger evaluation sequence, several more conditions change. The second experiment supplies error locations and uses a balanced selection of categories. The third asks people to discover errors in whole texts and uses a new inventory. The manual and training are present in both later studies, while the first used a bare tag list. Higher agreement after the first study is compatible with clearer categories and better guidance, as the author proposes. The individual results are most informative when read as measurements of their own tasks. Agreement on a preselected error asks whether people can classify a case they have all been directed to inspect. Agreement on errors independently detected in a full text depends on which cases reach the comparison in the first place.
Which error distinctions travelled across settings
The final experiment counted each annotator’s tag choices and then counted uses that another annotator or all annotators agreed with. Missing punctuation was the most-used label, with 397 assignments on average. Hamza came next with 338, followed by word selection with 126 and punctuation confusion with 119. Frequency and agreement did not move together. For Hamza, the average count of uses with at least partial agreement was 328. For missing punctuation, it was 260. A very common category can leave substantial room for judgement about individual occurrences.
The author found closer correspondence between tag use and agreement for orthography and morphology than for syntax, semantics, and punctuation. A letter form can provide highly local evidence for an error, while the appropriateness of a word or punctuation mark may turn on how the annotator reads a sentence. Some rare spelling categories even showed 100% agreement in the analysis. Those observations depend on how often the category occurred. For example, the average use count for confusion between Nūn and Tanwīn was 1 in the sample. Its agreement does not establish how annotators would handle a broader range of examples.
Another result concerns a label the final inventory had removed. The residual syntactic tag was used an average of 13 times, and annotators explained many of those decisions as word-order problems. This is evidence of a cost the token-based representation imposed on the taxonomy. Taking word order out removed a code for a phenomenon that annotators continued to see. The residual category gave them somewhere to record the problem, but a researcher extracting the label would have less precise information about what needed changing.
The lookup experiment exposed a related limit at the level of automatic decisions. A spelling error seen in an earlier text could be a legitimate word in the new context. Several incorrect transfers involved Hamza. In one case the earlier annotation was appropriate in its own context, but other occurrences of the same string were wrongly tagged. Removing a misleading entry from the table could prevent that particular repetition of the error. The result also shows the more general condition under which reuse works. Similar strings need to support the same linguistic decision in their respective sentences.
What changing the search boundary shows
The two search modes offer a direct comparison of how the same tool treats candidate strings. Normal search admits a sequence even inside another word. That behaviour lets it find some forms with attached material but makes short queries especially vulnerable to unrelated hits. Separate Words filters those hits by requiring a surface word boundary on either side. It also excludes systematically related forms whenever the material attached to them leaves no such boundary. The examples show which mistakes result from the boundary rule and which come from the exact spelling requirement shared by both modes.
The analysis also clarifies the importance of the reference used for recall. Sketch Engine can retrieve an item after segmentation even when the independent form never occurred in the original text. An apparent miss for Separate Words can therefore be a sensible outcome under that option’s advertised behaviour. The lower measured recall describes the cost of the surface-word restriction relative to a reference that has access to segmented tokens. It helps explain the proposed interest in searching a segmented and lemmatised version, although the thesis gives no experimental result for that proposed search.
Limitations
Limits the paper identifies
The release contains largely writing, with the speech component, genres, and educational levels short of the balance the project sought. It includes intermediate and advanced non-native learners. The author explains that working with beginners would have taken additional time to prepare and administer tasks they could follow. The project proposes later recruitment at the beginning level and a proficiency test applied before collection. For the release described, institutional placement is the evidence behind the proficiency categories.
Full manual error annotation was a future objective. The tagset and its evaluations took time to develop, and the author applied for funding to extend annotation. The reported annotation of 3.5% of the corpus is the coverage available in the release described. The author also planned to revisit multiword and overlapping errors. A token can carry several tags in CETAr, but that flexibility does not give an annotator a way to place a single word-order or stylistic judgement over an arbitrary span. The final taxonomy’s narrower treatment of style, expressions, and word order is a consequence of that restriction.
The paper identifies weaknesses in the early tagset evaluations and changes the design in response. In the initial test annotators brought their own views of what counted as an error, and their knowledge and interpretations could diverge, especially for meaning and style. Supplying the error locations in the second study narrowed the decision. The author then points out that a list constructed for balanced tag coverage cannot reveal which labels occur naturally in learner texts. That question motivated the full-document evaluation.
The author also acknowledges limitations in handling Arabic with the search tool. Its tested version accepts a single word per query. Multiple words are processed as a single search form and do not produce the intended phrase matches. Literal matching can miss a word written with a different Hamza or letter ending. The paper proposes normalisation, lemmatisation, and the use of grammatical information to improve retrieval. Likewise, it proposes further statistical functions and searches by annotation. Those are directions described in the thesis, beyond the functions tested there.
Finally, the review of earlier corpora depended on available documentation. The paper excluded collections with missing information from the analysis of the relevant design aspect. For annotation, 49% of the reviewed corpora lacked enough information for inclusion. Figures about the prevalence of markup refer to resources that described their practice. The author also cautions that corpus size estimates can differ from actual totals when the sizes of many resources are unavailable, especially for oral collections.
Limits visible in the experimental design
The ALC has broad coverage of nationalities and first languages within a narrower collection setting. All learner material came from Saudi Arabia, and Riyadh supplied 77% of the release by the paper’s distribution of material across cities. A corpus with substantial native and non-native portions can still have small slices once first language, programme, genre, and mode are considered together. Where a study asks about language background, the contribution of an institution or a single programme can be difficult to separate from the language effect. Filtering exposes the composition of a slice and makes it easier to describe. The comparison still depends on which contributors and tasks fall into it.
Some metadata variables move together by design. Classroom writing was timed and excluded references. Take-home writing allowed references and was untimed in the paper’s classification. All recorded speech was collected in class, and the written and spoken modes used different tasks. A comparison can show differences between these documented groups. Identifying timing, reference use, or mode as the cause would require a design that separates those factors. In a similar way, a larger share of narrative writing in the corpus establishes what participants produced under the available tasks. Their motivation for producing it remains a separate question.
The evaluation samples put different boundaries around each reported agreement value. The third annotation study selects texts from a specified length range and therefore leaves out the shortest and longest contributions. The final comparisons condition agreement on jointly detected errors. They quantify classification reliability for those shared cases. Errors identified by only one person are outside those label-agreement denominators, and the proposed corrections introduce another judgement whose agreement would have to be measured separately. High agreement on tag choice also permits the possibility that several annotators applied the same convention to a genuinely ambiguous passage.
In the initial ARIDA comparison, ETAr always came second. Familiarity with the texts could have affected the later decisions. In the editor experiment the order was reversed for the second person, but annotating the same five texts twice still allows recognition of an earlier decision. The evidence on working time is also based on two individuals. The study gives a concrete observation about how these annotators used the facilities on those texts. A wider estimate would need to capture variation in documents, the recurrence of errors, and experience with the software.
The automatic lookup evaluation rotates held-out samples within the ALC. The paper’s document identifiers show that contributions associated with the same learner can occur in different folds. The results characterise a procedure that draws its memory and test items from the same corpus, under the partition used. They leave open how well the memory would travel to a collection with other prompts, contributor backgrounds, or transcription practices. Furthermore, correctness among proposed instances leaves the share of all spelling errors that the lookup can cover unresolved. An exact match can be as accurate as the experiment reports for familiar forms and still leave many previously unseen spellings for a person to handle.
Search recall rests on another approximation. The gap between two tools’ result counts is an estimate of missing cases. Counts alone do not establish whether the systems retrieved all the same items other than the estimated misses or whether the additional items are relevant under the lemma criterion. The paper identifies a known case where the reference and the tool disagree on boundaries even when both follow their design. The query selection also comes from the common end of the corpus vocabulary. Performance on very rare words, on other search intentions, and on phrase queries remains outside the experiment. The published values are best read with the query set, relevance rule, and reference specific to each mode in view.
What came after
Some of the clearest evidence of reuse comes from projects the thesis itself describes. The early ALC releases reached researchers before the thesis was finished. Its texts helped develop an annotation framework for manual correction of a larger Arabic collection. Learner material was also used in work on character-level spelling correction that learned recurring transformations from examples in context. The QALB guidelines used the ALC when preparing their correction instructions. Each application drew on a different part of the resource: authentic text for the workflow, examples of spelling variation for correction, and learner productions that could illustrate editorial decisions.
First-language identification gives another documented example. Arabic Native Language Identification used the non-native part of the ALC to predict a learner’s first language from Arabic writing. It used grammatical patterns, function words, and sequences of word-class labels as evidence. The thesis reports 41% accuracy against a 23% baseline for that study. The experiment made use of a feature collected before annotation began: the contributor’s first language. The thesis also reports classroom uses of ALC examples, including activities in which students examined correct and incorrect structures or drew on expressions from the corpus for their own writing.
Among the later citing studies, the closest match to the original tagging problem is the 2021 paper on automatic error type annotation. The ALC project automated reuse of previously assigned spelling labels as a step in a human workflow. The later title places automatic assignment of error types at the centre of the task. The citation establishes the connection to the earlier study. Use of the ALC texts, adoption of ETAr, and the role of lookup or other techniques cannot be established from that connection alone. Automatic Error Type Annotation for Arabic
The 2019 study on Quranic Arabic search describes retrieval based on an ontology, an explicit organisation of the concepts in a domain. Its stated focus is a different retrieval problem from locating surface strings in learner essays and interviews. The ALC’s metadata filters choose which documents to search, and its concordance finds strings in those documents. The later title makes concepts central to search over Quranic Arabic. The citation establishes a connection between the studies, while the extent of any methodological transfer is uncertain. Quranic Arabic Semantic Search
The 2024 paper on linguistic features for Arabic NLI cites the thesis from a study centred on linguistic evidence for an Arabic task. The point of contact is the earlier project’s effort to make different kinds of linguistic information available for analysis, including word classes and learner errors. The later title establishes its focus on linguistic features. Which features it took from the ALC project, if any, and how the citation figured in its experiments remain unspecified. Investigating Linguistic Features for Arabic NLI
The 2026 corpus paper brings together multiple Arabic domains and annotation for morphology, syntax, and readability. The ALC thesis discussed readability as a possible use of a learner collection and pointed to its detailed educational metadata as a source of candidate groupings. In the later work’s title, readability stands alongside morphology and syntax as a property the corpus explicitly annotates. That gives the two works a shared concern with making Arabic collections usable for several kinds of analysis. The citation by itself leaves the later corpus’s data sources and annotation choices open. A Large and Balanced Multi-Domain Arabic Corpus
Cite
Cite as Abdullah Yahya G. Alfaifi. 2015. Building the Arabic Learner Corpus and a System for Arabic Error Annotation. White Rose eTheses Online (University of Leeds, The University of Sheffield, University of York).
@inproceedings{alfaifi2015building,
title = {{Building the Arabic Learner Corpus and a System for Arabic Error Annotation}},
author = {Abdullah Yahya G. Alfaifi},
booktitle = {White Rose eTheses Online (University of Leeds, The University of Sheffield, University of York)},
year = {2015},
doi = {10.13140/rg.2.2.32081.53608},
url = {https://doi.org/10.13140/rg.2.2.32081.53608}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/alfaifi-2015-building-arabic-learner-corpus-system/