Text Tools

Words, precision
and power.

The details behind text processing, encoding, and document formats.

✦ 108 Articles ✦ Updated Weekly ✦ Free to Read
✦ AI

✦ AI-powered — understands natural language

Find & Replace Sep 11, 2026 Latest ✦

Word Boundaries and Lookarounds: Precise Find & Replace

Replacing "id" also hits valid, hidden and width. Word boundaries, lookarounds and lazy quantifiers are the three patterns that make find-and-replace precise.

Read article
ROT13 Encoder Jun 13, 2026

ROT13 in Puzzle Design: Why Escape Rooms and ARGs Use a Cipher That's Deliberately Not Secure

ROT13 in an escape room or puzzle hunt isn't there for security — it's there because recognizing "this is a substitution cipher" IS the puzzle, and decoding it afterward is trivial by design. Here's how puzzle designers use ROT13 as a "calibration" cipher, why shift-amount discovery becomes its own puzzle layer, and ROT13's self-inverse property for spoiler-text use.

Morse Code Translator Jun 13, 2026

Morse Code Isn't History: SOS, Aviation Navigation Beacons, and Why Amateur Radio Operators Still Choose CW

SOS — three dots, three dashes, three dots — wasn't chosen for "Save Our Souls." It was chosen because that specific rhythm is virtually impossible to mistake for anything else, even under terrible signal conditions, and works via radio, light, or sound. Here's why Morse code remains actively used today in aviation navigation beacon identifiers and amateur radio CW operation — not as history, but for genuine technical advantages.

Whitespace Cleaner Jun 11, 2026

Whitespace as Syntax: Python Indentation, YAML Structure, Prettier, and .editorconfig

Python uses indentation as syntax; YAML prohibits tabs entirely; Make requires tabs. Here's whitespace as code structure, the tabs vs spaces debate resolved by autoformatters like Prettier and Black, .editorconfig for cross-editor consistency, and the CRLF vs LF line ending problem in mixed-platform teams.

Text Diff Jun 11, 2026

Text Diff in Practice: Legal Redlining, Code Review, and How AI Writing Assistants Show Changes

Legal document redlining, Git pull request review, Word's Track Changes, and AI writing assistants all use the same diff principle. Here's how each context uses comparison differently, why legal diff needs more than plain text comparison, and how AI tools use diff to show suggested edits.

Morse Code Translator Jun 10, 2026

Morse Code and the History of Digital Communication: From Telegraph Networks to Huffman Coding

Morse code was the first digital communication protocol — and its variable-length encoding by letter frequency is the same principle used in JPEG compression today. Here's how Huffman coding originated in Vail's counting printer type cases, why timing disambiguates codes without fixed delimiters, and why CW radio survived into the 21st century.

Character Frequency Jun 10, 2026

Character Frequency and NLP Foundations: How Zipf's Law Underlies Search Engines and Language Models

Word frequency analysis underlies search engines, compression algorithms, and how large language models learn. Here's Zipf's Law, TF-IDF for meaningful keyword extraction, how word embeddings come from co-occurrence statistics, and why the character frequency distribution you measure is the same foundation that GPT models learn from.

Sort Lines Jun 10, 2026

Sort Orders Explained: Why "file10" Sorts Before "file2" and When It Matters

"file10" sorts before "file2" alphabetically — which is correct for strings but wrong for filenames. Here's natural sort vs lexicographic sort, locale-aware collation for multilingual names, multi-column SQL ORDER BY, and why stable vs unstable sort algorithms matter in practice.

String Repeater Jun 10, 2026

String Padding and Repetition Across Languages: Python, JavaScript, SQL, and Bash

Python's str * n, JavaScript's repeat() and padStart(), SQL's RPAD() and LPAD(), and bash printf are all solving the same problem: building strings of specific lengths and patterns. Here's the complete cross-language reference for string repetition and padding with practical formatting examples.

Find & Replace Jun 10, 2026

Automating Text Transformations in Spreadsheets: SUBSTITUTE, REGEXREPLACE, and Bulk Editing

Excel and Google Sheets have SUBSTITUTE, REGEXREPLACE, PROPER, and TRIM functions that automate text transformation across thousands of cells. Here's chained SUBSTITUTE formulas, REGEXREPLACE for phone number formatting and HTML stripping, and practical workflows for cleaning product exports and generating URL slugs.

Text Truncator Jun 10, 2026

Truncation Bugs: Database VARCHAR Silent Data Loss, CSS Overflow, and Windows Path Length Limits

MySQL silently truncates strings that exceed VARCHAR column lengths — no error, just missing data. Here's database silent truncation, CSS text-overflow and multi-line clamping, the accessibility problem with truncated UI text, API response truncation flags, and the Windows 260-character path length problem.

Word & Character Counter Jun 10, 2026

Writing for Word Count: Academic Essays, SEO Content Length, Social Media Limits, and Ad Copy

Academic essays need minimum words to develop an argument; SEO content length correlates with quality but isn't a direct ranking factor; Twitter's 280-char limit shapes writing style; Google Ads allows 30 characters per headline. Here's word count requirements across contexts and why they exist.

Text Reverser Jun 10, 2026

String Reversal and Unicode: Why the Simple Implementation Breaks for Emoji and Combining Characters

Reversing a string in JavaScript with split("").reverse().join("") breaks emoji — each emoji is two code units and the split separates them. Here's why naive string reversal fails for Unicode, how surrogate pairs and combining characters cause problems, and the correct grapheme cluster approach in Python and JavaScript.