Starting a new devlog about Hedghog, a new language learning app and some thoughts about the interlinear display of lemmas.
Splitting text into sentences is one of those tasks that looks simple but on closer inspection is more difficult than you think. A common approach is to use regular expressions to divide up the text on punction marks. But without adding layers of complexity, that method fails on some sentences. This is a method using
spaCy.
Why variables changed inside a Bash pipeline may remain unchanged outside it, and how the lastpipe option alters that behaviour.
A Hazel workflow that extracts text from financial-statement PDFs, renames them consistently, and imports them into DEVONthink with tags.
Recursively renaming DEVONthink tags with AppleScript to simplify a hierarchical tagging system and change its separators.
Removing Russian stress marks in Python with byte replacements or regular expressions, including handling accented Latin lookalikes.
Accessing Anki note-type models from standalone Python scripts, with notes on version compatibility and non-Latin names.
Diagnosing and repairing garbled Cyrillic filenames from Forvo by inspecting character codes and correcting their encoding.
A small command-line tool for placing a Russian stress mark at a specified character position, with argument and pipeline input.
Introducing sterilize-ng, a composable command-line tool for stripping tracking information from URLs.