mirror of
https://github.com/ItsssssJack/SlopMonster.git
synced 2026-12-03 20:48:14 +00:00
Every tracked .md file now scores 5/5. Nothing was softened to get there. `python3 tools/test_deslop.py` passes, and a genuinely sloppy markdown file still scores 0/5 and exits 1. Markdown awareness. A literal is not copy. A README that documents `delve` has quoted the word, not shipped it, and a linter that cannot tell the difference makes every catalogue score zero. deslop.py now reads .md through markdown_prose(), which drops fenced blocks, inline code, struck-through text and image alt. Link text stays. The HTML path is untouched, and so is every regex that decides what slop is. Two real bugs found by pointing the tool at itself: 1. The proof rule reached across a full stop. "Don't Make Me Think, 2000. The reader decides" scored as invented proof, because the year swallowed the sentence break and then went looking for a noun. A number and its noun live in one sentence. 2. Stripping markup welded separate lines into one. Deleting a code span turned "you do not have, write [needs number] and move on" into a false rule-of-three. Two table rows each donating one em-dash read as a machine cadence nobody wrote. Code spans now leave a two-letter stand-in, and headings, table cells and list items keep their boundaries. Then the copy itself. Specimens across six files moved into code spans or strikethrough, which is what they always were. Three genuine faults were rewritten rather than marked up: an em-dash pile-up opening SKILL.md, five semicolons in the Jasper transcript, and an "Elevated verbs" heading that used the word it was warning about. Nine regression tests added, each strip paired with a case that must survive it, because the fastest way to score 5/5 is to stop reading. Co-authored-by: Jack Roberts <178647887+ItsssssJack@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com>