English

GNAT: A General Narrative Alignment Tool

Computation and Language 2023-11-08 v1

Abstract

Algorithmic sequence alignment identifies similar segments shared between pairs of documents, and is fundamental to many NLP tasks. But it is difficult to recognize similarities between distant versions of narratives such as translations and retellings, particularly for summaries and abridgements which are much shorter than the original novels. We develop a general approach to narrative alignment coupling the Smith-Waterman algorithm from bioinformatics with modern text similarity metrics. We show that the background of alignment scores fits a Gumbel distribution, enabling us to define rigorous p-values on the significance of any alignment. We apply and evaluate our general narrative alignment tool (GNAT) on four distinct problem domains differing greatly in both the relative and absolute length of documents, namely summary-to-book alignment, translated book alignment, short story alignment, and plagiarism detection -- demonstrating the power and performance of our methods.

Keywords

Cite

@article{arxiv.2311.03627,
  title  = {GNAT: A General Narrative Alignment Tool},
  author = {Tanzir Pial and Steven Skiena},
  journal= {arXiv preprint arXiv:2311.03627},
  year   = {2023}
}

Comments

17 pages, 5 figures, 8 tables

R2 v1 2026-06-28T13:13:27.701Z