All rules

Too many decorative figures

figurative-densityon by default (info)Japanese / English

Figures such as "like magic" or "secret sauce" piled up instead of the mechanism

Example

Flagged
The installer works like magic. Our secret sauce is a one-line incantation that magically fixes every path.
What chaff prints
1:1 "like magic" and other decorative figures: 16 per 1000 words 1:33 "magically" and other decorative figures: 16 per 1000 words 1:33 "incantation" and other decorative figures: 16 per 1000 words 1:33 "secret sauce" and other decorative figures: 16 per 1000 words
Fixed
The installer reads your config file and fills in the defaults. The fix is one command that rewrites every path to an absolute one.
What chaff prints
no finding

The rule measures the whole document, so this example was tried with an ordinary passage (about 200 words) after it that gives chaff nothing to report.

How to fix

Replace the figure with what happens ("the config sets itself up like magic" becomes "the tool reads the config file and fills in the defaults").

Why it matters

A figure such as "works like magic", "a one-line incantation" or "our secret sauce" adds colour once. Piled up, the document goes on without saying what actually happens, and a reader who wants the mechanism gets only the figure. None of them is wrong alone, so the rule counts them per length of the document. The figures are in the lexicon figurative-phrase, each with what to write instead.

What it does not flag

None of these is wrong alone, so short documents are not measured. A plain comparison or example ("tools such as A and B") is not counted. The literature and speech genres turn it off.

Turning it off or relaxing it

Silence this one spot (in the document)
<!-- stet: figurative-density — reason -->
Relax it for the team (the reason is kept as a comment in chaff.yaml)
npx chaffjs relax figurative-density --why "reason"
Turn it off for the team (chaff.yaml)
rules: figurative-density: off
Technical details
Layer
L2
Status
stable
Severity
info
Languages
Japanese and English
Suited to
business, technical, blog, legal, docs, academic, literature, speech

Levels

Set a level for this rule under rules in chaff.yaml. With nothing set, it runs at the level its genre gives it (see By genre below).

strictup to 1 decorative figures per 1000 words
normalup to 2 decorative figures per 1000 words
relaxedup to 3 decorative figures per 1000 words

By genre

Runs by default in
technical/spec, technical/readme, blog/tech, blog/essay, blog/owned-media, business/proposal, business/report, business/email, business/press-release, business/meeting-notes, legal/contract, legal/statute, legal/judgment, legal/patent, docs/manual, docs/faq, docs/glossary, academic/paper
Turned off by the genre in
literature/fiction, literature/essay, literature/poetry, literature/play, speech/address, speech/transcript

Genres

Message

"{matched}" and other decorative figures: {density} per 1000 words

Rewrite depth (chaff fix-plan --depth): register — the style is converted: polite to plain endings, comparatives removed and so on

This page is built from the rule's definition file:packages/chaff/rules/figurative-density.yaml