Design-Test: A Semi-Automated LLM-Based Framework for Typological Analysis with Human-in-the-Loop – A Case Study of Agreement Systems in the Bakhtiari Dialect of Izah

Document Type : Original Article

Authors

1 Department of Computer, Dez.C., Islamic Azad University, Dezful, Iran.

2 Department of Linguistics, Bu.C., Islamic Azad University, Bushehr, Iran.

Abstract

The rapid documentation of endangered Iranian dialects is hampered by a scalability crisis due to time-intensive manual methods. This study aimed to design and evaluate a semi-automated framework based on a Large Language Model (LLM) to accelerate typological analysis. Employing a human-in-the-loop workflow, the Llama 3.1 model and few-shot learning were used to extract agreement system patterns from a 5,400-sentence corpus of the Bakhtiari dialect of Izah. The model's performance was evaluated on a gold-standard annotated test set (450 sentences) using precision, recall, and F1-score metrics, followed by a qualitative error analysis. The model achieved an overall accuracy of 87.4% and an F1-score of 87.4. Qualitative analysis of the 12.6% errors revealed two main limitations: 1) the model's bias towards high-frequency structures, and 2) its difficulty in processing specific morphophonological phenomena (e.g., broken plurals). In terms of efficiency, the framework yielded a 78% reduction in analysis time and enabled the processing of 4.6 times more data per unit of time. The findings demonstrate that LLMs, when embedded within a human-centric collaborative system, can dramatically enhance the speed and scale of low-resource language documentation without compromising accuracy. This framework provides a practical model for accelerating fieldwork in Iranian dialectology.

Keywords

Main Subjects


Anonby, E., Taheri-Ardali, M., & Hayes, A. (Eds.). (2021). The Atlas of the Languages of Iran (ALI). Carleton University.
Bender, E. M., Gebru, T., McMillan-Major, A., & Shmitchell, S. (2021). On the dangers of stochastic parrots. In FAccT 2021 (pp. 610–623).
Bird, S. (2020). Decolonising speech and language technology. In COLING 2020 (pp. 3504–3519).
Brown, T. B., Mann, B., Ryder, N., et al. (2020). Language models are few-shot learners. NeurIPS, 33, 1877–1901.
Crystal, D. (2000). Language death. Cambridge University Press.
Dabir-Moghaddam, M. (2012). The Oxford handbook of Iranian languages. Oxford University Press.
Hashemi, S. M. H., Ghadrdan, M., Shahhosseini, M., & Vatankhahan Esfahani, E. (2026). APARSIN: A Multi-Variety Benchmark for Iranic Languages. ACL Anthology.
Kalbasi, I. (2016). Rade shenasi-e nahvi... Rashdin Publications.
Karimi, Y. (2020). Language shift and endangerment in the Iranian context. Palgrave Macmillan.
SilkRoadNLP (2025). The First Workshop on NLP and LLMs for the Iranian Language Family. EACL 2026.
Unjum, N., Evert, S., Sarveswaran, K., Weerasinghe, R., & Jayatilleke, N. (2026). LLMs for Low-Resource Languages: A Survey. SSRN.
Wei, J., Tay, Y., Bommasani, R., et al. (2022). Emergent abilities of large language models. TMLR.