Blog

Guides to working with text

Practical guides to reversing text, Unicode characters, cleanup, counting and common encodings. Each guide explains a real task, shows an example and links to a tool you can try.

Python compare two lists and return differences

How to compare two lists in Python and return the differences, using sets, list comprehensions, Counter and positional checks, and how duplicates, order and normalization change the result.

Convert Tabs to Spaces in Emacs

Learn how to convert tabs to spaces in Emacs for individual regions, buffers, and files, with practical settings for code and text editing.

Set Vim to Indent With Spaces

Learn how to configure Vim to indent with spaces, replace existing tab characters, and control tab width without assuming every tab equals a fixed number of spaces.

Convert HTML to Plain Text in MySQL

Practical ways to convert HTML to plain text in MySQL using string functions, with checks for encoding, spacing and remaining markup.

Why Remove Punctuation in NLP?

Learn why punctuation removal is a common NLP preprocessing step, when it helps, and how to apply it without losing useful text information.