Elamur Research

Authorship Attribution and Author Profiling of Lithuanian Literary Texts

Paper · 2015 · Jurgita Kapočiūtė-Dzikienė, Andrius Utka and Ligita Šarkutė

Summary

What can a passage of fiction tell us about the person who wrote it? Kapočiūtė-Dzikienė and colleagues study this question using Lithuanian novels, novellas, essays, publicistic novels and drama. They set up two kinds of text classification. In authorship attribution, the system chooses a writer from a list of candidates. In author profiling, it assigns a passage to an age group or a gender category. The authors compare features ranging from broad measures such as sentence length to counts of words, grammatical tags and overlapping character sequences. They also vary the number of candidate writers or the amount of training material, depending on the task.

For attribution among 100 writers, the best result was 89.2% accuracy on a balanced collection with 150 passages per writer. It came from Naïve Bayes Multinomial using character trigrams, which are overlapping sequences of three characters collected across each passage. With fewer candidates, several word-based and grammatical representations were competitive, and with 50 candidates the strongest features were counts of lemmas, the base forms of words, with or without coarse grammatical tags. The result at 100 candidates shows how the preferred representation can change as the candidate list grows.

Age profiling reached 78.3% accuracy with a Support Vector Machine using individual lemmas. That result came from the largest age dataset, where the youngest and oldest groups had fewer passages than the target of 5,000 per group. Gender profiling reached 100% in small samples with Naïve Bayes Multinomial, as reported in the abstract. Several feature families performed similarly on those samples. With the largest gender dataset, the leading Support Vector Machine result was 0.890 accuracy using lemmas paired with coarse grammatical tags. The authors caution that the small samples are too limited to recommend for profiling and leave the reason for their unusually high scores open.

The study extends earlier Lithuanian experiments on parliamentary transcripts and forum posts to literary writing. Its literary passages were easier to classify in the reported comparisons, but the collections also differed in passage length, subject matter and the range of writing represented. Within the literary collection, the experiments show which combinations of features and classifiers worked under particular sampling conditions. They leave open how well those combinations transfer to a different work by the same author, an unfamiliar writer or another kind of text.

Deep dive: Authorship Attribution and Author Profiling of Lithuanian Literary Texts

This study tests how well writing patterns in Lithuanian literature identify an author from a candidate list or predict the writer’s age group or gender. · about 33 minutes to read

The problem and its context

Identifying a writer and profiling a passage

An unsigned passage raises different questions depending on what is already known. A scholar weighing competing claims about a work might start with a list of possible authors and ask which of them the passage most resembles. Someone studying anonymous writing might instead ask whether the language offers evidence about the writer’s age. The former question asks for an identity, while the latter asks for a characteristic shared by many people. In this paper, both questions become prediction tasks using passages whose labels can be established in advance.

For attribution, the candidate list defines the set of allowable answers. This is what makes it a closed-set problem. The experimental system receives a passage drawn from that list and must choose one of the listed writers. Author verification, which the paper discusses as a neighboring task, starts from a specific claim about the writer and asks whether the passage supports it. The introductory discussion also mentions plagiarism detection, where the object of comparison is similarity across texts or sections of a text. The literary experiments concentrate on attribution and on age and gender profiling.

In profiling, the target is a category attached to the passage. Age has a particular meaning here because the same writer can publish at different ages. The label is tied to the publication date of the literary work, so the question concerns the writer’s age group at publication. The study treats gender through the categories in its collection. The choice of label determines what counts as a correct answer. For attribution a correct prediction names the writer. For age it puts the work into the assigned age range, and for gender it recovers the recorded category.

The authors place these tasks in a field that grew from literary investigations of disputed and unknown authorship. They describe how anonymous and pseudonymous electronic communication broadened its scope. Email, chats, blogs, forum messages and short social posts brought practical applications and changed the material researchers had to work with. Many such texts are short, use unconventional forms and come from a larger pool of possible writers. The paper mentions forensic, security and service applications as motivations for this broader field. Its own evidence comes from a corpus of literary writing.

Literature gives the researchers a way to revisit a question that arises in those newer settings. Which signals are still detectable when the language is relatively normative and the passages offer more material than a short online message? That question is particularly useful in Lithuanian because earlier experiments had already used parliamentary transcripts and forum posts. A literary collection adds a different register to the comparison. Keeping the classifiers, features and other settings similar makes it easier to see where the earlier preferences carry over and where they change.

What counts as a trace of style

The paper frames authorship recognition around a qualified idea of individual style. Writers can develop habits that recur without conscious effort. Repeated choices of vocabulary, punctuation or grammatical construction could make passages by the same person easier to recognize. The authors discuss the idea of a personal stylometric fingerprint alongside an objection to treating it as fixed. Writing can change over time. The paper also points to characteristics such as age, education and social status as possible influences on style. A recognizer can therefore succeed by finding regularities in a collection even if those regularities vary across the writer’s career.

This distinction matters for both tasks. Something stable across the works of a writer could serve attribution well, while a change associated with life stage could help age profiling. In a particular collection, the same language pattern might instead reflect subject matter or the kind of work being written. The paper’s design treats a pattern as useful when it predicts the assigned label on a held-out passage. Questions about the origin and stability of that pattern require evidence beyond the fact that it predicts well.

Early stylometry emphasized measurements that summarize a text, such as typical sentence or word length, syllable counts and repeated vocabulary. One of these, the proportion of distinct words to all occurrences, is known as the type–token ratio. The authors describe early style markers as better suited to long, relatively homogeneous texts and small candidate lists. An average over a book can reflect a sustained tendency. The same average over a short passage has fewer observations behind it and compresses many different kinds of sentence into a single value.

The paper describes a shift toward recording the frequencies of selected words and other recurring units. It singles out the Bayesian analysis of the Federalist papers by Mosteller and Wallace as an influential example using function words. Function words are items such as prepositions or conjunctions, whose grammatical work often makes them relevant across many subjects. A vector of their counts keeps the uses of individual items visible. The same idea can be extended to words in general, sequences of characters or grammatical categories. Each such vector makes different regularities available to the classifier, creating a choice that has to be tested on the actual collection.

Why test several representations in Lithuanian?

Much of the work surveyed in the paper dealt with Germanic languages. The authors turn to Baltic and Slavic examples because they are interested in languages with extensive inflection, productive word formation and relatively flexible word order. Lithuanian morphology gives a word several possible surface forms. A system that counts those forms separately can detect a preference for a particular inflection. A system that groups them under a base form can instead recognize a shared vocabulary item across several grammatical contexts. A character-based system can count smaller pieces that recur across both related and unrelated words.

The earlier studies reviewed in the paper offer different reasons to test these alternatives. Polish literary experiments compared function words and punctuation, finding stronger evidence in the punctuation features in that setup. A separate cross-language attribution study found different preferences across its prose collections. It favored a combination of single words and adjacent word pairs for Polish, single words for English, words combined with character sequences for Latin, and character trigrams for German. The collections and procedures differed, so the review establishes a range of workable representations instead of a single feature prescription for Lithuanian.

The Serbian work described in the paper compared profiles of frequent byte-level character sequences on newspaper texts. It varied both the length of the sequences and the size of the stored profile. A later experiment in that line of work expanded the candidate list and tested syllables. The character sequences remained stronger in the comparison. The Russian literary research reviewed in the paper considered pairs of grammatical tags and character pairs extracted within words. It found the strongest performance with pairs of characters drawn from original word forms. Those experiments illustrate that a character sequence can be defined at different levels. A sequence confined to one word preserves a different set of cues from one allowed to cross a word boundary.

The Croatian attribution study considered newspapers, blogs, literature and forums while evaluating function words, grammatical categories, punctuation and length measurements. A combination of function words, punctuation and word and sentence length distributions performed best in the comparison described by the authors. The review also mentions work on Slovene that discusses available corpora, linguistic tools and methodological possibilities. Together, these cases explain the breadth of the Lithuanian feature comparison. Punctuation, inflection, lexical choice and strings of letters each have a plausible role, and earlier studies give examples of different roles becoming important under different conditions.

There was also an immediate Lithuanian precedent. The earlier attribution work used parliamentary transcripts and forum posts and experimented with the same broad feature families as the literary study. It favored morphosyntactic information for parliamentary transcripts and character features for forum posts. Earlier profiling on parliamentary transcripts considered age, gender and political attitude. Sequences of base forms figured in the strongest representations there. Parliamentary speech thus supplied a comparison involving relatively normative language, while forum writing supplied a comparison in which conventional forms and automatic linguistic analysis could be less dependable.

Learning a decision from labeled texts

The authors distinguish supervised classification from similarity-based attribution. In supervised machine learning, examples with known labels are used to learn a decision rule for future passages. In a similarity-based approach, the system compares an anonymous passage with reference texts or profiles and assigns the label of the closest reference under a chosen measure. These approaches share an interest in measurable features, but the decision comes from a learned classifier in one case and a direct comparison in the other.

The review gives cases where similarity methods performed well, including comparisons with many candidate writers and sparse training material. The authors choose supervised classification for their literary study, which has a fixed candidate pool and much smaller sets of demographic labels. They also want a comparison with the earlier Lithuanian experiments, so they retain Naïve Bayes Multinomial and the Support Vector Machine. The choice provides a way to ask whether the same classifiers respond differently to literary language when each is given the same kinds of input.

The method, step by step

From literary works to labeled passages

The Contemporary Corpus of the Lithuanian Language supplies the 186 works that open the collection. The authors include novels, novellas, essays, publicistic novels and drama published from 1972 to 2012. They split the works into snippets of 2,000 symbols, counting spaces. Each snippet becomes a document for classification. Whole works supply the text and its labels, while the snippet is the item represented by features, assigned a prediction and counted in the evaluation.

Measuring snippet length in symbols gives the character-based representations material on a common scale. The word count can still vary because words and other tokens occupy different amounts of space. The paper describes average document lengths across the attribution versions in the vicinity of ∼283 to ∼290 tokens. A passage at this scale can carry repeated word patterns and grammatical sequences, yet it still represents only a portion of a work. An attribution decision therefore depends on which of a writer’s regularities are observable in the selected segment.

The authors prepare a separate dataset for each prediction target. LIndividual labels passages by writer. It has versions with 3, 5, 10, 20, 50, and 100 candidate authors. For each candidate list the authors make a balanced version with 150 passages per writer and a full version that retains the unequal amounts of text available for those writers. The candidate identities are the same in the paired balanced and full versions. That gives the comparison a fixed answer set even though the collection of passages behind the answers changes.

LAge labels passages using the age of the writer at publication. The researchers obtain the age from the writer’s birth date and the publication date of the work, then assign an age band. The bands are ≤29, 30-39, 40-49, 50-59, 60-69, and ≥70. The intermediate bands remain in the task. A system has to choose a band in the middle of the age range as well as distinguish the writers at its ends. A label derived this way follows a work into its constituent passages and can change from one work to another by the same writer.

LGender uses the male and female categories recorded in the study. For both profiling tasks the authors consider target sample sizes of 100, 300, 500, 1,000, 2,000, and 5,000 passages per class. They select passages randomly from the available material, using balanced samples where the pool permits. The largest age version falls short of its target because the extreme age bands have insufficient text. The profile datasets are supplied to the classification procedure without author metadata as input. The records about authors are used to form the targets, and the text features are what the classifier receives.

From Lithuanian literary works to evaluated predictions

The steps in order.

From Lithuanian literary works to evaluated predictionsStep 1: Divide literary works into fixed-length passages1. Divide literary works into fixed-length passagesStep 2: Assign author, age band, or gender labels2. Assign author, age band, or gender labelsStep 3: Assemble candidate sets and sample sizes3. Assemble candidate sets and sample sizesStep 4: Represent passages with counts or style measurements4. Represent passages with counts or style measurementsStep 5: Rank features by association with class labels5. Rank features by association with class labelsStep 6: Train classifiers on labeled passages6. Train classifiers on labeled passagesStep 7: Predict labels for held-out passages7. Predict labels for held-out passagesStep 8: Compare accuracy across settings8. Compare accuracy across settings

What the classifier has to learn

The paper describes all the tasks using the same abstraction. A document is converted to a numeric representation, and its target belongs to a fixed set of classes. The label set is written as follows.

C = {cⱼ}

C is the available set of classes, and cⱼ is the class indexed by j. The braces gather the classes into a set. What a class denotes depends on the experiment. It can be a candidate writer, an age band or a gender category. An output in one task therefore has a different interpretation from a similarly positioned output in another.

The relationship between text and label can be expressed using the symbols in the paper.

ϕ(dᵢ) = cⱼ

dᵢ is the passage indexed by i in the dataset D. ϕ denotes the assignment of a passage to its class, and cⱼ is the assigned label from C. The authors denote the training dataset by Dₜ. Its passages come with the correct assignments, which serve as evidence for learning an approximation to ϕ. In evaluation, the learned decision is applied to a passage whose correct label is held back from the classifier and used to score its prediction.

A passage enters that decision through measured features. A count vector has a place for each feature available in the representation, with the corresponding value telling the classifier how often the feature appears. The paper uses absolute counts for its frequency representations. Broad style markers involve measurements such as averages instead. The difference matters because changing the representation changes which properties of a passage remain visible. A word-count vector keeps vocabulary choices. A grammatical-tag vector keeps a pattern of word classes even when the terms that fill those classes vary.

Style measurements, function words and character sequences

The style markers are average sentence length, average word length and standardized type–token ratio. These measurements describe a passage compactly. Two passages can have similar sentence lengths and vocabulary diversity while using very different words or constructions. Once reduced to these measurements, a reader or classifier has access to the similarities in those averages and proportions. The specific phrases that produced them have disappeared from the representation.

Function-word counts offer more detail while limiting the vocabulary to a set the authors treat as relatively independent of topic. The paper’s categories include prepositions, pronouns, conjunctions, particles, interjections and onomatopoeias. Lemuoklis, the Lithuanian analyzer used in the study, identifies them in the text. The aim is to measure choices an author can make repeatedly across subject areas. Calling the items relatively topic-neutral describes the motivation for the feature family. Their frequencies can still vary with the passage and the kind of writing it contains.

Character features start from an overlapping window moved through the document. An n-gram is the contiguous sequence of units inside the window, with its name determined by how many units it contains. Here those units are characters, and the lengths the paper tests are given by the following range.

n ∈ [2, 7]

n is the number of characters in a sequence. ∈ indicates membership in the range. 2 and 7 are its inclusive endpoints, with integer lengths between them. A trigram is the setting where the window contains three characters. At each position the window can overlap the previous one, allowing the same character to contribute to several sequences.

These are document-level features. A sequence can include material from adjoining words, so the window can preserve a fragment of the transition between them. Within words, character counts can distinguish endings or recurring spellings and can pick up parts of preferred vocabulary. Across word boundaries, they can retain snippets of local combinations. The classifier receives counts for the sequences themselves. A count does not identify whether the sequence arose from an inflection, part of a distinctive word or a recurrent phrase. The same operation captures all these possibilities without consulting a dictionary or assigning grammatical categories.

Words, base forms and grammatical information

The lexical features start with tokens, the individual units produced by dividing a passage into items for counting. A token representation preserves the form in which a word appears. The authors also run the text through Lemuoklis for lemmatization, which groups recognized inflected forms under their corresponding base forms. In the paper’s processing description, generic words are put into lower-case and numbers are converted to a special tag. A lemma count can then reflect a recurring vocabulary choice even when its observed forms differ from passage to passage.

The lexical and lemma representations include alternatives that count only individual items and alternatives that count adjacent sequences as well. The paper expresses the choices for the upper length of its mixed representations this way.

n ∈ [2, 3]

n is the maximum length included in a mixed representation. ∈ means that the maximum lies in the indicated range, and 2 and 3 are the two integer choices. At n = 3, the representation keeps single items, pairs and triples together. A comparison between that setting and a unigram setting therefore asks what happens when longer sequences are made available alongside the individual units. In an inflected language this can be important. A sequence of surface forms can occur in several variants, while a sequence of lemmas can collect some of those variants into the same feature.

The authors also count grammatical labels with and without their associated words. Through part-of-speech tagging, Lemuoklis can identify broad classes such as nouns, verbs and adjectives. A vector of these labels can record which categories recur. A vector containing their adjacent sequences can retain a little local order. A repeated tag pattern groups instances in which the broad grammatical categories coincide, even when the words and subject matter are different.

A fine-grained tag adds information such as case, gender or tense to the broad category. That allows the classifier to distinguish uses that would collapse into one broad class. The paper tests compound features that pair original tokens or lemmas with either the coarse tags or the fine-grained tags. A lemma paired with a coarse tag keeps the vocabulary choice and the broad grammatical role. Pairing it with a richer tag makes grammatical distinctions visible too. The paper tests individual compound items and mixes that extend to adjacent items. These comparisons let the researchers check whether adding grammatical specificity helps the classification task.

A compound feature is tied to the occurrence of a particular word or lemma with a particular tag. That is different from giving a classifier an isolated count of the word and an isolated count of the category. If the same lexical item appears with different tags, the paired representation can distinguish those uses. That extra specificity also spreads occurrences across more possible features. A frequent lemma can have several less frequent paired forms, making the value of the finer distinctions an empirical question.

Feature ranking and classifier training

The authors use WEKA 3.7 to run the experiments. They rank features by the association between their occurrence and the class labels, keep the 1,000 highest-ranked features under the chosen representation, and train with those features. The ranking statistic is written as follows.

χ²

χ is the Greek letter chi and ² denotes the square in the name of the chi-squared statistic. The ranking gauges how strongly a feature’s observed distribution departs from what would be expected if it had no association with class membership. A highly ranked feature can help distinguish classes because it is distributed unevenly across them. Its rank by itself leaves open whether the association reflects individual style, a recurring topic or some other property of the collection.

Naïve Bayes Multinomial uses the counts as evidence for each class. Training establishes how the feature occurrences are distributed among the classes. The classifier then scores a passage using the frequencies of the features it contains. The naïve assumption lets it combine their contributions as if occurrences supplied independent evidence conditional on the class. Adjacent character sequences clearly can overlap, and words can recur together. The classifier still gives the authors a simple way to test how far count patterns alone can take the decision.

A Support Vector Machine uses the representation to learn boundaries between classes. The authors use the WEKA configuration that trains with sequential minimal optimization, or SMO, and uses a polynomial kernel. SMO refers to the fitting procedure. The kernel determines how feature representations are compared for defining the decision boundary. The authors retain this configuration because it had performed strongest in their earlier comparisons involving parliamentary transcripts and forum posts. Other parameters retain their defaults. The underlying approach comes from Support-Vector Networks.

The experiment repeats the same general process across candidate sets, profile sample sizes and feature choices. A passage that enters as an age example can have the same lexical representation it would have in an attribution experiment, but the labels used for ranking and training are different. This is one reason a feature set selected for identifying writers cannot simply be assumed to be the best for grouping them by age. The shared setup allows the researchers to compare representations while letting each task determine which feature counts are associated with its own classes. The paper frames this common setup through Machine Learning in Automated Text Categorization.

Experiments and results

What the evaluation counts

All the experiments use stratified 10-fold cross-validation. The dataset is divided into folds whose class proportions are kept similar. Each fold serves in turn as the held-out portion while the remaining folds supply training data. This gives the paper held-out passage predictions throughout each dataset version. The scores describe that version of the corpus and its sampling procedure. At the level of evaluation and benchmarks, the distinction between holding out a passage and holding out the work it came from is important. Evaluation & benchmarks

Accuracy is the share of predictions that match the known labels. For attribution, every mismatch counts as an incorrect writer identification. For age, a prediction of a neighboring age band is still an incorrect answer under exact classification accuracy. The authors also calculate F-scores, which combine precision and recall. They say that the F-scores followed the same trends as accuracy in their experiments and present accuracy in the figures and feature table. The tabulated accuracy values use proportions, while prominent results in the prose appear as percentages.

The paper computes a random baseline for each version of a dataset. Its random prediction rule follows the probabilities of the classes in that version.

∑ⱼ P(cⱼ)²

∑ⱼ adds the terms over the class index j. P(cⱼ) is the probability of class cⱼ in the dataset. The square comes from the chance that the true label belongs to that class and that an independent guess from the same class distribution chooses it too. The baseline adds the chance of a correct guess for each of the available classes.

The other baseline assigns every passage to the most common class.

maxⱼ P(cⱼ)

maxⱼ selects the largest value over all classes indexed by j, and P(cⱼ) is again the probability of class cⱼ. This baseline has the accuracy that follows from always answering with the majority label. It becomes more informative when the classes are unequal, as in the full attribution collections. The figures show the higher of the random and majority baselines, giving each dataset version a reference that reflects its own label distribution.

The authors use McNemar’s test with one degree of freedom to compare paired classifications. In this setting, comparing two systems on the same passages allows attention to fall on the examples where their correctness differs. The feature table marks the highest result in each column and indicates which other results the test did not distinguish significantly from it. This matters when several values are close. The largest displayed number identifies the numerical leader, while the paired comparison informs how confidently the study can separate it from nearby alternatives.

The classification figures summarize the maximum accuracy found over the feature choices for each classifier and dataset condition. Their comparisons describe the best settings the authors tested for each combination, so the features behind one bar can differ from those behind the next. The detailed feature table answers a related question by giving results for individual representations. It uses Naïve Bayes Multinomial for the attribution columns and the Support Vector Machine for the largest profiling columns.

Finding the writer

The largest balanced LIndividual version contains 15,000 passages, with 150 from each of 100 authors. Its full counterpart contains 25,564 passages from the same candidate list. The mean passage lengths in those versions are 289.81 and 289.28 tokens, respectively. The difference between the setups is primarily how much material is available and how unevenly it is distributed by author. A classifier still has to choose among the same names in both versions.

At 100 candidates, Naïve Bayes Multinomial with document-level character trigrams reaches 89.2% accuracy on the balanced data. The corresponding value in the full dataset is 0.891. For the balanced version the table puts lemma unigrams very close to the leading feature in raw accuracy, at 0.889, and lemmas paired with coarse tags at 0.888. The paper nevertheless identifies trigrams as the best feature at this candidate count. The chart gives a cross-section of the comparisons in the same balanced dataset and under the same classifier.

Feature accuracy for balanced LIndividual with 100 candidate writers and Naïve Bayes Multinomial

Character trigrams lead, with lemma unigrams close behind.

Feature accuracy for balanced LIndividual with 100 candidate writers and Naïve Bayes MultinomialStyle markers: 0.045Style markers0.045Function words: 0.442Function words0.442Coarse part-of-speech trigrams with shorter sequences: 0.516Coarse part-of-speech trigrams withshorter sequences0.516Character bigrams: 0.782Character bigrams0.782Surface-token unigrams: 0.841Surface-token unigrams0.841Lemma unigrams with coarse tags: 0.888Lemma unigrams with coarse tags0.888Lemma unigrams: 0.889Lemma unigrams0.889Document-level character trigrams (this paper): 0.892Document-level character trigrams (thispaper)0.892
The numbers
System or settingaccuracy
Style markers0.045
Function words0.442
Coarse part-of-speech trigrams with shorter sequences0.516
Character bigrams0.782
Surface-token unigrams0.841
Lemma unigrams with coarse tags0.888
Lemma unigrams0.889
Document-level character trigrams (this paper)0.892

The gap across feature families is much more apparent than the spacing among the highest scores. Style markers record a general shape, and function words record a restricted portion of the vocabulary. Each is weaker by itself in this setting than the general lexical and lemma representations. Character bigrams and trigrams work from the same document stream, but the choice of window length makes a substantial difference. The next longer window, character four-grams, reaches 0.756 in that same balanced setting, giving the trigram result an immediate comparison on either side.

With smaller lists, the attribution problem produces a different ordering. In the balanced dataset of 3 writers, surface-token unigrams and several other representations reach 1.000 with Naïve Bayes Multinomial. With 20 candidates, lemma unigrams and lemma unigrams paired with coarse tags each reach 0.943 on the balanced version. Character trigrams reach 0.932 there. With 50 candidates, the corresponding balanced results are 0.952 for individual lemmas and 0.951 for lemmas with coarse tags, compared with 0.934 for character trigrams. The best balanced attribution score therefore need not come from the same kind of feature across the candidate counts.

The classifier comparison also depends on candidate count. The authors report a slight edge for the Support Vector Machine on the smaller collections with fewer than 20 candidates and stronger results from Naïve Bayes Multinomial on the larger collections. This differs from their earlier Lithuanian attribution experiments on parliamentary transcripts and forum posts, where the Support Vector Machine had supplied the leading settings. The literary attribution result at the largest candidate list is therefore a change in both the selected classifier and the selected feature type for one of the earlier genres.

The authors report that adding candidates hurt literary attribution less steeply than it had hurt attribution in the earlier Lithuanian collections. Their discussion puts the literary result for 100 candidates ahead of the earlier parliamentary transcript and forum-post results by ∼18.6% and ∼54.6%, respectively. They also describe each experiment’s results as exceeding its baselines. In the balancing comparison, the literary scores show little overall response to using equal author counts, whereas the earlier parliamentary scores benefited from balancing and the earlier forum scores declined. These are comparisons of the sampled literary passage task with the corresponding earlier setups.

Predicting age at publication

The largest LAge collection contains 27,264 passages, averaging 290.23 tokens. It is the setting with a target of 5,000 passages in each age band, subject to the shortage at the ends of the range. The largest version is also the one on which the paper records the strongest age result. With the Support Vector Machine and individual lemmas, the system reaches 78.3% accuracy. Age predictions are evaluated against publication-age bands, including all the intermediate categories.

Feature accuracy for the largest LAge sample with the Support Vector Machine

Individual lemmas lead the age comparison, including against mixtures with longer lemma sequences.

Feature accuracy for the largest LAge sample with the Support Vector MachineStyle markers: 0.245Style markers0.245Function words: 0.445Function words0.445Character trigrams: 0.722Character trigrams0.722Surface-token unigrams: 0.753Surface-token unigrams0.753Lemmas with coarse tags through trigrams: 0.771Lemmas with coarse tags through trigrams0.771Lemma unigrams and bigrams: 0.771Lemma unigrams and bigrams0.771Lemma unigrams (this paper): 0.783Lemma unigrams (this paper)0.783
The numbers
System or settingaccuracy
Style markers0.245
Function words0.445
Character trigrams0.722
Surface-token unigrams0.753
Lemmas with coarse tags through trigrams0.771
Lemma unigrams and bigrams0.771
Lemma unigrams (this paper)0.783

The largest age sample lets the authors compare several ways of representing the same literary passages. The character feature scores come closer to the lexical scores than the broad style markers do. Among the character lengths in this age setting, character four-grams attain 0.726, just ahead of the 0.722 from trigrams. Individual lemmas outperform both. A representation that combines lemmas through trigrams achieves 0.769, while the corresponding mixture of surface forms through trigrams achieves 0.745. Adding longer sequences to the individual features does not produce the strongest result here.

As the age samples grow, the Support Vector Machine becomes the stronger classifier in the paper’s comparison. The authors observe a similar advantage on larger profiling sets in their earlier parliamentary work. Lemmas helped there too, although the favored parliamentary age representation combined sequences through trigrams. The result shared by the two collections is the usefulness of reducing inflected words to their base forms. The preferred amount of local word order differs between them.

Predicting the recorded gender category

The largest LGender version has 10,000 passages and an average length of 289.98 tokens per passage. At the target of 5,000 passages per class, the best entry in the paper’s feature table is 0.890 with the Support Vector Machine and individual lemmas paired with coarse parts of speech. Unpaired lemma unigrams reach 0.889. Several other word-based settings also perform closely. The table thus shows a narrow numerical lead for adding coarse grammatical information to the lemma.

Feature accuracy for the largest LGender sample with the Support Vector Machine

Lemmas paired with coarse grammatical tags lead by a narrow margin over lemmas alone.

Feature accuracy for the largest LGender sample with the Support Vector MachineStyle markers: 0.560Style markers0.560Function words: 0.710Function words0.710Character trigrams: 0.859Character trigrams0.859Surface-token unigrams: 0.884Surface-token unigrams0.884Lemma unigrams with fine-grained tags: 0.886Lemma unigrams with fine-grained tags0.886Lemma unigrams: 0.889Lemma unigrams0.889Lemma unigrams with coarse tags (this paper): 0.890Lemma unigrams with coarse tags (thispaper)0.890
The numbers
System or settingaccuracy
Style markers0.560
Function words0.710
Character trigrams0.859
Surface-token unigrams0.884
Lemma unigrams with fine-grained tags0.886
Lemma unigrams0.889
Lemma unigrams with coarse tags (this paper)0.890

The headline gender result comes from a different part of the experiment. The abstract attributes 100% accuracy to Naïve Bayes Multinomial on comparatively small samples, where character, lexical and morphosyntactic features performed similarly. The conclusion separately highlights strong small-sample performance from the Support Vector Machine with lemma unigrams. These accounts describe the strong results achieved by the respective classifier settings. The largest-sample feature table gives the feature comparison under the Support Vector Machine and should be read on its own sample condition.

The authors contrast the literary gender pattern with the earlier parliamentary one. The best literary scores appear in the smaller samples, while the best parliamentary scores appeared in the largest samples in that study. A larger training collection usually offers examples with more variety. Here the experiment also evaluates on the sampled collection that is being enlarged, so the range of held-out passages can change with sample size. The smaller score on the largest literary sample describes that sample’s combination of training and evaluation difficulty.

What the ablations show

Candidate lists change which features matter

The paper studies the contribution of representations by repeating the same classification task with different input features. It compares character window lengths, surface words and lemmas, grammatical tags alone and in combination with lexical information, and short sequences with mixtures reaching longer ones. It also varies the candidate pool or the sampling of passages. Those comparisons show which choices help the tested classifiers under each condition. They leave the interpretation of individual fragments and their contribution to particular predictions open.

The strongest shift occurs between the balanced versions of LIndividual with 50 and 100 candidates. At 50, the authors single out individual lemmas and lemmas paired with coarse part-of-speech tags as the most effective choices. At 100, character trigrams take the lead. For 20 or fewer candidates the authors describe many character, lexical and compound representations as comparably effective. When the candidate list is short, several quite different descriptions of the passage can supply enough evidence to separate the writers in the collection. Enlarging the list makes the choice among those descriptions more consequential.

The balanced and full versions provide a check on whether the lead for trigrams at 100 candidates is particular to equal representation of writers. The preferred feature stays the same when the full collection is used. By contrast, the scores of word-based features can move with the change in sampling. Surface-token unigrams reach 0.841 on the balanced set of 100 writers and 0.820 on the full set. The two settings have the same possible labels and different amounts of material per label. The paired design supports comparing the ranking of features under those conditions, although balancing changes the mix of passages as well as the frequency of the labels.

How much structure to put into a feature

The character windows give a direct comparison of local context length. On balanced LIndividual with 100 writers, the accuracy falls to 0.662 for character sequences of length 5 and to 0.611 for sequences of length 7, following the peak at trigrams. Longer strings preserve more context in an occurrence, but they also require a longer exact match before the occurrence is counted as the same feature. Shorter strings recur more freely across words and passages. The result shows a clear preference among the lengths the authors tested. The balance between recurrence and specificity gives a possible explanation for that preference.

The authors emphasize that document-level sequences can capture local connections across words. They also suggest that shorter sequences register lexical habits without corresponding too directly to particular words. The data support a comparison among lengths within the document-level procedure. Establishing the value of crossing boundaries specifically would require comparing it with a counterpart that stops at word edges. The paper instead describes several plausible sources of information carried by the successful trigrams, including word choice and adjacent-word fragments.

The word-based comparison tests a different way of handling variation. On the largest age set, the best single lemma representation scores above the corresponding surface-word representation. Lemmatization collects evidence for a vocabulary item across its inflected forms. This can help if the choice of the vocabulary item is more informative for the label than the distribution of its individual forms. The result on LAge supports the practical value of that pooling in this collection. It also shows that the best age setting can use base-form counts successfully without keeping longer base-form sequences.

Tagging and pairing features provide another controlled change in what is visible to the classifier. On the largest age sample, coarse grammatical tags alone score 0.340 as individual tags and 0.441 in the mix that reaches trigrams. Lemma features retain substantially more predictive evidence in the same comparison. In the largest gender sample, keeping the vocabulary and attaching a coarse tag yields the narrow leading result. The analogous feature paired with a fine-grained tag scores 0.886. Finer distinctions can split occurrences that a coarser pairing groups together. Here the finer pairing provides no higher reported accuracy than the coarse one.

The standalone style-marker and function-word comparisons help put these results in perspective. Each removes much of the detailed vocabulary and local character structure from the passage. Those restrictions could in principle favor evidence that recurs across subject matter. On the largest literary attribution and profiling settings, the restricted features trail stronger lexical or character-based alternatives. The experiments thus show that the aggregate measures and function words alone leave out information useful to this collection’s predictions. They do not test the separate contribution of each marker inside a combined classifier.

What changes with the amount of text

The age and gender size comparisons use the same range of target passage counts and give different patterns. The highest age accuracy appears on the largest sample. The highest gender accuracy appears in small samples. The authors propose that random sampling could have put particularly characteristic passages in the small gender collections, with less readily classified instances present when the collection grew. They present that as a hypothesis. The study did not trace the errors to particular writers or passages to establish where the lower scores came from.

Sampling changes what the classifier learns and what it is asked to predict. When a condition includes more passages per class, cross-validation has more examples available for training and also has a different body of held-out material. A comparison across sizes therefore measures performance in each sampled condition. It does not hold the evaluation passages fixed while changing only the amount of training data. The age trend indicates stronger performance on the larger sampled age condition. The gender trend gives a reason to examine how representative the smallest samples were.

The authors say that using the full allocation of literary passages gives little overall benefit for attribution and suggest that additional passages from a writer in this collection may be similar to those already included. Their explanation fits the strong scores achieved with balanced samples, though a different collection could add new works or a greater range of styles when it adds text. The comparison in this study concerns sampling within the available literary material, with the candidate authors held constant between the paired versions.

Genre comparisons change several conditions together

The comparisons with the earlier Lithuanian experiments establish where the preferred features and classifiers differ across the reported collections. They are informative because the authors deliberately reuse major parts of the procedure. The comparisons also involve different kinds of writers, passages of different lengths and different linguistic demands. The paper points to the relative homogeneity and length of the literary passages and to more stable vocabulary as possible explanations for the literary advantage.

The relation between the two normative collections is especially informative. Parliamentary language favored morphosyntactic features in attribution, while literary writing favored character trigrams at the largest candidate count. Forum posts also favored character features in the earlier study, but that shared preference can arise under different conditions. The authors suggest that morphological tools have less opportunity to help on unconventional forum language. In literary text, they stress the ability of document-level character sequences to capture lexical and local contextual regularities. The cross-genre comparison supports the observed differences in feature choice. It does not isolate a single property of literary language responsible for them.

Limitations

Limits the authors identify

The authors qualify the strongest gender result directly. They regard samples of 100, 300, or 500 passages per class as too small to recommend for profiling. Their proposed explanation for the perfect scores depends on which passages happened to enter those samples. The reported outcome establishes that some sampled classification conditions were easy for the tested features and classifiers. The authors reserve judgment about the reason and call for detailed error analysis.

The supply of literary material also limits balancing by age. The extreme age ranges have insufficient passages for the nominal largest sample. The reported count for LAge, 27,264 passages, reflects that shortfall. The corpus-statistics caption associates the imbalance with the age ranges while naming LGender in the same sentence. The dataset descriptions identify LAge as the age task and give LGender 10,000 passages in its largest version. Reading the shortage in light of those descriptions keeps the sampling qualification attached to the age categories it names.

The authors compare their excerpt lengths with recommendations from earlier work. The passages fall below some recommended lengths for attribution, while still exceeding the length of very short texts used in other experiments discussed by the paper. Their figures are therefore evidence for classification of the chosen literary snippets. The paper leaves open how the same pipeline would fare across a length series within this corpus, including passages as short as the electronic messages that motivate part of the research.

The authors also describe the study as a first investigation of Lithuanian literary texts and propose extending the number of writers and the range of profiling dimensions. The current candidate lists stop at 100 authors. The profile targets cover age and gender. The paper discusses other attributes as part of the wider field, but the literary experiments give direct evidence only for the categories they evaluate.

Limits implied by the setup

A central question is what the held-out passage represents. Each literary work contributes snippets, and the paper reports stratified cross-validation without describing a partition that keeps every passage from the same work in one fold. The reported procedure therefore leaves open the possibility that training and evaluation passages come from the same underlying work. Stories and essays can repeat names, settings, expressions and themes across different sections. Those repetitions could help a classifier identify another passage from the work. A test on a previously unseen work by a known candidate would ask how well the observed signals carry across that boundary.

This matters in particular for age and gender profiling. A passage inherits its age label from its work and its gender label from the writer. A recurring phrase or vocabulary pattern could support a profile prediction because it identifies a work or writer familiar from training. The fact that author metadata is withheld as classifier input leaves this possibility intact, since words and characters can still be distinctive of the person or the source work. The paper does not report holding entire writers out of the profiling folds. Its profiling results leave performance on entirely unfamiliar writers undetermined.

The label distributions give a further reason to interpret the profiling scores with care. The table of writers by age and gender shows that the balance between the recorded gender categories varies across age bands. For example, the ≤29 group contains 5 male and 7 female writers, while the ≥70 group contains 12 male and 3 female writers. A feature related to age or associated with a few writers may help in gender prediction if categories overlap unevenly in the available material. Conversely, a feature correlated with the gender labels could help predict some age groups. The experiments establish predictive associations within the sampled corpus. They offer limited grounds for assigning those associations to one demographic characteristic in isolation.

The choice of publication age is another interpretive boundary. The paper derives the label from the publication date and the birth date. It does not establish each author’s age when every passage was composed or revised. Furthermore, accuracy treats every incorrectly chosen age band as a mismatch. A prediction in an adjacent band and a prediction at the far end of the age range both count as wrong. With the reported metric one can compare exact classification performance. Describing the typical size or direction of an age error would require the breakdown left for future analysis.

For attribution, the candidate list is part of the result. The best 100-candidate accuracy assumes the true writer belongs to that list. An unknown writer outside the list would still receive an in-list answer under the stated task. Questions about recognizing when authorship is outside the pool, or assessing a claim about one writer, require a different output and a different evaluation design. The attribution numbers describe how frequently the tested system finds the correct label when that label is among its allowable choices.

The paper specifies stratification, feature ranking and classifier settings, but gives limited detail about the relationship between feature ranking and the fold boundaries. Because the ranking uses class labels, the timing matters for interpreting cross-validation. A ranking fitted within each training fold uses labels available at training time. A ranking fitted across the whole collection would draw on information about the held-out items. The reported description does not establish that the latter occurred. It leaves the precise implementation of fold-local selection unresolved. The best-over-features figures likewise describe the leading measured settings in the experimental comparisons, without an independent evaluation of a feature choice made from those results.

Finally, the cross-genre comparison limits how much can be inferred from the literary advantage. Differences in passage length, subject matter and the relationship between a writer and the rest of a collection all affect what a classifier can learn. Literary works may offer clearer recurring language cues under the reported conditions, as the authors suggest. Demonstrating an independent genre effect would require separating genre from those other changes. The direct result is that the sampled literary passages were more readily classified under the study’s comparisons, with character trigrams strongest for attribution at the largest candidate count and individual lemmas strongest for age.

What came after

Subsequent studies extending this experiment are undocumented here. The authors’ own follow-up agenda was to analyze prediction errors in detail, expand the candidate list and consider additional profiling dimensions. They singled out the unusually high gender scores in small samples as a result that needed closer investigation. Their proposed error analysis would help establish which passages became difficult as more material entered the collection and whether the sampling explanation fit the observed mistakes.

Cite

Cite as Jurgita Kapočiūtė-Dzikienė, Andrius Utka and Ligita Šarkutė. 2015. Authorship Attribution and Author Profiling of Lithuanian Literary Texts. The 5th Workshop on Balto-Slavic Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{kapociutedzikiene2015authorship,
  title = {{Authorship Attribution and Author Profiling of Lithuanian Literary Texts}},
  author = {Jurgita Kapočiūtė-Dzikienė, Andrius Utka and Ligita Šarkutė},
  booktitle = {The 5th Workshop on Balto-Slavic Natural Language Processing},
  year = {2015},
  url = {https://aclanthology.org/W15-5315/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/dzikien-2015-authorship-attribution-author-profiling-lithuanian/