OSCR

Comparative evaluation of domain-specific and general-purpose transformer models for Arabic poet classification.

Overview

Authors: Sarah Alnefaie1
  1. Department of Computer Science, Faculty of Computing and Information Technology, King Abdulaziz University,Jeddah, Saudi Arabia
Institutions: King Abdulaziz University (Saudi Arabia)
Journal: Scientific reports, volume 16, issue 1, article 21193
Dates: received 12 January 2026; accepted 19 May 2026; published online 8 July 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s41598-026-54438-8 · PMID 42420346 · PMCID PMC13346815 · OpenAlex W7167744066
Open access: gold, a free copy (OpenAlex)
Status: dead link
Methods: Machine learning
Keywords: Arabic NLP, Arabic poetry, Domain-specific pretraining, Transformer-based models, Poet classification, Literature, Mathematics and computing
Topic: Authorship Attribution and Profiling (Artificial Intelligence, Computer Science), according to OpenAlex
Funding: KAU Endowment (WAQF) at King Abdulaziz University
Citations: not cited yet (Europe PMC); 45 references in the paper

Abstract

Arabic poet classification presents distinctive challenges stemming from the morphological richness and stylistic diversity inherent in both classical and modern Arabic verse. This study conducts an extensive comparative evaluation of several neural language models to assess their ability to represent poetic expression and capture authorial characteristics. Two carefully curated datasets are utilised: FrequentPoets, representing prolific authors with extensive verse collections, and CrossEraPoets, encompassing poets from distinct historical periods to examine temporal stylistic variation. A comparative evaluation framework is introduced to contrast domain-specific and general-purpose language models across prolific authorship and cross-era stylistic variation. The domain-adapted AraPoemBERT consistently achieves superior performance, attaining 73.11% accuracy (73.00% F1) on FrequentPoets and 77.06% accuracy (77.04% F1) on CrossEraPoets, whereas the general-purpose GPT-4o demonstrates considerably lower performance under zero-shot and few-shot evaluation settings. The results highlight the significance of domain-adapted pretraining for morphologically complex languages like Arabic and suggest the potential advantage of transformer-based architectures in modelling stylistic and linguistic nuances unique to Arabic verse. These findings also suggest that temporal diversity may play an important role in model generalisation across different poetic styles. The study contributes to Arabic Natural Language Processing (NLP) and digital humanities by enabling computational authorship attribution, stylistic analysis, and cross-historical exploration of Arabic literary heritage. Overall, the proposed framework provides a robust foundation for future research in Arabic poetry analytics and domain-specific language modelling.

Reproduced under the paper's license (CC BY), from the paper cited above.

Code

No file of the authors' code could be read here: it is described below, and read at its source.

scsaln/AraPoemBERT-Federated-Classification

License: none: the authors keep all their rights
State: the link is dead, verified on 27 September 2026
Evidence: found in the paper
Software Heritage: not archived
Found in: “Code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link is dead
  • 27 September 2026: the link is dead

Code availability

The code used in this study will be made publicly available upon acceptance of the manuscript at: https://github.com/scsaln/AraPoemBERT-Federated-Classification.

Reproduced under the paper's license (CC BY), from the paper cited above.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 0 scripts, each with its path and the digest of its content;
  • no match between paragraphs and code yet;
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Data availability

The datasets generated and analysed during the current study are derived from publicly available Arabic poetry resources. The processed datasets used in this study (FrequentPoets and CrossEraPoets) and the source code for the experiments will be made publicly available upon acceptance of the manuscript. Until then, the data are available from the corresponding author upon reasonable request.

Reproduced under the paper's license (CC BY), from the paper cited above.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 1 author, 7 keywords, 1 funder, 16 references.

Cite

This paper

Alnefaie, S. (2026). Comparative evaluation of domain-specific and general-purpose transformer models for Arabic poet classification. Scientific reports, 16(1), 21193. https://doi.org/10.1038/s41598-026-54438-8

BibTeX

@article{alnefaie2026comparative,
author = {Alnefaie, Sarah},
title = {{Comparative evaluation of domain-specific and general-purpose transformer models for Arabic poet classification}},
journal = {Scientific reports},
year = {2026},
month = jul,
volume = {16},
number = {1},
pages = {21193},
publisher = {Nature Publishing Group},
issn = {2045-2322},
doi = {10.1038/s41598-026-54438-8},
url = {https://doi.org/10.1038/s41598-026-54438-8},
pmid = {42420346},
pmcid = {PMC13346815}
}

RIS

TY - JOUR
AU - Alnefaie, Sarah
TI - Comparative evaluation of domain-specific and general-purpose transformer models for Arabic poet classification
T2 - Scientific reports
J2 - Sci Rep
PY - 2026
DA - 2026/07/08
VL - 16
IS - 1
SP - 21193
SN - 2045-2322
PB - Nature Publishing Group
DO - 10.1038/s41598-026-54438-8
UR - https://doi.org/10.1038/s41598-026-54438-8
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41598-026-54438-8",
"type": "article-journal",
"title": "Comparative evaluation of domain-specific and general-purpose transformer models for Arabic poet classification",
"container-title": "Scientific reports",
"author": [
{
"family": "Alnefaie",
"given": "Sarah"
}
],
"container-title-short": "Sci Rep",
"volume": "16",
"issue": "1",
"page": "21193",
"DOI": "10.1038/s41598-026-54438-8",
"PMID": "42420346",
"PMCID": "PMC13346815",
"ISSN": "2045-2322",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41598-026-54438-8",
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
8
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.3390/e28050488
Contextual Modulation of Semantic Coherence in vmPFC Patients' Mental Constructions.
Journal: Entropy (Basel, Switzerland)
In common: 1 reference

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.