ルールの一覧へ

並列の読点が揃っていない

oxford-comma-consistency既定で動く(情報)英語

英語で、並べた最後の and の前にカンマを打つか打たないかが揃っていない所

例

指摘される文
We sell apples, pears, and plums. We ship to homes, offices, and schools. We accept cash, cards and vouchers.
chaff の出力
1:75 This list punctuates differently from the rest (1 in this document)
直した文
We sell apples, pears, and plums. We ship to homes, offices, and schools. We accept cash, cards, and vouchers.
chaff の出力
指摘なし

直し方

多いほうに揃えてください。

なぜ指摘するのか

最後の and の前に読点を打つかは、スタイルガイドで割れます。どちらが正しいかは決めません。1 つの文書で混ざっていると、読み手は項目の切れ目を毎回読み直すことになります。

指摘しないもの

カンマを打つかどうかは決めません。半々に分かれた文書では、どちらが少ないとも言えないので指しません。郵便番号で終わる住所のあとの and / or(Leeds LS1 4AB, or email)は、住所の読点のあとなので並びとして数えません。最後の読点のあとに前後を空けたダッシュがある and / or(Washington, DC – The Cybersecurity and Infrastructure Security Agency)も、読点はダッシュの前の日付行のものなので数えません。読点のあとの否定(more correct, not cleaner or more elegant)と、順番の語で始まる導入(First, outside a block, …)も並びではありません。主語と述語のあいだに読点で挟んだ例の句(X, such as Y, are excluded and are not…)も並びの項目に数えません。and / or の直前で読点に挟まれ、中に and / or を持つ例の句(gases, such as ozone and carbon dioxide, and the amount)のあとの読点は、句を閉じる読点なので数えません。番号を付けた法典の区分のあとの名前(Title 44, Public Printing and Documents)と、前の項目を限定する句(any other agency or office, in accordance with law or as directed)の中の and / or も数えません。

止める・ゆるめる

この一か所だけ黙らせる(文書に書く)
<!-- stet: oxford-comma-consistency — 理由 -->
チームでゆるめる(理由は chaff.yaml にコメントで残ります)
npx chaffjs relax oxford-comma-consistency --why "理由"
チームで止める(chaff.yaml)
rules: oxford-comma-consistency: off
技術的な情報
層
L3
状態
安定
重さ
情報
対象の言語
en
向いている文章
blog, business, technical, legal, docs, academic, literature, speech
文書から読み取るもの
pos

強さ(段階)

chaff.yaml の rules にこの名前と段階を書くと変わります。書かなければ、ジャンルが決めた段階で動きます(どのジャンルで動くかは下の「ジャンルごとの動き」にあります)。

strict少ないほうの打ち方が 3 箇所以下のとき指摘
normal少ないほうの打ち方が 2 箇所以下のとき指摘
relaxed少ないほうの打ち方が 1 箇所以下のとき指摘

ジャンルごとの動き

既定で動くジャンル
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

ジャンル

指摘の文

この文だけ並列の読点の打ちかたが他と違います(文書の中で {count} 文)

このページはルールの定義ファイルから作られています:packages/chaff/rules/oxford-comma-consistency.yaml