Enhancing Hausa Words Lemmatization Through Feature Engineering

Authors

  • Adamu Muhammad BUK
  • Rasheed Abubakar Rasheed
  • Muhammad Yusuf Muhammad

DOI:

https://doi.org/10.33003/fjs-2026-1010-5074

Keywords:

Hausa NLP, Lemmatization, Machine Learning, Random Forest, Support Vector Machine, Feature Engineering

Abstract

Hausa is spoken by over 50 million people across Africa, yet it remains critically under-resourced in natural language processing (NLP), particularly for lemmatization. The language’s rich morphology characterized by agglutination, internal vowel alternation, and extensive affixation poses significant challenges for existing rule-based and conventional machine learning approaches. This study addresses this gap by developing and evaluating supervised machine learning models for Hausa word lemmatization. We constructed a manually annotated dataset comprising 4,530 unique word-lemma pairs extracted from diverse media sources, achieving a high Inter-Annotator Agreement of 91.10%. Two baseline algorithms, Support Vector Machine (SVM) and Random Forest, were trained and optimized using GridSearchCV on an 80/20 train-test split. The study introduces an enhanced feature engineering framework that integrates phonological attributes, morphological markers, syllable counts, gemination flags, and extended character n-grams (1-5) alongside traditional surface-level features. Experimental results demonstrate that the Random Forest classifier consistently outperforms SVM. When paired with the enhanced feature set, Random Forest achieved the highest performance metrics, recording an accuracy of 64.02% and a weighted F1-score of 0.6134. Feature importance analysis further confirms that linguistically informed attributes significantly improve model generalization and prediction accuracy. These findings underscore the critical role of domain specific feature design in overcoming data scarcity and linguistic complexity. The curated dataset and optimized modeling framework provide a foundational resource to advance downstream Hausa NLP applications, including information retrieval, machine translation, and computational linguistics.

Author Biographies

  • Rasheed Abubakar Rasheed

    School of Computer Science

  • Muhammad Yusuf Muhammad

    Department of Computer Science

References

Abdi, A., & Abdullahi, M. (2023). Lexicon and Rule-Based Word Lemmatization Approach for Somali Language. Somali Language Journal.

Abdulmumin, I., Dash, S. R., Dawud, M. A., Parida, S., Muhammad, S. H., Sa’id Ahmad, I., Panda, S., Bojar, O., Galadanci, B. S., & Bello, B. S. (2022). Hausa Visual Genome: A Dataset for Multi-Modal English to Hausa Machine Translation. 2022 Language Resources and Evaluation Conference, LREC 2022, June, 6471–6479.

Adeyemi, O., et al. (2021). Low-Resource Languages in NLP. Journal of African AI.

Akhmetov, I., Pak, A., Ualiyeva, I., & Gelbukh, A. (2020). Highly language-independent word lemmatization using a machine-learning classifier. Computacion y Sistemas, 24(3), 1353–1364.

Alhakim, A., & Abbas, M. (2018). Towards an Optimal Solution to Lemmatization in Arabic. Procedia Computer Science, 142, 132–140.

Bari, M. A., Umar, H. A., Bello, B. S., & Ahmed, I. S. (2025). A Rule-Based Model for Stemming Hausa Words. 51. https://doi.org/10.3390/engproc2025087051

Chatterjee, I. (2021). Machine Learning and Its Application : A Quick Guide for Beginners (Issue December). https://doi.org/10.2174/97816810894091210101

Freihat, A. A., Abbas, M., Bella, G., & Giunchiglia, F. (2018). Towards an Optimal Solution to Lemmatization in Arabic. Procedia Computer Science, 142, 132–140.

Islam, M. A., et al. (2022). BaNeL: an encoder-decoder based Bangla neural lemmatizer. SN Applied Sciences, 4(5).

Kanerva, J., Ginter, F., & Salakoski, T. (2021). Universal Lemmatizer: A sequence-To-sequence model for lemmatizing Universal Dependencies treebanks. Natural Language Engineering, 27(5), 545–574. https://doi.org/10.1017/S1351324920000224

Khyani, D., Siddhartha, B. S., Niveditha, N. M., & Divya, B. M. (2021). An interpretation of lemmatization and stemming in natural language processing. Journal of University of Shanghai for Science and Technology. 22(10), 350–357.

Md. Kowsher, Hossen, I., & Ahmed, S. (2019). Bengali Information Retrieval System(BIRS). International Journal on Natural Language Computing, 8(5), 1–12.

Muthee, M. G., Mutua Makau, & Omamo Amos. (2022). Review of Techniques for Morphological Analysis in Natural Language Processing. African Journal of Science, Technology and Social Sciences, 1(2), 93–103. https://doi.org/10.58506/ajstss.v1i2.11

Nuţu, M. (2021). Deep Learning Approach for Automatic Romanian Lemmatization. Procedia Computer Science, 192, 49–58.

Singh, J., & Kaur, R. (2020). Machine learning and its applications: A Review.

Tukur, A., Umar, K., & SA, A. (2020). Parts-of-Speech Tagging of Hausa-Based Texts Using Hidden Markov Model. Journal of Computer Science, 6(2), 303–313.

Yelvita, F. S. (2022). No Titleהכי קשה לראות את מה שבאמת לנגד העינים. הארץ, 6(8.5.2017), 2003–2005.

Zakari, R. Y., Lawal, Z. K., & Abdulmumin, I. (2021). A Systematic Literature Review of Hausa Natural Language Processing. International Journal of Computer and Information Technology, 10(4), 4–11.

Sample of Dataset

Downloads

Published

22-06-2026

How to Cite

Muhammad, A., Abubakar Rasheed, R., & Yusuf Muhammad, M. (2026). Enhancing Hausa Words Lemmatization Through Feature Engineering. FUDMA JOURNAL OF SCIENCES, 10(10), 219-225. https://doi.org/10.33003/fjs-2026-1010-5074