Research Article Open Access

Authorship Attribution of Short Historical Arabic Texts using Stylometric Features and a KNN Classifier with Limited Training Data

Fatma Howedi1, Masnizah Mohd2, Zahra Aborawi Aborawi1 and Salah A. Jowan1
  • 1 Asmarya Islamic University Zliten, Libya
  • 2 Universiti Kebangsaan Malaysia, Malaysia

Abstract

Authorship Attribution (AA) is a task that aims to recognize the authorship of unknown texts based on writing style. Out of the various approaches to solve the AA problem, Stylometry is a promising one. This paper explores the use of a K-Nearest Neighbor (KNN) classifier combined with stylometry features to perform AA. This study indicates the robustness of KNN in performing AA on short historical Arabic texts written by different authors. To classify the texts according to the author, KNN was trained with a set of stylometry features including rare words, count characters and 2-, 3- and 4-grams character levels. Various feature set sizes ranging from 34 to 2000 were tested in the experiment. The experiments were conducted on limited training data with datasets consisting of 3 short texts per the author’s book. This method proved to be at least as effective as Information Gain (IG) when selecting the most significant n-grams. Moreover, the KNN classifier achieved high accuracy results with the best classification accuracy of up to 90%, except for the 5-KK using the 4-gram character level. This work contributes towards utilizing KNN for identifying the distinctive stylometry feature for robust AA identification in short historical Arabic texts.

Journal of Computer Science
Volume 16 No. 10, 2020, 1334-1345

DOI: https://doi.org/10.3844/jcssp.2020.1334.1345

Submitted On: 3 July 2020 Published On: 3 October 2020

How to Cite: Howedi, F., Mohd, M., Aborawi, Z. A. & Jowan, S. A. (2020). Authorship Attribution of Short Historical Arabic Texts using Stylometric Features and a KNN Classifier with Limited Training Data. Journal of Computer Science, 16(10), 1334-1345. https://doi.org/10.3844/jcssp.2020.1334.1345

  • 3,255 Views
  • 1,707 Downloads
  • 1 Citations

Download

Keywords

  • Arabic
  • Authorship Attribution
  • Character Features
  • KNN
  • Lexical
  • Stylometry