chaffjs 0.45.0 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/announced-list.d.ts +2 -1
- package/dist/announced-list.d.ts.map +1 -1
- package/dist/announced-list.js +3 -1
- package/dist/announced-list.js.map +1 -1
- package/dist/body-section.d.ts +7 -0
- package/dist/body-section.d.ts.map +1 -1
- package/dist/body-section.js +15 -0
- package/dist/body-section.js.map +1 -1
- package/dist/derived/durations.d.ts +1 -0
- package/dist/derived/durations.d.ts.map +1 -1
- package/dist/derived/durations.js +2 -2
- package/dist/derived/durations.js.map +1 -1
- package/dist/derived/marked-dates.d.ts +2 -0
- package/dist/derived/marked-dates.d.ts.map +1 -1
- package/dist/derived/marked-dates.js +2 -0
- package/dist/derived/marked-dates.js.map +1 -1
- package/dist/detectors/acronym-capitals.d.ts +6 -0
- package/dist/detectors/acronym-capitals.d.ts.map +1 -0
- package/dist/detectors/acronym-capitals.js +30 -0
- package/dist/detectors/acronym-capitals.js.map +1 -0
- package/dist/detectors/bare-comparative.d.ts +1 -0
- package/dist/detectors/bare-comparative.d.ts.map +1 -1
- package/dist/detectors/bare-comparative.js +9 -2
- package/dist/detectors/bare-comparative.js.map +1 -1
- package/dist/detectors/bare-word-list.d.ts +7 -0
- package/dist/detectors/bare-word-list.d.ts.map +1 -0
- package/dist/detectors/bare-word-list.js +43 -0
- package/dist/detectors/bare-word-list.js.map +1 -0
- package/dist/detectors/bold-field-label.d.ts +8 -0
- package/dist/detectors/bold-field-label.d.ts.map +1 -0
- package/dist/detectors/bold-field-label.js +31 -0
- package/dist/detectors/bold-field-label.js.map +1 -0
- package/dist/detectors/bold-label.d.ts +15 -1
- package/dist/detectors/bold-label.d.ts.map +1 -1
- package/dist/detectors/bold-label.js +54 -12
- package/dist/detectors/bold-label.js.map +1 -1
- package/dist/detectors/broken-link.d.ts.map +1 -1
- package/dist/detectors/broken-link.js +22 -4
- package/dist/detectors/broken-link.js.map +1 -1
- package/dist/detectors/byline-list.d.ts +4 -0
- package/dist/detectors/byline-list.d.ts.map +1 -0
- package/dist/detectors/byline-list.js +19 -0
- package/dist/detectors/byline-list.js.map +1 -0
- package/dist/detectors/caps-screen-label.d.ts +3 -0
- package/dist/detectors/caps-screen-label.d.ts.map +1 -0
- package/dist/detectors/caps-screen-label.js +13 -0
- package/dist/detectors/caps-screen-label.js.map +1 -0
- package/dist/detectors/casual-voice.d.ts +8 -0
- package/dist/detectors/casual-voice.d.ts.map +1 -0
- package/dist/detectors/casual-voice.js +22 -0
- package/dist/detectors/casual-voice.js.map +1 -0
- package/dist/detectors/count-per-section.d.ts.map +1 -1
- package/dist/detectors/count-per-section.js +6 -2
- package/dist/detectors/count-per-section.js.map +1 -1
- package/dist/detectors/dangling-opener.d.ts.map +1 -1
- package/dist/detectors/dangling-opener.js +10 -1
- package/dist/detectors/dangling-opener.js.map +1 -1
- package/dist/detectors/date-year.d.ts.map +1 -1
- package/dist/detectors/date-year.js +11 -1
- package/dist/detectors/date-year.js.map +1 -1
- package/dist/detectors/defined-term-form.d.ts.map +1 -1
- package/dist/detectors/defined-term-form.js +17 -3
- package/dist/detectors/defined-term-form.js.map +1 -1
- package/dist/detectors/document-shape.d.ts +4 -1
- package/dist/detectors/document-shape.d.ts.map +1 -1
- package/dist/detectors/document-shape.js +12 -2
- package/dist/detectors/document-shape.js.map +1 -1
- package/dist/detectors/doubled-punctuation.d.ts.map +1 -1
- package/dist/detectors/doubled-punctuation.js +24 -1
- package/dist/detectors/doubled-punctuation.js.map +1 -1
- package/dist/detectors/email-letter.d.ts.map +1 -1
- package/dist/detectors/email-letter.js +5 -2
- package/dist/detectors/email-letter.js.map +1 -1
- package/dist/detectors/email-subject-reference.d.ts +6 -0
- package/dist/detectors/email-subject-reference.d.ts.map +1 -0
- package/dist/detectors/email-subject-reference.js +31 -0
- package/dist/detectors/email-subject-reference.js.map +1 -0
- package/dist/detectors/fact-consistency.js +2 -2
- package/dist/detectors/fact-consistency.js.map +1 -1
- package/dist/detectors/figure-order.d.ts +1 -1
- package/dist/detectors/figure-order.d.ts.map +1 -1
- package/dist/detectors/figure-order.js +7 -2
- package/dist/detectors/figure-order.js.map +1 -1
- package/dist/detectors/gram-heading.d.ts.map +1 -1
- package/dist/detectors/gram-heading.js +13 -1
- package/dist/detectors/gram-heading.js.map +1 -1
- package/dist/detectors/heading-case.d.ts.map +1 -1
- package/dist/detectors/heading-case.js +6 -1
- package/dist/detectors/heading-case.js.map +1 -1
- package/dist/detectors/heading-numbering.d.ts.map +1 -1
- package/dist/detectors/heading-numbering.js +1 -7
- package/dist/detectors/heading-numbering.js.map +1 -1
- package/dist/detectors/hyphen-name-suffix.d.ts +3 -0
- package/dist/detectors/hyphen-name-suffix.d.ts.map +1 -0
- package/dist/detectors/hyphen-name-suffix.js +24 -0
- package/dist/detectors/hyphen-name-suffix.js.map +1 -0
- package/dist/detectors/katakana-density.d.ts.map +1 -1
- package/dist/detectors/katakana-density.js +7 -4
- package/dist/detectors/katakana-density.js.map +1 -1
- package/dist/detectors/lexicon.d.ts +1 -0
- package/dist/detectors/lexicon.d.ts.map +1 -1
- package/dist/detectors/lexicon.js +19 -1
- package/dist/detectors/lexicon.js.map +1 -1
- package/dist/detectors/link-shape.d.ts.map +1 -1
- package/dist/detectors/link-shape.js +10 -2
- package/dist/detectors/link-shape.js.map +1 -1
- package/dist/detectors/list-item-phrase.d.ts +20 -0
- package/dist/detectors/list-item-phrase.d.ts.map +1 -0
- package/dist/detectors/list-item-phrase.js +73 -0
- package/dist/detectors/list-item-phrase.js.map +1 -0
- package/dist/detectors/list-layout.d.ts +5 -0
- package/dist/detectors/list-layout.d.ts.map +1 -1
- package/dist/detectors/list-layout.js +12 -0
- package/dist/detectors/list-layout.js.map +1 -1
- package/dist/detectors/list-lead-in.d.ts.map +1 -1
- package/dist/detectors/list-lead-in.js +1 -17
- package/dist/detectors/list-lead-in.js.map +1 -1
- package/dist/detectors/list-parallel.d.ts.map +1 -1
- package/dist/detectors/list-parallel.js +29 -24
- package/dist/detectors/list-parallel.js.map +1 -1
- package/dist/detectors/mark-shape.d.ts +1 -1
- package/dist/detectors/mark-shape.d.ts.map +1 -1
- package/dist/detectors/mark-shape.js +10 -3
- package/dist/detectors/mark-shape.js.map +1 -1
- package/dist/detectors/measured-facts.d.ts +5 -1
- package/dist/detectors/measured-facts.d.ts.map +1 -1
- package/dist/detectors/measured-facts.js +7 -3
- package/dist/detectors/measured-facts.js.map +1 -1
- package/dist/detectors/middle-dot.d.ts +5 -0
- package/dist/detectors/middle-dot.d.ts.map +1 -1
- package/dist/detectors/middle-dot.js +27 -0
- package/dist/detectors/middle-dot.js.map +1 -1
- package/dist/detectors/missing-final-period.d.ts.map +1 -1
- package/dist/detectors/missing-final-period.js +13 -1
- package/dist/detectors/missing-final-period.js.map +1 -1
- package/dist/detectors/name-variant.d.ts.map +1 -1
- package/dist/detectors/name-variant.js +2 -1
- package/dist/detectors/name-variant.js.map +1 -1
- package/dist/detectors/number-style.d.ts +2 -0
- package/dist/detectors/number-style.d.ts.map +1 -1
- package/dist/detectors/number-style.js +19 -4
- package/dist/detectors/number-style.js.map +1 -1
- package/dist/detectors/numeral-opener.d.ts +1 -1
- package/dist/detectors/numeral-opener.d.ts.map +1 -1
- package/dist/detectors/numeral-opener.js +4 -2
- package/dist/detectors/numeral-opener.js.map +1 -1
- package/dist/detectors/open-end-names.d.ts +2 -0
- package/dist/detectors/open-end-names.d.ts.map +1 -1
- package/dist/detectors/open-end-names.js +8 -1
- package/dist/detectors/open-end-names.js.map +1 -1
- package/dist/detectors/ordinary-phrase.d.ts +5 -0
- package/dist/detectors/ordinary-phrase.d.ts.map +1 -1
- package/dist/detectors/ordinary-phrase.js +10 -0
- package/dist/detectors/ordinary-phrase.js.map +1 -1
- package/dist/detectors/orthographic-variant.js +2 -2
- package/dist/detectors/orthographic-variant.js.map +1 -1
- package/dist/detectors/output-lead-in.d.ts +3 -0
- package/dist/detectors/output-lead-in.d.ts.map +1 -0
- package/dist/detectors/output-lead-in.js +26 -0
- package/dist/detectors/output-lead-in.js.map +1 -0
- package/dist/detectors/outside-announced-list.d.ts.map +1 -1
- package/dist/detectors/outside-announced-list.js +6 -1
- package/dist/detectors/outside-announced-list.js.map +1 -1
- package/dist/detectors/oxford-comma.d.ts.map +1 -1
- package/dist/detectors/oxford-comma.js +3 -1
- package/dist/detectors/oxford-comma.js.map +1 -1
- package/dist/detectors/paragraph-restatement.d.ts +4 -1
- package/dist/detectors/paragraph-restatement.d.ts.map +1 -1
- package/dist/detectors/paragraph-restatement.js +17 -2
- package/dist/detectors/paragraph-restatement.js.map +1 -1
- package/dist/detectors/person-consistency.d.ts +2 -1
- package/dist/detectors/person-consistency.d.ts.map +1 -1
- package/dist/detectors/person-consistency.js +11 -2
- package/dist/detectors/person-consistency.js.map +1 -1
- package/dist/detectors/quoted-title-line.d.ts +6 -0
- package/dist/detectors/quoted-title-line.d.ts.map +1 -0
- package/dist/detectors/quoted-title-line.js +14 -0
- package/dist/detectors/quoted-title-line.js.map +1 -0
- package/dist/detectors/register-interview.d.ts +4 -0
- package/dist/detectors/register-interview.d.ts.map +1 -0
- package/dist/detectors/register-interview.js +19 -0
- package/dist/detectors/register-interview.js.map +1 -0
- package/dist/detectors/registry/colloquial-opener-pile.d.ts +3 -0
- package/dist/detectors/registry/colloquial-opener-pile.d.ts.map +1 -0
- package/dist/detectors/registry/colloquial-opener-pile.js +3 -0
- package/dist/detectors/registry/colloquial-opener-pile.js.map +1 -0
- package/dist/detectors/repeated-head.d.ts.map +1 -1
- package/dist/detectors/repeated-head.js +23 -4
- package/dist/detectors/repeated-head.js.map +1 -1
- package/dist/detectors/request-owner.d.ts +3 -1
- package/dist/detectors/request-owner.d.ts.map +1 -1
- package/dist/detectors/request-owner.js +5 -2
- package/dist/detectors/request-owner.js.map +1 -1
- package/dist/detectors/run-together.d.ts +3 -0
- package/dist/detectors/run-together.d.ts.map +1 -0
- package/dist/detectors/run-together.js +13 -0
- package/dist/detectors/run-together.js.map +1 -0
- package/dist/detectors/sentence-counts.d.ts +6 -2
- package/dist/detectors/sentence-counts.d.ts.map +1 -1
- package/dist/detectors/sentence-counts.js +19 -3
- package/dist/detectors/sentence-counts.js.map +1 -1
- package/dist/detectors/sentence-ending.d.ts +2 -0
- package/dist/detectors/sentence-ending.d.ts.map +1 -1
- package/dist/detectors/sentence-ending.js +8 -2
- package/dist/detectors/sentence-ending.js.map +1 -1
- package/dist/detectors/sentence-parts.d.ts +10 -1
- package/dist/detectors/sentence-parts.d.ts.map +1 -1
- package/dist/detectors/sentence-parts.js +17 -2
- package/dist/detectors/sentence-parts.js.map +1 -1
- package/dist/detectors/space-before-punctuation.d.ts +2 -2
- package/dist/detectors/space-before-punctuation.d.ts.map +1 -1
- package/dist/detectors/space-before-punctuation.js +13 -2
- package/dist/detectors/space-before-punctuation.js.map +1 -1
- package/dist/detectors/stray-space.js +1 -1
- package/dist/detectors/stray-space.js.map +1 -1
- package/dist/detectors/structure-tree.d.ts.map +1 -1
- package/dist/detectors/structure-tree.js +2 -1
- package/dist/detectors/structure-tree.js.map +1 -1
- package/dist/detectors/structure.d.ts +1 -0
- package/dist/detectors/structure.d.ts.map +1 -1
- package/dist/detectors/structure.js +5 -1
- package/dist/detectors/structure.js.map +1 -1
- package/dist/detectors/superlative-context.d.ts +7 -0
- package/dist/detectors/superlative-context.d.ts.map +1 -1
- package/dist/detectors/superlative-context.js +6 -0
- package/dist/detectors/superlative-context.js.map +1 -1
- package/dist/detectors/technical-docs.d.ts.map +1 -1
- package/dist/detectors/technical-docs.js +5 -1
- package/dist/detectors/technical-docs.js.map +1 -1
- package/dist/detectors/token-shape.d.ts.map +1 -1
- package/dist/detectors/token-shape.js +16 -3
- package/dist/detectors/token-shape.js.map +1 -1
- package/dist/detectors/unbalanced-bracket.d.ts.map +1 -1
- package/dist/detectors/unbalanced-bracket.js +5 -1
- package/dist/detectors/unbalanced-bracket.js.map +1 -1
- package/dist/detectors/undefined-term.d.ts.map +1 -1
- package/dist/detectors/undefined-term.js +5 -1
- package/dist/detectors/undefined-term.js.map +1 -1
- package/dist/detectors/vague-density.d.ts.map +1 -1
- package/dist/detectors/vague-density.js +13 -1
- package/dist/detectors/vague-density.js.map +1 -1
- package/dist/front-matter.d.ts +3 -0
- package/dist/front-matter.d.ts.map +1 -0
- package/dist/front-matter.js +13 -0
- package/dist/front-matter.js.map +1 -0
- package/dist/genre-check.js +1 -1
- package/dist/genre-check.js.map +1 -1
- package/dist/genre.d.ts +0 -2
- package/dist/genre.d.ts.map +1 -1
- package/dist/genre.js +1 -12
- package/dist/genre.js.map +1 -1
- package/dist/labelled-note-paragraphs.d.ts +4 -0
- package/dist/labelled-note-paragraphs.d.ts.map +1 -0
- package/dist/labelled-note-paragraphs.js +21 -0
- package/dist/labelled-note-paragraphs.js.map +1 -0
- package/dist/list-lead-sentence.d.ts +6 -0
- package/dist/list-lead-sentence.d.ts.map +1 -0
- package/dist/list-lead-sentence.js +20 -0
- package/dist/list-lead-sentence.js.map +1 -0
- package/dist/paragraph-runs.d.ts +2 -1
- package/dist/paragraph-runs.d.ts.map +1 -1
- package/dist/paragraph-runs.js +19 -2
- package/dist/paragraph-runs.js.map +1 -1
- package/dist/recording-title.d.ts +5 -0
- package/dist/recording-title.d.ts.map +1 -0
- package/dist/recording-title.js +11 -0
- package/dist/recording-title.js.map +1 -0
- package/dist/sentence-load.d.ts +2 -1
- package/dist/sentence-load.d.ts.map +1 -1
- package/dist/sentence-load.js +56 -2
- package/dist/sentence-load.js.map +1 -1
- package/dist/stray-space.d.ts +5 -2
- package/dist/stray-space.d.ts.map +1 -1
- package/dist/stray-space.js +24 -2
- package/dist/stray-space.js.map +1 -1
- package/dist/structure/due-column.d.ts +5 -0
- package/dist/structure/due-column.d.ts.map +1 -0
- package/dist/structure/due-column.js +30 -0
- package/dist/structure/due-column.js.map +1 -0
- package/dist/structure/generic-role.d.ts +1 -0
- package/dist/structure/generic-role.d.ts.map +1 -1
- package/dist/structure/generic-role.js +6 -0
- package/dist/structure/generic-role.js.map +1 -1
- package/dist/structure/party-role.d.ts.map +1 -1
- package/dist/structure/party-role.js +4 -2
- package/dist/structure/party-role.js.map +1 -1
- package/dist/title-case-name.d.ts +5 -0
- package/dist/title-case-name.d.ts.map +1 -1
- package/dist/title-case-name.js +14 -0
- package/dist/title-case-name.js.map +1 -1
- package/package.json +3 -3
- package/rules/all-caps-shouting.yaml +2 -2
- package/rules/bare-url-mix.yaml +2 -2
- package/rules/bold-density.yaml +2 -2
- package/rules/bold-label-list.yaml +4 -4
- package/rules/clause-chain.yaml +2 -2
- package/rules/closing-cliche.yaml +2 -2
- package/rules/code-fence-language-mix.yaml +2 -2
- package/rules/colloquial-opener.yaml +3 -3
- package/rules/comparative-without-baseline.yaml +2 -2
- package/rules/dangling-participle.yaml +2 -2
- package/rules/date-order.yaml +2 -2
- package/rules/defined-term-form.yaml +2 -2
- package/rules/doubled-punctuation.yaml +2 -2
- package/rules/duration-mismatch.yaml +2 -2
- package/rules/email-subject-length.yaml +2 -2
- package/rules/empty-intensifier.yaml +2 -2
- package/rules/figure-reference-order.yaml +2 -2
- package/rules/hyphen-as-dash.yaml +2 -2
- package/rules/katakana-density.yaml +2 -2
- package/rules/list-item-form-mix.yaml +2 -2
- package/rules/max-ten.yaml +3 -3
- package/rules/missing-final-period.yaml +2 -2
- package/rules/name-variant.yaml +2 -2
- package/rules/ngram-repetition.yaml +2 -2
- package/rules/no-lead.yaml +2 -2
- package/rules/no-mixed-desumasu.yaml +3 -2
- package/rules/no-nakaguro-parallel.yaml +2 -2
- package/rules/number-style-consistency.yaml +2 -2
- package/rules/numeral-sentence-start.yaml +2 -2
- package/rules/one-sentence-paragraph-run.yaml +2 -2
- package/rules/orthographic-variant.yaml +2 -2
- package/rules/outside-announced-list.yaml +2 -2
- package/rules/oxford-comma-consistency.yaml +2 -2
- package/rules/paragraph-restatement.yaml +2 -2
- package/rules/party-role-name.yaml +2 -2
- package/rules/person-consistency.yaml +2 -2
- package/rules/preamble-length.yaml +2 -2
- package/rules/repeated-conjunction.yaml +2 -2
- package/rules/repeated-sentence-head.yaml +2 -2
- package/rules/request-without-deadline.yaml +2 -2
- package/rules/requirement-smell.yaml +2 -2
- package/rules/space-before-punctuation.yaml +2 -2
- package/rules/stray-space.yaml +7 -4
- package/rules/summary-fact-mismatch.yaml +2 -2
- package/rules/taigen-dome-in-prose.yaml +2 -2
- package/rules/teki-overuse.yaml +2 -2
- package/rules/title-case-consistency.yaml +2 -2
- package/rules/title-length.yaml +2 -2
- package/rules/total-mismatch.yaml +1 -1
- package/rules/unbalanced-bracket.yaml +3 -3
- package/rules/undefined-term.yaml +2 -2
- package/rules/unqualified-superlative.yaml +2 -2
- package/rules/vague-word-density.yaml +2 -2
- package/rules/very-adjective.yaml +1 -1
- package/rules/warning-without-action.yaml +2 -2
- package/rules/yori-as-from.yaml +1 -0
- package/src/announced-list.ts +12 -3
- package/src/body-section.ts +19 -0
- package/src/derived/durations.ts +3 -2
- package/src/derived/marked-dates.ts +4 -0
- package/src/detectors/acronym-capitals.ts +30 -0
- package/src/detectors/bare-comparative.ts +12 -2
- package/src/detectors/bare-word-list.ts +61 -0
- package/src/detectors/bold-field-label.ts +33 -0
- package/src/detectors/bold-label.ts +74 -12
- package/src/detectors/broken-link.ts +23 -2
- package/src/detectors/byline-list.ts +24 -0
- package/src/detectors/caps-screen-label.ts +15 -0
- package/src/detectors/casual-voice.ts +30 -0
- package/src/detectors/count-per-section.ts +6 -2
- package/src/detectors/dangling-opener.ts +12 -1
- package/src/detectors/date-year.ts +12 -1
- package/src/detectors/defined-term-form.ts +19 -3
- package/src/detectors/document-shape.ts +16 -2
- package/src/detectors/doubled-punctuation.ts +26 -1
- package/src/detectors/email-letter.ts +5 -3
- package/src/detectors/email-subject-reference.ts +36 -0
- package/src/detectors/fact-consistency.ts +2 -2
- package/src/detectors/figure-order.ts +8 -2
- package/src/detectors/gram-heading.ts +15 -1
- package/src/detectors/heading-case.ts +7 -1
- package/src/detectors/heading-numbering.ts +1 -9
- package/src/detectors/hyphen-name-suffix.ts +30 -0
- package/src/detectors/katakana-density.ts +8 -4
- package/src/detectors/lexicon.ts +18 -1
- package/src/detectors/link-shape.ts +16 -2
- package/src/detectors/list-item-phrase.ts +86 -0
- package/src/detectors/list-layout.ts +17 -0
- package/src/detectors/list-lead-in.ts +1 -19
- package/src/detectors/list-parallel.ts +31 -28
- package/src/detectors/mark-shape.ts +13 -3
- package/src/detectors/measured-facts.ts +11 -4
- package/src/detectors/middle-dot.ts +32 -0
- package/src/detectors/missing-final-period.ts +14 -1
- package/src/detectors/name-variant.ts +2 -1
- package/src/detectors/number-style.ts +26 -4
- package/src/detectors/numeral-opener.ts +4 -2
- package/src/detectors/open-end-names.ts +11 -1
- package/src/detectors/ordinary-phrase.ts +10 -0
- package/src/detectors/orthographic-variant.ts +2 -2
- package/src/detectors/output-lead-in.ts +28 -0
- package/src/detectors/outside-announced-list.ts +6 -1
- package/src/detectors/oxford-comma.ts +3 -1
- package/src/detectors/paragraph-restatement.ts +17 -2
- package/src/detectors/person-consistency.ts +14 -2
- package/src/detectors/quoted-title-line.ts +13 -0
- package/src/detectors/register-interview.ts +22 -0
- package/src/detectors/registry/colloquial-opener-pile.ts +4 -0
- package/src/detectors/repeated-head.ts +32 -6
- package/src/detectors/request-owner.ts +5 -2
- package/src/detectors/run-together.ts +15 -0
- package/src/detectors/sentence-counts.ts +18 -3
- package/src/detectors/sentence-ending.ts +13 -2
- package/src/detectors/sentence-parts.ts +20 -2
- package/src/detectors/space-before-punctuation.ts +24 -4
- package/src/detectors/stray-space.ts +1 -1
- package/src/detectors/structure-tree.ts +12 -9
- package/src/detectors/structure.ts +4 -1
- package/src/detectors/superlative-context.ts +10 -0
- package/src/detectors/technical-docs.ts +5 -3
- package/src/detectors/token-shape.ts +19 -4
- package/src/detectors/unbalanced-bracket.ts +9 -1
- package/src/detectors/undefined-term.ts +5 -1
- package/src/detectors/vague-density.ts +15 -2
- package/src/front-matter.ts +14 -0
- package/src/genre-check.ts +1 -1
- package/src/genre.ts +1 -15
- package/src/labelled-note-paragraphs.ts +30 -0
- package/src/list-lead-sentence.ts +24 -0
- package/src/paragraph-runs.ts +25 -2
- package/src/recording-title.ts +16 -0
- package/src/sentence-load.ts +68 -2
- package/src/stray-space.ts +37 -6
- package/src/structure/due-column.ts +33 -0
- package/src/structure/generic-role.ts +8 -0
- package/src/structure/party-role.ts +3 -2
- package/src/title-case-name.ts +19 -0
|
@@ -56,8 +56,8 @@ example:
|
|
|
56
56
|
Send the form by email. We answer every email within a day. Attach the receipt to the email.
|
|
57
57
|
|
|
58
58
|
not_flagged:
|
|
59
|
-
ja: 読みが同じでも漢字の違う語(書く・描く)、補助動詞・形式名詞と本来の使い方の書き分け(見て下さい・資料を下さい)、書き分けが意味の違いになる語(成る・なる、言う・いう。法務のジャンルでは、法令の書き方で書き分ける 時・とき、物・もの、在る・ある も)、名詞と動詞(払込み・払い込む、申出・申し出る。辞書が名詞を動詞と読んでも)、二つの語に読める漢字の書き方(行っ は 行く とも 行う とも読み、「様を」の様は さま)、語末の「ー」だけの違い(katakana-long-vowel が見ます)、鉤括弧や引用符の中(判決が法令を文をまたいで引く一重の引用符も)と、引用した句を地の文でそのまま繰り返した所、行の頭のリンクで引いた外のページの題名、語の直後のふりがなの括弧の中(HTTP(えいちてぃーてぃーぴー))、会社の名前(青葉硝子㈱、株式会社の前後の名前)、施設や組織の名前(こども動物園、〜センター)、番号を付けて引いた法令の題名(愛がん動物用飼料の安全性の確保に関する法律(平成20年法律第83号))、引用のすぐ後ろの括弧の書き下し(「天子有道」(天子に道有らば))、文献一覧と文の形で書いた文献の引用、略語の元の語(Communication Access Realtime Translation (CART))、#を付けたハッシュタグ、chaff.yaml の names に書いた名前は見ません。「でもって」(以て)、「と」の後の「いたす」(議題といたします)、複合動詞の後ろの動詞(貼り付ける の 付ける)は、それだけの動詞(持つ、思いを致す、つける)と別に比べます。一語の副詞や語(ただいま、昨日来)、熟語の頭の一字の漢字(曇雨天の曇)、切られたカタカナの名前(ラオカイ
|
|
60
|
-
en: The case of a word's first letter (Email, email; Long-Term, long-term) is not a spelling, nor is a word in capitals only (emphasis or an acronym), nor a name in capitals with an ending (SENDs, OPENed), nor the letters of an acronym picked out beside it (CLImatology next to CLIPER), nor a word inside a passage written in capitals (eGAIN in a disclaimer), nor a name coined from capitalised pieces that are not words (Medi-Cal beside medical). A name spelled with capitals (HBase) is still compared. In Japanese, words whose kanji and kana forms mean different things (成る and なる) are not compared, 方 and ほう are compared only before が or で (早いほうが), since elsewhere 方 is mostly the person (担当の方に), nor a label opening a sentence (the (答) of a Q&A), a bracketed spelling in a sentence that names other spellings ((くもり)、(曇)とも書く), kana たつ beside 立つ, since たつ is also time passing (経つ), a numeral (the 三 of 三十), kana written onto a pronoun (私みたような) or okurigana cut off a word (誂らえる); the head of a compound verb (出来上る), an adverb opening a sentence as a conjunction (――もっとも) and a katakana spelling that names a sense (モノ for goods) are compared apart from the word on its own (できる, 最も, もの), and a noun joined to another by や or と (物やサービス) apart from the dependent noun (延長するもの), while the conjunction さらに、 and the adverb 更に are one word and are compared; in the legal genres each justice's separate opinion (裁判官甲の反対意見は次のとおりである。) is compared only within itself; the judging みる (〜とみられる) and いえる (〜とはいえない) are compared apart from looking and saying (資料を見る, 一概には言えない), and in the legal genres neither are 時 and とき, 物 and もの or 在る and ある, which legal drafting writes apart. A noun and a verb (払込み and 払い込む) are different words, even where the analyser reads the noun as the verb. Hyphenated words that are another word (re-sign, resign), part of an address (github.com), anything in quotation marks (single ones too, as an opinion quotes a statute over several sentences) and a phrase the writer repeats word for word from a quotation in the document, the title of an outside page quoted by a link at a line's head, an entry of a reference list and a citation written as a sentence (See Kay and King (2020), Radical Uncertainty …), the words an acronym stands for (Communication Access Realtime Translation (CART), VADER (Valence Aware Dictionary and sEntiment Reasoner)), a hashtag (#vimconf), a surname a roster sets in capitals (MICHAEL T. McCAUL), the hyphens of a capitalised name where the word is otherwise written with or without them (the Interagency Group beside inter-agency), a Japanese reading in brackets right after a word (HTTP(えいちてぃーてぃーぴー)), a Japanese company name written with its form (青葉硝子㈱) and the team's names are not compared. Nothing is reported when the minority is more than a third. The literature preset turns it off, since old spelling belongs to its time. Nor is a kanji spelling that reads as two words (行っ, read as 行く or 行う; 様 before を, read さま) compared with the kana of the reading the tokenizer picked.
|
|
59
|
+
ja: 読みが同じでも漢字の違う語(書く・描く)、補助動詞・形式名詞と本来の使い方の書き分け(見て下さい・資料を下さい)、書き分けが意味の違いになる語(成る・なる、言う・いう。法務のジャンルでは、法令の書き方で書き分ける 時・とき、物・もの、在る・ある も)、名詞と動詞(払込み・払い込む、申出・申し出る。辞書が名詞を動詞と読んでも)、二つの語に読める漢字の書き方(行っ は 行く とも 行う とも読み、「様を」の様は さま)、語末の「ー」だけの違い(katakana-long-vowel が見ます)、鉤括弧や引用符の中(判決が法令を文をまたいで引く一重の引用符も)と、引用した句を地の文でそのまま繰り返した所、行の頭のリンクで引いた外のページの題名、語の直後のふりがなの括弧の中(HTTP(えいちてぃーてぃーぴー))、会社の名前(青葉硝子㈱、株式会社の前後の名前)、施設や組織の名前(こども動物園、〜センター)、番号を付けて引いた法令の題名(愛がん動物用飼料の安全性の確保に関する法律(平成20年法律第83号))、引用のすぐ後ろの括弧の書き下し(「天子有道」(天子に道有らば))、文献一覧と文の形で書いた文献の引用、略語の元の語(Communication Access Realtime Translation (CART))、#を付けたハッシュタグ、chaff.yaml の names に書いた名前は見ません。「でもって」(以て)、「と」の後の「いたす」(議題といたします)、複合動詞の後ろの動詞(貼り付ける の 付ける)は、それだけの動詞(持つ、思いを致す、つける)と別に比べます。一語の副詞や語(ただいま、昨日来)、熟語の頭の一字の漢字(曇雨天の曇)、切られたカタカナの名前(ラオカイ のカイ)も比べません。「方」と「ほう」は「が」「で」の前(早いほうが)だけで比べ、人の「方」の多い所(担当の方に)は比べません。文の頭の丸括弧の印(問答の(答))、別の書き方を言う文の丸括弧の中((くもり)、(曇)とも書く。)、漢数字(三十の三)、代名詞に続けたかな(私みたような)、切られた送りがな(誂らえる)も比べません。かなの「たつ」は、時がたつにも立つにも読めるので「立つ」と比べません。複合動詞の頭(出来上る)、文の頭の接続詞(――もっとも)、意味を変えるカタカナ(品物のモノ、断る言葉のイヤ)は、それだけの語(できる、最も、もの)と別に比べます。名詞と「や」「と」で並べた語(物やサービス)は、形式名詞(延長するもの)と別に比べます。接続詞の「さらに、」と副詞の「更に」は同じ語として比べます。法務のジャンルでは、判決の裁判官ごとの意見(裁判官甲の反対意見は次のとおりである。)を、その意見の中だけで比べます。名詞に続けて書いたかなの名詞(全員ぶん)と慣用句の動詞(気をつける)、見立ての「みる」(〜とみられる、増加がみられる)と評価を言う「いえる」(〜とはいえない)は、同じ読みの語(文、名札を付ける、資料を見る)と別に比べます。英字は、頭の字の大文字小文字(Email と email)と、大文字だけの語(強調や略語)、大文字の名前に語尾が付いた語(関数名の SENDs)、名簿の大文字の名字(MICHAEL T. McCAUL)、同じ文の略語の字を示した語(CLIPER と並ぶ CLImatology)、大文字で書いた一節の中の語(免責の段落の eGAIN)、大文字で始まる語でないかけらをハイフンでつないだ名前(medical と並ぶ Medi-Cal)、大文字で始まる語を並べた名前の中のハイフン(inter-agency と並ぶ the Interagency Group、括弧に入れた題 Module Three (Processor to Sub-Processor))を書き方の違いにしません(HBase のような名前の大文字は比べます)。少ないほうが三分の一を超えるときも言いません。文学のジャンルでは既定で止めています(その時代の書き方のため)。
|
|
60
|
+
en: The case of a word's first letter (Email, email; Long-Term, long-term) is not a spelling, nor is a word in capitals only (emphasis or an acronym), nor a name in capitals with an ending (SENDs, OPENed), nor the letters of an acronym picked out beside it (CLImatology next to CLIPER), nor a word inside a passage written in capitals (eGAIN in a disclaimer), nor a name coined from capitalised pieces that are not words (Medi-Cal beside medical). A name spelled with capitals (HBase) is still compared. In Japanese, words whose kanji and kana forms mean different things (成る and なる) are not compared, 方 and ほう are compared only before が or で (早いほうが), since elsewhere 方 is mostly the person (担当の方に), nor a label opening a sentence (the (答) of a Q&A), a bracketed spelling in a sentence that names other spellings ((くもり)、(曇)とも書く), kana たつ beside 立つ, since たつ is also time passing (経つ), a numeral (the 三 of 三十), kana written onto a pronoun (私みたような) or okurigana cut off a word (誂らえる); the head of a compound verb (出来上る), an adverb opening a sentence as a conjunction (――もっとも) and a katakana spelling that names a sense (モノ for goods, イヤ as the word a child says to refuse) are compared apart from the word on its own (できる, 最も, もの), and a noun joined to another by や or と (物やサービス) apart from the dependent noun (延長するもの), while the conjunction さらに、 and the adverb 更に are one word and are compared; in the legal genres each justice's separate opinion (裁判官甲の反対意見は次のとおりである。) is compared only within itself; the judging みる (〜とみられる) and いえる (〜とはいえない) are compared apart from looking and saying (資料を見る, 一概には言えない), and in the legal genres neither are 時 and とき, 物 and もの or 在る and ある, which legal drafting writes apart. A noun and a verb (払込み and 払い込む) are different words, even where the analyser reads the noun as the verb. Hyphenated words that are another word (re-sign, resign), part of an address (github.com), anything in quotation marks (single ones too, as an opinion quotes a statute over several sentences) and a phrase the writer repeats word for word from a quotation in the document, the title of an outside page quoted by a link at a line's head, an entry of a reference list and a citation written as a sentence (See Kay and King (2020), Radical Uncertainty …), the words an acronym stands for (Communication Access Realtime Translation (CART), VADER (Valence Aware Dictionary and sEntiment Reasoner)), a hashtag (#vimconf), a surname a roster sets in capitals (MICHAEL T. McCAUL), the hyphens of a capitalised name where the word is otherwise written with or without them (the Interagency Group beside inter-agency; a title in brackets, Module Three (Processor to Sub-Processor)), a Japanese reading in brackets right after a word (HTTP(えいちてぃーてぃーぴー)), a Japanese company name written with its form (青葉硝子㈱) and the team's names are not compared. Nothing is reported when the minority is more than a third. The literature preset turns it off, since old spelling belongs to its time. Nor is a kanji spelling that reads as two words (行っ, read as 行く or 行う; 様 before を, read さま) compared with the kana of the reading the tokenizer picked.
|
|
61
61
|
level_meaning:
|
|
62
62
|
ja: 少ないほうが語の {limit}% 以下のとき指摘
|
|
63
63
|
en: reported when the minority spelling is {limit}% of the word's uses or less
|
|
@@ -53,8 +53,8 @@ example:
|
|
|
53
53
|
The app is supported on Windows, macOS and Linux. Setup takes five minutes. It is also supported on Linux.
|
|
54
54
|
|
|
55
55
|
not_flagged:
|
|
56
|
-
ja: 一覧を言う語(対応OSは、に対応、版)のすぐ隣に並べた固有名詞だけを読みます。最初に二つ以上の名前を挙げた文を一覧とし、それより前の文は見ません。組の違う語(対応する OS
|
|
57
|
-
en: Only proper nouns right next to a listing word (supported on, available in, version) are read. The first sentence naming two or more is the list, and earlier sentences are not checked. Words of different groups (platforms and languages) are not compared.
|
|
56
|
+
ja: 一覧を言う語(対応OSは、に対応、版)のすぐ隣に並べた固有名詞だけを読みます。最初に二つ以上の名前を挙げた文を一覧とし、それより前の文は見ません。組の違う語(対応する OS と、対応する言語)は比べません。序数だけの名前(Fourteenth and Fifteenth Edition … Sixteenth Edition のような版の歴史)は名前と読みません。
|
|
57
|
+
en: Only proper nouns right next to a listing word (supported on, available in, version) are read. The first sentence naming two or more is the list, and earlier sentences are not checked. Words of different groups (platforms and languages) are not compared. Ordinals alone ("Fourteenth and Fifteenth Edition … Sixteenth Edition", an edition history) are not read as names.
|
|
58
58
|
rewrite:
|
|
59
59
|
depth: light
|
|
60
60
|
ja:
|
|
@@ -52,8 +52,8 @@ example:
|
|
|
52
52
|
We sell apples, pears, and plums. We ship to homes, offices, and schools. We accept cash, cards, and vouchers.
|
|
53
53
|
|
|
54
54
|
not_flagged:
|
|
55
|
-
ja: カンマを打つかどうかは決めません。半々に分かれた文書では、どちらが少ないとも言えないので指しません。郵便番号で終わる住所のあとの 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 も数えません。but で始まる節(If you need help, but it’s not a priority, add it and bring it up)、文頭のつなぎの語(However,)、不定冠詞と形容詞だけの語(A simple, minimalist palette / Neat, a flexible and lightweight grid)、目的語を後ろに残した前置詞(impose conditions upon, certain transfers / on or before May 1)は並びの項目ではありません。並びがその先も続くなら(and so forth まで続く並びも)、途中の項目の中の and / or は最後の継ぎ目ではありません(counseling and financial literacy, commercial conversions, and support)。読点なしで同じ接続詞を重ねた並び(questions and issues and use cases)と、省略の印(... や * * *)を含む引用の中の並びも数えません。動詞と目的語のあいだに読点で挟んだ前置詞の句(received, at its most recent examination, a rating)は並びの項目ではなく、並びの前置詞を最後の項目で言い直したもの(at A, B, C and D campgrounds, and at E)は同じ並びの続きです。題名を文の書き方で並べた所(The bridge witch, The law of finance and regulation, …)の、小文字の語が続く and / or は題名の中のものです。
|
|
56
|
-
en: Whether to use the comma is not decided. A document split evenly has no minority and is not reported. An and / or right after a postal address closed by its postcode ("Leeds LS1 4AB, or email us") follows the address's commas and is not counted as a list, and neither is one after a spaced dash that follows the last comma (a dateline such as "Washington, DC – The Cybersecurity and Infrastructure Security Agency"). Nor is a contrast after a comma ("more correct, not cleaner or more elegant") or an introduction opened by a sequence word ("First, outside a block, …"), and an example phrase set off by commas between a subject and its predicate ("X, such as Y, are excluded and are not…") is not counted as an item. A comma that closes an example phrase holding its own and / or just before the and ("gases, such as ozone and carbon dioxide, and the amount") closes the aside and is not counted. Nor is an and / or inside the name after a numbered division of a code ("Title 44, Public Printing and Documents") or inside a phrase that qualifies the item before it ("any other agency or office, in accordance with law or as directed"). A clause opened by but ("If you need help, but it’s not a priority, add it and bring it up"), a word tying the sentence to the last one ("However,"), an indefinite article with only adjectives ("A simple, minimalist palette" / "Neat, a flexible and lightweight grid") and a preposition left waiting for its object ("impose conditions upon, certain transfers" / "on or before May 1") are not items. When the list goes on past an and / or, including to "and so forth", that and / or is inside an item, not the last joint ("counseling and financial literacy, commercial conversions, and support"). A run that repeats the conjunction without commas ("questions and issues and use cases") and a list inside a quotation that marks an omission (... or * * *) are not counted either. A prepositional phrase set off by commas between a verb and its object ("received, at its most recent examination, a rating") is not an item, a last item that repeats the list's preposition ("at A, B, C and D campgrounds, and at E") continues the same list, and in a list of titles written in sentence case ("The bridge witch, The law of finance and regulation, …") an and / or followed by a lower-case word belongs to a title.
|
|
55
|
+
ja: カンマを打つかどうかは決めません。半々に分かれた文書では、どちらが少ないとも言えないので指しません。郵便番号で終わる住所のあとの 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 も数えません。but で始まる節(If you need help, but it’s not a priority, add it and bring it up)、文頭のつなぎの語(However,)、不定冠詞と形容詞だけの語(A simple, minimalist palette / Neat, a flexible and lightweight grid)、目的語を後ろに残した前置詞(impose conditions upon, certain transfers / on or before May 1)は並びの項目ではありません。並びがその先も続くなら(and so forth まで続く並びも)、途中の項目の中の and / or は最後の継ぎ目ではありません(counseling and financial literacy, commercial conversions, and support)。読点なしで同じ接続詞を重ねた並び(questions and issues and use cases)と、省略の印(... や * * *)を含む引用の中の並びも数えません。動詞と目的語のあいだに読点で挟んだ前置詞の句(received, at its most recent examination, a rating)は並びの項目ではなく、並びの前置詞を最後の項目で言い直したもの(at A, B, C and D campgrounds, and at E)は同じ並びの続きです。題名を文の書き方で並べた所(The bridge witch, The law of finance and regulation, …)の、小文字の語が続く and / or は題名の中のものです。By と名前で始まる署名の行(By Jane Moss, Head of Arts, Crafts, Music and Drama, Culture Office)の、大文字の語を結ぶ and / or は役職の名前の中のものです。
|
|
56
|
+
en: Whether to use the comma is not decided. A document split evenly has no minority and is not reported. An and / or right after a postal address closed by its postcode ("Leeds LS1 4AB, or email us") follows the address's commas and is not counted as a list, and neither is one after a spaced dash that follows the last comma (a dateline such as "Washington, DC – The Cybersecurity and Infrastructure Security Agency"). Nor is a contrast after a comma ("more correct, not cleaner or more elegant") or an introduction opened by a sequence word ("First, outside a block, …"), and an example phrase set off by commas between a subject and its predicate ("X, such as Y, are excluded and are not…") is not counted as an item. A comma that closes an example phrase holding its own and / or just before the and ("gases, such as ozone and carbon dioxide, and the amount") closes the aside and is not counted. Nor is an and / or inside the name after a numbered division of a code ("Title 44, Public Printing and Documents") or inside a phrase that qualifies the item before it ("any other agency or office, in accordance with law or as directed"). A clause opened by but ("If you need help, but it’s not a priority, add it and bring it up"), a word tying the sentence to the last one ("However,"), an indefinite article with only adjectives ("A simple, minimalist palette" / "Neat, a flexible and lightweight grid") and a preposition left waiting for its object ("impose conditions upon, certain transfers" / "on or before May 1") are not items. When the list goes on past an and / or, including to "and so forth", that and / or is inside an item, not the last joint ("counseling and financial literacy, commercial conversions, and support"). A run that repeats the conjunction without commas ("questions and issues and use cases") and a list inside a quotation that marks an omission (... or * * *) are not counted either. A prepositional phrase set off by commas between a verb and its object ("received, at its most recent examination, a rating") is not an item, a last item that repeats the list's preposition ("at A, B, C and D campgrounds, and at E") continues the same list, and in a list of titles written in sentence case ("The bridge witch, The law of finance and regulation, …") an and / or followed by a lower-case word belongs to a title. In a byline ("By Jane Moss, Head of Arts, Crafts, Music and Drama, Culture Office"), an and / or between capitalised words belongs to the name of the office.
|
|
57
57
|
level_meaning:
|
|
58
58
|
ja: 少ないほうの打ち方が {limit} 箇所以下のとき指摘
|
|
59
59
|
en: reported when the minority style appears {limit} times or fewer
|
|
@@ -58,8 +58,8 @@ example:
|
|
|
58
58
|
Every store switches next month, and the first stocktake is on April 10.
|
|
59
59
|
|
|
60
60
|
not_flagged:
|
|
61
|
-
ja: 言い直しを告げる語で始まらない段落、内容語が 4
|
|
62
|
-
en: 'A paragraph that does not open with a restating word, one with fewer than four content words, and one separated from the paragraph before by a heading, a list, a table or code are not checked. Words that open other sentences too ("That is why", "Again the drums") count only with a comma after them ("That is,"). Legal, literary and speech genres do not run this rule.'
|
|
61
|
+
ja: 言い直しを告げる語で始まらない段落、内容語が 4 つに満たない段落、見出し・箇条書き・表・コードを挟んだ段落は見ません。前の段落の語の割合だけを見るので、まとめが前の数段落を受けていても、すぐ前の段落と比べます。法務・文学・話し言葉のジャンルでは見ません。まとめの文のあとに、同じ段落で新しい事柄に進む文が続く段落(このように、…。その一方で、…を確認した。)は、次へ進むためのまとめなので指しません。
|
|
62
|
+
en: 'A paragraph that does not open with a restating word, one with fewer than four content words, and one separated from the paragraph before by a heading, a list, a table or code are not checked. Words that open other sentences too ("That is why", "Again the drums") count only with a comma after them ("That is,"). Legal, literary and speech genres do not run this rule. A paragraph whose summing-up sentence is followed, in the same paragraph, by sentences that move on to something new is a bridge to the next step and is not reported.'
|
|
63
63
|
level_meaning:
|
|
64
64
|
ja: 内容語の {limit}% 以上が前の段落の繰り返しのとき指摘
|
|
65
65
|
en: reported when {limit}% or more of the paragraph's content words repeat the paragraph before
|
|
@@ -66,8 +66,8 @@ example:
|
|
|
66
66
|
1. The Customer pays the Supplier within thirty days of each invoice.
|
|
67
67
|
|
|
68
68
|
not_flagged:
|
|
69
|
-
ja: 当事者の呼び名を定める前(「売主 有限会社たちばな木工(以下「甲」という。)」の売主)、定めた語そのもの(「開示者」と定義した文書の開示者)、定義した語の一部、長い語の一部(再委託先、委託者側)、英語で文の頭に冠詞なしで書いた複数形(Customers who register
|
|
70
|
-
en: 'Uses before the parties are named, a role word the document defines itself ("Recipient" means), a role word inside a defined term (Receiving Party) or a longer word, a lower-case role word (the vendor, an ordinary noun),
|
|
69
|
+
ja: 当事者の呼び名を定める前(「売主 有限会社たちばな木工(以下「甲」という。)」の売主)、定めた語そのもの(「開示者」と定義した文書の開示者)、定義した語の一部、長い語の一部(再委託先、委託者側)、英語で文の頭に冠詞なしで書いた複数形(Customers who register …。文頭なので大文字になった普通の名詞)、of the の後ろの複数形(each of the Providers。何人もいる人の類で、当事者ではない)は見ません。当事者の定義は、呼び名が甲・乙・当社のような語か立場の語であるもの、または括弧のすぐ前に会社の形(株式会社、Ltd)があるものだけを読みます。法務のジャンルで見ます。法令・規程は当事者を定めず、立場の語で人を呼ぶので見ません。
|
|
70
|
+
en: 'Uses before the parties are named, a role word the document defines itself ("Recipient" means), a role word inside a defined term (Receiving Party) or a longer word, a lower-case role word (the vendor, an ordinary noun), a plural with no article at the head of a sentence (Customers who register …, the ordinary noun capitalised by its place), and a plural picked out of with "of the" (each of the Providers, a class of many people) are not reported. A party is read from a short name in brackets that is a party word (we) or a role word itself, or that follows a company name (Ltd, Inc.). The legal genres run this rule, except statutes, which name people by their role and define no parties.'
|
|
71
71
|
rewrite:
|
|
72
72
|
depth: light
|
|
73
73
|
ja:
|
|
@@ -55,8 +55,8 @@ example:
|
|
|
55
55
|
You can book a slot online. Your booking shows on the next page. If you miss it, you can book again. You can also call the desk.
|
|
56
56
|
|
|
57
57
|
not_flagged:
|
|
58
|
-
ja: 呼び方が一通りの文書と、少ないほうが決まった割合を超える文書(使い分けていると見ます)は指摘しません。多いほうが 3 箇所に満たない文書も見ません。鉤括弧と引用符の中、引用の段落、コード、前後に漢字やカタカナが続く語(東京本社、当社比)は数えません。英語の one は、can や must の前の主語の one だけを数え、no one や the one や前置詞の後ろの one
|
|
59
|
-
en: A document with one form, or whose other form passes a set share of the places (it uses both on purpose), is not reported, nor one whose usual form appears fewer than 3 times. Quotations, quoted blocks, code and words joined to longer ones (東京本社) are not counted. Only "one" as the subject of a modal verb is counted, not "no one", "the one" or "one" after a preposition. Which form is right is not decided.
|
|
58
|
+
ja: 呼び方が一通りの文書と、少ないほうが決まった割合を超える文書(使い分けていると見ます)は指摘しません。多いほうが 3 箇所に満たない文書も見ません。鉤括弧と引用符の中、引用の段落、コード、前後に漢字やカタカナが続く語(東京本社、当社比)は数えません。英語の one は、can や must の前の主語の one だけを数え、no one や the one や前置詞の後ろの one は数えません。どの呼び方が正しいかは決めません。同じ文で「僕は…、君は…」のように、自分の呼び方をほかの人と対にして話題に立てたもの(例に出した二人の言葉)も数えません。
|
|
59
|
+
en: A document with one form, or whose other form passes a set share of the places (it uses both on purpose), is not reported, nor one whose usual form appears fewer than 3 times. Quotations, quoted blocks, code and words joined to longer ones (東京本社) are not counted. Only "one" as the subject of a modal verb is counted, not "no one", "the one" or "one" after a preposition. Which form is right is not decided. Nor is a Japanese self-reference set as a topic against another person in one sentence (僕は…、君は…), the two people of an example.
|
|
60
60
|
level_meaning:
|
|
61
61
|
ja: 少ないほうの呼び方が全体の {limit} パーセント以下のとき指摘
|
|
62
62
|
en: reported when the other form is {limit} percent of the places or fewer
|
|
@@ -81,8 +81,8 @@ example:
|
|
|
81
81
|
The number of stores has doubled in ten years, but suburban stores have struggled to grow.
|
|
82
82
|
|
|
83
83
|
not_flagged:
|
|
84
|
-
ja: 表題より下の見出しが一つもない文書は測りません。法務やブログのジャンルと、手紙・メールでは見ません。本文の語に付けた注(※1
|
|
85
|
-
en: A document with no heading below its title is not measured. Legal and blog genres, and letters and emails, do not run this rule. A note attached to a word of the text (a paragraph opened by a note mark of the note-mark lexicon, as in Japanese ※1) is a note, not preamble, and is not counted.
|
|
84
|
+
ja: 表題より下の見出しが一つもない文書は測りません。法務やブログのジャンルと、手紙・メールでは見ません。本文の語に付けた注(※1 …)の段落は、前置きではなく注なので数えません。見出しが末尾の問い合わせ先や参考文献のような前後の見出しだけの文書(手紙の形の諮問)も、本題の見出しが無いので測りません。
|
|
85
|
+
en: A document with no heading below its title is not measured. Legal and blog genres, and letters and emails, do not run this rule. A note attached to a word of the text (a paragraph opened by a note mark of the note-mark lexicon, as in Japanese ※1) is a note, not preamble, and is not counted. Nor is a document whose only headings are front or back matter, such as a contact box at its end (a request written as a letter), since it has no body heading.
|
|
86
86
|
level_meaning:
|
|
87
87
|
ja: 最初の見出しまで {limit} 段落まで
|
|
88
88
|
en: up to {limit} paragraphs before the first heading
|
|
@@ -70,8 +70,8 @@ example:
|
|
|
70
70
|
The old prices end in March.
|
|
71
71
|
|
|
72
72
|
not_flagged:
|
|
73
|
-
ja:
|
|
74
|
-
en: One paragraph opening with a connective is ordinary and is not reported.
|
|
73
|
+
ja: 接続詞で始まる段落が一つだけなら、流れをつなぐ普通の書き方なので指しません。段落の間に置いた図表の題(表2-2-1 …の概要)は本文の段落ではないので、並びを切りません。
|
|
74
|
+
en: One paragraph opening with a connective is ordinary and is not reported. A figure or table caption between the paragraphs (Table 2 …) is not a paragraph of the text and does not end the run.
|
|
75
75
|
level_meaning:
|
|
76
76
|
ja: 接続詞で始まる段落の連続 {limit} まで
|
|
77
77
|
en: up to {limit} paragraphs in a row opening with a connective
|
|
@@ -48,8 +48,8 @@ example:
|
|
|
48
48
|
The tool is free and needs no account. It works on phones too, and it speaks Japanese as well.
|
|
49
49
|
|
|
50
50
|
not_flagged:
|
|
51
|
-
ja:
|
|
52
|
-
en: List items that open the same way are a format, not a slip, so a run does not continue across items.
|
|
51
|
+
ja: 箇条書きの項目どうしが同じ形で始まるのは書き方そのものなので、項目をまたいでは数えません。見出しをまたいでも数えません(FAQ の答えごとに「Learn more about …」で締める形)。どの文も一文だけの段落の連なり(案内ごとに一段落の「The government’s ‘How to …’ guide …」)は、印の無い項目の並びとして数えません。行の区切りが落ちて升の文字がつながった表(「(日本)100.0自動車…」のように行ごとに数の升がつながる段落)の行も数えません。
|
|
52
|
+
en: List items that open the same way are a format, not a slip, so a run does not continue across items. Nor does it continue across a heading (FAQ answers that each close with "Learn more about …"). A run in which every sentence is a paragraph of its own (one paragraph per guide, "The government’s ‘How to …’ guide …") is a list without markup and is not reported, and neither are the rows of a table whose cells ran together (a paragraph where a decimal cell joins the next cell row after row, "(日本)100.0自動車…").
|
|
53
53
|
level_meaning:
|
|
54
54
|
ja: 同じ書き出しの文の連続 {limit} 文まで
|
|
55
55
|
en: up to {limit} sentences in a row with the same opening
|
|
@@ -60,8 +60,8 @@ example:
|
|
|
60
60
|
I have no other questions.
|
|
61
61
|
|
|
62
62
|
not_flagged:
|
|
63
|
-
ja:
|
|
64
|
-
en: Only requests for an action whose completion can be checked (review, reply, send) are read. Courtesy requests, conditional offers ("If you have questions, let me know"), open offers ("Please send any questions to me"), invitations ("Please come and register") and a request on a contact line (a "Fax" or "Phone" label and its number) are not. A deadline or owner in the same or the next sentence is enough; so is a timing in the request itself ("after you pay"), or a heading above it that names the deadline. A section of its own for the deadline (headed only "DATES:" or "Deadline", with a deadline word and a date in it), or a schedule that says when the decision is made (headed "Timeline", with a date and a decision word, as in "December 2026, board approval"), gives that deadline to every request after it, and to the requests in the sections before it at its own level under the same heading (a proposal's "Summary"). In Japanese, 「ぜひ参加をご検討ください」 ("do consider joining") is an invitation, and a document titled 「(諮問)」, which asks a council to deliberate, carries no deadline by its kind. A request not to do something ("Please do not submit comments by email") forbids and is not read. Business documents only.
|
|
63
|
+
ja: 確認・返信・提出のように、済んだかどうかが後で分かる動作を頼む文だけを見ます。「ご了承ください」のような心構えの依頼、「ご不明な点があれば、ご連絡ください」のような条件付きの申し出、「ご質問はメールでお送りください」のような質問を受け付ける申し出、「返送の方法を教えてください」のように書き手がやり方を尋ねる依頼、「ご相談ください」「お越しください」のような誘い、連絡先の行(「電話:」)と同じ文の依頼は見ません。期限か担当が、その文か次の文にあれば指しません。「ご提出いただく前に」「送信後、」のように、いつするかを依頼の文が言っていれば期限と読みます。見出しが期限を言っていれば(「見積提出期限:…」「【随時受付】」)、その下の依頼はその期限を受け継ぎます。締め切りだけを書く節(見出しが「提出期限」「判断の期限」「DATES:」だけで、締め切りの語と日付がある)や、決める日を書いた予定の節(見出しが「今後のスケジュール」で、「2026年12月:経営会議にて承認」のように日付と決める段取りの語がある)があれば、その後ろの依頼と、同じ見出しの下で前に並ぶ節(提案の「結論」)の依頼は、どれもその締め切りを持ちます。「ぜひ参加をご検討ください」は誘いなので見ません。題が「(諮問)」の文書は、審議会に期限を付けずに審議を頼む文書なので見ません。しないように頼む文(「送らないでください」「ご遠慮ください」)は禁止なので見ません。ビジネスの文書でだけ動きます。
|
|
64
|
+
en: Only requests for an action whose completion can be checked (review, reply, send) are read. Courtesy requests, conditional offers ("If you have questions, let me know"), open offers ("Please send any questions to me"), the writer asking how to do something ("Could you let me know how to send it back?"), invitations ("Please come and register") and a request on a contact line (a "Fax" or "Phone" label and its number) are not. A deadline or owner in the same or the next sentence is enough; so is a timing in the request itself ("after you pay"), or a heading above it that names the deadline. A section of its own for the deadline (headed only "DATES:" or "Deadline", with a deadline word and a date in it), or a schedule that says when the decision is made (headed "Timeline", with a date and a decision word, as in "December 2026, board approval"), gives that deadline to every request after it, and to the requests in the sections before it at its own level under the same heading (a proposal's "Summary"). In Japanese, 「ぜひ参加をご検討ください」 ("do consider joining") is an invitation, and a document titled 「(諮問)」, which asks a council to deliberate, carries no deadline by its kind. A request not to do something ("Please do not submit comments by email") forbids and is not read. Business documents only.
|
|
65
65
|
rewrite:
|
|
66
66
|
depth: light
|
|
67
67
|
ja:
|
|
@@ -74,5 +74,5 @@ example:
|
|
|
74
74
|
config: { genre: technical/spec }
|
|
75
75
|
|
|
76
76
|
not_flagged:
|
|
77
|
-
ja: 要求の文でない文(説明や背景)、法令、ブログやビジネス文書は見ません。語彙表にない言い方は指しません。文書が定めた名前の「等」(以下「委託先等」という、銀行等(…をいう。)、定義の号の頭の語、次の段落で定義する項目だけを書いた語(9 書面等)と、監査等委員会のように後ろへ語が続く「等」は、列挙を閉じているので指しません。文書が定義した語のすぐ後ろの「等」(「秘密情報」と定義した文書の秘密情報等)も、定義したものを広げた名前で、開いた一覧ではないので指しません。すぐ後ろで種類を名指す「等」(印刷等、二次的に利用される場合/印刷等の二次的利用)も、一覧がその種類の例なので指しません。条件(訂正等を行った際に)、与える権利(消去等できるものとします)、禁止や免責(転載等をしてはならない、責任を負わないものとします)の中の「等」も、わざと広く取った一覧なので指しません。「しないこと。」「ではないこと。」で閉じる文(禁止や否定)、権利が誰のものかを定める文(帰属するものとする、留保されるものとします)、「次の行為をしてはならない。」の下に並ぶ項目の中の「等」も同じです。「当該」「前記」で始まる一覧(当該改良、改善等)は前に挙げた一覧を指し直すだけなので、そこでは指しません。要求が何についてかを説明する節の中の「など」(SNSなどを通じて知り合った人と行う取引は、…必要があります)も、果たす義務の中にないので指しません。条件の語のすぐ後ろの括弧の中の「等」(不要な場合(一つの表だけを読むとき等)も付けること)は、いつ当てはまるかの例なので指しません。英語の as soon as possible は、同じ文に日数の期限(no later than two days after)があれば、期限が決まっているので指しません。英語の but not limited to(including, but not limited to
|
|
78
|
-
en: Sentences that state no requirement (background, explanation), statutes, and blogs and business documents are not checked. Phrases not on chaff's lists are not reported. In Japanese, an open word in the clause that describes what the requirement is about (SNSなどを通じて…行う取引は、…必要があります) is not reported, since it is not in what the reader is asked to do. An open-ended word inside a name the document defines (a quoted term, one defined in the brackets after it, or one an item of a definition list holds alone and the next paragraph defines) is not reported, nor is one written right after a term the document defines (秘密情報等 where 「秘密情報」 is defined), which widens a named thing rather than leaving a list open. "As soon as possible" followed in the same sentence by a limit in numbers ("but in any event no later than two days after") is bounded, and not reported. In a contract, "including, but not limited to" is a term of art that keeps the listed examples from narrowing the class, and is not reported. In Japanese, 等 right before the words that name the kind it gives examples of (印刷等、二次的に利用, "secondary use, such as printing") is not reported either. Nor is a Japanese 等 in a condition (訂正等を行った際に), a right the writer grants (できるものとする) or a prohibition or disclaimer (てはならない, ないものとする), because such a list is kept wide on purpose; the same holds for a sentence closed by a negation (しないこと, ではないこと), one that says who holds a right (帰属するものとする, 留保されるものとします), and the items of a list under a lead that forbids them (次の行為をしてはならない). A Japanese list opened by a pointing word (当該改良、改善等, "the said improvements, etc.") names one given before and is not reported again; or an open list in brackets right after a condition word (場合(…等), "in cases (…, etc.)"), which gives examples of when the requirement applies.
|
|
77
|
+
ja: 要求の文でない文(説明や背景)、法令、ブログやビジネス文書は見ません。語彙表にない言い方は指しません。文書が定めた名前の「等」(以下「委託先等」という、銀行等(…をいう。)、定義の号の頭の語、次の段落で定義する項目だけを書いた語(9 書面等)と、監査等委員会のように後ろへ語が続く「等」は、列挙を閉じているので指しません。文書が定義した語のすぐ後ろの「等」(「秘密情報」と定義した文書の秘密情報等)も、定義したものを広げた名前で、開いた一覧ではないので指しません。すぐ後ろで種類を名指す「等」(印刷等、二次的に利用される場合/印刷等の二次的利用)も、一覧がその種類の例なので指しません。条件(訂正等を行った際に)、与える権利(消去等できるものとします)、禁止や免責(転載等をしてはならない、責任を負わないものとします)の中の「等」も、わざと広く取った一覧なので指しません。「しないこと。」「ではないこと。」で閉じる文(禁止や否定)、権利が誰のものかを定める文(帰属するものとする、留保されるものとします)、「次の行為をしてはならない。」の下に並ぶ項目の中の「等」も同じです。「当該」「前記」で始まる一覧(当該改良、改善等)は前に挙げた一覧を指し直すだけなので、そこでは指しません。要求が何についてかを説明する節の中の「など」(SNSなどを通じて知り合った人と行う取引は、…必要があります)も、果たす義務の中にないので指しません。条件の語のすぐ後ろの括弧の中の「等」(不要な場合(一つの表だけを読むとき等)も付けること)は、いつ当てはまるかの例なので指しません。英語の as soon as possible は、同じ文に日数の期限(no later than two days after)があれば、期限が決まっているので指しません。英語の but not limited to(including, but not limited to)は、契約書では例の一覧で範囲を狭めないための決まった言い方なので、契約書では指しません。文書の見出しが名指す語の「等」(見出し「出願書類等の送付先」の下の出願書類等)も、ページの主題の名前なので指しません。
|
|
78
|
+
en: Sentences that state no requirement (background, explanation), statutes, and blogs and business documents are not checked. Phrases not on chaff's lists are not reported. In Japanese, an open word in the clause that describes what the requirement is about (SNSなどを通じて…行う取引は、…必要があります) is not reported, since it is not in what the reader is asked to do. An open-ended word inside a name the document defines (a quoted term, one defined in the brackets after it, or one an item of a definition list holds alone and the next paragraph defines) is not reported, nor is one written right after a term the document defines (秘密情報等 where 「秘密情報」 is defined), which widens a named thing rather than leaving a list open. "As soon as possible" followed in the same sentence by a limit in numbers ("but in any event no later than two days after") is bounded, and not reported. In a contract, "including, but not limited to" is a term of art that keeps the listed examples from narrowing the class, and is not reported. In Japanese, 等 right before the words that name the kind it gives examples of (印刷等、二次的に利用, "secondary use, such as printing") is not reported either. Nor is a Japanese 等 in a condition (訂正等を行った際に), a right the writer grants (できるものとする) or a prohibition or disclaimer (てはならない, ないものとする), because such a list is kept wide on purpose; the same holds for a sentence closed by a negation (しないこと, ではないこと), one that says who holds a right (帰属するものとする, 留保されるものとします), and the items of a list under a lead that forbids them (次の行為をしてはならない). A Japanese list opened by a pointing word (当該改良、改善等, "the said improvements, etc.") names one given before and is not reported again; or an open list in brackets right after a condition word (場合(…等), "in cases (…, etc.)"), which gives examples of when the requirement applies. Nor is a Japanese 等 in a noun a heading of the document names (出願書類等 under 出願書類等の送付先), which is the page's subject rather than an open list.
|
|
@@ -37,5 +37,5 @@ example:
|
|
|
37
37
|
The form is ready, and the office has a copy.
|
|
38
38
|
|
|
39
39
|
not_flagged:
|
|
40
|
-
ja: コロン、空白で区切った省略の点や目次の点線(「. . .」)、「.NET」「.5」のような語の頭の点、数の後ろの句読点、二つ以上の空白の後ろの句読点、コードと URL
|
|
41
|
-
en: Colons, dots spaced out as an ellipsis or a leader (". . ."), a dot that starts a word (".NET", ".5"), a mark after a number or after two or more spaces, code and URLs are not reported.
|
|
40
|
+
ja: コロン、空白で区切った省略の点や目次の点線(「. . .」)、「.NET」「.5」のような語の頭の点、数の後ろの句読点、二つ以上の空白の後ろの句読点、コードと URL、文献一覧で値の落ちた大文字の欄の後ろの読点(「ISBN ,」)は指しません。
|
|
41
|
+
en: Colons, dots spaced out as an ellipsis or a leader (". . ."), a dot that starts a word (".NET", ".5"), a mark after a number or after two or more spaces, code and URLs, and a comma after a capitalised field left empty in a reference list ("ISBN ,") are not reported.
|
package/rules/stray-space.yaml
CHANGED
|
@@ -12,8 +12,8 @@ name:
|
|
|
12
12
|
en: Stray space inside a phrase
|
|
13
13
|
|
|
14
14
|
why:
|
|
15
|
-
ja: 「こころさんが 払った」「確認 しました」のように、一続きに読む語句の途中に空白が入ると、読み手はそこで区切れるのかと迷います。打ち直しや貼り付けで残りやすく、目で見ても気づきにくい空白です。chaff
|
|
16
|
-
en: A space inside what reads as one phrase in Japanese (こころさんが 払った, 確認 しました) makes the reader wonder whether the phrase breaks there. It is typically left over from retyping or pasting and is easy to miss by eye. chaff counts
|
|
15
|
+
ja: 「こころさんが 払った」「確認 しました」のように、一続きに読む語句の途中に空白が入ると、読み手はそこで区切れるのかと迷います。打ち直しや貼り付けで残りやすく、目で見ても気づきにくい空白です。chaff は三つの境目を別々に数えます。助詞の後ろ(「が 払った」、文節の切れ目)と、文節を始められない語の前(「アプリ が」の助詞、「行き ます」の助動詞、「確認 しました」の「する」、「例 えば」のように語の途中で切れて語として読めないかな)と、文の中で読点や中黒の後ろから始まる漢字の複合語の途中(「期末手当・勤勉 手当」)です。文節ごとに空けて書く分かち書き(子ども向けの文や、日本語を学ぶ人向けの文)は書き方の一つなので、chaff はどちらが正しいかを決めず、文書の中で空けたほうが少ないときだけ、その空白を指摘します。ほかの名詞どうしのあいだ(「担当 田中」の名札と値、「赤坂 文弥」の名前、「サムネイル キャッシュ」の複合語、行の頭の札や小見出しの後ろの「第一条 」「市場環境の変化 当社は」)は書き方として空けることが多いので数えません。句点で終わらない行(歌、名札と値、表のような行)、見出し、表、行頭の全角空白の字下げ、行頭の項目の記号(「イ 」)の後ろ、Markdown の改行、鉤括弧(「」『』)で引いたものの中、英字・数字との境目(latin-spacing が見ます)も数えません。
|
|
16
|
+
en: A space inside what reads as one phrase in Japanese (こころさんが 払った, 確認 しました) makes the reader wonder whether the phrase breaks there. It is typically left over from retyping or pasting and is easy to miss by eye. chaff counts three kinds of joint separately, after a particle (が 払った, the break between phrases), before a word that cannot start a phrase (a particle as in アプリ が, an auxiliary as in 行き ます, する after a noun as in 確認 しました, or kana cut off from its word as in 例 えば), and inside a kanji compound that starts after a comma or a nakaguro in running text (期末手当・勤勉 手当). Spacing every phrase (分かち書き, as in text for children or for learners of Japanese) is a way of writing, so chaff does not decide which is right; it reports the spaces only when the document spaces less often than it does not. Any other space between two nouns (a label and its value as in 担当 田中, a name as in 赤坂 文弥, a compound as in サムネイル キャッシュ, the space after a label or a run-in heading at the head of a line as in 第一条 ) is often written on purpose and is not counted. Neither are lines that do not end with a full stop (verse, labels and values, table-like lines), headings, tables, a full-width indent at the start of a line, the space after an item mark at the start of a line (イ ), a Markdown line break, the inside of a quotation in 「」 or 『』, or a boundary with Latin letters or digits (latin-spacing looks at those).
|
|
17
17
|
|
|
18
18
|
message:
|
|
19
19
|
ja: "「{before}」と「{after}」のあいだに空白があります(この文書では {of} 箇所のうち {count} 箇所が空いている)"
|
|
@@ -26,6 +26,9 @@ messages:
|
|
|
26
26
|
inside-phrase:
|
|
27
27
|
ja: "「{before}」と「{after}」は一続きの語句ですが、あいだに空白があります({of} 箇所のうち {count} 箇所が空いている)"
|
|
28
28
|
en: '"{before}" and "{after}" read as one phrase but are separated by a space ({count} of {of} are spaced)'
|
|
29
|
+
inside-word:
|
|
30
|
+
ja: "「{before}」と「{after}」は一語の漢字の複合語ですが、あいだに空白があります({of} 箇所のうち {count} 箇所が空いている)"
|
|
31
|
+
en: '"{before}" and "{after}" make one kanji compound but are separated by a space ({count} of {of} are spaced)'
|
|
29
32
|
|
|
30
33
|
how_to_fix:
|
|
31
34
|
ja: 空白を消して詰めてください。文節ごとに空ける書き方をしているなら、文書全体でそろえてください。
|
|
@@ -49,8 +52,8 @@ example:
|
|
|
49
52
|
資料を確認しました。担当者が払いました。会議で決めました。見積もりを送りました。
|
|
50
53
|
|
|
51
54
|
not_flagged:
|
|
52
|
-
ja: 名詞と名詞のあいだの空白(担当
|
|
53
|
-
en: Spaces between two nouns, lines that do not end with a full stop, headings, tables, quotations and boundaries with Latin letters are not checked. A document that spaces every phrase on purpose is not reported.
|
|
55
|
+
ja: 名詞と名詞のあいだの空白(担当 田中。ただし文の中で読点や中黒の後ろから始まる漢字の複合語の途中は見ます)、句点で終わらない行、見出し、表、「」の中、英数字との境目は見ません。文書全体が文節ごとに空ける書き方なら指しません。
|
|
56
|
+
en: Spaces between two nouns (except inside a kanji compound that starts after a comma or a nakaguro in running text), lines that do not end with a full stop, headings, tables, quotations and boundaries with Latin letters are not checked. A document that spaces every phrase on purpose is not reported.
|
|
54
57
|
level_meaning:
|
|
55
58
|
ja: 少ないほうの空け方が {limit} 箇所あれば指摘
|
|
56
59
|
en: reported once {limit} spaces go against the document's habit
|
|
@@ -69,8 +69,8 @@ example:
|
|
|
69
69
|
The fee is $350.
|
|
70
70
|
|
|
71
71
|
not_flagged:
|
|
72
|
-
ja: 本文に同じ項目の値が二通り以上あるとき(回ごと、対象ごとの値)は、要約がどれと合うべきか決まらないので言いません。単位の違う値、条件の付いた値(「3,000円から」)も比べません。「XからYに」は、本文の文に同じ項目の名前があり、二つの値のどちらの条件も読めたときだけ比べます。幅(ranging from 10 to 20
|
|
73
|
-
en: When the body gives the item more than one value (per session, per group), which one the summary should match is not settled, so nothing is said. Values in different units and values with a condition ("from $300") are not compared. A "from X to Y" is compared only when a body sentence names the same item and the condition of each of its two values can be read; a range ("ranging from 10 to 20") is not a change and is left alone. An event's date is compared only when both dates give the year, month and day; a sentence with two dates (a period) or with the words of another event (the day it was announced and the day of the release) is not read, nor is a body sentence that names something the opening sentence does not (another product).
|
|
72
|
+
ja: 本文に同じ項目の値が二通り以上あるとき(回ごと、対象ごとの値)は、要約がどれと合うべきか決まらないので言いません。単位の違う値、条件の付いた値(「3,000円から」)も比べません。「XからYに」は、本文の文に同じ項目の名前があり、二つの値のどちらの条件も読めたときだけ比べます。幅(ranging from 10 to 20)は変化ではないので比べません。出来事の日付は、年月日まで書いた日付どうしだけを比べます。日付が二つある文(期間)や、別の出来事の語も持つ文(発表した日と提供する日)、冒頭の文に無い名前(別の製品)を持つ本文の文は比べません。コードの塊の中の値(// @errors の後ろの 2345)は例の一部なので読みません。
|
|
73
|
+
en: When the body gives the item more than one value (per session, per group), which one the summary should match is not settled, so nothing is said. Values in different units and values with a condition ("from $300") are not compared. A "from X to Y" is compared only when a body sentence names the same item and the condition of each of its two values can be read; a range ("ranging from 10 to 20") is not a change and is left alone. An event's date is compared only when both dates give the year, month and day; a sentence with two dates (a period) or with the words of another event (the day it was announced and the day of the release) is not read, nor is a body sentence that names something the opening sentence does not (another product). A value inside a code block (the 2345 after // @errors) is part of an example and is not read.
|
|
74
74
|
rewrite:
|
|
75
75
|
depth: light
|
|
76
76
|
ja:
|
|
@@ -44,8 +44,8 @@ example:
|
|
|
44
44
|
今年の目標は売上の回復です。そのための施策は三つあります。最初に、店頭の品ぞろえを見直します。
|
|
45
45
|
|
|
46
46
|
not_flagged:
|
|
47
|
-
ja: 箇条書きの中の体言止めは、その書き方が普通なので数えません。段落の頭に (1)(2)(3) と順に番号を付け、URL
|
|
48
|
-
en: Noun endings in bullet lists, where the form is normal, are not counted. Nor are the entries of a list of notes or references written as paragraphs numbered (1), (2), (3) in order that cite sources (a URL or a year), which list names and titles.
|
|
47
|
+
ja: 箇条書きの中の体言止めは、その書き方が普通なので数えません。段落の頭に (1)(2)(3) と順に番号を付け、URL や西暦の年で出典を書いた注や文献の一覧も、名前や題を並べた項目なので数えません。(注1)や「注:」で始まる表や図の注の段落と、箇条書きのすぐ前でそこへ渡す文(以下のとおり説明。)も、名詞で止めるのが書き方なので数えません。
|
|
48
|
+
en: Noun endings in bullet lists, where the form is normal, are not counted. Nor are the entries of a list of notes or references written as paragraphs numbered (1), (2), (3) in order that cite sources (a URL or a year), which list names and titles. Nor are the paragraphs of a note to a table or a figure opened by its label ((注1), 注:), or the sentence right before a bullet list that hands the reader to it (以下のとおり説明。), which are written ending in a noun.
|
|
49
49
|
level_meaning:
|
|
50
50
|
ja: 本文の体言止め {limit} 文まで
|
|
51
51
|
en: up to {limit} noun-ending sentences in the body
|
package/rules/teki-overuse.yaml
CHANGED
|
@@ -42,8 +42,8 @@ example:
|
|
|
42
42
|
問い合わせを半分に減らす施策を、四月から全店で始めます。
|
|
43
43
|
|
|
44
44
|
not_flagged:
|
|
45
|
-
ja:
|
|
46
|
-
en: Only the suffix 的 is counted; words such as 目的 and 的確, terms the law defines (電磁的方法, 反社会的勢力), and anything in 「」 are not. The options of one choice joined by か (連続的か断続的か、一時的) and a pair written together with only nouns between (信仰的主観的, 時間的空間的) count once. A list written inside the sentence with circled numbers (①…、②…) is counted item by item.
|
|
45
|
+
ja: 接尾の「的」だけを数えます。「目的」「的確」「標的」のように一語になったもの、法令が定めた語(電磁的方法、反社会的勢力)、鉤括弧で引いたものの中は数えません。「か」で並べた選択肢(連続的か断続的か、一時的)と、間に名詞だけを挟んで続けて書いた組(信仰的主観的、時間的空間的)は、一つの事柄なので一つと数えます。文の中に丸数字で並べた箇条(①…、②…)は、項目ごとに数えます。変換で一文に流れ込んだ表(「〃」のセルが並ぶ行)は数えません。
|
|
46
|
+
en: Only the suffix 的 is counted; words such as 目的 and 的確, terms the law defines (電磁的方法, 反社会的勢力), and anything in 「」 are not. The options of one choice joined by か (連続的か断続的か、一時的) and a pair written together with only nouns between (信仰的主観的, 時間的空間的) count once. A list written inside the sentence with circled numbers (①…、②…) is counted item by item. A table a converter ran into one sentence (rows of ditto cells, 〃) is not counted.
|
|
47
47
|
level_meaning:
|
|
48
48
|
ja: 一文の「〜的」{limit} 個まで
|
|
49
49
|
en: up to {limit} 〜的 words in a sentence
|
|
@@ -10,8 +10,8 @@ name:
|
|
|
10
10
|
en: Heading capitalisation is inconsistent
|
|
11
11
|
|
|
12
12
|
why:
|
|
13
|
-
ja: Title Case と sentence case のどちらが正しいかは決めません。1 つの文書で混ざっていると、見出しの階層が変わったように見えます。文書の題名(最初の見出しで、それより浅い・同じ深さの見出しがほかに無いとき)は名前なので比べません。節の見出しが同数に割れたときだけ、題名の流儀に合わせます。頭の番号の札(Section 3. / Day 1
|
|
14
|
-
en: Neither Title Case nor sentence case is wrong. Mixed within one document, the headings look like they change level. The document's title (the first heading, when no other heading is as shallow) is a name and is not compared; when the section headings split evenly, the title's style decides. A leading label (Section 3., Day 1:), the names of weekdays and months, and the names the body itself capitalises mid-sentence, all
|
|
13
|
+
ja: Title Case と sentence case のどちらが正しいかは決めません。1 つの文書で混ざっていると、見出しの階層が変わったように見えます。文書の題名(最初の見出しで、それより浅い・同じ深さの見出しがほかに無いとき)は名前なので比べません。節の見出しが同数に割れたときだけ、題名の流儀に合わせます。頭の番号の札(Section 3. / b. / Day 1:)と、曜日・月の名と、本文が文の途中で大文字で書く名前(どれもどちらの流儀でも同じ書き方)は、どちらの流儀の証拠にも数えません。
|
|
14
|
+
en: Neither Title Case nor sentence case is wrong. Mixed within one document, the headings look like they change level. The document's title (the first heading, when no other heading is as shallow) is a name and is not compared; when the section headings split evenly, the title's style decides. A leading label (Section 3., b., Day 1:), the names of weekdays and months, and the names the body itself capitalises mid-sentence, all written the same in either style, count as evidence for neither.
|
|
15
15
|
|
|
16
16
|
message:
|
|
17
17
|
ja: この見出しだけ他と大文字化の流儀が違います(文書の中で {count} 個)
|
package/rules/title-length.yaml
CHANGED
|
@@ -87,8 +87,8 @@ example:
|
|
|
87
87
|
What every store does during the move in the 2025 financial year.
|
|
88
88
|
|
|
89
89
|
not_flagged:
|
|
90
|
-
ja: "見出しの頭の番号(「第2章」「1.」)は数えません。末尾の括弧の中の番号付きの通し名(「(490: Employee travel)」)も数えず、ほかの文書の題をかぎ括弧で引いた所(「「…の取扱いについて」等の一部改正」)は一つの名前と数えます。英字の語は一語を二文字と数えます。報告書・プレスリリース・議事録・仕様書・論文は上限が高く、法務・文学・話し言葉のジャンルと、見出しが質問の文になる FAQ
|
|
91
|
-
en: "A number label at the head of a heading (Chapter 2, 1.) is not counted. Nor is a numbered series label in brackets at its end (“(490: Employee travel)”), and another document's title quoted in 「」 counts as one name. Reports, press releases, minutes, specifications and papers have a higher limit; legal, literary and speech genres, and FAQs (whose headings are questions), do not run this rule. In any genre, a heading that ends with a question mark, or with a Japanese question particle (…できますか。), is not counted, since its length is the reader's question."
|
|
90
|
+
ja: "見出しの頭の番号(「第2章」「1.」)は数えません。末尾の括弧の中の番号付きの通し名(「(490: Employee travel)」)も数えず、ほかの文書の題をかぎ括弧で引いた所(「「…の取扱いについて」等の一部改正」)は一つの名前と数えます。英字の語は一語を二文字と数えます。報告書・プレスリリース・議事録・仕様書・論文は上限が高く、法務・文学・話し言葉のジャンルと、見出しが質問の文になる FAQ では見ません。ほかのジャンルでも、?や「か」で終わる質問の見出し(…できますか。)は、長さが読み手の問いそのものなので見ません。末尾に再生時間を括弧で書いた見出し(…(3分00秒))は動画の題なので見ません。"
|
|
91
|
+
en: "A number label at the head of a heading (Chapter 2, 1.) is not counted. Nor is a numbered series label in brackets at its end (“(490: Employee travel)”), and another document's title quoted in 「」 counts as one name. Reports, press releases, minutes, specifications and papers have a higher limit; legal, literary and speech genres, and FAQs (whose headings are questions), do not run this rule. In any genre, a heading that ends with a question mark, or with a Japanese question particle (…できますか。), is not counted, since its length is the reader's question. A heading ending with a running time in brackets (… (3:00)) is the title of a video or a recording and is not counted."
|
|
92
92
|
level_meaning:
|
|
93
93
|
ja: 題や見出しが {limit} 文字を超えたら指摘
|
|
94
94
|
en: reported when a title or heading runs past {limit} words
|
|
@@ -14,7 +14,7 @@ why:
|
|
|
14
14
|
en: When the total of a quote or an invoice is not the sum of the amounts listed above it, the reader has to add them up again to find out which is right. It happens when a line is added or removed and the total is not updated. In a list or a table, a line starting with a total word (Total, Subtotal) is compared with the sum of the amounts in the same unit and column above it. A total with a word that the header of the table's first column, or of the column the total holds its number in, names ("Total deductions" under "Deduction", "Total credits earned" in the "Credits" column) is read as a total line too, and so is a total naming the span it covers ("Total for the year", "Year total", "Annual total"). Under a header that names nothing ("Item"), a "Total deductions" on the table's last row is read too, when no row above it is a total or a gross or net amount and the table has one column of amounts. A total written in a sentence, as contracts do ("$6,000 for hosting and $3,000 for support, for a total of $9,000", "$8 per month, made up of …", "a total of $12,000 — $5,000 for design and $6,000 for development"), is compared with the amounts in the same unit listed in that sentence, and with the amounts of the next sentence when it opens with a breakdown phrase ("This consists of …"). When there is more than one way to add them up, such as a grand total after a subtotal and tax, it is pointed out only when none of them matches.
|
|
15
15
|
|
|
16
16
|
message:
|
|
17
|
-
ja: 合計「{written}
|
|
17
|
+
ja: 合計「{written}」が、内訳の和({sum})と合いません
|
|
18
18
|
en: "The total {written} is not the sum of its items ({sum})"
|
|
19
19
|
|
|
20
20
|
how_to_fix:
|
|
@@ -9,7 +9,7 @@ name:
|
|
|
9
9
|
en: Unbalanced bracket
|
|
10
10
|
|
|
11
11
|
why:
|
|
12
|
-
ja: 閉じ忘れた「(」や、開きの無い「」」があると、読み手はどこまでが括弧の中なのか分からなくなります。全角の「(」を半角の「)」で閉じるのも、書き換えの途中で残った印です。見出しで区切った節ごとに、「」『』()()[][]【】〔〕〈〉《》“” の組を数えます。詩の連や長い引用は段落をまたぐので、段落を越えて組にします。行の頭や空白の後ろの「1)」「a)」「事例)」のような三文字までの番号の印と数の後ろの「)」、括弧の中の番号の印(「(…以下、事例5)まで同じ。)」の「事例5)」。同じ字の印を行の頭でも使っていて、同じ行の後ろの閉じで括弧が閉じるときに限る)、コードと URL、引用の閉じのすぐ前の開き(法令の読替えの「取締役(」とあるのは)は数えません。英語の小説のように、次の段落も同じ開きで始まるなら、閉じない開きは続きとして数えません。
|
|
12
|
+
ja: 閉じ忘れた「(」や、開きの無い「」」があると、読み手はどこまでが括弧の中なのか分からなくなります。全角の「(」を半角の「)」で閉じるのも、書き換えの途中で残った印です。見出しで区切った節ごとに、「」『』()()[][]【】〔〕〈〉《》“” と半角の 「」 の組を数えます。詩の連や長い引用は段落をまたぐので、段落を越えて組にします。行の頭や空白の後ろの「1)」「a)」「事例)」のような三文字までの番号の印と数の後ろの「)」、括弧の中の番号の印(「(…以下、事例5)まで同じ。)」の「事例5)」。同じ字の印を行の頭でも使っていて、同じ行の後ろの閉じで括弧が閉じるときに限る)、コードと URL、引用の閉じのすぐ前の開き(法令の読替えの「取締役(」とあるのは)は数えません。英語の小説のように、次の段落も同じ開きで始まるなら、閉じない開きは続きとして数えません。
|
|
13
13
|
en: A "(" never closed, or a ")" never opened, leaves the reader unsure where the aside ends. A full-width "(" closed by a half-width ")" is left over from an edit too. Brackets are paired within each section under a heading ((), [], “”, and the Japanese 「」『』()[]【】〔〕〈〉《》), across paragraphs, since a stanza or a long quotation may span several. A short label of up to three characters such as "1)", "a)" or "iv)" at the start of a line or after a space, a ")" right after a number, a numbered label inside an aside ("A3)" in "(see the notes; A3) and more)", when the same label is used at the start of a line and later closes on the same line still close the aside), code, URLs, and an opening bracket quoted as the last character of a quotation (「取締役(」, as statutes quote the text they amend) are not counted. An opening quotation mark carried into a paragraph that opens with the same mark, as in fiction, is not counted.
|
|
14
14
|
|
|
15
15
|
message:
|
|
@@ -52,5 +52,5 @@ example:
|
|
|
52
52
|
The plan (see below) is ready.
|
|
53
53
|
|
|
54
54
|
not_flagged:
|
|
55
|
-
ja: 行の頭や空白の後ろの「1)」「a)」「事例)」のような三文字までの番号の印、数の後ろの「)」、行の頭でも使う番号の印を括弧の中に書いたもの(「以下、事例5)まで同じ。」)、コードと URL は数えません。段落をまたいで閉じる括弧と、次の段落を同じ引用符で始める台詞も指しません。小数と単位の間の引用符はインチの印(.015 “Hg
|
|
56
|
-
en: Labels of up to three characters such as "1)" or "a)" at the start of a line or after a space, a ")" right after a number, a numbered label also used at the start of a line, written inside an aside ("(see the notes; A3) and more)"), code and URLs are not counted. A bracket closed in a later paragraph, and a quotation carried into a paragraph that opens with the same mark, are not reported. A curly quote between a decimal number and a unit is an inch mark (".015 “Hg") and is not counted.
|
|
55
|
+
ja: 行の頭や空白の後ろの「1)」「a)」「事例)」のような三文字までの番号の印、数の後ろの「)」、行の頭でも使う番号の印を括弧の中に書いたもの(「以下、事例5)まで同じ。」)、コードと URL は数えません。段落をまたいで閉じる括弧と、次の段落を同じ引用符で始める台詞も指しません。小数と単位の間の引用符はインチの印(.015 “Hg)として数えません。半角の「「」」も鉤括弧として組にし、全角との幅の違い(「…」)は hankaku-kana に任せます。
|
|
56
|
+
en: Labels of up to three characters such as "1)" or "a)" at the start of a line or after a space, a ")" right after a number, a numbered label also used at the start of a line, written inside an aside ("(see the notes; A3) and more)"), code and URLs are not counted. A bracket closed in a later paragraph, and a quotation carried into a paragraph that opens with the same mark, are not reported. A curly quote between a decimal number and a unit is an inch mark (".015 “Hg") and is not counted. Half-width 「」 pair as Japanese brackets too; a width difference against 「」 (「…」) is left to hankaku-kana.
|
|
@@ -69,8 +69,8 @@ example:
|
|
|
69
69
|
1. The Supplier shall provide the hosting services (the "Services") to the Customer.
|
|
70
70
|
|
|
71
71
|
not_flagged:
|
|
72
|
-
ja: 文書が「本」を付けた語を一つも定義していなければ見ません。定義した語とその言い換え(本件業務、defined-term-form が見ます)、定義した語で始まる語(本サービス上、本報告書提出後)、この文書やその一部を指す語(本条、本項、本書、本契約、本利用規約、本サイト)、どこかでかぎ括弧に入れた語と、定義の箇条書きの項目に語だけを書いたもの(② 本報告書。定義の書き方を chaff が読めなかったもの)とそれで始まる語、一語の言葉(本人、本日、本社)は見ません。定義した語に「等」を付けた語(本報告書等)は、まとめて呼ぶ別の語なので指します。同じ語は最初の一か所だけ指します。英語は、大文字は法令・組織・方針の名前(the Federal Trade Commission Act、Acceptable Use Policies)にも使うので、狭く読みます。"X" means や (the "X") の形の定義が二つ未満の文書は見ません。文の頭や記号の後ろの語、小文字の名詞の前に付けた語(the Premium plan)、名前の一覧(proper-name-word、地名、曜日と月、会社の形、当事者の役割)の語を含むもの、条の参照(Section 4、Schedule A)、前後の語から名前と分かるもの(後ろに番号が付く Proposition 65、長い名前の頭 Post Holdings, Inc. や Canton, Ohio や the Federal Food, Drug, and Cosmetic Act、直後の括弧で定義するもの Certificate of Analysis (“COA”) や the Closing (as defined in the Merger Agreement)、文書が定義した略語の頭文字になるもの “IRS” means the Internal Revenue Service、当事者の立場 Citibank, N.A., as Administrative Agent、すぐ後ろの attached hereto などで添付した書式の題と分かるもの the Termination Certificate attached hereto)、見出し・リンク・太字・HTML の要素・表・箇条書きの見出し・条の頭の見出し(5.8 No Representation or Warranty.)の中、どこかで引用符か太字に入れた語、定義した語を含むもの(大文字小文字を問いません)、文書のどこかで小文字でも書いた語(your Account と your account。普通の語か画面の名前)、空白の続きで分かれた語(Normal Business Hours は一つの語)、句点や斜線で次の語と続けて書いたもの(Borrowmoney.com、Leased/rent)、小さな語まで大文字で始めたもの(Maintenance And Deployment
|
|
73
|
-
en: "A document that defines no term with the prefix is not read. Defined terms and their other-prefix forms (本件業務, which defined-term-form reads), terms that start with a defined term (本サービス上, 本報告書提出後), the document's names for itself and its parts (本条, 本項, 本書, 本契約, 本利用規約, 本サイト), terms set in quotes anywhere or alone on an item of a definition list (② 本報告書: a definition chaff could not read) and terms that start with one, and single words (本人, 本日, 本社) are not reported. A defined term with 等 added (本報告書等) names a group, another term, and is reported. Each term is reported once, at its first use. English is read narrowly, since capitals also name laws, organisations and policies (the Federal Trade Commission Act, Acceptable Use Policies): a document with fewer than two definitions written with a defining word (“X” means, (the “X”)) is not read; and a word at the start of a sentence or after a mark, a modifier of a lower-case noun (the Premium plan), a run holding a word of the name lists (proper-name-word, places, weekdays and months, company forms, party roles), a reference to a part (Section 4, Schedule A), a name shown by the words around it (a number after it: Proposition 65; a longer name it starts: Post Holdings, Inc., Canton, Ohio, the Federal Food, Drug, and Cosmetic Act; brackets right after it that define it: Certificate of Analysis (“COA”), the Closing (as defined in the Merger Agreement); initials that spell a term the document defines: “IRS” means the Internal Revenue Service; a party's capacity: Citibank, N.A., as Administrative Agent; words right after it that make it the title of an attached form: the Termination Certificate attached hereto), anything inside a heading, a link, bold, an HTML element, a table, a list item's label or a clause's run-in caption (5.8 No Representation or Warranty.), a word set in quotes or bold anywhere, a run holding a defined term in any case, and a word the document also writes in lower case (your Account and your account: an ordinary word or a screen's name) are not reported, and neither are words split only by a run of spaces read apart (Normal Business Hours is one term), a word glued to more letters by a full stop or a slash (Borrowmoney.com, Leased/rent),
|
|
72
|
+
ja: 文書が「本」を付けた語を一つも定義していなければ見ません。定義した語とその言い換え(本件業務、defined-term-form が見ます)、定義した語で始まる語(本サービス上、本報告書提出後)、この文書やその一部を指す語(本条、本項、本書、本契約、本利用規約、本サイト)、どこかでかぎ括弧に入れた語と、定義の箇条書きの項目に語だけを書いたもの(② 本報告書。定義の書き方を chaff が読めなかったもの)とそれで始まる語、一語の言葉(本人、本日、本社)は見ません。定義した語に「等」を付けた語(本報告書等)は、まとめて呼ぶ別の語なので指します。同じ語は最初の一か所だけ指します。英語は、大文字は法令・組織・方針の名前(the Federal Trade Commission Act、Acceptable Use Policies)にも使うので、狭く読みます。"X" means や (the "X") の形の定義が二つ未満の文書は見ません。文の頭や記号の後ろの語、小文字の名詞の前に付けた語(the Premium plan)、名前の一覧(proper-name-word、地名、曜日と月、会社の形、当事者の役割)の語を含むもの、条の参照(Section 4、Schedule A)、前後の語から名前と分かるもの(後ろに番号が付く Proposition 65、長い名前の頭 Post Holdings, Inc. や Canton, Ohio や the Federal Food, Drug, and Cosmetic Act、直後の括弧で定義するもの Certificate of Analysis (“COA”) や the Closing (as defined in the Merger Agreement)、文書が定義した略語の頭文字になるもの “IRS” means the Internal Revenue Service、当事者の立場 Citibank, N.A., as Administrative Agent、すぐ後ろの attached hereto などで添付した書式の題と分かるもの the Termination Certificate attached hereto)、見出し・リンク・太字・HTML の要素・表・箇条書きの見出し・条の頭の見出し(5.8 No Representation or Warranty.)の中、どこかで引用符か太字に入れた語、定義した語を含むもの(大文字小文字を問いません)、文書のどこかで小文字でも書いた語(your Account と your account。普通の語か画面の名前)、空白の続きで分かれた語(Normal Business Hours は一つの語)、句点や斜線で次の語と続けて書いたもの(Borrowmoney.com、Leased/rent)、小さな語まで大文字で始めたもの(Maintenance And Deployment。語ごとに大文字にした書き方)、長い二語が空白なしにつながった語を含むもの(Space Includingspecified Description。変換で表の欄の間の空白が落ちたもの)は見ません。「本共同研究開発契約において定義した用語は…同契約内の定義に従う」のように別の文書の定義に従うと書いた文書では、定義の多くが向こうにあるので、ほかの語の書き誤りに見える語(「本学習済みモデル」の横の「本学習モデル」)だけを指します。文書の名前(本共同開発契約)は、定義した文書名(本共同研究開発契約)の書き誤りに見えれば指します。法令・判決・特許は見ません。契約書・規約のジャンルで見ます。
|
|
73
|
+
en: "A document that defines no term with the prefix is not read. Defined terms and their other-prefix forms (本件業務, which defined-term-form reads), terms that start with a defined term (本サービス上, 本報告書提出後), the document's names for itself and its parts (本条, 本項, 本書, 本契約, 本利用規約, 本サイト), terms set in quotes anywhere or alone on an item of a definition list (② 本報告書: a definition chaff could not read) and terms that start with one, and single words (本人, 本日, 本社) are not reported. A defined term with 等 added (本報告書等) names a group, another term, and is reported. Each term is reported once, at its first use. English is read narrowly, since capitals also name laws, organisations and policies (the Federal Trade Commission Act, Acceptable Use Policies): a document with fewer than two definitions written with a defining word (“X” means, (the “X”)) is not read; and a word at the start of a sentence or after a mark, a modifier of a lower-case noun (the Premium plan), a run holding a word of the name lists (proper-name-word, places, weekdays and months, company forms, party roles), a reference to a part (Section 4, Schedule A), a name shown by the words around it (a number after it: Proposition 65; a longer name it starts: Post Holdings, Inc., Canton, Ohio, the Federal Food, Drug, and Cosmetic Act; brackets right after it that define it: Certificate of Analysis (“COA”), the Closing (as defined in the Merger Agreement); initials that spell a term the document defines: “IRS” means the Internal Revenue Service; a party's capacity: Citibank, N.A., as Administrative Agent; words right after it that make it the title of an attached form: the Termination Certificate attached hereto), anything inside a heading, a link, bold, an HTML element, a table, a list item's label or a clause's run-in caption (5.8 No Representation or Warranty.), a word set in quotes or bold anywhere, a run holding a defined term in any case, and a word the document also writes in lower case (your Account and your account: an ordinary word or a screen's name) are not reported, and neither are words split only by a run of spaces read apart (Normal Business Hours is one term), a word glued to more letters by a full stop or a slash (Borrowmoney.com, Leased/rent), a phrase that capitalises its small words too (Maintenance And Deployment: every word capitalised), or a phrase holding two long words run together (Space Includingspecified Description, where a conversion lost the space between a table's cells). In Japanese, a document that says it follows another document's definitions (…同契約内の定義に従う) has most of its terms defined there, so only a term that looks like a slip for another of its terms (本学習モデル beside 本学習済みモデル) is reported; a document's name (本共同開発契約) is reported when it looks like a slip for a defined name (本共同研究開発契約). Statutes, court decisions and patents are not read; the contract genre runs this rule."
|
|
74
74
|
rewrite:
|
|
75
75
|
depth: light
|
|
76
76
|
ja:
|
|
@@ -52,8 +52,8 @@ example:
|
|
|
52
52
|
after: Our new product processes orders a fifth faster than the previous model.
|
|
53
53
|
|
|
54
54
|
not_flagged:
|
|
55
|
-
ja: 「当社比」「〜の中で」「〜のほうが」のように、比べる相手や範囲が同じ文にあれば指しません。「SES
|
|
56
|
-
en: A superlative with its comparison or scope in the same sentence ("in our range", "than last year", "the fastest in the industry") is not reported, nor is one limited by a clause ("the best we have measured"), nor one inside quotation marks, which are someone else's words, nor one inside a set phrase ("even the best", "in the best case", "make the most of", "the most recent", "the most common"), nor one in a question. A superlative that is sought or chosen rather than claimed ("to achieve the best results", "before deciding the best way", "start with the most important tasks") is not reported, nor one whose predicate points at a member of a set ("the best plan is the one you keep") or puts it in an order ("the most critical vulnerabilities are addressed first"), nor one whose noun names a part of a whole ("the most important part", "the most important role"), nor one whose set follows its noun ("the best thing about this event", "the most common form of debunking", "the most important tool for creating the culture").
|
|
55
|
+
ja: 「当社比」「〜の中で」「〜のほうが」のように、比べる相手や範囲が同じ文にあれば指しません。「SES との最大の違い」のように、最上級のすぐ前に相手があるときも同じです。「国内最大」「業界最速」のように名詞がじかに付いた最上級と、「日本で最も」のように名前と「で」が前にある最上級は、範囲を言っているので指しません。「バグを検出できる唯一のルール」のように、動詞で終わる節が最上級のすぐ前にあって範囲を決めているときも同じです。「」や引用符で引いた言葉の中の最上級は、書き手の主張ではないので指しません。「最大化する」のように接尾辞が付いて別の語になったものも指しません。「芭蕉の最も有名な句」のように名前と「の」がすぐ前にある最上級、「最高裁判所」「最も近い駅」のような決まった言い方、「最大5億ドル」のように数のある文の最上級も指しません。「世界で唯一の」のように場や分野の名詞と「で」が前にある最上級、「俺にとって最高の日」のように誰にとってなのかが同じ節にある最上級、「最高の規律が求められる」「最高の栄誉が与えられるべき」のように求めるもの・あるべき姿として述べた最上級、「最も重要なことは」のように話の順を示す言い方、問いの文(?で終わる文)の最上級、「もし最も速い案が通るなら」のように仮定の中の最上級も指しません。
|
|
56
|
+
en: A superlative with its comparison or scope in the same sentence ("in our range", "than last year", "the fastest in the industry") is not reported, nor is one limited by a clause ("the best we have measured"), nor one inside quotation marks, which are someone else's words, nor one inside a set phrase ("even the best", "in the best case", "make the most of", "the most recent", "the most common"), nor one in a question, nor one inside a condition ("If spreadsheet formulas are the most prolific government code, …"). A superlative that is sought or chosen rather than claimed ("to achieve the best results", "before deciding the best way", "start with the most important tasks") is not reported, nor one whose predicate points at a member of a set ("the best plan is the one you keep") or puts it in an order ("the most critical vulnerabilities are addressed first"), nor one whose noun names a part of a whole ("the most important part", "the most important role"), nor one whose set follows its noun ("the best thing about this event", "the most common form of debunking", "the most important tool for creating the culture").
|
|
57
57
|
level_meaning:
|
|
58
58
|
ja: 比べる相手のない最上級が {limit} 箇所あれば指摘
|
|
59
59
|
en: reported once there are {limit} such claims
|
|
@@ -53,8 +53,8 @@ example:
|
|
|
53
53
|
Report an incident within 30 minutes and notify the affected teams. Record it in the incident log and fix the cause by the next working day.
|
|
54
54
|
|
|
55
55
|
not_flagged:
|
|
56
|
-
ja: 文書の長さに対して少ないものは指しません。短すぎる文書も測りません。指すのは語のある文ごとに一度で、長い言い方の中の語(in a timely manner の timely)は一つと数えます。英語の法務の文書では、法律や慣行が意味を決めている言い方(reasonable、best efforts、from time to time)の中の語は数えません。要求の文の中の「可能な限り」「必要に応じて」は、要求の書き方として requirement-smell
|
|
57
|
-
en: 'A few vague words for the document''s length are not reported, and very short documents are not measured. Each sentence is reported once, and a word inside a longer phrase ("timely" in "in a timely manner") counts once. In legal documents, a word inside a term that law and practice define ("reasonable", "best efforts", "from time to time") is not counted. Inside a requirement, requirement-smell also reads "where possible" and "as needed". A word that the bracket right after it pins down ("a reasonable fee (USD 50)") is not counted either; a bracket that only names it ("(hereinafter the ""Fee"")") pins nothing down.'
|
|
56
|
+
ja: 文書の長さに対して少ないものは指しません。短すぎる文書も測りません。指すのは語のある文ごとに一度で、長い言い方の中の語(in a timely manner の timely)は一つと数えます。英語の法務の文書では、法律や慣行が意味を決めている言い方(reasonable、best efforts、from time to time)の中の語は数えません。要求の文の中の「可能な限り」「必要に応じて」は、要求の書き方として requirement-smell も見ます。すぐ後ろの括弧で中身を書いた語(一定の事項(請求書に書く事項))も数えません。括弧が名前を付けるだけ(以下「本措置」という。)なら数えます。目次の見出しの下の行(節の名前)は数えません。英語の reasonable accommodation は、どのジャンルでも法律が決めた義務の名前なので数えません。
|
|
57
|
+
en: 'A few vague words for the document''s length are not reported, and very short documents are not measured. Each sentence is reported once, and a word inside a longer phrase ("timely" in "in a timely manner") counts once. In legal documents, a word inside a term that law and practice define ("reasonable", "best efforts", "from time to time") is not counted. Inside a requirement, requirement-smell also reads "where possible" and "as needed". A word that the bracket right after it pins down ("a reasonable fee (USD 50)") is not counted either; a bracket that only names it ("(hereinafter the ""Fee"")") pins nothing down. Lines under a table of contents heading (the sections'' names) are not counted, and "reasonable accommodation" is the name of a legal duty in any genre.'
|
|
58
58
|
level_meaning:
|
|
59
59
|
ja: 1000 字あたりあいまいな語 {limit} 個まで
|
|
60
60
|
en: up to {limit} vague words per 1000 words
|
|
@@ -24,7 +24,7 @@ how_to_fix:
|
|
|
24
24
|
ja: 強めを外して、何がどの程度なのかを書いてください(とても速い → 1 秒以内に開く、very important → critical)。
|
|
25
25
|
en: Use a stronger word, or say what and how much ("very important" → "critical", "very fast" → "under a second"; とても速い → 1 秒以内に開く).
|
|
26
26
|
|
|
27
|
-
levels: { strict: 1, normal:
|
|
27
|
+
levels: { strict: 1, normal: 3, relaxed: 4 }
|
|
28
28
|
|
|
29
29
|
use_for: [business, technical, blog, legal, docs, academic, literature, speech]
|
|
30
30
|
off_for:
|
|
@@ -60,5 +60,5 @@ example:
|
|
|
60
60
|
Warning: the restore replaces the current database. Export today's orders first.
|
|
61
61
|
|
|
62
62
|
not_flagged:
|
|
63
|
-
ja: 「注意」「警告」「危険」をそれだけで頭に置いた段落(「注意:」「**警告**」「> [!WARNING]」)だけを読みます。GitHub の注意(> [!WARNING]
|
|
64
|
-
en: 'Only paragraphs opening with Warning, Caution or Danger standing alone ("Warning:", "**Caution**", "> [!WARNING]") are read. A GitHub alert (> [!WARNING]) is read to the end of its block quote. Warnings inside list items, notes, tips and "Important" paragraphs, words that merely start with the label ("Warnings are logged"), and warnings with any sentence that gives an action (do not, make sure, must, or a sentence opening with its verb) are not reported. Technical documents, manuals and blogs only.'
|
|
63
|
+
ja: 「注意」「警告」「危険」をそれだけで頭に置いた段落(「注意:」「**警告**」「> [!WARNING]」)だけを読みます。GitHub の注意(> [!WARNING])は引用の終わりまでを一つの注意書きとして読みます。箇条書きの項目の中の注意書き、「メモ」「ヒント」「重要」の段落、「注意深く」のように語の一部になったもの、どれかの文が読み手のすること(〜してください、〜しないこと、〜する必要があります)で終わる注意書きは指しません。技術文書・手順書・ブログでだけ動きます。「〜べきです」で結ぶ文も、読み手のすることを言う文と読みます。
|
|
64
|
+
en: 'Only paragraphs opening with Warning, Caution or Danger standing alone ("Warning:", "**Caution**", "> [!WARNING]") are read. A GitHub alert (> [!WARNING]) is read to the end of its block quote. Warnings inside list items, notes, tips and "Important" paragraphs, words that merely start with the label ("Warnings are logged"), and warnings with any sentence that gives an action (do not, make sure, must, or a sentence opening with its verb) are not reported. Technical documents, manuals and blogs only. In Japanese, a sentence ending in べきです (should) tells the reader what to do too.'
|
package/rules/yori-as-from.yaml
CHANGED
|
@@ -30,6 +30,7 @@ use_for: [business, technical, legal, docs, academic, literature, speech]
|
|
|
30
30
|
off_for:
|
|
31
31
|
literature: "Spoken 全然大丈夫, なので and より in a character's voice; classical verse has a たり that does not list."
|
|
32
32
|
speech: "Spoken Japanese says 全然大丈夫, opens with なので and greets with より参りました."
|
|
33
|
+
business/press-release: "A press release announces a start in the trade's fixed wording (12月1日より提供を開始いたします); official style's から is not what its readers expect."
|
|
33
34
|
sources: [koyobun-2022]
|
|
34
35
|
|
|
35
36
|
group: wording
|
package/src/announced-list.ts
CHANGED
|
@@ -56,8 +56,17 @@ const membersAt = (
|
|
|
56
56
|
? namesInOrder(tokens.slice(0, range.start).toReversed(), joiners, source).toReversed()
|
|
57
57
|
: namesInOrder(tokens.slice(range.end), joiners, source);
|
|
58
58
|
|
|
59
|
-
/** 一覧を読む言葉。frames は一覧を言う語、joiners は名前をつなぐ語、negations
|
|
60
|
-
export type ListWords = {
|
|
59
|
+
/** 一覧を読む言葉。frames は一覧を言う語、joiners は名前をつなぐ語、negations は打ち消しの語、ordinals は序数の語(小文字)。 */
|
|
60
|
+
export type ListWords = {
|
|
61
|
+
readonly frames: Lexicon;
|
|
62
|
+
readonly joiners: ReadonlySet<string>;
|
|
63
|
+
readonly negations: ReadonlySet<string>;
|
|
64
|
+
readonly ordinals?: ReadonlySet<string>;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/** 序数だけの名前(Fourteenth、Twenty-first)は数えた順番で、名前の一覧ではない(Fourteenth and Fifteenth Edition … Sixteenth Edition)。 */
|
|
68
|
+
const isOrdinal = (member: ListMember, ordinals: ReadonlySet<string>): boolean =>
|
|
69
|
+
member.name.split(/[\s-]+/u).every((word) => ordinals.has(word.toLowerCase()));
|
|
61
70
|
|
|
62
71
|
/** 打ち消した文(neither is available on Docker Hub、Linux には対応していません)は、一覧に足す名前ではなく、外す名前を言う。 */
|
|
63
72
|
const isNegated = (tokens: readonly Token[], negations: ReadonlySet<string>): boolean =>
|
|
@@ -72,7 +81,7 @@ export const listStatementsIn = (sentence: Sentence, words: ListWords, source: s
|
|
|
72
81
|
const group = entry.group;
|
|
73
82
|
if (group === undefined) return [];
|
|
74
83
|
return entryRanges(sentence, entry).flatMap((range) => {
|
|
75
|
-
const members = membersAt(tokens, entry, range, joiners, source);
|
|
84
|
+
const members = membersAt(tokens, entry, range, joiners, source).filter((member) => !isOrdinal(member, words.ordinals ?? new Set()));
|
|
76
85
|
const offset = tokens[range.start]?.span.start ?? sentence.span.start;
|
|
77
86
|
return members.length === 0 ? [] : [{ group, offset, members }];
|
|
78
87
|
});
|
package/src/body-section.ts
CHANGED
|
@@ -14,3 +14,22 @@ export const bodySectionOf = (sections: readonly Section[]): Section | undefined
|
|
|
14
14
|
const titleIndex = sections.findIndex((section) => section.depth === 1);
|
|
15
15
|
return sections.find((section, index) => section.depth >= 2 || isSiblingSection(section, index, titleIndex));
|
|
16
16
|
};
|
|
17
|
+
|
|
18
|
+
/** 前後の見出しの語のあとに続いてよい区切りか番号(「付録: 用語」「Appendix A」「図1」)。 */
|
|
19
|
+
const AFTER_MATTER = /^[\s::、0-90-9]/u;
|
|
20
|
+
|
|
21
|
+
/** 番号を付けない前後の見出し(目次・参考文献・付録 A)か。言葉全体が語彙表の語か、語彙表の語に区切りが続くとき。words は小文字。 */
|
|
22
|
+
export const isFrontOrBackMatter = (text: string, words: readonly string[]): boolean => {
|
|
23
|
+
const lowered = text.trim().toLowerCase();
|
|
24
|
+
return words.some((word) => lowered === word || (lowered.startsWith(word) && AFTER_MATTER.test(lowered.slice(word.length))));
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* 本題の節から先の、本題と同じ深さか浅い見出しが、どれも前後の見出し(お問合せ先、参考文献)か。それなら文書に本題の見出しは無く、
|
|
29
|
+
* 手紙の形の文書(諮問の文と、末尾の問い合わせ先の囲み)と同じで、見出しの前は前置きではない。words は小文字。
|
|
30
|
+
*/
|
|
31
|
+
export const hasOnlyMatterHeadings = (sections: readonly Section[], body: Section, words: readonly string[]): boolean =>
|
|
32
|
+
sections
|
|
33
|
+
.slice(sections.indexOf(body))
|
|
34
|
+
.filter((section) => section.depth <= body.depth)
|
|
35
|
+
.every((section) => isFrontOrBackMatter(section.heading, words));
|