Manuscript Offprint

arXiv:2609.07651

Syntactic Patterns and Stylistic Functions in Narrative Prose: A Rule-Based and Machine-Learning Approach

Stefana Janicijevic

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

This paper presents a small-scale quantitative experiment that links syntactic structure to stylistic functions in narrative prose. Starting from a dependency-parsed corpus of 3,300 sentences, we derive sentence-level stylistic labels across five categories — descriptive, introspective, causal, ideological, and neutral — using a transparent rule-based procedure that inspects lemmas, universal part-of-speech tags, and syntactic relations. For each sentence we construct a compact representation of its syntactic profile as a sequence of linearised triples combining lemma, POS tag, and dependency relation. These patterns serve as input to standard machine-learning classifiers trained to predict sentence-level style. The best-performing model achieves a macro-F1 of 0.948 under 10-fold cross-validation. The experiment is implemented entirely in Python using open-source tools. Our goal is not to propose a fully fledged stylistic theory, but to offer a reproducible and extensible workflow for exploring how grammatical structure contributes to narrative interpretation.

1 Introduction

Narrative texts are shaped not only by what is being told, but also by how it is told. Stylistic effects emerge from choices in vocabulary, syntax, and discourse structure, and these choices play a central role in how readers interpret narrative situations, perspectives, and relations between characters or abstract entities. In digital humanities, quantitative approaches to style have traditionally focused on lexical distributions — function word frequencies, key terms, or character n-grams — while syntactic information is used less frequently or only at a coarse level of abstraction.

In this exploratory study we focus explicitly on the relationship between syntactic patterns and stylistic functions at the sentence level. We start from a corpus of narrative prose that has been processed with a dependency parser following the Universal Dependencies schema. Rather than working directly with raw tokens or surface-level word forms, we exploit the richer layer of linguistic annotation — lemmas, universal POS tags, and dependency relations — to construct a representation of each sentence as a sequence of syntactic triples. This abstraction allows us to capture grammatical structure while remaining relatively robust to vocabulary variation across texts and genres.

On top of this representation, we define a small set of five sentence-level stylistic categories — ideological, descriptive, introspective, causal, and neutral — that capture different narrative functions within the text. These categories are operationalised through an interpretable rule-based procedure that inspects syntactic and lexical cues in the dependency annotation. The rule-based labels are then used to train and evaluate standard machine-learning classifiers.

Our main objective is methodological. We do not claim to cover the full complexity of narrative style, nor to offer a definitive theory of stylistic function. Instead, we aim to demonstrate a transparent and reproducible pipeline in which:

  • sentence-level stylistic labels are derived in a rule-based way from syntactic annotation,

  • sentences are encoded as linearised syntactic patterns,

  • and off-the-shelf classifiers are trained to predict stylistic categories from these patterns.

This workflow is intentionally lightweight: it can be implemented with standard Python libraries and applied to relatively small corpora without access to large annotated training sets or specialised hardware. At the same time, it opens up space for qualitative interpretation — rule-based definitions of style remain readable and debatable, and model outputs can be inspected to better understand which syntactic configurations are associated with particular narrative functions. The pipeline is also modular: each component can be revised independently, and the approach can be extended to other genres, languages, or annotation schemes.

The paper is organised as follows. Section 2 situates the work within existing research on computational stylistics and syntactic text analysis. Section 3 describes the corpus, the five stylistic categories, and the rule-based annotation procedure. Section 4 presents the syntactic pattern representation and the classification setup. Section 5 reports experimental results across models and evaluation protocols. Section 6 discusses the findings and their limitations, and Section 7 concludes with directions for future work.

References (12)