IDEAS home Printed from https://ideas.repec.org/a/bjf/ijltem/v15y2026i8a268.html

Transformer Models for Hausa Personal Name Spelling Correction: A Comparative Evaluation of Byt5, Flan-T5, and AfroLlama

Author

Listed:
  • Bernard Ephraim

    (Department of Computing Sciences, Admiralty University of Nigeria, Ibusa, Delta State, Nigeria/Department of Computer Science, Ebonyi State University Abakaliki, Ebonyi State, Nigeria)

  • Ajah Ifenyinwa

    (Department of Computer Science, Ebonyi State University Abakaliki, Ebonyi State, Nigeria)

Abstract

Misspelling of personal names presents a significant challenge to data integrity, record linkage, identity verification, and information retrieval, particularly in low-resource linguistic environments. Hausa personal names exhibit substantial spelling variation arising from phonetic, orthographic, transliteration, and typographical differences, yet limited research has investigated Transformer-based approaches for their automatic correction. This study investigates the effectiveness of Transformer-based language models for automatically correcting misspelt Hausa personal names. A corpus comprising 148,710 spelling instances derived from 2,061 Hausa personal names was used, including 19,472 real human spelling attempts and synthetically generated variants. Three models, ByT5-small, Flan-T5-small, and AfroLlama, were evaluated under a three-phase cumulative curriculum-learning framework in which progressively larger edit-distance ranges were introduced during training. To reduce the possibility of canonical-name-level data leakage, the 2,061 canonical names were partitioned into mutually exclusive training, validation, and test sets containing 1,690, 185, and 186 canonical names, respectively. Model performance was evaluated using exact-match accuracy, character-level precision, recall and F1, SacreBLEU, and character error rate (CER), with McNemar's test used to assess differences in paired prediction outcomes. Fine-tuned ByT5-small achieved the strongest overall performance, correctly restoring 3,328 of 13,558 test instances (24.55%), with character precision of 92.45%, recall of 80.68%, F1 of 86.16%, SacreBLEU of 69.7286, and CER of 0.2048. Fine-tuned Flan-T5-small achieved 11.85% exact-match accuracy and 83.14% character F1. In contrast, AfroLlama declined from 6.84% to 4.46% exact-match accuracy following fine-tuning, accompanied by a reduction in character F1 from 74.93% to 69.70%. McNemar's tests indicated statistically significant differences between each pair of evaluated models (p

Suggested Citation

  • Bernard Ephraim & Ajah Ifenyinwa, 2026. "Transformer Models for Hausa Personal Name Spelling Correction: A Comparative Evaluation of Byt5, Flan-T5, and AfroLlama," International Journal of Latest Technology in Engineering, Management & Applied Science, RSIS International, vol. 15(8), pages 1020-1039, August.
  • Handle: RePEc:bjf:ijltem:v:15:y:2026:i:8:a:268
    DOI: 10.51583/IJLTEMAS.2026.150800074
    as

    Download full text from publisher

    File URL: https://www.ijltemas.in/uploads/vol15-iss8-pg1020-1039-202609_pdf.pdf
    Download Restriction: no

    File URL: https://www.ijltemas.in/article/transformer-models-for-hausa-personal-name-spelling-correction-a-comparative-evaluation-of-byt5-flan-t5-and-afrollama
    Download Restriction: no

    File URL: https://libkey.io/10.51583/IJLTEMAS.2026.150800074?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:bjf:ijltem:v:15:y:2026:i:8:a:268. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Dr. Pawan Verma (email available below). General contact details of provider: https://www.ijltemas.in/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.