Skip to main content
QUICK REVIEW

[Paper Review] Stylistic Fingerprints, POS-tags and Inflected Languages: A Case Study in Polish

Maciej Eder, Rafał L. Górski|arXiv (Cornell University)|Jun 5, 2022
Authorship Attribution and ProfilingComputer Science20 references23 citations
TL;DR

This study investigates stylistic fingerprints in Polish, an inflected language, by comparing unlemmatized words, lemmatized forms, and POS-tag n-grams for authorship attribution. Using supervised classification on a corpus of Polish novels, it finds that while most frequent words (MFWs) outperform lemmatized words and POS-tags, the latter still contribute significantly—retaining up to ~75% of the attribution accuracy—demonstrating that syntactic structures encode a stable, author-specific signal despite lower overall performance.

ABSTRACT

In stylometric investigations, frequencies of the most frequent words (MFWs) and character n-grams outperform other style-markers, even if their performance varies significantly across languages. In inflected languages, word endings play a prominent role, and hence different word forms cannot be recognized using generic text tokenization. Countless inflected word forms make frequencies sparse, making most statistical procedures complicated. Presumably, applying one of the NLP techniques, such as lemmatization and/or parsing, might increase the performance of classification. The aim of this paper is to examine the usefulness of grammatical features (as assessed via POS-tag n-grams) and lemmatized forms in recognizing authorial profiles, in order to address the underlying issue of the degree of freedom of choice within lexis and grammar. Using a corpus of Polish novels, we performed a series of supervised authorship attribution benchmarks, in order to compare the classification accuracy for different types of lexical and syntactic style-markers. Even if the performance of POS-tags as well as lemmatized forms was notoriously worse than that of lexical markers, the difference was not substantial and never exceeded ca. 15%.

Motivation & Objective

  • To evaluate the effectiveness of lemmatized words and POS-tag n-grams as stylometric features in authorship attribution for highly inflected languages like Polish.
  • To address the challenge of data sparsity caused by morphological richness in inflected languages, where word forms proliferate and frequencies become sparse.
  • To investigate whether grammatical features (via POS-tags) or lemmatized forms improve upon traditional lexical markers (e.g., MFWs) in capturing authorial stylistic fingerprints.
  • To test whether syntactic structures, despite lower performance, preserve a stable and meaningful authorial signal in inflected languages.
  • To determine whether lemmatization enhances or diminishes authorship attribution accuracy in morphologically rich languages like Polish.

Proposed method

  • Constructed a corpus of 189 Polish novels, subdivided into 189, 99, and 30 novel subsets for varying dataset sizes.
  • Extracted three types of stylometric features: (1) most frequent words (MFWs), (2) lemmatized word forms using NLP lemmatization, and (3) POS-tag n-grams (1- to 3-grams) from part-of-speech tagging.
  • Applied four supervised classification methods: Cosine Delta, SVM, NSC, and Delta (a distance-based classifier) to assess attribution accuracy.
  • Used Wilcoxon signed-rank tests to evaluate statistical significance of performance differences between feature types across datasets and classifiers.
  • Evaluated performance using F1 scores and visualized results via curves showing F1 scores as a function of feature vector size.
  • Compared the performance of full POS-tags, first-segment POS-tags (strict POS), and POS-tag n-grams of varying lengths (1- to 3-grams).

Experimental results

Research questions

  • RQ1Does lemmatization improve authorship attribution accuracy in highly inflected languages like Polish, or does it reduce the signal by removing morphological variation?
  • RQ2How do POS-tag n-grams compare to lexical features (MFWs and lemmatized words) in terms of classification accuracy for authorship attribution in Polish?
  • RQ3Is there a specific n-gram length (e.g., 1-gram, 2-gram, 3-gram) of POS-tags that yields optimal performance in capturing authorial stylistic differences?
  • RQ4To what extent do syntactic features (as reflected in POS-tag sequences) preserve a stable authorial fingerprint despite lower absolute performance?
  • RQ5What is the relative contribution of lexical vs. syntactic features to authorship attribution in morphologically rich languages?

Key findings

  • Unlemmatized most frequent words (MFWs) consistently outperformed lemmatized words across all datasets and classifiers, with statistically significant differences (p < 0.00001 for 189 and 99 novels).
  • Lemmatized words showed a performance gap of up to ~15% compared to MFWs, indicating that lemmatization may strip away relevant stylistic information in Polish.
  • POS-tag n-grams performed worse than lexical markers overall, but retained a strong and stable signal, achieving up to ~75% of the maximum F1 score even in the worst-case feature configuration.
  • For POS-tags, 3-grams often outperformed 1- and 2-grams, particularly in the strict POS-tag variant, suggesting that syntactic sequences carry more discriminative power than isolated tags.
  • The performance of full POS-tags was relatively flat across n-gram lengths, indicating robustness but limited sensitivity to hyperparameter tuning.
  • Even the least effective POS-tag configuration achieved an F1 score of approximately 0.75, demonstrating that syntactic features alone are highly informative for authorship attribution in Polish.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.