Historical Ink: Exploring Large Language Models for Irony Detection in 19th-Century Spanish

Kevin Cohen, Laura Manrique-Gómez, Rubén Manrique
3/28/2025
cs.CLcs.AIcs.DL

No official code found. Best implementation: historicalink/ironydetection (1 star, last commit 2025-02-21).

Abstract

This study explores the use of large language models (LLMs) to enhance datasets and improve irony detection in 19th-century Latin American newspapers. Two strategies were employed to evaluate the efficacy of BERT and GPT-4o models in capturing the subtle nuances nature of irony, through both multi-class and binary classification tasks. First, we implemented dataset enhancements focused on enriching emotional and contextual cues; however, these showed limited impact on historical language analysis. The second strategy, a semi-automated annotation process, effectively addressed class imbalance and augmented the dataset with high-quality annotations. Despite the challenges posed by the complexity of irony, this work contributes to the advancement of sentiment analysis through two key contributions: introducing a new historical Spanish dataset tagged for sentiment analysis and irony detection, and proposing a semi-automated annotation methodology where human expertise is crucial for refining LLMs results, enriched by incorporating historical and cultural contexts as core features.

View on arXivView PDF

Code Implementations(1)

10Jupyter NotebookFeb 13, 20251 years ago

Similar Papers

Cite this paper

@article{cohen2025historical,
  title  = {Historical Ink: Exploring Large Language Models for Irony Detection in 19th-Century Spanish},
  author = {Kevin Cohen and Laura Manrique-Gómez and Rubén Manrique},
  year   = {2025},
  eprint = {2503.22585},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.22585v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.22585.svg)](https://codeofpaper.com/paper/2503.22585)

Discussion