Inference of Fine-grained Attributes of Bengali Corpus for Stylometry Detection

Tanmoy Chakraborty, Sivaji Bandyopadhyay

Abstract

Stylometry, the statistical analysis of linguistic style, provides a "linguistic fingerprint" for authorship attribution. While well-developed for Western languages, it remains challenging for Indian languages like Bengali. This paper presents an automated system that utilizes 76 fine-grained stylistic markers—including token, chunk, and context-level features—to identify authors. By employing an ensemble of statistical models (Cosine Similarity, Chi-square, and Euclidean Distance) with a majority voting mechanism, the proposed system achieves a 63% accuracy rate, significantly outperforming traditional vocabulary-based baselines.

Introduction

Authorship attribution is the task of identifying the author of an anonymous text by analyzing subconscious writing habits. These habits, known as stylometric markers, are difficult for authors to consciously manipulate or for imitators to replicate. In forensic investigations, plagiarism detection, and historical research, stylometry serves as a critical tool. However, for resource-constrained languages like Bengali, the lack of robust automated tools and complex grammatical structures has hindered progress. This research addresses these challenges by shifting focus from simple vocabulary counts to "fine-grained" syntactic and structural features.

Methodology

The proposed system follows a multi-stage pipeline involving pre-processing, feature extraction via a shallow parser, and classification.

System architecture for Bengali authorship attribution.

Feature Engineering

The core of the approach is the extraction of 76 distinct stylistic markers, categorized into three levels:

  1. Token-level: Analyzes word and sentence lengths, along with punctuation frequencies.
  2. Chunk-level: Utilizes a "Shallow Parser" to identify the frequency and average length of various syntactic units, such as noun phrases (NP), verb phrases (VGF, VGNN), and adjective chunks (JJP).
  3. Context-level: Examines dialogue length, the frequency of rare words (hapax-legomena), and the presence of out-of-vocabulary words.

Classification Ensemble

To improve robustness, the system employs three semi-supervised statistical measures:

  • Cosine Similarity: Measures the angle between feature vectors.
  • Chi-square ($\chi^2$) Measure: Evaluates the deviation of observed data from an author's profile.
  • Euclidean Distance: Calculates the straight-line distance between data points in the 76-dimensional feature space.

A majority voting mechanism then combines the outputs of these models to determine the most likely author.

Dataset

The study utilized a corpus of 90 Bengali stories from three categories: Nobel laureate Rabindranath Tagore (Author R), a contemporary author (Author A), and a collection of other authors (Others - O). For each category, 20 stories were used for training and 10 for testing.

Key Results

The system's performance was evaluated against a baseline model using "vocabulary richness" (unique words to total words ratio), which achieved only 37% accuracy (average error rate of 0.63).

The individual statistical models showed varying performance, with the Chi-square measure being the strongest individual predictor at 54% accuracy. However, the ensemble "Combined voting" approach provided the most significant improvement.

Confusion matrices comparing Euclidean distance and the final Combined voting model.

As shown in the confusion matrices, the Combined voting model reduced the average error to 0.37, resulting in a final accuracy of 63%. This represents a nearly 70% relative improvement over the baseline, validating the hypothesis that fine-grained syntactic features are superior to simple vocabulary metrics for Bengali stylometry.

Discussion and Conclusion

The research highlights that subconscious linguistic structures, such as the length of noun phrases, are more reliable indicators of authorship than conscious vocabulary choices. Despite the modest 63% accuracy, the significant jump from the baseline demonstrates the potential of fine-grained analysis.

A notable observation was the "Tagore Bias," where the model occasionally leaned toward identifying Rabindranath Tagore due to his highly homogeneous and well-defined stylistic profile compared to the more diverse "Others" category. Future work will focus on expanding the dataset, refining the shallow parser to reduce error propagation, and identifying additional context-dependent attributes to further sharpen the "digital pen" of Bengali stylometry.

Summary updated

BibTeX
@article{chakraborty2011inference,
  author = {Tanmoy Chakraborty and Sivaji Bandyopadhyay},
  title = {{Inference of Fine-grained Attributes of Bengali Corpus for Stylometry Detection}},
  journal = {Polibits},
  year = {2011},
  doi = {10.17562/pb-44-12},
}
Figure