Text Fingerprinting
← Project Index Text Fingerprinting

Text Fingerprinting

Stylometry that groups writing samples by how they’re written, not what they say — and a tangent into the much harder problem of detecting puns.

Exploring Started: Nov 2026 Updated: Nov 2026

Overview

A script that uses stylometry — measuring the style of writing instead of its meaning — to group text samples by math. Most of these measurements work without reading the language at all, and the results are genuinely intriguing.

The Pun Tangent

The stylometric features (sentence shapes, rhythm, word-length distributions, punctuation habits) cluster samples by style without understanding a word — which is exactly why they’re cheap. The curiosity that grew out of it was the opposite case: puns. Quantifying a pun needs trickier math and a lot more compute, because a pun is all about meaning — two of them at once — so it resists the language-agnostic tricks that make the rest of it easy. The repo carries a pun test set and dictionary / Webster profiles for that side of the work.

Current Status

The stylometric grouping works well; pun detection is the open, compute-hungry frontier.