主語の無い分詞の句
dangling-participle既定で動く(情報)英語
英語で、分詞の句の後ろの主語が形だけの it や there になっている文
例
直し方
動作をした人を主語にするか(Having reviewed the code, we think it is ready.)、句を節にしてください(After we reviewed the code, it was ready.)。
なぜ指摘するのか
英語で分詞の句から始めた文(Having reviewed the code, …)は、句の動作をしたのが文の主語だと読まれます。主語が形だけの it や there だと(Having reviewed the code, it is ready.)、コードを見たのが誰なのか文に書かれていません。読み手は一瞬つまずき、意味を補って読むことになります。-ing の分詞の句の直後の主語が it か there で、be が続く形だけを指します。
指摘しないもの
主語が人や物の名詞の文(Having reviewed the code, the team approved it.)、過去分詞で始めた句(Configured with SSO, it is ready.。it そのものを言うことが多い)、決まった言い方として読む句(Given、Based on、Generally speaking、Having said that)、挿入句の it is(Testing it, it is worth noting, requires …)、分詞の句が長く読点の位置が当てにならない文は指しません。英語の文だけを読みます。
止める・ゆるめる
技術的な情報
- 層
- L3
- 状態
- 安定
- 重さ
- 情報
- 対象の言語
- en
- 向いている文章
- business, technical, blog, legal, docs, academic, literature, speech
- 文書から読み取るもの
- pos
強さ(段階)
chaff.yaml の rules にこの名前と段階を書くと変わります。書かなければ、ジャンルが決めた段階で動きます(どのジャンルで動くかは下の「ジャンルごとの動き」にあります)。
| strict | 注意 |
|---|---|
| normal | 情報 |
| relaxed | 情報 |
このルールには数える上限がありません。段階は指摘の重さを変えます。relaxed にすると指摘は消えずに一段軽く出ます。
ジャンルごとの動き
- 既定で動くジャンル
- 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
指摘の文
「{opener}」の動作をしたのが誰か、文に書かれていません(主語が「{subject}」)
書き直しの深さ(chaff fix-plan --depth): light — 語と文を直す。構成と文体は残す
このページはルールの定義ファイルから作られています:packages/chaff/rules/dangling-participle.yaml