Skip to content

Tools · Text

Tidy and sort text without asking a chatbot

Paste some text, pick one operation, see exactly what changed, then copy or save it. Plain code does the work — no model rewrites your words, and the same input always gives the same output.

Why this exists

People routinely paste small text chores into a chatbot: sort a list, strip bullets, fix broken lines copied out of a PDF. Every one of those has an exact answer and doesn't need a language model. Text runs them locally, counts what it touched, and flags the edge cases it refuses to guess.

The five changes

Sort lines
A to Z or Z to A in UK English dictionary order. Characters inside a line never change, and blank lines drop to the bottom.
Remove bullets and numbering
Strips bullet symbols, dashes and prefixes like 1., a) or (i) from the start of a line, while leaving -5, 3.5 m and A. Smith alone.
Change case
lower, UPPER, Title or sentence case. Code can't tell that "london" is a proper noun, so sentence case lists every word it lowercased that isn't a common English word for you to review.
Tidy spacing and stray characters
Collapses repeated spaces, trailing spaces and runs of blank lines. Strips invisible PDF/web junk like soft hyphens and zero-width spaces, and expands ligatures like "fi". Ordinary letters, digits and punctuation stay untouched.
Fix line breaks
Rejoins lines broken by copying from a PDF, splits run-together list items onto their own lines, breaks jammed sentences where a space went missing, or puts one sentence per line. Words rejoined across a hyphen get listed separately, because "well-being" needs its hyphen back.

Every operation tells you how many changes it made, and running it twice gives the same output as running it once. Your original stays put until you click replace, with one-step undo. Grammar, spelling, rewording and summaries aren't part of this tool.

Compare two lists

Text also compares two line-by-line lists — who you invited against who replied, or what you ordered against what turned up. It splits items into both lists, first only, and second only, with counts for duplicates, without altering either list.

Lines match only when every character is identical, unless you tell it to ignore case or outer spaces. If items nearly match, it flags how many and leaves the call to you rather than assuming two spellings are the same person.

Models used

None. Text is plain code. It downloads nothing and sends nothing anywhere.

What's been tested

Each operation has automated tests on invented text verifying that it changes nothing outside its remit, is idempotent, and handles 50,000 words without stalling.

I also tested my own premise for building it. I expected a chatbot to regenerate the whole text on every job, burning more model work as the text grew. Across ten texts, an AI coding agent wrote a tiny script instead in 19 of 20 tries and kept every word intact. So Text doesn't win on model work — it wins because your text stays on your Mac, the output is deterministic, and it tells you what it won't guess. In one of those runs, the agent quietly turned an ID from "88a" into "88A" during sentence-casing, whereas Text flags it for you to check.

I've used Text in my own work since 21 September 2026.

Status and what's next

Not available to download yet. Text runs in the development Kettle app on macOS.

List comparison landed on 12 October 2026 with automated tests on invented lists, and I still need to put it through real lists of my own.