A text feature count describes an observed pattern such as the number of times a word, character sequence, or punctuation mark occurs. An authorship method can use several of those counts to compare questioned writing with known examples. The evidence depends on how text was selected, represented, and evaluated under plausible alternatives.
Similar counts can arise from a shared topic, document template, editor, or genre. A short sample may contain too few observations to distinguish any of those influences. Before describing a style resemblance as evidence about authorship, record what was counted, which texts were compared, and what variations the method was tested against.
Key terms
- Stylometry
- Quantitative study of patterns in writing style, including comparisons based on measurable text features.
- Function word
- A word that primarily serves a grammatical role, such as an article, conjunction, or preposition.
- Feature vector
- An ordered collection of measured features representing an observation.
- Ground truth
- Independently established reference information used to evaluate an output or conclusion.
Learning Objectives
- Convert token counts into comparable rates with explicit denominators.
- Recognize how topic, genre, editing, and sample length affect features.
- Compare questioned and reference texts using suitable independently established sources.
- State the scope and limitations of a quantitative authorship result.
Define the Text and What Was Counted
Begin with the unit. A file can contain several letters, a forwarded thread, or a draft with editorial comments. If the question concerns who wrote a paragraph, report that paragraph's boundaries and how quoted material was handled. A count across the full document can combine multiple writers and conceal which text produced the pattern.
Tokenization divides text into units, such as words, characters, or punctuation. An apostrophe can stay within a word or split it. Hyphenation can be seen as part of a compound word or as a line break. Different rules create different counts and denominators. Keep a reproducible record of how the text was divided and use compatible rules across samples.
Preserve the source and the version analyzed. A transcription may regularize spelling, remove footnotes, or repair uneven punctuation. Optical character recognition can read the same letters differently across page qualities or typefaces. Retain sufficient information to verify the input and test dubious passages. An apparent style feature can reflect the process that digitized the document.
Specify which measurable features enter the comparison. Word frequency, punctuation counts, and character sequences describe different aspects of writing. Combining them into one feature vector makes their order and scaling important. The feature extraction lesson explains why features can retain useful patterns while omitting information outside their selection rules.
Check whether multiple copies are independent writing samples. A message quoted in later correspondence can appear in several files while containing only one instance of composition. A published reprint can repeat an earlier edition with edits. Group connected material during evaluation or analyze the differences explicitly if the relationship among versions is itself the evidence question.
Pay attention to marks whose counting depends on language or script. A token rule designed around spaces can handle some writing systems poorly. Punctuation conventions and line breaks can also change between editions or formats. State the language, script, and input type covered by the method, and check that it separates the units it claims to count.
Normalize Counts and Account for Sample Length
Raw counts grow with the amount of text sampled. If two passages contain a term 12 and six times, the first has twice as many occurrences. If the passages have 2,000 and 1,000 words, both have a rate of six per thousand words. Present the count and denominator, then state how the rate was calculated and what counted as a word.
A rate standardizes the denominator but can be unstable in a short sample. One use of a word in a 50-word message gives a rate of 20 per thousand. The next comparable message might omit it entirely. A rate based on 20 occurrences in a 1,000-word text has the same numeric value and gives a different basis for comparing patterns.
Choose a way to handle short documents before examining the result. Validate what the method can resolve at representative lengths. If you combine texts to obtain more words, establish their shared authorship or retain the uncertainty about the combination. Pooling unrelated texts can yield a stable-looking rate that reflects several sources rather than the questioned author.
One frequent word can contribute to several correlated features. Counting a word, its characters, and a phrase that contains it can increase the weight of the same underlying observation. If multiple features appear to support a result, check how the method accounts for dependence and how it performed on independent texts. The number of features alone does not measure the strength of the evidence.
Check consistency across pieces of similar length and context. A count calculated across a book can obscure parts that differ systematically from one another. A comparison by chapter may reveal that quotations cluster in some sections or an editor's notes contribute disproportionate amounts. Keep within-work variation separate from evidence drawn across genuinely independent works.
Test Topic, Genre, and Editorial Effects
Topic can dominate content-word counts. Two writers discussing tides can both use “harbor” more often than a single writer uses it across unrelated subjects. Function words can reduce some effects of topic because they carry grammatical roles. Their frequencies can still change with sentence structure, period, language, genre, and editorial practice.
Genre can change which features a writer uses. A short request, a technical description, and a personal narrative can use different vocabulary and punctuation even with common authorship. Include known writing from contexts relevant to the item under question. If the available samples span different genres, show performance by genre or state where coverage is lacking.
Templates and editorial rules can produce apparent similarities among writers. For instance, people completing one administrative form may repeat identical headings and opening phrases. Decide which recurring material connects to the writing under examination and keep a list of exclusions. If boilerplate details are useful to a separate question about a process or organization, document that as its own claim.
Collaboration complicates authorship labels. One person may draft a paragraph and another may revise it, or several passages may be assembled from copied sources. A method validated on single-authored documents may describe a combined sample poorly. Section-by-section measurements can show variation worth investigating, while requiring independent facts before assigning any section to a writer.
Use negative controls that preserve important similarities. If reference alternatives differ widely in subject and format, the method can look accurate by separating topics or document types. Compare texts from different writers within the same genre or topic and, when relevant, the same writer across varied contexts. That design tests which influences survive the chosen feature rules.
Establish Suitable Reference and Evaluation Material
A reliable reference sample has an independently supported author label and a documented version. A signature, archive record, or authorized writing exercise may supply a starting point, but drafts and published copies may have different contributors. Record the basis of the label and any known editorial handling. An unsupported label can turn an apparent measurement error into a reference problem.
Keep texts linked to the same work outside competing development and evaluation groups. Subsections of one paper share vocabulary, phrasing, and editorial history. A test may be easier if part of that paper was available when features or cutoffs were selected. The reference data lesson explains how to preserve independent evaluation units.
Choose tests that include the possible answers the intended workflow must handle. A comparison among a defined set of authors asks which known reference looks most similar. An examination may also need to allow an unknown author, multiple contributors, or insufficient material. Evaluate how the method behaves when the source is absent or the evidence does not support a clear grouping.
Control which feature choices were made with knowledge of the questioned writing. Trying many word lists, time ranges, or sample combinations can yield one apparent resemblance by chance. Record the selected method and choices that preceded the test. Any later exploratory comparisons should be documented as such, with independent checks where practical.
A study should evaluate results as well as inputs. Report how often known-source texts were associated with plausible references and how often different-source cases appeared similar. Examine unavailable or inconclusive outputs separately. A model that reliably ranks one author above another in a restricted set might give similar scores to unseen authors. The candidate ranking lesson covers that distinction.
State a Finding at the Level the Evidence Supports
A result can say that measured patterns in one passage were closer to those of one defined reference set under a documented analysis. Name the supported comparison conditions and the conditions that were unavailable, such as a matching genre or a competing candidate's writing. A high score may warrant further examination without resolving who produced the text.
If a short passage contains no occurrences of a useful feature, preserve the observation and consider its evidential weight. A rate of zero can be common in short samples from several authors. Longer verified material or other measurements may contribute more. Let the report show why the available length or the stability of the features affected the conclusion.
Document the full analysis record. Include source identifiers, text boundaries, token rules, feature definitions, count denominators, and any statistical comparison applied. Describe how quotes, headings, variants, and omissions were handled. A reviewer can then check both the numerical result and whether its preparation was appropriate to the evidence question.
Separate stylistic results from supporting records. A date, draft archive, or contemporaneous correspondence concerns the text's history. A word-frequency comparison concerns observed language patterns. Results from those sources can support each other when their relationships and uncertainties are made clear. Treating a model output as a final determination can obscure the conditions on which it depended.
A defensible summary can give the direction of a comparison and its strongest caveat. For instance, “The measured word rates were closer to those of Group A in the available business letters. The short questioned passage contained too few observations for this method to support attribution under the evaluated conditions.” That wording retains the measured resemblance without extending it beyond validation.
Can a single word identify a writer?
Why use counts per thousand words?
Are function words independent of topic?
Why do template phrases matter?
Check Your Understanding
Source
- 1.Mosteller and Wallace, Inference in an Authorship ProblemReports the analysis of word rates and candidate authorship in the disputed Federalist essays.