slop-chop is a text-cleaning tool for removing traces of AI writing. The project is hosted on GitHub (https://github.com/dcadolph/slop-chop)。它的目标是识别并清理 patterns commonly found in AI-generated text, such as em dashes, clichéd words, and fixed phrases, so that the text reads more like human writing.
Purpose and positioning AI writing leaves identifiable "fingerprints," such as frequent use of em dashes, semicolons inserted into sentences, a preference for words like comprehensive and leverage, and opening lines like "In summary." slop-chop removes these patterns in a single pass and also supports user-defined lists of items to delete, making the result closer to an individual's style. Cleaning up these traces by hand is tedious, and asking a model to "not use em dashes" usually lasts only a few sentences; slop-chop applies the same cleaning rules every time, producing consistent results.
Main capabilities The tool contains two processing stages that can be run separately. The first stage is rule processing, which is fast and highly deterministic: replacing characters, deleting marker words, rewriting fixed phrases and vocabulary, running custom patterns, unifying spelling dialects, and tidying punctuation. This stage uses no model, has no cost, and produces the same output on every run. It understands Markdown, and fenced code blocks and inline backtick content are left untouched. The second stage is optional rewriting, which hands the text to a model to handle cases the rules cannot cover, such as rewriting a sentence so that a semicolon is no longer needed, or adjusting the writing tone.
Rule processing also flags 61 structural features, such as the "it's not just X, it's Y" construction, the "let's dive in" opener, the "here's the thing" throat-clearing expression, the "The best part?" fragment reveal, enumerated lists, bold-label bullet points, headings with emojis, and the use of a spaced hyphen instead of an em dash. It can also recognize chat-reply-style tone, such as "let me break this down," "you might be wondering," "happy coding!" and so on. These features are only flagged, not automatically rewritten, because fixing them depends on the context of the whole sentence and is left to the rewriting stage. Users can add custom patterns via the flagPatterns field in a profile.
Usage The project offers several forms of use: CLI, GitHub Action, Obsidian plugin, and MCP server. It is also possible to use the same engine directly in the browser at slop-chop.com without installing anything. On the command line, check is used to flag detected issues, and fix is used to output cleaned text (adding -w rewrites in placemodify files), score measures pattern density in text (0 to 100). check --json outputs a {"findings": [...]} object; fix --json returns {"cleaned": "...", "findings": [...], "remaining": [...], "score": {...}, "scoreAfter": {...}}. Each finding contains the rule, matched text, suggested replacement, and line/column position.
Scoring and gating score gives a density score from 0 to 100; below 25 reads clean, 25 to 54 is mixed, and 55 and above is dense. The score is a lint result, not an authorship determination. score --by-paragraph scores paragraph by paragraph, and --max can use the hottest paragraph as a gate. The GitHub Action can set a max threshold, failing by default when a file's score exceeds 25; setting strict: "true" fails on any single finding. The Action builds the engine from the specified tag, which pins both the engine and the scoring version; scoring-version can be set to fail when the version changes and point to the documentation.
Code file handling For code files such as .go, .py, and .ts, check and score read only comments and docstrings in Python files, so boilerplate in comments is flagged at real line/column positions, while identifiers, strings, and formatting alignment do not trigger. fix refuses to rewrite code files because prose cleanup would break the code. Files can be piped via stdin to be read as plain text, or --as .go can be added to treat stdin as a source file of the specified type and scan only comments. Data files without comments (such as .json and .csv) are skipped with a notice.
Configuration and presets A profile is a JSON file listing what to remove and replace: characters, phrases, vocabulary, regular expressions, blacklists, and several switches. Specify it via --profile, or place .slop-chop.json in the repository to have it picked up automatically from anywhere under that directory; if neither is present, the built-in default configuration is used. Presets are curated packs that can be layered with --preset; built-ins include cleaver, plain, corporate, academic, marketing, no-dashes, typography, and procedure. cleaver is the strongest cut, rewriting words like leverage and robust into plain words; plain turns corporate phrasing into plain English; no-dashes turns all hyphens acting as dashes into commas; typography preserves typographic dashes, curly quotes, and ellipses; procedure is for instructional text, flagging sentences over 20 words in list items and over 25 words elsewhere. Multiple presets can be layered with commas, for example --preset corporate,plain.
Integration and extension The GitHub Action supports checking files in PRs, auto-fixing and pushing back to the branch (same-repository branches only; fork PRs fail with a read-only token), uploading SARIF logs to show alerts in code scanning, and checking PR titles and bodies (set pull-request: "true"). The Action uses actions/setup-go@v7 to install Go; self-hosted runners require version 2.327.1 or newer. The project also provides a Claude Code plugin, with the repository itself serving as the marketplace; add the marketplace first, then install the plugin. The plugin drives the slop-chop binary rather than replacing it, so the binary must be installed and on PATH first. Rule processing is free; rewriting requires a key and is off by default.
Use cases and limitations Suitable for writing workflows that need consistent cleanup of AI writing traces, code comment checking, CI gating, and PR review. Limitations include: the rewriting stage requires a model and a key; structural features are only flagged, not automatically rewritten; the score is rule-set compliance, not an authorship determination; adversarial effectiveness against model rewriting has not been measured; and whether the score aligns with human reader rankings has not been verified. Benchmarks show that among 886 open-source READMEs, 0.8% score above 25, and 41.5% use at least one weighted feature.