All rules

A number of sessions times their length that does not make the stated total

duration-product-mismatchon by defaultJapanese / English

Sessions times the length of each that does not make the total given

Example

Flagged
Class hours: 90 minutes per session, 15 sessions, 24 hours in total
What chaff prints
1:51 15 sessions of 90 minutes make 22 hours 30 minutes, but the total is given as 24 hours
Fixed
Class hours: 90 minutes per session, 15 sessions, 22.5 hours in total
What chaff prints
no finding

How to fix

Check which of the count, the length and the total is right and correct the rest.

Why it matters

When a count of sessions, the length of one and the total are written together ("90 minutes per session, 15 sessions, 24 hours in total"), the reader cannot tell which of the three is right (15 sessions of 90 minutes make 22.5 hours). It happens when the count or the length is changed and the total is not. In one line, or one list, holding exactly one count, one length and one total, the count times the length is compared with the total.

What it does not flag

A line missing the count, the length or the total, one with two of any of them, and a rough length ("about 90 minutes") are left alone. A rough total ("about 23 hours") may differ by less than the unit it is written in.

Turning it off or relaxing it

Silence this one spot (in the document)
<!-- stet: duration-product-mismatch — reason -->
Relax it for the team (the reason is kept as a comment in chaff.yaml)
npx chaffjs relax duration-product-mismatch --why "reason"
Turn it off for the team (chaff.yaml)
rules: duration-product-mismatch: off
Technical details
Layer
L3
Status
stable
Severity
warning
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).

normalwarning
relaxedinfo

This rule has no limit to count to. A level sets how a finding is marked: relaxed keeps the finding and marks it a step lower.

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, literature/fiction, literature/essay, literature/poetry, literature/play, speech/address, speech/transcript

Genres

Message

{count} of {length} make {hours} hours {minutes} minutes, but the total is given as {total}

{count} of {length} make {hours} hours, but the total is given as {total}

{count} of {length} make {minutes} minutes, but the total is given as {total}

Rewrite depth (chaff fix-plan --depth): light — words and sentences; the structure and the voice stay

This page is built from the rule's definition file:packages/chaff/rules/duration-product-mismatch.yaml