All rules

A layout that does not match the rooms listed

layout-code-mismatchon by defaultJapanese / English

A room layout such as "3 bedrooms" that does not match the rooms listed

Example

Flagged
| Item | Details | | --- | --- | | Layout | 3 bedrooms, 1 bathroom | | Rooms | Living room, Bedroom 1, Bedroom 2, Bathroom |
What chaff prints
3:12 The layout "3 bedrooms" has 3 rooms, but the room list names 2
Fixed
| Item | Details | | --- | --- | | Layout | 2 bedrooms, 1 bathroom | | Rooms | Living room, Bedroom 1, Bedroom 2, Bathroom |
What chaff prints
no finding

How to fix

Compare the layout and the room list with the floor plan, and correct the wrong one.

Why it matters

In a property listing, "3 bedrooms" and a room list of "Bedroom 1, Bedroom 2" cannot both be right, and a Japanese layout code such as 3LDK counts its rooms besides the living room, dining area, kitchen and any storage room (S). It happens when the details of another unit are copied, or when only the code is edited. A Japanese code is also checked for an L, D or K part the room list names and the code lacks (an LDK listed under a 2DK).

What it does not flag

Only the layout field (a table row, a table column, or a "Layout:" line) is read for the code, and only the rooms field, a table of rooms, or a bracket after the code for the room list. A listing without a room list is not reported. A den, a study and a box room are not counted as bedrooms, and a list that names a room some listings count and others do not (an office, a nursery) is not compared. With several listings in one section, codes and room lists are paired in order only when there are as many of each. A room list that names no bedroom is not compared.

Turning it off or relaxing it

Silence this one spot (in the document)
<!-- stet: layout-code-mismatch — reason -->
Relax it for the team (the reason is kept as a comment in chaff.yaml)
npx chaffjs relax layout-code-mismatch --why "reason"
Turn it off for the team (chaff.yaml)
rules: layout-code-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).

stricterror
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, speech/address, speech/transcript
Turned off by the genre in
literature/fiction, literature/essay, literature/poetry, literature/play

Genres

Message

The layout "{code}" has {stated} rooms, but the room list names {listed}

The room list names "{part}", which the layout "{code}" does not have

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