riff
A small, fast prose linter. It reads a document, flags the writing tells and clarity problems it finds, and reports them with ruff-style rule codes you can select, ignore, and configure. Static rules are pure Python and run in milliseconds. The semantic rules are yes/no questions for TypeSafe's Jev, a decision model that returns a calibrated probability per judgment instead of generated text; every rule asked about the same paragraph (or section, or document) shares one call.
$ riff draft.md
draft.md: type: blog_post (0.91)
draft.md:1:1: RIF002 heading is Title Case; use sentence case
Understanding The Impact Of Modern Technology
draft.md:3:1: JEV001 Announces what it is about to say instead of saying it p=0.92
Before we dive in, let me lay out what this section will cover.
draft.md:5:1: JEV301 Overused AI filler vocabulary used as filler p=0.88
We leverage a robust, seamless framework to unlock value.
draft.md:9:1: JEV103 A standalone quotable line that carries no real information p=0.79
Every metric that rewards volume punishes leverage.
4 findings in 1 file (RIF002 ×1, JEV001 ×1, JEV301 ×1, JEV103 ×1).
jev-latest: 14 calls, 9,210 input tokens (~$0.0004)
Install
riff is on PyPI as riff-lint (the name riff was taken)
and installs a riff command. It needs Python 3.11 or later.
uv tool install riff-lint # or: pipx install riff-lint, or pip install riff-lint
riff --help
uvx --from riff-lint riff draft.md # run once without installing
The PyPI release can lag main; compare riff --version with the
changelog. To run the latest code from GitHub:
uv tool install git+https://github.com/scale-venture-partners/riff
uvx --from git+https://github.com/scale-venture-partners/riff riff draft.md
To work on riff itself, clone it and use uv:
git clone https://github.com/scale-venture-partners/riff
cd riff
uv sync
uv run riff draft.md
Usage
The examples below assume riff is on your PATH. From a clone, prefix each with uv run
(uv run riff draft.md).
riff draft.md # lint one file (positional)
riff -f report.docx # or the -f/--file flag form
riff *.md notes.txt slides.pptx # many files, mixed formats
riff https://example.com/blog/post # fetch a web page and lint just its article body
riff draft.md --no-jev # static rules only, no API key needed
riff draft.md --select JEV,RIF # only these codes/prefixes
riff draft.md --ignore JEV002 # keep defaults, drop one rule
riff draft.md --extend-select JEV401 # keep defaults, add an off-by-default rule
riff draft.md --debug-jev # print every Jev probability, to tune thresholds
riff email.txt --type email # force the document type (skips classification)
riff draft.md --no-classify # don't classify; type-specific rules run everywhere
riff draft.md --model openai:gpt-6-luna # another decision model (see below)
riff draft.md --format json # machine-readable output
riff draft.md -q # findings only, no summary line
riff draft.md --config ci/riff.toml # use this config instead of discovering one
riff --outline deck.pptx # print the sections, titles and blocks riff reads, and exit
riff --list-rules # the full catalog
riff --explain JEV001 # one rule in detail
riff --compare draft.md edited.md # check an edit kept every claim
riff --help lists every flag. Color is on in a terminal; --no-color or NO_COLOR=1 turns it off.
Supported formats: Markdown (.md, .markdown), plain text (.txt, .text), HTML (.html,
.htm), Word (.docx), PowerPoint (.pptx). Findings report a line and column for text formats,
and a paragraph or slide label for Office formats.
URLs: pass an http(s) URL to fetch the page and lint only its article body. riff picks the
largest <article>, else <main>, else <body>, drops navigation, headers, footers, and sidebars,
and narrows to the block that holds most of the paragraph text. Findings are labelled block N
(position in the extracted body), since fetched HTML is often minified onto one line.
Exit codes: 0 clean, 1 findings, 2 a usage or file error, a missing API key, or a Jev
request that failed (a lint with failed requests is incomplete, so it is never reported as clean).
--compare uses the same codes: 1 means the rewrite lost or added something.
Checking an edit
Fixing what riff flags is an edit to how a draft sounds, and it should not change what the draft claims.
The two ways that goes wrong, a claim dropped or a fact invented, both read fluently afterwards.
riff --compare SOURCE REWRITE compares the two versions and reports every number, name, quotation, code
span and link target the rewrite lost or added, plus any drop in superlative ("the single most"), scope
("every", "only"), negation and hedge ("roughly") constructions. It exits 1 when it finds something;
--waive TOKEN silences a finding that is a rephrasing, and --format json gives machine-readable output.
It is lexical on purpose: an embedding scores a rewrite that dropped a ranking word as nearly identical to
the source. Ported from the declauding skill's
declaude_diff.py.
The Jev-backed rules
The semantic rules, and the document-type classifier, need a decision model. The default is Jev: set
TYPESAFE_API_KEY in the environment (create one at https://console.typesafe.ai/). Without a key,
riff draft.md stops with exit code 2 and says how to fix it, rather than quietly running fewer
rules; riff draft.md --no-jev runs the static rules alone, and --type sets the document type
without a classification call.
Other decision models
Jev is the default, but riff runs on any decision model: one that returns a calibrated probability per yes/no question instead of generated text. Chat and completion models (GPT, Claude, and the like) are not decision models, and riff rejects them. riff talks to decision models through Pydantic AI's decision models, plus OpenAI's Decisions API directly:
riff draft.md # Jev, TYPESAFE_API_KEY
riff draft.md --model typesafe:jev-latest # the same, spelled out
riff draft.md --model openai:gpt-6-luna # OpenAI's Decisions API, OPENAI_API_KEY
export SYSTEM_ONE_BASE_URL=http://localhost:8000 # any server that speaks POST /v1/systemone
riff draft.md --model system-one:laya # Laya, CLM, an Ollama decision model...
OPENAI_BASE_URL overrides the OpenAI host, and SYSTEM_ONE_API_KEY is sent if a System One
server needs one. Set the model for a project with model = "openai:gpt-6-luna" in riff.toml.
Thresholds are tuned to Jev. Another model's probabilities sit on a different scale, so check
its findings with --debug-jev and set [thresholds] for it before trusting the output.
Small-context models (Ollama's tev1 reads about 2,000 tokens) cannot hold riff's full rule set;
riff warns when a prompt overflows, and --select asks fewer rules per run.
Each Jev rule is one yes/no (Noul) question asked about one part of the document: a paragraph for
most rules, or a sentence, a title, a section, or the whole document (see below). It is phrased so a
high probability means the tell is present. riff prints that probability (p=0.93) on every Jev
finding, and you set a per-rule threshold to tune sensitivity. The document text is sent to the
API as data; treat any content you lint accordingly.
How riff reads a document
riff reads every file as a hierarchy, and every rule declares the level it judges:
document the whole piece -- its text, or its outline of titles read in order
└─ section a heading and everything under it; in a deck, one slide
├─ title a heading or a slide title
└─ block a paragraph, list item, table cell, or speaker notes
└─ sentence one sentence
Most rules read a block. Sentence-length (CLR001) reads sentences. Rules that ask about
narrative sit higher: whether a slide title states a claim reads a title (JEV701), whether a
section's body delivers its title reads a section (JEV702), and whether a deck's titles tell its
argument on their own reads the document through its outline (JEV711). One Jev call is made per
unit at each level, so a section rule costs one call per section, not per paragraph.
A document-scope rule also chooses what it is shown: the prose (text, the default), the titles in
order (outline), or each section's title with its opening line (structure). The outline view is how
a reader skims a deck or a report's headings to follow the argument, so that is what narrative rules
read.
Markdown, HTML and Word headings nest into sections by level; text before the first heading is an
untitled lead section. A deck's slides are its sections, its slide titles their titles, and a slide's
speaker notes belong to it. riff --outline FILE prints the hierarchy as riff reads it.
Slide decks
A .pptx is linted as a presentation: the type comes from the file format, not from
classifying the text, so the conventions of a deck -- a cover with a presenter and date, an agenda
that announces what's coming, a closing "Thank you" -- are not read as a letter's sign-off or an
essay's preamble (--type still overrides).
- Short copy is covered. Most slide text is a label or a short line; three quarters of a typical
deck's blocks are under eight words. Decks use a 4-word floor for Jev (8 for prose formats;
jev-min-words/--jev-min-wordsto change it). Under eight words, a block is asked only the rules that can judge a fragment -- word choice, inflated stakes, vague abstraction -- not the discourse rules (preamble, quotable line, tie-back) that need sentences around them. - Titles are found in decks built from text boxes. A deck generated by a slide library often has
no title placeholders; riff takes the largest type on the slide (20pt or more, at least two words,
not a display figure like
$2.4B) as its title, so heading and title rules see it. - Narrative rules.
JEV701flags topic-label titles ("Market overview") where a claim belongs;JEV702a slide or section whose body doesn't support its title;JEV711an outline whose titles, read alone, don't tell the argument (the consultant's ghost-deck test);RIF005a numbered step or part that comes after a later one; andJEV703(opt-in) a slide making two points. - Charts are acknowledged, not read. riff reads text only. A slide whose evidence is a chart or picture tells the section rules so, rather than looking unsupported.
Configuration
riff reads riff.toml (or .riff.toml), or a [tool.riff] table in pyproject.toml, from the
file's directory upward. Command-line flags override the file. select/ignore take full codes
(JEV001) or prefixes (JEV, RIF1), with ruff's semantics.
# riff.toml
select = ["RIF", "CLR", "JEV"] # omit to use every default-on rule
ignore = ["JEV002"] # drop reasoning-leak (noisy on reflective writing)
extend-select = ["JEV401"] # turn on a default-off rule (passive voice)
extend-ignore = ["CLR001"] # drop a rule on top of `select`/`ignore`
jev = true # set false to skip semantic rules
model = "jev-latest" # or "openai:gpt-6-luna", "system-one:<name>"
classify = true # set false to skip document-type classification
# type = "memo" # force the document type for every file under this config
jev-concurrency = 8 # Jev requests in flight at once
max-sentence-words = 40 # CLR001 threshold
max-reading-grade = 12 # CLR002 threshold
jev-min-words = 4 # shortest paragraph or sentence sent to Jev (default 8; 4 for .pptx)
[thresholds] # per-rule Jev sensitivity, 0..1
JEV001 = 0.7
JEV103 = 0.75
Document types
Before the rules run, riff classifies the whole document with one Jev question: is it an
email, a memo, an SMS, an essay, a blog post, a report, and so on. The detected type prints
above the findings (type: email (0.88)).
Types let a rule apply to some kinds of writing and not others. A greeting and sign-off are
normal in an email but a tell in a memo or SMS, so the built-in JEV112 rule skips
email and letter and flags a greeting anywhere else.
- Force the type with
--type email(or any type below). This skips classification, so it needs no API key and is the escape hatch when the classifier is wrong or the input is a short excerpt. - Turn classification off with
--no-classify. Type-specific rules then run everywhere, since the type is unresolved. An unresolved type never silently drops a rule.
The type identifiers are: sms, email, chat_message, memo, letter, essay,
blog_post, article, report, academic_paper, book_chapter, documentation,
release_notes, marketing_copy, social_post, product_description, review,
press_release, resume, script, poem, notes, presentation, other. A .pptx is a
presentation from its format, without a classification call.
Custom rules
The built-in rules are deliberately generic. Anything specific to your team,
house style, or domain you add in your own riff.toml with [[custom_rules]]. No
code changes, no fork. Three kinds: jev (a question for the model), phrase (literal strings,
offline) and regex (a pattern, offline).
# A Jev rule: a yes/no question asked about your text (needs a decision model, as above).
[[custom_rules]]
code = "TEAM001"
name = "no-competitor-names"
type = "jev"
summary = "Names a competitor"
question = "Does this passage name a specific competing product or company?"
threshold = 0.6
scope = "block" # the level it judges: "sentence", "block" (a paragraph), "title", "section", or "document"
# view = "outline" # document scope only: "text" (default), "outline" (titles in order), "structure"
# fragments = true # block scope: also ask about blocks under eight words (labels, slide bullets)
skip_for = ["email", "letter"] # never run for these document types
# applies_to = ["memo", "report"] # or: run ONLY for these types
# A phrase rule: literal strings flagged offline, no API key needed.
[[custom_rules]]
code = "TEAM002"
name = "house-style-bans"
type = "phrase"
summary = "House-style banned phrase"
phrases = ["circle back", "synergy", "leverage", "boil the ocean"]
# A case-sensitive phrase: "Founders", capitalized, is house style.
[[custom_rules]]
code = "TEAM003"
name = "lowercase-founders"
type = "phrase"
summary = "Founders is capitalized"
phrases = ["founder", "founders"]
case-sensitive = true
# A regex rule, for what a phrase can't express: a punctuation mark, an emoji range.
# Case-sensitive unless ignore-case = true. blocks = "all" also checks titles and headings,
# where a deck carries much of its copy (the default, "prose", checks paragraphs and lists).
[[custom_rules]]
code = "TEAM004"
name = "no-exclamations"
type = "regex"
summary = "Exclamation mark or emoji"
pattern = "!|[\U0001F300-\U0001FAFF]"
blocks = "all"
Custom codes must not collide with a built-in code. They are enabled by default and
obey the same select/ignore/threshold controls as built-in rules, so
--select TEAM runs only yours and --ignore TEAM002 drops one.
Rules
107 rules (82 semantic, 25 static). A · means off by default; enable it with --select or --extend-select.
CLR — Clarity metrics (arithmetic Jev can't do)
| Code | Rule | On | Kind | Level | What it flags | Source |
|---|---|---|---|---|---|---|
CLR013 |
flat-certainty-register | · | static | document | Prose is dense with the vocabulary of the flat-certainty register | Abraham, load-bearing PR-description corpus, via declauding references/corpus.md; declauding (Austegard, github.com/oaustegard/claude-skills), entries 43-47 |
CLR014 |
echoed-skeleton | · | static | document | Consecutive sentences built on the same word-for-word skeleton | declauding (Austegard, github.com/oaustegard/claude-skills), entry 26 (forced triad, third shape) |
CLR015 |
anaphora-run | · | static | document | Three sentences or clauses in a row open on the same two words | declauding (Austegard, github.com/oaustegard/claude-skills), entry 26 (forced triad, anaphora form) |
CLR001 |
long-sentence | static | document | Sentence longer than the configured word limit | Williams | |
CLR002 |
hard-to-read | · | static | document | Paragraph reading grade above the configured level | Williams |
CLR003 |
duplicate-paragraph | static | document | Paragraph repeated near-verbatim elsewhere | tropes.fyi | |
CLR004 |
repeated-contrast-frame | static | document | Leans on 'X instead of Y' / 'not X but Y' framing | tropes.fyi | |
CLR005 |
uniform-sentence-length | static | document | Sentence lengths are unusually even | Desaire et al. 2023 (PMC10328544); Wikipedia, Signs of AI writing | |
CLR006 |
uniform-paragraph-length | static | document | Paragraph lengths are unusually even | Desaire et al. 2023 (PMC10328544); Wikipedia, Signs of AI writing | |
CLR007 |
conclusion-closers | static | document | Paragraphs keep closing on a 'So…' / 'which is why…' takeaway | tropes.fyi | |
CLR008 |
uniform-section-size | · | static | document | Sections are all about the same length | Corpus calibration (human technical posts vs AI drafts) |
CLR009 |
paragraph-too-long | · | static | document | Paragraph runs past the sentence limit | Google developer documentation style guide: paragraphs |
CLR010 |
bold-density | static | document | Too much of the prose is bold | Nielsen Norman Group: formatting long-form content | |
CLR011 |
wall-of-text | static | document | A long document with no headings and no lists | Nielsen Norman Group: how users read on the web; Microsoft scannable content | |
CLR012 |
slide-load | · | static | document | A slide carries too many words or bullets, or its title is too short or long | Alley, The Craft of Scientific Presentations (assertion-evidence) |
JEV — Semantic rules (Jev model) — the bulk of the catalog
| Code | Rule | On | Kind | Level | What it flags | Source |
|---|---|---|---|---|---|---|
JEV001 |
preamble | Jev | block | Announces what it is about to say instead of saying it | tropes.fyi | |
JEV002 |
reasoning-leak | Jev | block | Narrates its own writing or thinking process | tropes.fyi | |
JEV003 |
premise-stacking | · | Jev | block | Makes its point only after a wall of its own evidence | tropes.fyi |
JEV004 |
tie-back | Jev | block | Closes by restating the answer and looping back to the question | tropes.fyi | |
JEV005 |
belaboring | · | Jev | block | Defends a minor point against an objection nobody raised | tropes.fyi |
JEV006 |
signposted-conclusion | Jev | block | Explicitly announces that it is concluding | tropes.fyi | |
JEV007 |
fractal-summary | · | Jev | block | Restates itself at the start or end of a section | tropes.fyi |
JEV008 |
enumerated-prose | Jev | block | A listicle disguised as prose ("The first… The second…") | tropes.fyi | |
JEV009 |
never-ending-conclusion | · | Jev | block | The ending stacks clause after clause instead of stopping | tropes.fyi |
JEV010 |
formulaic-structure | Jev | document | Follows a formulaic template, hitting every expected beat in order | tropes.fyi | |
JEV011 |
revision-artifact | Jev | block | Leaves a note about its own edits that the final reader doesn't need | Observed in AI-edited slides and docs | |
JEV013 |
uniform-front-loading | Jev | block | Every paragraph opens by stating its point, with no digression or build-up | Corpus calibration; NN/g front-loading (the inverse is the human norm) | |
JEV012 |
no-discernible-point | · | Jev | document | No single point a reader could state after reading it | declauding, workflow step 1a (Austegard); replies to Vinitsky's 2026-11-09 post on editing LLM text |
JEV014 |
contents-list-standfirst | · | Jev | document | Opens with a contents list shaped as a sentence ('X, plus Y') | declauding register, entry 42 (Austegard) |
JEV101 |
stakes-inflation | Jev | block | Inflates ordinary stakes to world-historical significance | tropes.fyi | |
JEV102 |
invented-concept-label | Jev | block | Coins an abstract term as if it were established | tropes.fyi | |
JEV103 |
quotable-bait | Jev | block | A standalone quotable line that carries no real information | tropes.fyi | |
JEV104 |
forced-figurative | · | Jev | block | A simile or metaphor reached for to sound clever, not to clarify | tropes.fyi |
JEV105 |
false-vulnerability | · | Jev | block | Performative self-awareness or risk-free 'honesty' | tropes.fyi |
JEV106 |
collaborative-we | · | Jev | block | Drifts into an unearned collective 'we' | tropes.fyi |
JEV107 |
rule-of-three | · | Jev | block | Stacks parallel triples (tricolons) back to back | tropes.fyi |
JEV108 |
false-suspense | Jev | block | A "here's the kicker" transition promising a revelation | tropes.fyi | |
JEV109 |
pedagogical-voice | Jev | block | A hand-holding, teacher-to-student voice | tropes.fyi | |
JEV111 |
formulaic-close | Jev | block | A canned, low-pressure sign-off | tropes.fyi | |
JEV112 |
misplaced-greeting | Jev | document | A personal greeting or sign-off where the format doesn't call for one | tropes.fyi | |
JEV110 |
futurist-invitation | · | Jev | block | "Imagine a world where…" salesmanship | tropes.fyi |
JEV113 |
stranded-auxiliary | · | Jev | block | A reversal that lands on a bare auxiliary ('The tool died; the data didn't.') | declauding register, entry 49 (Austegard) |
JEV114 |
welded-epigram | · | Jev | block | A factual clause welded to a second clause restating it as a maxim | declauding register, entry 39 (Austegard) |
JEV115 |
spec-ese | · | Jev | block | Reads like a standards document instead of a person explaining | declauding register, entry 40 (Austegard) |
JEV201 |
one-point-dilution | · | Jev | block | Restates one idea several ways without adding anything | tropes.fyi |
JEV202 |
superficial-analysis | Jev | block | Attaches hollow significance to a mundane fact | tropes.fyi | |
JEV203 |
despite-challenges | · | Jev | block | Raises a problem only to immediately wave it away | tropes.fyi |
JEV204 |
vague-attribution | Jev | block | Attributes a claim to an unnamed authority | tropes.fyi | |
JEV205 |
appeal-to-familiarity | · | Jev | block | Asserts canonical status without evidence | tropes.fyi |
JEV207 |
generic-boilerplate | Jev | block | Interchangeable boilerplate that could describe almost anyone | tropes.fyi | |
JEV208 |
faux-personalization | · | Jev | block | Sprinkles specifics to seem researched without genuine detail | tropes.fyi |
JEV206 |
rapid-fire-analogies | · | Jev | block | Lists historical companies or shifts to build false authority | tropes.fyi |
JEV209 |
exhaustive-negation | · | Jev | block | An absolute negative stands in for the evidence ('nothing else could cause it') | declauding register, entry 47 (Austegard); Abraham, load-bearing PR-description corpus, via declauding references/corpus.md |
JEV210 |
totalizing-designation | · | Jev | block | Claims a total where a part was shown ('that's the whole point') | declauding register, entry 51 (Austegard) |
JEV211 |
retroactive-significance | · | Jev | block | Grades a passage the reader already read ('that's why X mattered') | declauding register, entry 50 (Austegard) |
JEV212 |
speculative-gap-filling | · | Jev | block | Writes about a missing source, then fills the gap with a stock guess | declauding register, entry 33 (Austegard) |
JEV301 |
ai-vocabulary | Jev | block | Overused AI filler vocabulary used as filler | tropes.fyi | |
JEV302 |
magic-adverb | Jev | block | An adverb inflating significance ('quietly', 'fundamentally') | tropes.fyi | |
JEV303 |
ornate-noun | Jev | block | An ornate or grandiose noun where a plain word fits | tropes.fyi | |
JEV304 |
promotional-language | Jev | block | Reads like marketing copy rather than description | tropes.fyi | |
JEV305 |
empty-transition | · | Jev | block | A filler transition that connects nothing | tropes.fyi |
JEV306 |
serves-as-dodge | · | Jev | block | A pompous copula ('serves as', 'stands as') instead of 'is' | tropes.fyi |
JEV307 |
synonym-cycling | · | Jev | block | Cycles synonyms for one referent instead of repeating the word | tropes.fyi |
JEV308 |
comma-clipped-tail | · | Jev | block | A short tail hung off a comma instead of landing the point | tropes.fyi |
JEV309 |
certainty-adverb | · | Jev | block | A bare adverb asserts the evidence ('plainly', 'provably', 'outright') | declauding register, entry 43 (Austegard); Abraham, load-bearing PR-description corpus, via declauding references/corpus.md |
JEV310 |
verification-compound | · | Jev | block | A compound claims how it was checked ('byte-identical', 're-derived') | declauding register, entry 45 (Austegard); Abraham, load-bearing PR-description corpus, via declauding references/corpus.md |
JEV311 |
juridical-register | · | Jev | block | Code or a process described as a court ('refuses', 'ruling', 'carve-out') | declauding register, entry 44 (Austegard); Abraham, load-bearing PR-description corpus, via declauding references/corpus.md |
JEV312 |
privative-coinage | · | Jev | block | Names a thing by what was not done to it ('ungated', 'unwired', 'vacuous') | declauding register, entry 46 (Austegard); Abraham, load-bearing PR-description corpus, via declauding references/corpus.md |
JEV401 |
passive-voice | · | Jev | block | Passive voice where the actor matters | Williams |
JEV402 |
nominalization | · | Jev | block | The action is buried in an abstract noun | Williams |
JEV403 |
wordy-phrase | Jev | block | A multi-word phrase where one word would do | Williams | |
JEV404 |
hedging | · | Jev | block | Vague hedging that weakens the claim without adding precision | Williams |
JEV405 |
noun-stack | · | Jev | block | Three or more nouns stacked as modifiers ('dry-run write prevention') | declauding register, entry 53 (Austegard); Clark, Martin & Mahowald, arXiv 2610.29162, via declauding entries 53-56 |
JEV406 |
verbed-noun | · | Jev | block | An ad-hoc noun used as a verb ('footnote it', 'bucket them') | declauding register, entry 54 (Austegard); Clark, Martin & Mahowald, arXiv 2610.29162, via declauding entries 53-56 |
JEV407 |
dropped-that | · | Jev | block | Optional 'that' left out of a long clause, so the clause boundary is invisible | declauding register, entry 55 (Austegard); Clark, Martin & Mahowald, arXiv 2610.29162, via declauding entries 53-56; Levy & Jaeger 2007 |
JEV408 |
distant-verb | · | Jev | block | Subject held apart from its verb by a list or aside | declauding register, entry 56 (Austegard); Clark, Martin & Mahowald, arXiv 2610.29162, via declauding entries 53-56; Gibson 1998 |
JEV501 |
negative-statement | Jev | block | Says what something is not, instead of what it is | Strunk & White, The Elements of Style | |
JEV502 |
vague-abstraction | Jev | block | Abstract, general language where concrete detail would serve | Strunk & White, The Elements of Style | |
JEV503 |
weak-intensifier | Jev | block | Leans on 'very', 'rather', 'pretty', 'quite' for emphasis | Strunk & White, The Elements of Style | |
JEV504 |
loose-sentence-chain | · | Jev | block | Two or more clauses strung together with and / but / so / which | Strunk & White, The Elements of Style |
JEV505 |
faulty-parallelism | · | Jev | block | Coordinate ideas in a series expressed in mismatched forms | Strunk & White, The Elements of Style |
JEV601 |
not-task-oriented | · | Jev | block | Documentation that describes the thing instead of telling the reader how to use it | Hargis et al., Developing Quality Technical Information (IBM) |
JEV602 |
undefined-term | · | Jev | block | An acronym or specialized term used without being defined on first use | Hargis et al., Developing Quality Technical Information (IBM); Microsoft Writing Style Guide |
JEV603 |
diff-anchored-docs | · | Jev | block | Documentation that narrates a change instead of describing the current state | declauding register, entry 34 (Austegard); declauding step 4a (the newcomer read) |
JEV610 |
buried-conclusion | Jev | document | Makes the reader work through context before stating the conclusion | Minto, The Pyramid Principle; Garner, HBR Guide to Better Business Writing | |
JEV620 |
editorializing | Jev | block | Opinion or loaded language inserted into what is presented as reporting | AP Stylebook; Kovach & Rosenstiel, The Elements of Journalism | |
JEV630 |
feature-not-benefit | Jev | block | Lists features without translating them into a benefit to the reader | Ogilvy, Ogilvy on Advertising; Bly, The Copywriter's Handbook | |
JEV640 |
on-the-nose-dialogue | Jev | block | Dialogue that states feelings or plot directly instead of implying them | McKee, Story; Field, Screenplay | |
JEV650 |
forced-rhyme | Jev | block | Rhyme that distorts word choice or syntax to hit the rhyme | Oliver, A Poetry Handbook; Fry, The Ode Less Travelled | |
JEV660 |
vague-changelog-entry | Jev | block | A release note that says nothing specific ('various improvements') | Keep a Changelog (keepachangelog.com) | |
JEV670 |
weak-resume-bullet | Jev | block | A resume entry with no strong action verb or concrete result | Resume conventions (strong action verbs, quantified results) | |
JEV701 |
label-title | Jev | title | A slide title that names a topic instead of stating the slide's point | Alley, The Craft of Scientific Presentations (assertion-evidence) | |
JEV702 |
title-not-delivered | Jev | section | A section or slide whose body doesn't support what its title says | Minto, The Pyramid Principle | |
JEV703 |
two-points-one-slide | · | Jev | section | A slide that makes more than one main point | Alley, The Craft of Scientific Presentations (assertion-evidence) |
JEV704 |
verdict-heading | · | Jev | title | A coy, thesis-shaped or obituary heading where a plain label belongs | declauding register, entry 7 (Austegard); declauding register, entry 52 (Austegard) |
JEV705 |
abstract-heading | · | Jev | title | A heading whose head noun is an abstraction ('Spawn availability') | declauding register, entry 41 (Austegard) |
JEV711 |
ghost-deck | Jev | document (outline) | The titles, read in order, don't tell the argument on their own | Minto, The Pyramid Principle; the consultant's 'ghost deck' test |
RIF — Typography and structure (exact checks Jev can't see)
| Code | Rule | On | Kind | Level | What it flags | Source |
|---|---|---|---|---|---|---|
RIF010 |
predicate-hyphen | · | static | document | Compound keeps its hyphen after the noun ('the team is cross-functional') | declauding (Austegard, github.com/oaustegard/claude-skills), entry 36; Chicago Manual of Style 7.85 |
RIF001 |
decorative-unicode | static | block | Curly quotes or arrows (glyphs Jev can't see) | tropes.fyi | |
RIF002 |
title-case-heading | static | document | Heading capitalizes every word | tropes.fyi | |
RIF003 |
bold-first-bullets | static | document | Most list items open with a bold lead-in | tropes.fyi | |
RIF004 |
revision-badge | static | block | Note about an edit ("+2 added", "updated to include") left in the text | Observed in AI-edited slides and docs | |
RIF005 |
out-of-order-parts | static | section | A numbered step or part comes after a later one | Minto, The Pyramid Principle | |
RIF006 |
heading-hierarchy | static | document | Heading levels skip, a section has one subsection, or h1 repeats | Google developer documentation style guide: headings; APA Style: headings | |
RIF007 |
heading-form | static | document | Heading carries a number prefix, a link, or a leading emoji | Google developer documentation style guide: headings; Wikipedia, Signs of AI writing | |
RIF008 |
changelog-shape | static | document | Changelog departs from the Keep a Changelog layout | Keep a Changelog 1.1.0 | |
RIF009 |
single-item-list | static | document | A list with one item | Google developer documentation style guide: lists |
Sources
The general catalog draws on:
- AI writing tells from tropes.fyi and Wikipedia's Signs of AI writing: negative parallelism, magic adverbs, signposted conclusions, and the rest.
- Joseph M. Williams, Style: Lessons in Clarity and Grace: wordy phrases, nominalizations, passive voice, sentence length, and readability.
- Strunk & White, The Elements of Style: positive form, concrete language, weak intensifiers, loose-sentence chains, and parallel form.
- The declauding register (Oskar Austegard, MIT): flat certainty, compressed syntax, staged closers, and doc headings; with the corpus figures it cites from Louis Abraham's load-bearing study of GitHub pull request descriptions, and Clark, Martin & Mahowald (arXiv 2610.29162) on compressed syntax in model output.
- Stylometry for the rhythm rules: Desaire et al. 2023 on sentence- and paragraph-length variation, with thresholds calibrated on public human technical posts.
- Structure norms from the Google developer documentation style guide, APA Style, Nielsen Norman Group, and Keep a Changelog.
Almost every tell is a Jev judgment: pattern-matching misses paraphrases and fires on look-alikes, so anything that depends on meaning or context is a model question, not a regex. Only what Jev cannot do stays in code: exact glyphs it never sees (curly quotes, arrows), structural facts in markup, comparison across paragraphs, and arithmetic (sentence length, reading grade, rates).
Rules by document type
Rules gated to particular kinds of writing, and the sources they cite (generated from the catalog). Every other rule runs on every type, apart from types it explicitly skips.
| Type | Rules | Sources |
|---|---|---|
| memo | JEV610, JEV702, RIF006 |
Minto, The Pyramid Principle; Garner, HBR Guide to Better Business Writing; Google developer documentation style guide: headings; APA Style: headings |
| essay | JEV013, JEV702 |
Corpus calibration; NN/g front-loading (the inverse is the human norm); Minto, The Pyramid Principle |
| blog_post | JEV013, JEV702, JEV704 |
Corpus calibration; NN/g front-loading (the inverse is the human norm); Minto, The Pyramid Principle; declauding register, entry 7 (Austegard); declauding register, entry 52 (Austegard) |
| article | JEV013, JEV620, JEV702 |
Corpus calibration; NN/g front-loading (the inverse is the human norm); AP Stylebook; Kovach & Rosenstiel, The Elements of Journalism; Minto, The Pyramid Principle |
| report | JEV602, JEV610, JEV702, RIF006 |
Hargis et al., Developing Quality Technical Information (IBM); Microsoft Writing Style Guide; Minto, The Pyramid Principle; Garner, HBR Guide to Better Business Writing; Google developer documentation style guide: headings; APA Style: headings |
| academic_paper | JEV602, RIF006 |
Hargis et al., Developing Quality Technical Information (IBM); Microsoft Writing Style Guide; Google developer documentation style guide: headings; APA Style: headings |
| documentation | JEV601, JEV602, JEV603, JEV704, RIF006, RIF009, CLR011 |
Hargis et al., Developing Quality Technical Information (IBM); Microsoft Writing Style Guide; declauding register, entry 34 (Austegard); declauding step 4a (the newcomer read); declauding register, entry 7 (Austegard); declauding register, entry 52 (Austegard); Google developer documentation style guide: headings; APA Style: headings; Google developer documentation style guide: lists; Nielsen Norman Group: how users read on the web; Microsoft scannable content |
| release_notes | JEV660, RIF006, RIF008, RIF009 |
Keep a Changelog (keepachangelog.com); Google developer documentation style guide: headings; APA Style: headings; Keep a Changelog 1.1.0; Google developer documentation style guide: lists |
| marketing_copy | JEV630, CLR011 |
Ogilvy, Ogilvy on Advertising; Bly, The Copywriter's Handbook; Nielsen Norman Group: how users read on the web; Microsoft scannable content |
| product_description | JEV630, RIF009, CLR011 |
Ogilvy, Ogilvy on Advertising; Bly, The Copywriter's Handbook; Google developer documentation style guide: lists; Nielsen Norman Group: how users read on the web; Microsoft scannable content |
| press_release | JEV620 |
AP Stylebook; Kovach & Rosenstiel, The Elements of Journalism |
| resume | JEV670 |
Resume conventions (strong action verbs, quantified results) |
| script | JEV640 |
McKee, Story; Field, Screenplay |
| poem | JEV650 |
Oliver, A Poetry Handbook; Fry, The Ode Less Travelled |
| presentation | JEV701, JEV702, JEV703, JEV711, CLR012 |
Alley, The Craft of Scientific Presentations (assertion-evidence); Minto, The Pyramid Principle; the consultant's 'ghost deck' test |
Development
uv sync
uv run ruff check src tests scripts # lint, as CI runs it
uv run pytest --cov # tests; coverage floor 90%. Live Jev tests skip without a key
uv run python scripts/gen_readme.py # regenerate this README from the rule catalog
uv run python scripts/probe_rules.py JEV123 # a Jev rule's probability on its own examples
uv run python scripts/bench_structure.py CORPUS_DIR # offline rules over a human/AI corpus
Edit scripts/gen_readme.py, not README.md: the README is generated, so a hand edit is
overwritten on the next run.
See CONTRIBUTING.md for how rules work and how to add one.
License
MIT © Scale Venture Partners.
Metadata
Release files for riff-lint 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| riff_lint-0.3.0.tar.gz | 346.5 kB | With provenance | Details for riff_lint-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| riff_lint-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for riff_lint-0.3.0-py3-none-any.whl |
Total release size: 443.9 kB
Release files / riff_lint-0.3.0.tar.gz
| Download URL | riff_lint-0.3.0.tar.gz |
|---|---|
| Size | 346.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7bf9ec290c9693389d5d093106ae9e33822983d7cea8939c79383b0bff0b93df
|
|
BLAKE2b-256 checksum How to use checksums |
977c47a94a43f5401292f1308ad8762bc31aa7f93e4fe59f5478a19b3d6596dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / riff_lint-0.3.0-py3-none-any.whl
| Download URL | riff_lint-0.3.0-py3-none-any.whl |
|---|---|
| Size | 97.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd5834c66eb05cba2f4704bd757c26eb71a431b383ab385d2c9f6783ccfeb6d8
|
|
BLAKE2b-256 checksum How to use checksums |
4437e1792e288b4f9ac84c759990b6fceec1a5faca52dc3aa6fdc94c44988dd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logSecurity for riff-lint 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for riff_lint-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.