Skip to content

v2.1.1 - Detrope Detection

Choose a tag to compare

@matthewsinclair matthewsinclair released this 28 Mar 16:55
· 13 commits to main since this release

Utilz v2.1.1

Added

  • cleanz --detrope - Detects LLM writing tropes in text using regex pattern matching
    • Scans for ~28 mechanically-detectable tropes from the llm-tropes catalog
    • Reports findings with severity levels (HIGH/MEDIUM/LOW) and density analysis
    • Respects density thresholds (only flags low-severity tropes when they exceed the count threshold)
    • Combinable with other cleanz flags (--normalize-quotes, --detect, etc.)
    • 9 new tests (64 total for cleanz)

Example

cleanz --detrope article.md
=== Trope Analysis ===

FINDINGS:
  [HIGH]   SS-01 negative-parallelism    line 3: Here's the thing: it's not about tools. It's about leverage.
  [MEDIUM] WC-02 delve-and-friends       line 1: We must delve into this landscape.
  [LOW]    WC-01 magic-adverbs           3 occurrences (threshold: 3)

SUMMARY:
  High: 1 | Medium: 1 | Low: 1 | Total: 3
  Trope density: 5.4 per 1000 words (heavy)

(C) hello@matthewsinclair.com