Formation of an array of numerical features for classifying the authorship of software codes using symbolic cross-links between words
Abstract
The paper addresses the problem of automated source-code authorship attribution as a component of the information technology for intellectual monitoring. Existing approaches to code attribution rely mainly on language-specific syntactic features — abstract syntax trees, tokens, or lexical constructs — and consequently do not generalize across programming languages, whereas real-world developers frequently write code in multiple languages while retaining a recognizable individual style. As an alternative, the methodology for constructing an input data array (IDA) within the S.V. Holub research school, developed in the dissertation research of M.S. Holub for the classification of Ukrainian-language texts, which employs a probabilistic feature-informativeness criterion and an information sufficiency threshold (IST), has been used. A new feature type — symbolic cross-links between words — that extends the Holub feature dictionary by capturing paired combinations of prefixes and suffixes of code identifiers within a fixed-length window, is used. Cross-links of three ranks (1×1, 2×2, 3×3) are formalized as occurrence frequencies of ordered k-character string pairs over all ordered word pairs within a window. The effectiveness of the proposed approach has been experimentally investigated on a dataset of 12 authors (10 human developers and 2 generative artificial-intelligence models — ChatGPT and Claude Code) across four programming languages (Java, JavaScript, TypeScript, and Python), comprising 119 source classes and 641 windows. In the within-language scenario, 89.8–100 % of windows have been correctly classified. In the cross-language scenario, the proposed method achieves 100 % accuracy in window classification at a window size of 500 characters, corresponding to a method advantage of up to +1.30 %. Cross-link features actively pass the IST and constitute up to 77 % of the adaptive dictionary volume, which demonstrates their high informativeness as a new, language-independent type of features for problems of software code authorship attribution.
Fields of Study & Subjects
Authorship Attribution and Profiling
Academic integrity and plagiarism
Spam and Phishing Detection
Publication details
- Journal / source
- Mathematical machines and systems
- Publisher
- Institute of Mathematical Machines and Systems Problems of the NAS of Ukraine
- Volume
- 2
- Pages
- 70–78
- Publication date
- 1 January 2026