chaffjs 0.20.0 → 0.22.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/README.md +7 -5
- package/dist/api.d.ts +16 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js.map +1 -1
- package/dist/cli-text.d.ts +2 -0
- package/dist/cli-text.d.ts.map +1 -1
- package/dist/cli-text.js +18 -5
- package/dist/cli-text.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +8 -11
- package/dist/cli.js.map +1 -1
- package/dist/command-help.d.ts +7 -0
- package/dist/command-help.d.ts.map +1 -0
- package/dist/command-help.js +18 -0
- package/dist/command-help.js.map +1 -0
- package/dist/commands/eval.js +2 -2
- package/dist/commands/eval.js.map +1 -1
- package/dist/commands/fix-plan.d.ts.map +1 -1
- package/dist/commands/fix-plan.js +11 -1
- package/dist/commands/fix-plan.js.map +1 -1
- package/dist/commands/help.d.ts +4 -0
- package/dist/commands/help.d.ts.map +1 -0
- package/dist/commands/help.js +7 -0
- package/dist/commands/help.js.map +1 -0
- package/dist/commands/init-command.d.ts +4 -0
- package/dist/commands/init-command.d.ts.map +1 -0
- package/dist/commands/init-command.js +15 -0
- package/dist/commands/init-command.js.map +1 -0
- package/dist/commands/plugin-init.d.ts +20 -0
- package/dist/commands/plugin-init.d.ts.map +1 -0
- package/dist/commands/plugin-init.js +129 -0
- package/dist/commands/plugin-init.js.map +1 -0
- package/dist/commands/plugin-test.d.ts +11 -0
- package/dist/commands/plugin-test.d.ts.map +1 -0
- package/dist/commands/plugin-test.js +81 -0
- package/dist/commands/plugin-test.js.map +1 -0
- package/dist/config/load.d.ts +2 -0
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/load.js +1 -0
- package/dist/config/load.js.map +1 -1
- package/dist/config/option-problems.js +2 -2
- package/dist/config/option-problems.js.map +1 -1
- package/dist/config/rule-problems.js +2 -2
- package/dist/config/rule-problems.js.map +1 -1
- package/dist/custom/checked.d.ts +9 -0
- package/dist/custom/checked.d.ts.map +1 -0
- package/dist/custom/checked.js +3 -0
- package/dist/custom/checked.js.map +1 -0
- package/dist/custom/dsl-fields.d.ts +27 -0
- package/dist/custom/dsl-fields.d.ts.map +1 -0
- package/dist/custom/dsl-fields.js +86 -0
- package/dist/custom/dsl-fields.js.map +1 -0
- package/dist/custom/load.d.ts.map +1 -1
- package/dist/custom/load.js +2 -0
- package/dist/custom/load.js.map +1 -1
- package/dist/custom/parse.d.ts +14 -3
- package/dist/custom/parse.d.ts.map +1 -1
- package/dist/custom/parse.js +44 -40
- package/dist/custom/parse.js.map +1 -1
- package/dist/custom/problems.d.ts.map +1 -1
- package/dist/custom/problems.js +10 -1
- package/dist/custom/problems.js.map +1 -1
- package/dist/detectors/amount-for-count.d.ts +21 -0
- package/dist/detectors/amount-for-count.d.ts.map +1 -0
- package/dist/detectors/amount-for-count.js +55 -0
- package/dist/detectors/amount-for-count.js.map +1 -0
- package/dist/detectors/blank-structure.d.ts.map +1 -1
- package/dist/detectors/blank-structure.js +6 -4
- package/dist/detectors/blank-structure.js.map +1 -1
- package/dist/detectors/clause-shape.d.ts +22 -0
- package/dist/detectors/clause-shape.d.ts.map +1 -0
- package/dist/detectors/clause-shape.js +149 -0
- package/dist/detectors/clause-shape.js.map +1 -0
- package/dist/detectors/code-fences.d.ts +34 -0
- package/dist/detectors/code-fences.d.ts.map +1 -0
- package/dist/detectors/code-fences.js +100 -0
- package/dist/detectors/code-fences.js.map +1 -0
- package/dist/detectors/cross-definitions.d.ts +4 -0
- package/dist/detectors/cross-definitions.d.ts.map +1 -0
- package/dist/detectors/cross-definitions.js +43 -0
- package/dist/detectors/cross-definitions.js.map +1 -0
- package/dist/detectors/cross-facts.d.ts +4 -0
- package/dist/detectors/cross-facts.d.ts.map +1 -0
- package/dist/detectors/cross-facts.js +53 -0
- package/dist/detectors/cross-facts.js.map +1 -0
- package/dist/detectors/cross-registry/cross-doc-duplicate-definition.d.ts +3 -0
- package/dist/detectors/cross-registry/cross-doc-duplicate-definition.d.ts.map +1 -0
- package/dist/detectors/cross-registry/cross-doc-duplicate-definition.js +3 -0
- package/dist/detectors/cross-registry/cross-doc-duplicate-definition.js.map +1 -0
- package/dist/detectors/cross-registry/cross-doc-fact-conflict.d.ts +3 -0
- package/dist/detectors/cross-registry/cross-doc-fact-conflict.d.ts.map +1 -0
- package/dist/detectors/cross-registry/cross-doc-fact-conflict.js +3 -0
- package/dist/detectors/cross-registry/cross-doc-fact-conflict.js.map +1 -0
- package/dist/detectors/currency-notation.d.ts +29 -0
- package/dist/detectors/currency-notation.d.ts.map +1 -0
- package/dist/detectors/currency-notation.js +58 -0
- package/dist/detectors/currency-notation.js.map +1 -0
- package/dist/detectors/custom.d.ts.map +1 -1
- package/dist/detectors/custom.js +4 -1
- package/dist/detectors/custom.js.map +1 -1
- package/dist/detectors/dangling-opener.d.ts +14 -0
- package/dist/detectors/dangling-opener.d.ts.map +1 -0
- package/dist/detectors/dangling-opener.js +55 -0
- package/dist/detectors/dangling-opener.js.map +1 -0
- package/dist/detectors/defined-term-form.d.ts +25 -0
- package/dist/detectors/defined-term-form.d.ts.map +1 -0
- package/dist/detectors/defined-term-form.js +170 -0
- package/dist/detectors/defined-term-form.js.map +1 -0
- package/dist/detectors/email-letter.d.ts +46 -0
- package/dist/detectors/email-letter.d.ts.map +1 -0
- package/dist/detectors/email-letter.js +234 -0
- package/dist/detectors/email-letter.js.map +1 -0
- package/dist/detectors/footnote-mismatch.d.ts +11 -0
- package/dist/detectors/footnote-mismatch.d.ts.map +1 -0
- package/dist/detectors/footnote-mismatch.js +55 -0
- package/dist/detectors/footnote-mismatch.js.map +1 -0
- package/dist/detectors/form-minority.d.ts +13 -0
- package/dist/detectors/form-minority.d.ts.map +1 -0
- package/dist/detectors/form-minority.js +19 -0
- package/dist/detectors/form-minority.js.map +1 -0
- package/dist/detectors/heading-end-mark.d.ts +10 -0
- package/dist/detectors/heading-end-mark.d.ts.map +1 -0
- package/dist/detectors/heading-end-mark.js +59 -0
- package/dist/detectors/heading-end-mark.js.map +1 -0
- package/dist/detectors/impossible-date.d.ts +20 -0
- package/dist/detectors/impossible-date.d.ts.map +1 -0
- package/dist/detectors/impossible-date.js +105 -0
- package/dist/detectors/impossible-date.js.map +1 -0
- package/dist/detectors/impossible-time.d.ts +18 -0
- package/dist/detectors/impossible-time.d.ts.map +1 -0
- package/dist/detectors/impossible-time.js +116 -0
- package/dist/detectors/impossible-time.js.map +1 -0
- package/dist/detectors/link-shape.d.ts +11 -0
- package/dist/detectors/link-shape.d.ts.map +1 -0
- package/dist/detectors/link-shape.js +56 -0
- package/dist/detectors/link-shape.js.map +1 -0
- package/dist/detectors/list-marker.d.ts +7 -0
- package/dist/detectors/list-marker.d.ts.map +1 -0
- package/dist/detectors/list-marker.js +50 -0
- package/dist/detectors/list-marker.js.map +1 -0
- package/dist/detectors/mark-shape.d.ts +53 -0
- package/dist/detectors/mark-shape.d.ts.map +1 -0
- package/dist/detectors/mark-shape.js +160 -0
- package/dist/detectors/mark-shape.js.map +1 -0
- package/dist/detectors/markdown-slip.d.ts +19 -0
- package/dist/detectors/markdown-slip.d.ts.map +1 -0
- package/dist/detectors/markdown-slip.js +122 -0
- package/dist/detectors/markdown-slip.js.map +1 -0
- package/dist/detectors/numeral-opener.d.ts +10 -0
- package/dist/detectors/numeral-opener.d.ts.map +1 -0
- package/dist/detectors/numeral-opener.js +65 -0
- package/dist/detectors/numeral-opener.js.map +1 -0
- package/dist/detectors/ordinal-suffix.d.ts +12 -0
- package/dist/detectors/ordinal-suffix.d.ts.map +1 -0
- package/dist/detectors/ordinal-suffix.js +33 -0
- package/dist/detectors/ordinal-suffix.js.map +1 -0
- package/dist/detectors/range-notation.d.ts +15 -0
- package/dist/detectors/range-notation.d.ts.map +1 -0
- package/dist/detectors/range-notation.js +58 -0
- package/dist/detectors/range-notation.js.map +1 -0
- package/dist/detectors/registry/adverb-polarity.d.ts +3 -0
- package/dist/detectors/registry/adverb-polarity.d.ts.map +1 -0
- package/dist/detectors/registry/adverb-polarity.js +3 -0
- package/dist/detectors/registry/adverb-polarity.js.map +1 -0
- package/dist/detectors/registry/amount-for-count.d.ts +3 -0
- package/dist/detectors/registry/amount-for-count.d.ts.map +1 -0
- package/dist/detectors/registry/amount-for-count.js +3 -0
- package/dist/detectors/registry/amount-for-count.js.map +1 -0
- package/dist/detectors/registry/attachment-missing.d.ts +3 -0
- package/dist/detectors/registry/attachment-missing.d.ts.map +1 -0
- package/dist/detectors/registry/attachment-missing.js +3 -0
- package/dist/detectors/registry/attachment-missing.js.map +1 -0
- package/dist/detectors/registry/bare-url-mix.d.ts +3 -0
- package/dist/detectors/registry/bare-url-mix.d.ts.map +1 -0
- package/dist/detectors/registry/bare-url-mix.js +3 -0
- package/dist/detectors/registry/bare-url-mix.js.map +1 -0
- package/dist/detectors/registry/caps-shouting.d.ts +3 -0
- package/dist/detectors/registry/caps-shouting.d.ts.map +1 -0
- package/dist/detectors/registry/caps-shouting.js +3 -0
- package/dist/detectors/registry/caps-shouting.js.map +1 -0
- package/dist/detectors/registry/code-fence-language.d.ts +3 -0
- package/dist/detectors/registry/code-fence-language.d.ts.map +1 -0
- package/dist/detectors/registry/code-fence-language.js +3 -0
- package/dist/detectors/registry/code-fence-language.js.map +1 -0
- package/dist/detectors/registry/currency-notation.d.ts +3 -0
- package/dist/detectors/registry/currency-notation.d.ts.map +1 -0
- package/dist/detectors/registry/currency-notation.js +3 -0
- package/dist/detectors/registry/currency-notation.js.map +1 -0
- package/dist/detectors/registry/dangling-opener.d.ts +3 -0
- package/dist/detectors/registry/dangling-opener.d.ts.map +1 -0
- package/dist/detectors/registry/dangling-opener.js +3 -0
- package/dist/detectors/registry/dangling-opener.js.map +1 -0
- package/dist/detectors/registry/defined-name-repeated.d.ts +3 -0
- package/dist/detectors/registry/defined-name-repeated.d.ts.map +1 -0
- package/dist/detectors/registry/defined-name-repeated.js +3 -0
- package/dist/detectors/registry/defined-name-repeated.js.map +1 -0
- package/dist/detectors/registry/defined-term-form.d.ts +3 -0
- package/dist/detectors/registry/defined-term-form.d.ts.map +1 -0
- package/dist/detectors/registry/defined-term-form.js +3 -0
- package/dist/detectors/registry/defined-term-form.js.map +1 -0
- package/dist/detectors/registry/email-frame.d.ts +3 -0
- package/dist/detectors/registry/email-frame.d.ts.map +1 -0
- package/dist/detectors/registry/email-frame.js +3 -0
- package/dist/detectors/registry/email-frame.js.map +1 -0
- package/dist/detectors/registry/email-subject.d.ts +3 -0
- package/dist/detectors/registry/email-subject.d.ts.map +1 -0
- package/dist/detectors/registry/email-subject.js +3 -0
- package/dist/detectors/registry/email-subject.js.map +1 -0
- package/dist/detectors/registry/ending-run.d.ts +3 -0
- package/dist/detectors/registry/ending-run.d.ts.map +1 -0
- package/dist/detectors/registry/ending-run.js +3 -0
- package/dist/detectors/registry/ending-run.js.map +1 -0
- package/dist/detectors/registry/footnote-mismatch.d.ts +3 -0
- package/dist/detectors/registry/footnote-mismatch.d.ts.map +1 -0
- package/dist/detectors/registry/footnote-mismatch.js +3 -0
- package/dist/detectors/registry/footnote-mismatch.js.map +1 -0
- package/dist/detectors/registry/heading-command.d.ts +3 -0
- package/dist/detectors/registry/heading-command.d.ts.map +1 -0
- package/dist/detectors/registry/heading-command.js +3 -0
- package/dist/detectors/registry/heading-command.js.map +1 -0
- package/dist/detectors/registry/heading-end-punctuation.d.ts +3 -0
- package/dist/detectors/registry/heading-end-punctuation.d.ts.map +1 -0
- package/dist/detectors/registry/heading-end-punctuation.js +3 -0
- package/dist/detectors/registry/heading-end-punctuation.js.map +1 -0
- package/dist/detectors/registry/hyphen-dash.d.ts +3 -0
- package/dist/detectors/registry/hyphen-dash.d.ts.map +1 -0
- package/dist/detectors/registry/hyphen-dash.js +3 -0
- package/dist/detectors/registry/hyphen-dash.js.map +1 -0
- package/dist/detectors/registry/image-file-name-alt.d.ts +3 -0
- package/dist/detectors/registry/image-file-name-alt.d.ts.map +1 -0
- package/dist/detectors/registry/image-file-name-alt.js +3 -0
- package/dist/detectors/registry/image-file-name-alt.js.map +1 -0
- package/dist/detectors/registry/impossible-date.d.ts +3 -0
- package/dist/detectors/registry/impossible-date.d.ts.map +1 -0
- package/dist/detectors/registry/impossible-date.js +3 -0
- package/dist/detectors/registry/impossible-date.js.map +1 -0
- package/dist/detectors/registry/impossible-time.d.ts +3 -0
- package/dist/detectors/registry/impossible-time.d.ts.map +1 -0
- package/dist/detectors/registry/impossible-time.js +3 -0
- package/dist/detectors/registry/impossible-time.js.map +1 -0
- package/dist/detectors/registry/latin-abbreviation.d.ts +3 -0
- package/dist/detectors/registry/latin-abbreviation.d.ts.map +1 -0
- package/dist/detectors/registry/latin-abbreviation.js +3 -0
- package/dist/detectors/registry/latin-abbreviation.js.map +1 -0
- package/dist/detectors/registry/link-text-url-mismatch.d.ts +3 -0
- package/dist/detectors/registry/link-text-url-mismatch.d.ts.map +1 -0
- package/dist/detectors/registry/link-text-url-mismatch.js +3 -0
- package/dist/detectors/registry/link-text-url-mismatch.js.map +1 -0
- package/dist/detectors/registry/list-marker.d.ts +3 -0
- package/dist/detectors/registry/list-marker.d.ts.map +1 -0
- package/dist/detectors/registry/list-marker.js +3 -0
- package/dist/detectors/registry/list-marker.js.map +1 -0
- package/dist/detectors/registry/mark-consistency.d.ts +3 -0
- package/dist/detectors/registry/mark-consistency.d.ts.map +1 -0
- package/dist/detectors/registry/mark-consistency.js +3 -0
- package/dist/detectors/registry/mark-consistency.js.map +1 -0
- package/dist/detectors/registry/numeral-opener.d.ts +3 -0
- package/dist/detectors/registry/numeral-opener.d.ts.map +1 -0
- package/dist/detectors/registry/numeral-opener.js +3 -0
- package/dist/detectors/registry/numeral-opener.js.map +1 -0
- package/dist/detectors/registry/ordinal-suffix.d.ts +3 -0
- package/dist/detectors/registry/ordinal-suffix.d.ts.map +1 -0
- package/dist/detectors/registry/ordinal-suffix.js +3 -0
- package/dist/detectors/registry/ordinal-suffix.js.map +1 -0
- package/dist/detectors/registry/origin-particle.d.ts +3 -0
- package/dist/detectors/registry/origin-particle.d.ts.map +1 -0
- package/dist/detectors/registry/origin-particle.js +3 -0
- package/dist/detectors/registry/origin-particle.js.map +1 -0
- package/dist/detectors/registry/range-notation.d.ts +3 -0
- package/dist/detectors/registry/range-notation.d.ts.map +1 -0
- package/dist/detectors/registry/range-notation.js +3 -0
- package/dist/detectors/registry/range-notation.js.map +1 -0
- package/dist/detectors/registry/relative-pronoun-mix.d.ts +3 -0
- package/dist/detectors/registry/relative-pronoun-mix.d.ts.map +1 -0
- package/dist/detectors/registry/relative-pronoun-mix.js +3 -0
- package/dist/detectors/registry/relative-pronoun-mix.js.map +1 -0
- package/dist/detectors/registry/request-without-deadline.d.ts +3 -0
- package/dist/detectors/registry/request-without-deadline.d.ts.map +1 -0
- package/dist/detectors/registry/request-without-deadline.js +3 -0
- package/dist/detectors/registry/request-without-deadline.js.map +1 -0
- package/dist/detectors/registry/sentence-spacing.d.ts +3 -0
- package/dist/detectors/registry/sentence-spacing.d.ts.map +1 -0
- package/dist/detectors/registry/sentence-spacing.js +3 -0
- package/dist/detectors/registry/sentence-spacing.js.map +1 -0
- package/dist/detectors/registry/share-over-hundred.d.ts +3 -0
- package/dist/detectors/registry/share-over-hundred.d.ts.map +1 -0
- package/dist/detectors/registry/share-over-hundred.js +3 -0
- package/dist/detectors/registry/share-over-hundred.js.map +1 -0
- package/dist/detectors/registry/shell-prompt.d.ts +3 -0
- package/dist/detectors/registry/shell-prompt.d.ts.map +1 -0
- package/dist/detectors/registry/shell-prompt.js +3 -0
- package/dist/detectors/registry/shell-prompt.js.map +1 -0
- package/dist/detectors/registry/step-reference.d.ts +3 -0
- package/dist/detectors/registry/step-reference.d.ts.map +1 -0
- package/dist/detectors/registry/step-reference.js +3 -0
- package/dist/detectors/registry/step-reference.js.map +1 -0
- package/dist/detectors/registry/step-statement.d.ts +3 -0
- package/dist/detectors/registry/step-statement.d.ts.map +1 -0
- package/dist/detectors/registry/step-statement.js +3 -0
- package/dist/detectors/registry/step-statement.js.map +1 -0
- package/dist/detectors/registry/table-row-overflow.d.ts +3 -0
- package/dist/detectors/registry/table-row-overflow.d.ts.map +1 -0
- package/dist/detectors/registry/table-row-overflow.js +3 -0
- package/dist/detectors/registry/table-row-overflow.js.map +1 -0
- package/dist/detectors/registry/toc-heading.d.ts +3 -0
- package/dist/detectors/registry/toc-heading.d.ts.map +1 -0
- package/dist/detectors/registry/toc-heading.js +3 -0
- package/dist/detectors/registry/toc-heading.js.map +1 -0
- package/dist/detectors/registry/unclosed-code-fence.d.ts +3 -0
- package/dist/detectors/registry/unclosed-code-fence.d.ts.map +1 -0
- package/dist/detectors/registry/unclosed-code-fence.js +3 -0
- package/dist/detectors/registry/unclosed-code-fence.js.map +1 -0
- package/dist/detectors/registry/unpaired-parallel.d.ts +3 -0
- package/dist/detectors/registry/unpaired-parallel.d.ts.map +1 -0
- package/dist/detectors/registry/unpaired-parallel.js +3 -0
- package/dist/detectors/registry/unpaired-parallel.js.map +1 -0
- package/dist/detectors/registry/unrendered-emphasis.d.ts +3 -0
- package/dist/detectors/registry/unrendered-emphasis.d.ts.map +1 -0
- package/dist/detectors/registry/unrendered-emphasis.js +3 -0
- package/dist/detectors/registry/unrendered-emphasis.js.map +1 -0
- package/dist/detectors/relative-pronoun-mix.d.ts +19 -0
- package/dist/detectors/relative-pronoun-mix.d.ts.map +1 -0
- package/dist/detectors/relative-pronoun-mix.js +60 -0
- package/dist/detectors/relative-pronoun-mix.js.map +1 -0
- package/dist/detectors/request-owner.d.ts +23 -0
- package/dist/detectors/request-owner.d.ts.map +1 -0
- package/dist/detectors/request-owner.js +110 -0
- package/dist/detectors/request-owner.js.map +1 -0
- package/dist/detectors/share-over-hundred.d.ts +20 -0
- package/dist/detectors/share-over-hundred.d.ts.map +1 -0
- package/dist/detectors/share-over-hundred.js +55 -0
- package/dist/detectors/share-over-hundred.js.map +1 -0
- package/dist/detectors/step-reference.d.ts +20 -0
- package/dist/detectors/step-reference.d.ts.map +1 -0
- package/dist/detectors/step-reference.js +57 -0
- package/dist/detectors/step-reference.js.map +1 -0
- package/dist/detectors/technical-docs.d.ts +32 -0
- package/dist/detectors/technical-docs.d.ts.map +1 -0
- package/dist/detectors/technical-docs.js +199 -0
- package/dist/detectors/technical-docs.js.map +1 -0
- package/dist/detectors/toc-heading.d.ts +10 -0
- package/dist/detectors/toc-heading.d.ts.map +1 -0
- package/dist/detectors/toc-heading.js +99 -0
- package/dist/detectors/toc-heading.js.map +1 -0
- package/dist/extension/pack-read.d.ts +21 -0
- package/dist/extension/pack-read.d.ts.map +1 -0
- package/dist/extension/pack-read.js +117 -0
- package/dist/extension/pack-read.js.map +1 -0
- package/dist/extension/plugin-load.d.ts.map +1 -1
- package/dist/extension/plugin-load.js +44 -10
- package/dist/extension/plugin-load.js.map +1 -1
- package/dist/extension/plugin-parse.d.ts.map +1 -1
- package/dist/extension/plugin-parse.js +10 -3
- package/dist/extension/plugin-parse.js.map +1 -1
- package/dist/facts/address-values.d.ts +5 -0
- package/dist/facts/address-values.d.ts.map +1 -0
- package/dist/facts/address-values.js +64 -0
- package/dist/facts/address-values.js.map +1 -0
- package/dist/facts/cross-facts.d.ts +20 -0
- package/dist/facts/cross-facts.d.ts.map +1 -0
- package/dist/facts/cross-facts.js +41 -0
- package/dist/facts/cross-facts.js.map +1 -0
- package/dist/fix-plan/chosen-depth.d.ts +10 -0
- package/dist/fix-plan/chosen-depth.d.ts.map +1 -0
- package/dist/fix-plan/chosen-depth.js +24 -0
- package/dist/fix-plan/chosen-depth.js.map +1 -0
- package/dist/fix-plan/mode.d.ts +13 -4
- package/dist/fix-plan/mode.d.ts.map +1 -1
- package/dist/fix-plan/mode.js +38 -7
- package/dist/fix-plan/mode.js.map +1 -1
- package/dist/fix-plan/plan.d.ts +20 -0
- package/dist/fix-plan/plan.d.ts.map +1 -1
- package/dist/fix-plan/plan.js +23 -5
- package/dist/fix-plan/plan.js.map +1 -1
- package/dist/fix-plan/render.d.ts.map +1 -1
- package/dist/fix-plan/render.js +24 -0
- package/dist/fix-plan/render.js.map +1 -1
- package/dist/fix-plan/text.d.ts +8 -0
- package/dist/fix-plan/text.d.ts.map +1 -1
- package/dist/fix-plan/text.js +36 -10
- package/dist/fix-plan/text.js.map +1 -1
- package/dist/genre-load.d.ts +1 -1
- package/dist/genre-load.d.ts.map +1 -1
- package/dist/genre-load.js +7 -4
- package/dist/genre-load.js.map +1 -1
- package/dist/genre-parse.d.ts +6 -0
- package/dist/genre-parse.d.ts.map +1 -1
- package/dist/genre-parse.js +18 -0
- package/dist/genre-parse.js.map +1 -1
- package/dist/init.js +10 -10
- package/dist/init.js.map +1 -1
- package/dist/known-genres.d.ts +8 -0
- package/dist/known-genres.d.ts.map +1 -0
- package/dist/known-genres.js +17 -0
- package/dist/known-genres.js.map +1 -0
- package/dist/link-shape.d.ts +20 -0
- package/dist/link-shape.d.ts.map +1 -0
- package/dist/link-shape.js +58 -0
- package/dist/link-shape.js.map +1 -0
- package/dist/list-marks.d.ts +21 -0
- package/dist/list-marks.d.ts.map +1 -0
- package/dist/list-marks.js +82 -0
- package/dist/list-marks.js.map +1 -0
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +15 -4
- package/dist/reasons.js.map +1 -1
- package/dist/render/explain.d.ts.map +1 -1
- package/dist/render/explain.js +11 -2
- package/dist/render/explain.js.map +1 -1
- package/dist/render/friendly.js +1 -1
- package/dist/render/friendly.js.map +1 -1
- package/dist/render/rules-json.d.ts.map +1 -1
- package/dist/render/rules-json.js +12 -3
- package/dist/render/rules-json.js.map +1 -1
- package/dist/render/rules-table.js +6 -6
- package/dist/render/rules-table.js.map +1 -1
- package/dist/render/semantic.js +2 -2
- package/dist/render/semantic.js.map +1 -1
- package/dist/render/suppressions.js +2 -2
- package/dist/render/suppressions.js.map +1 -1
- package/dist/rewrite-depth.d.ts +22 -0
- package/dist/rewrite-depth.d.ts.map +1 -0
- package/dist/rewrite-depth.js +42 -0
- package/dist/rewrite-depth.js.map +1 -0
- package/dist/rule-fields.d.ts +28 -0
- package/dist/rule-fields.d.ts.map +1 -0
- package/dist/rule-fields.js +85 -0
- package/dist/rule-fields.js.map +1 -0
- package/dist/rule-guide.d.ts +3 -0
- package/dist/rule-guide.d.ts.map +1 -1
- package/dist/rule-guide.js +6 -0
- package/dist/rule-guide.js.map +1 -1
- package/dist/rule-load.d.ts.map +1 -1
- package/dist/rule-load.js +13 -5
- package/dist/rule-load.js.map +1 -1
- package/dist/rule-offs.d.ts +14 -0
- package/dist/rule-offs.d.ts.map +1 -0
- package/dist/rule-offs.js +45 -0
- package/dist/rule-offs.js.map +1 -0
- package/dist/structure/build.d.ts.map +1 -1
- package/dist/structure/build.js +14 -1
- package/dist/structure/build.js.map +1 -1
- package/dist/structure/cross-definitions.d.ts +23 -0
- package/dist/structure/cross-definitions.d.ts.map +1 -0
- package/dist/structure/cross-definitions.js +34 -0
- package/dist/structure/cross-definitions.js.map +1 -0
- package/genres.yaml +14 -313
- package/package.json +3 -3
- package/rules/absolute-exception.yaml +3 -1
- package/rules/abstract-length.yaml +7 -1
- package/rules/acronym-expansion-conflict.yaml +2 -1
- package/rules/adverb-overuse.yaml +7 -1
- package/rules/adverb-without-negation.yaml +60 -0
- package/rules/adversative-ga-repeat.yaml +2 -1
- package/rules/agentless-passive.yaml +10 -1
- package/rules/agreement-slip.yaml +4 -1
- package/rules/ai-generated-composite.yaml +6 -1
- package/rules/ai-structure.yaml +8 -2
- package/rules/ai-tell.yaml +7 -1
- package/rules/all-caps-shouting.yaml +61 -0
- package/rules/announced-count-mismatch.yaml +3 -1
- package/rules/announcing-opener.yaml +7 -1
- package/rules/article-sound.yaml +6 -2
- package/rules/assistant-residue.yaml +4 -1
- package/rules/attachment-not-attached.yaml +112 -0
- package/rules/baito-keigo.yaml +64 -0
- package/rules/bare-url-mix.yaml +86 -0
- package/rules/bold-density.yaml +1 -0
- package/rules/bold-label-list.yaml +9 -1
- package/rules/bracket-nesting.yaml +2 -1
- package/rules/bracket-width-consistency.yaml +64 -0
- package/rules/broken-link.yaml +1 -1
- package/rules/chat-citation-residue.yaml +2 -1
- package/rules/citation-reference-mismatch.yaml +7 -1
- package/rules/citation-style-mix.yaml +7 -1
- package/rules/clause-chain.yaml +6 -1
- package/rules/cliche.yaml +67 -0
- package/rules/closing-cliche.yaml +7 -0
- package/rules/code-fence-language-mix.yaml +176 -0
- package/rules/colloquial-opener.yaml +62 -0
- package/rules/colon-lead-in.yaml +7 -1
- package/rules/concrete-evidence-density.yaml +6 -0
- package/rules/contraction-consistency.yaml +4 -1
- package/rules/contrast-framing.yaml +7 -1
- package/rules/cross-doc-duplicate-definition.yaml +70 -0
- package/rules/cross-doc-fact-conflict.yaml +64 -0
- package/rules/currency-notation-consistency.yaml +77 -0
- package/rules/cushion-phrase-density.yaml +8 -1
- package/rules/dangling-figure-reference.yaml +3 -1
- package/rules/dangling-participle.yaml +58 -0
- package/rules/dangling-reference.yaml +3 -1
- package/rules/date-format-consistency.yaml +3 -2
- package/rules/date-order.yaml +3 -1
- package/rules/date-range-reversed.yaml +3 -1
- package/rules/date-weekday-mismatch.yaml +3 -1
- package/rules/date-without-year.yaml +4 -3
- package/rules/defined-name-repeated.yaml +97 -0
- package/rules/defined-term-form.yaml +113 -0
- package/rules/demonstrative-opener-run.yaml +2 -1
- package/rules/double-keigo.yaml +6 -1
- package/rules/double-negative.yaml +5 -1
- package/rules/doubled-nado.yaml +2 -1
- package/rules/doubled-punctuation.yaml +1 -1
- package/rules/doubled-word.yaml +4 -1
- package/rules/duplicate-definition.yaml +3 -1
- package/rules/duplicate-heading.yaml +1 -1
- package/rules/duration-mismatch.yaml +2 -1
- package/rules/elapsed-years-mismatch.yaml +4 -1
- package/rules/email-greeting-closing.yaml +122 -0
- package/rules/email-subject-length.yaml +112 -0
- package/rules/emoji-density.yaml +3 -1
- package/rules/emoji-heading.yaml +7 -1
- package/rules/empty-intensifier.yaml +4 -0
- package/rules/empty-list-item.yaml +2 -1
- package/rules/empty-section.yaml +1 -1
- package/rules/empty-table-cell.yaml +2 -1
- package/rules/excessive-hedging.yaml +7 -1
- package/rules/exclamation-width-consistency.yaml +64 -0
- package/rules/expletive-construction.yaml +7 -1
- package/rules/fact-conflict.yaml +4 -1
- package/rules/figure-reference-order.yaml +7 -1
- package/rules/footnote-mismatch.yaml +91 -0
- package/rules/fullwidth-alnum-consistency.yaml +2 -2
- package/rules/hankaku-kana.yaml +1 -1
- package/rules/heading-command-missing.yaml +109 -0
- package/rules/heading-echo.yaml +6 -1
- package/rules/heading-end-punctuation-mix.yaml +158 -0
- package/rules/heading-level-skip.yaml +3 -3
- package/rules/heading-numbering-mix.yaml +4 -3
- package/rules/hiragana-fukushi.yaml +4 -1
- package/rules/homophone-slip.yaml +5 -1
- package/rules/humble-for-others.yaml +63 -0
- package/rules/hyphen-as-dash.yaml +59 -0
- package/rules/idiom-misuse.yaml +4 -1
- package/rules/image-file-name-alt.yaml +83 -0
- package/rules/impossible-date.yaml +79 -0
- package/rules/impossible-time.yaml +76 -0
- package/rules/internal-jargon.yaml +1 -1
- package/rules/invisible-character.yaml +1 -1
- package/rules/katakana-density.yaml +2 -1
- package/rules/katakana-long-vowel.yaml +1 -1
- package/rules/known-misspelling.yaml +2 -1
- package/rules/kutoten-consistency.yaml +1 -1
- package/rules/latin-abbreviation-form.yaml +58 -0
- package/rules/latin-spacing.yaml +6 -2
- package/rules/less-for-fewer.yaml +59 -0
- package/rules/link-text-url-mismatch.yaml +72 -0
- package/rules/list-item-form-mix.yaml +7 -1
- package/rules/list-marker-mix.yaml +111 -0
- package/rules/max-kanji-continuous.yaml +10 -2
- package/rules/max-paragraph-length.yaml +4 -1
- package/rules/max-sentence-length.yaml +29 -21
- package/rules/max-ten.yaml +4 -1
- package/rules/misconversion.yaml +2 -1
- package/rules/modal-conflict.yaml +2 -1
- package/rules/name-variant.yaml +4 -3
- package/rules/ngram-repetition.yaml +5 -0
- package/rules/no-doubled-joshi.yaml +5 -1
- package/rules/no-em-dash.yaml +4 -1
- package/rules/no-lead.yaml +6 -1
- package/rules/no-mixed-desumasu.yaml +5 -2
- package/rules/no-nakaguro-parallel.yaml +3 -0
- package/rules/nominalization.yaml +5 -1
- package/rules/nonstandard-word.yaml +80 -0
- package/rules/number-style-consistency.yaml +6 -1
- package/rules/number-without-unit.yaml +2 -1
- package/rules/numbering-gap.yaml +1 -1
- package/rules/numeral-sentence-start.yaml +56 -0
- package/rules/one-sentence-paragraph-run.yaml +5 -1
- package/rules/ordinal-suffix-mismatch.yaml +65 -0
- package/rules/orthographic-variant.yaml +4 -1
- package/rules/outside-announced-list.yaml +2 -1
- package/rules/oxford-comma-consistency.yaml +3 -1
- package/rules/padded-intro.yaml +7 -0
- package/rules/paragraph-length-variance.yaml +7 -1
- package/rules/paragraph-restatement.yaml +6 -1
- package/rules/percent-sum-mismatch.yaml +3 -1
- package/rules/person-consistency.yaml +4 -1
- package/rules/preamble-length.yaml +6 -0
- package/rules/preferred-term.yaml +1 -1
- package/rules/proper-noun-density.yaml +8 -1
- package/rules/quote-style-consistency.yaml +66 -0
- package/rules/ra-nuki.yaml +4 -1
- package/rules/range-notation-consistency.yaml +73 -0
- package/rules/redundant-expression.yaml +4 -1
- package/rules/reference-title-mismatch.yaml +4 -3
- package/rules/reference-topic-missing.yaml +2 -1
- package/rules/relative-date-mismatch.yaml +2 -1
- package/rules/repeated-conjunction.yaml +4 -1
- package/rules/repeated-sentence-ending.yaml +62 -0
- package/rules/repeated-sentence-head.yaml +4 -0
- package/rules/request-without-deadline.yaml +92 -0
- package/rules/required-sections.yaml +1 -1
- package/rules/requirement-modal.yaml +1 -1
- package/rules/requirement-smell.yaml +12 -4
- package/rules/rule-of-three.yaml +8 -1
- package/rules/sasete-itadaku.yaml +7 -1
- package/rules/section-length-uniformity.yaml +7 -1
- package/rules/sentence-initial-conjunction-run.yaml +5 -1
- package/rules/sentence-initial-so.yaml +6 -1
- package/rules/sentence-rhythm.yaml +8 -1
- package/rules/sentence-spacing-consistency.yaml +63 -0
- package/rules/share-over-hundred.yaml +65 -0
- package/rules/shell-prompt-mix.yaml +128 -0
- package/rules/space-before-punctuation.yaml +1 -1
- package/rules/spelling-consistency.yaml +3 -1
- package/rules/step-reference-missing.yaml +85 -0
- package/rules/step-statement-mix.yaml +76 -0
- package/rules/stock-transition.yaml +8 -1
- package/rules/stray-space.yaml +2 -2
- package/rules/summary-fact-mismatch.yaml +4 -1
- package/rules/table-header-variant.yaml +2 -1
- package/rules/table-row-overflow.yaml +90 -0
- package/rules/taigen-dome-in-prose.yaml +6 -0
- package/rules/tari-unpaired.yaml +58 -0
- package/rules/teki-overuse.yaml +2 -1
- package/rules/title-case-consistency.yaml +1 -1
- package/rules/title-length.yaml +7 -1
- package/rules/toc-heading-mismatch.yaml +136 -0
- package/rules/topic-predicate-distance.yaml +6 -1
- package/rules/total-mismatch.yaml +3 -1
- package/rules/translationese-density.yaml +4 -1
- package/rules/unbalanced-bracket.yaml +3 -3
- package/rules/unclosed-code-fence.yaml +107 -0
- package/rules/uncomparable-graded.yaml +65 -0
- package/rules/undefined-acronym.yaml +8 -1
- package/rules/unfilled-placeholder.yaml +1 -1
- package/rules/unit-mismatch.yaml +2 -1
- package/rules/unknown-word.yaml +4 -1
- package/rules/unqualified-superlative.yaml +6 -1
- package/rules/unrendered-emphasis.yaml +73 -0
- package/rules/unused-definition.yaml +4 -3
- package/rules/url-run-on.yaml +1 -1
- package/rules/use-before-definition.yaml +4 -3
- package/rules/vague-figure-reference.yaml +3 -1
- package/rules/vague-link-text.yaml +2 -1
- package/rules/vague-word-density.yaml +2 -1
- package/rules/very-adjective.yaml +5 -1
- package/rules/weasel-word.yaml +6 -1
- package/rules/which-that-consistency.yaml +64 -0
- package/rules/wordy-phrase.yaml +6 -1
- package/rules/yori-as-from.yaml +61 -0
- package/skills/chaff/SKILL.md +7 -7
- package/src/api.ts +13 -1
- package/src/cli-text.ts +22 -7
- package/src/cli.ts +8 -9
- package/src/command-help.ts +26 -0
- package/src/commands/eval.ts +2 -2
- package/src/commands/fix-plan.ts +13 -1
- package/src/commands/help.ts +8 -0
- package/src/commands/init-command.ts +13 -0
- package/src/commands/plugin-init.ts +150 -0
- package/src/commands/plugin-test.ts +111 -0
- package/src/config/load.ts +3 -0
- package/src/config/option-problems.ts +2 -2
- package/src/config/rule-problems.ts +2 -2
- package/src/custom/checked.ts +8 -0
- package/src/custom/dsl-fields.ts +102 -0
- package/src/custom/load.ts +2 -0
- package/src/custom/parse.ts +72 -50
- package/src/custom/problems.ts +16 -2
- package/src/detectors/amount-for-count.ts +90 -0
- package/src/detectors/blank-structure.ts +12 -4
- package/src/detectors/clause-shape.ts +199 -0
- package/src/detectors/code-fences.ts +113 -0
- package/src/detectors/cross-definitions.ts +49 -0
- package/src/detectors/cross-facts.ts +60 -0
- package/src/detectors/cross-registry/cross-doc-duplicate-definition.ts +4 -0
- package/src/detectors/cross-registry/cross-doc-fact-conflict.ts +4 -0
- package/src/detectors/currency-notation.ts +90 -0
- package/src/detectors/custom.ts +10 -2
- package/src/detectors/dangling-opener.ts +74 -0
- package/src/detectors/defined-term-form.ts +200 -0
- package/src/detectors/email-letter.ts +262 -0
- package/src/detectors/footnote-mismatch.ts +72 -0
- package/src/detectors/form-minority.ts +21 -0
- package/src/detectors/heading-end-mark.ts +82 -0
- package/src/detectors/impossible-date.ts +141 -0
- package/src/detectors/impossible-time.ts +151 -0
- package/src/detectors/link-shape.ts +70 -0
- package/src/detectors/list-marker.ts +60 -0
- package/src/detectors/mark-shape.ts +202 -0
- package/src/detectors/markdown-slip.ts +140 -0
- package/src/detectors/numeral-opener.ts +72 -0
- package/src/detectors/ordinal-suffix.ts +40 -0
- package/src/detectors/range-notation.ts +76 -0
- package/src/detectors/registry/adverb-polarity.ts +4 -0
- package/src/detectors/registry/amount-for-count.ts +4 -0
- package/src/detectors/registry/attachment-missing.ts +4 -0
- package/src/detectors/registry/bare-url-mix.ts +4 -0
- package/src/detectors/registry/caps-shouting.ts +4 -0
- package/src/detectors/registry/code-fence-language.ts +4 -0
- package/src/detectors/registry/currency-notation.ts +4 -0
- package/src/detectors/registry/dangling-opener.ts +4 -0
- package/src/detectors/registry/defined-name-repeated.ts +4 -0
- package/src/detectors/registry/defined-term-form.ts +4 -0
- package/src/detectors/registry/email-frame.ts +4 -0
- package/src/detectors/registry/email-subject.ts +4 -0
- package/src/detectors/registry/ending-run.ts +4 -0
- package/src/detectors/registry/footnote-mismatch.ts +4 -0
- package/src/detectors/registry/heading-command.ts +4 -0
- package/src/detectors/registry/heading-end-punctuation.ts +4 -0
- package/src/detectors/registry/hyphen-dash.ts +4 -0
- package/src/detectors/registry/image-file-name-alt.ts +4 -0
- package/src/detectors/registry/impossible-date.ts +4 -0
- package/src/detectors/registry/impossible-time.ts +4 -0
- package/src/detectors/registry/latin-abbreviation.ts +4 -0
- package/src/detectors/registry/link-text-url-mismatch.ts +4 -0
- package/src/detectors/registry/list-marker.ts +4 -0
- package/src/detectors/registry/mark-consistency.ts +4 -0
- package/src/detectors/registry/numeral-opener.ts +4 -0
- package/src/detectors/registry/ordinal-suffix.ts +4 -0
- package/src/detectors/registry/origin-particle.ts +4 -0
- package/src/detectors/registry/range-notation.ts +4 -0
- package/src/detectors/registry/relative-pronoun-mix.ts +4 -0
- package/src/detectors/registry/request-without-deadline.ts +4 -0
- package/src/detectors/registry/sentence-spacing.ts +4 -0
- package/src/detectors/registry/share-over-hundred.ts +4 -0
- package/src/detectors/registry/shell-prompt.ts +4 -0
- package/src/detectors/registry/step-reference.ts +4 -0
- package/src/detectors/registry/step-statement.ts +4 -0
- package/src/detectors/registry/table-row-overflow.ts +4 -0
- package/src/detectors/registry/toc-heading.ts +4 -0
- package/src/detectors/registry/unclosed-code-fence.ts +4 -0
- package/src/detectors/registry/unpaired-parallel.ts +4 -0
- package/src/detectors/registry/unrendered-emphasis.ts +4 -0
- package/src/detectors/relative-pronoun-mix.ts +79 -0
- package/src/detectors/request-owner.ts +141 -0
- package/src/detectors/share-over-hundred.ts +75 -0
- package/src/detectors/step-reference.ts +83 -0
- package/src/detectors/technical-docs.ts +230 -0
- package/src/detectors/toc-heading.ts +125 -0
- package/src/extension/pack-read.ts +128 -0
- package/src/extension/plugin-load.ts +49 -9
- package/src/extension/plugin-parse.ts +10 -3
- package/src/facts/address-values.ts +74 -0
- package/src/facts/cross-facts.ts +54 -0
- package/src/fix-plan/chosen-depth.ts +28 -0
- package/src/fix-plan/mode.ts +57 -11
- package/src/fix-plan/plan.ts +37 -5
- package/src/fix-plan/render.ts +24 -0
- package/src/fix-plan/text.ts +47 -10
- package/src/genre-load.ts +7 -4
- package/src/genre-parse.ts +19 -0
- package/src/init.ts +10 -10
- package/src/known-genres.ts +19 -0
- package/src/link-shape.ts +62 -0
- package/src/list-marks.ts +106 -0
- package/src/reasons.ts +16 -4
- package/src/render/explain.ts +14 -2
- package/src/render/friendly.ts +1 -1
- package/src/render/rules-json.ts +14 -3
- package/src/render/rules-table.ts +6 -6
- package/src/render/semantic.ts +2 -2
- package/src/render/suppressions.ts +2 -2
- package/src/rewrite-depth.ts +60 -0
- package/src/rule-fields.ts +123 -0
- package/src/rule-guide.ts +9 -0
- package/src/rule-load.ts +10 -4
- package/src/rule-offs.ts +50 -0
- package/src/structure/build.ts +21 -1
- package/src/structure/cross-definitions.ts +60 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
id: humble-for-others
|
|
2
|
+
layer: L3
|
|
3
|
+
status: stable
|
|
4
|
+
how_to_find: phrase-match
|
|
5
|
+
word_list: humble-for-others
|
|
6
|
+
uses: [pos]
|
|
7
|
+
languages: [ja]
|
|
8
|
+
severity: warning
|
|
9
|
+
|
|
10
|
+
name:
|
|
11
|
+
ja: 謙譲語を相手の動作に使っている
|
|
12
|
+
en: Humble form used for someone else's action
|
|
13
|
+
|
|
14
|
+
why:
|
|
15
|
+
ja: 謙譲語(伺う・拝見する・申す・参る)は、自分の側の動作を低めて相手を立てる語です。「伺ってください」「拝見してください」のように読み手の動作に使ったり、「申される」のように尊敬の「れる」を付けたりすると、読み手を低めることになり、失礼に読まれます。
|
|
16
|
+
en: Japanese humble verbs (伺う, 拝見する, 申す) lower the speaker's own side. Used for the reader's action (伺ってください) or dressed with an honorific (申される), they lower the reader instead.
|
|
17
|
+
|
|
18
|
+
message:
|
|
19
|
+
ja: 「{matched}」は謙譲語を相手の動作に使っています
|
|
20
|
+
en: '"{matched}" uses a humble verb for someone else''s action'
|
|
21
|
+
|
|
22
|
+
how_to_fix:
|
|
23
|
+
ja: 尊敬語に直してください。「伺ってください」は「お越しください」、「拝見してください」は「ご覧ください」、「申されました」は「おっしゃいました」です。
|
|
24
|
+
en: Use the honorific form instead (お越しください, ご覧ください, おっしゃいました).
|
|
25
|
+
|
|
26
|
+
levels: { strict: 1, normal: 1, relaxed: 2 }
|
|
27
|
+
|
|
28
|
+
use_for: [blog, business, legal, docs, academic, literature, speech]
|
|
29
|
+
off_for:
|
|
30
|
+
literature: "Dialogue keeps a character's keigo, mistakes and all."
|
|
31
|
+
|
|
32
|
+
group: wording
|
|
33
|
+
summary:
|
|
34
|
+
ja: 「伺ってください」「拝見してください」「申される」のように、謙譲語を読み手や第三者の動作に使った所
|
|
35
|
+
en: A Japanese humble verb used for the reader's or a third party's action (伺ってください, 申される)
|
|
36
|
+
example:
|
|
37
|
+
ja:
|
|
38
|
+
before: 資料は受付で拝見してください。
|
|
39
|
+
after: 資料は受付でご覧ください。
|
|
40
|
+
|
|
41
|
+
not_flagged:
|
|
42
|
+
ja: 一覧にある形だけを見ます。「伺われる」は「窺われる(うかがえる)」と同じ字になるので見ません。「お伺いください」「ご持参ください」のように認める手引きがある形も見ません。小説の台詞にはわざと崩した敬語があるので、文学のジャンルでは見ません。
|
|
43
|
+
en: Only the forms on chaff's list are checked. 伺われる is not, as it is also 窺われる ("can be seen"). Forms some guides accept (お伺いください) are not listed. Literature does not run this rule.
|
|
44
|
+
level_meaning:
|
|
45
|
+
ja: 当てはまる形が {limit} 箇所あれば指摘
|
|
46
|
+
en: reported once there are {limit}
|
|
47
|
+
rewrite:
|
|
48
|
+
depth: light
|
|
49
|
+
ja:
|
|
50
|
+
direction: 読み手や第三者の動作に使った謙譲語を、尊敬語に置き換えてください。頼む形は「お〜ください」「ご〜ください」にします。
|
|
51
|
+
pairs:
|
|
52
|
+
- before: 資料は受付で拝見してください。
|
|
53
|
+
after: 資料は受付でご覧ください。
|
|
54
|
+
- before: 部長が申されたとおりです。
|
|
55
|
+
after: 部長がおっしゃったとおりです。
|
|
56
|
+
- before: 内容をご確認してください。
|
|
57
|
+
after: 内容をご確認ください。
|
|
58
|
+
keep:
|
|
59
|
+
- 誰の動作か(主語)と、頼んでいる中身
|
|
60
|
+
- 自分の側の動作に使った謙譲語(「私が伺います」)
|
|
61
|
+
avoid:
|
|
62
|
+
- 自分の側の動作まで尊敬語にする
|
|
63
|
+
- 「ご覧になられる」のように、尊敬語を二重にする
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
id: hyphen-as-dash
|
|
2
|
+
layer: L1
|
|
3
|
+
status: stable
|
|
4
|
+
how_to_find: hyphen-dash
|
|
5
|
+
languages: [en]
|
|
6
|
+
severity: info
|
|
7
|
+
|
|
8
|
+
name:
|
|
9
|
+
ja: ダッシュの代わりのハイフン
|
|
10
|
+
en: Hyphen used as a dash
|
|
11
|
+
|
|
12
|
+
why:
|
|
13
|
+
ja: 英語で、空白で挟んだハイフン(late - very late)や二つ重ねたハイフン(late--very late)は、ダッシュ(— や –)の代わりです。ハイフンは語をつなぐ印なので、読み手は一瞬、語の一部かと迷います。
|
|
14
|
+
en: A spaced hyphen ("late - very late") or a double hyphen ("late--very late") stands in for a dash (— or –). A hyphen joins words, so the reader stops for a moment to see whether it is part of one.
|
|
15
|
+
|
|
16
|
+
message:
|
|
17
|
+
ja: 「{matched}」をダッシュの代わりに使っています
|
|
18
|
+
en: '"{matched}" stands in for a dash'
|
|
19
|
+
|
|
20
|
+
how_to_fix:
|
|
21
|
+
ja: ダッシュ(— か –)にするか、読点やコロンで書き直してください。
|
|
22
|
+
en: Use a dash (— or –), or rewrite with a comma or a colon.
|
|
23
|
+
|
|
24
|
+
levels: { strict: 1, normal: 1, relaxed: 3 }
|
|
25
|
+
|
|
26
|
+
use_for: [business, technical, blog, legal, docs, academic, literature, speech]
|
|
27
|
+
off_for:
|
|
28
|
+
literature: 'Older printed texts set the dash as "--" and titles in capitals.'
|
|
29
|
+
|
|
30
|
+
group: slips
|
|
31
|
+
summary:
|
|
32
|
+
ja: 英語で、ダッシュの代わりに、空白で挟んだハイフンや二重のハイフンを使った所
|
|
33
|
+
en: A spaced hyphen or a double hyphen standing in for a dash
|
|
34
|
+
example:
|
|
35
|
+
en:
|
|
36
|
+
before: |
|
|
37
|
+
The release is late - very late.
|
|
38
|
+
after: |
|
|
39
|
+
The release is late — very late.
|
|
40
|
+
|
|
41
|
+
not_flagged:
|
|
42
|
+
ja: 語と語のあいだのものだけを見ます。箇条書きの印の「- 」、数の範囲(1 - 2)、語の中のハイフン(well-known)、コードは見ません。文学の文書では既定で止めています(古い版がダッシュを「--」で組むため)。
|
|
43
|
+
en: Only between words. A list marker ("- "), a number range ("1 - 2"), a hyphen inside a word ("well-known") and code are not reported. The literature presets turn it off, since older printed texts set the dash as "--".
|
|
44
|
+
level_meaning:
|
|
45
|
+
ja: "{limit} 箇所あれば指摘"
|
|
46
|
+
en: reported once there are {limit}
|
|
47
|
+
rewrite:
|
|
48
|
+
depth: light
|
|
49
|
+
en:
|
|
50
|
+
direction: Replace the spaced or doubled hyphen with a dash, or rewrite the sentence with a comma or a colon. Use the dash the document already uses, if any.
|
|
51
|
+
pairs:
|
|
52
|
+
- before: The release is late - very late.
|
|
53
|
+
after: The release is late — very late.
|
|
54
|
+
- before: Two teams--sales and support--will attend.
|
|
55
|
+
after: Two teams (sales and support) will attend.
|
|
56
|
+
keep:
|
|
57
|
+
- the words on both sides
|
|
58
|
+
avoid:
|
|
59
|
+
- adding more dashes than the sentence had hyphens
|
package/rules/idiom-misuse.yaml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
id: idiom-misuse
|
|
2
2
|
layer: L3
|
|
3
|
-
status:
|
|
3
|
+
status: stable
|
|
4
4
|
how_to_find: misuse-match
|
|
5
5
|
word_list: idiom-misuse
|
|
6
6
|
uses: [pos]
|
|
@@ -26,6 +26,8 @@ how_to_fix:
|
|
|
26
26
|
levels: { strict: 1, normal: 1, relaxed: 2 }
|
|
27
27
|
|
|
28
28
|
use_for: [blog, business, legal, docs, academic, literature, speech]
|
|
29
|
+
off_for:
|
|
30
|
+
literature: "Dialogue may misuse an idiom on purpose, to draw the speaker."
|
|
29
31
|
|
|
30
32
|
group: wording
|
|
31
33
|
summary:
|
|
@@ -43,6 +45,7 @@ level_meaning:
|
|
|
43
45
|
ja: 当てはまる形が {limit} 箇所あれば指摘
|
|
44
46
|
en: reported once there are {limit}
|
|
45
47
|
rewrite:
|
|
48
|
+
depth: light
|
|
46
49
|
ja:
|
|
47
50
|
direction: 指摘された慣用句を、指摘が示す正しい形に置き換えてください。活用(得た→射た)と前後の語はそのまま残します。
|
|
48
51
|
pairs:
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
id: image-file-name-alt
|
|
2
|
+
layer: L1
|
|
3
|
+
status: stable
|
|
4
|
+
how_to_find: image-file-name-alt
|
|
5
|
+
word_list: image-file-name
|
|
6
|
+
requires: [markdown]
|
|
7
|
+
severity: warning
|
|
8
|
+
|
|
9
|
+
name:
|
|
10
|
+
ja: 画像の代替テキストがファイル名
|
|
11
|
+
en: Image alt text is a file name
|
|
12
|
+
|
|
13
|
+
why:
|
|
14
|
+
ja: 「」「」のように、代替テキストが画像のファイル名のままの所です。画像が読み込めないときと画面読み上げで読むときは代替テキストだけが画像の代わりに伝わりますが、ファイル名は何が写っているかを言いません。画像を貼った道具が名前を入れたまま残ったものがほとんどです。代替テキストが空の画像は image-alt-text が指します。
|
|
15
|
+
en: An image whose alt text is its file's name ("", ""). When the image does not load, or a screen reader reads the page, the alt text is all that stands in for it, and a file name says nothing about what it shows. It is usually the name a tool put in when the image was pasted. An empty alt text is image-alt-text's.
|
|
16
|
+
|
|
17
|
+
message:
|
|
18
|
+
ja: 画像の代替テキスト「{alt}」はファイルの名前です
|
|
19
|
+
en: 'The image alt text "{alt}" is a file name'
|
|
20
|
+
|
|
21
|
+
how_to_fix:
|
|
22
|
+
ja: 画像が伝えることを一言で書いてください()。
|
|
23
|
+
en: Write what the image shows in a few words ("").
|
|
24
|
+
|
|
25
|
+
levels: { strict: error, normal: warning, relaxed: info }
|
|
26
|
+
|
|
27
|
+
use_for: [business, technical, blog, legal, docs, academic, literature, speech]
|
|
28
|
+
|
|
29
|
+
group: structure
|
|
30
|
+
summary:
|
|
31
|
+
ja: 「」のように、代替テキストがファイル名のままの画像
|
|
32
|
+
en: An image whose alt text is a file name, as in ""
|
|
33
|
+
example:
|
|
34
|
+
ja:
|
|
35
|
+
before: |
|
|
36
|
+
四月から六月の売上です。
|
|
37
|
+
|
|
38
|
+

|
|
39
|
+
after: |
|
|
40
|
+
四月から六月の売上です。
|
|
41
|
+
|
|
42
|
+

|
|
43
|
+
en:
|
|
44
|
+
before: |
|
|
45
|
+
Sales from April to June.
|
|
46
|
+
|
|
47
|
+

|
|
48
|
+
after: |
|
|
49
|
+
Sales from April to June.
|
|
50
|
+
|
|
51
|
+

|
|
52
|
+
|
|
53
|
+
not_flagged:
|
|
54
|
+
ja: 画像の拡張子で終わらず、カメラや画面の撮影が付ける名前でもない代替テキスト()は指しません。名前の始まりは言語の語彙表 image-file-name が言います。引用(>)とコードの中の画像も見ません。
|
|
55
|
+
en: Alt text that does not end in an image extension and does not start with a name a camera or screenshot tool gives ("") is not reported. The names are in the language's image-file-name lexicon. Images in quotations (>) and code are not read.
|
|
56
|
+
rewrite:
|
|
57
|
+
depth: light
|
|
58
|
+
ja:
|
|
59
|
+
direction: 代替テキストを、画像が伝えることを言う短い言葉に変えてください。画像のファイル名(パス)は変えません。何が写っているかが文から分からなければ、推し量らずに書き手に確かめます。
|
|
60
|
+
pairs:
|
|
61
|
+
- before: ""
|
|
62
|
+
after: ""
|
|
63
|
+
- before: ""
|
|
64
|
+
after: ""
|
|
65
|
+
keep:
|
|
66
|
+
- 画像のパス
|
|
67
|
+
- 前後の文
|
|
68
|
+
avoid:
|
|
69
|
+
- 「画像」「図」「スクリーンショット」だけの言葉にする
|
|
70
|
+
- 写っていないものを推し量って書く
|
|
71
|
+
en:
|
|
72
|
+
direction: Replace the alt text with a few words that say what the image shows. Keep the image's path. If the text does not say what it shows, ask the writer rather than guess.
|
|
73
|
+
pairs:
|
|
74
|
+
- before: ""
|
|
75
|
+
after: ""
|
|
76
|
+
- before: ""
|
|
77
|
+
after: ""
|
|
78
|
+
keep:
|
|
79
|
+
- the image's path
|
|
80
|
+
- the sentences around it
|
|
81
|
+
avoid:
|
|
82
|
+
- '"image", "picture" or "screenshot" as the whole alt text'
|
|
83
|
+
- describing what the image may not show
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
id: impossible-date
|
|
2
|
+
layer: L3
|
|
3
|
+
status: stable
|
|
4
|
+
how_to_find: impossible-date
|
|
5
|
+
severity: error
|
|
6
|
+
|
|
7
|
+
name:
|
|
8
|
+
ja: 暦に無い日付
|
|
9
|
+
en: A date the calendar does not have
|
|
10
|
+
|
|
11
|
+
why:
|
|
12
|
+
ja: 「2月30日」「4月31日」「2023年2月29日」のような日付は暦にありません。読み手は前の日か次の日か、月の書き違いかを確かめに行くことになり、予定や期限なら誰かが間違った日に動きます。月末を「31日」と決め打ちしたときや、うるう年の予定を使い回したときに起きます。月の長さとうるう年は暦で決まるので、機械で言えます。
|
|
13
|
+
en: A date such as "February 30", "April 31" or "2023-02-29" is not on the calendar. The reader has to find out whether the day before, the day after or another month was meant, and for a deadline someone acts on the wrong day. It happens when the end of a month is taken to be the 31st, or a leap-year schedule is reused. Month lengths and leap years are fixed by the calendar, so a machine can tell.
|
|
14
|
+
|
|
15
|
+
message:
|
|
16
|
+
ja: 「{written}」は暦にありません({month}月は{days}日まで)
|
|
17
|
+
en: '"{written}" is not on the calendar (that month has {days} days)'
|
|
18
|
+
|
|
19
|
+
messages:
|
|
20
|
+
day:
|
|
21
|
+
ja: 「{written}」は暦にありません({month}月は{days}日まで)
|
|
22
|
+
en: '"{written}" is not on the calendar (that month has {days} days)'
|
|
23
|
+
leap:
|
|
24
|
+
ja: 「{written}」は暦にありません(その年はうるう年でなく、2月は{days}日まで)
|
|
25
|
+
en: '"{written}" is not on the calendar (that year is not a leap year, so February has {days} days)'
|
|
26
|
+
month:
|
|
27
|
+
ja: 「{written}」は暦にありません(月は1から12まで)
|
|
28
|
+
en: '"{written}" is not on the calendar (months run from 1 to 12)'
|
|
29
|
+
|
|
30
|
+
how_to_fix:
|
|
31
|
+
ja: 正しい日付を確かめて直してください。月末のつもりなら、その月の最後の日(4月30日、2月28日)を書きます。
|
|
32
|
+
en: Check the date that was meant and correct it. For the end of a month, write that month's last day (30 April, 28 February).
|
|
33
|
+
|
|
34
|
+
levels: { normal: error, relaxed: warning }
|
|
35
|
+
|
|
36
|
+
use_for: [business, technical, blog, legal, docs, academic, literature, speech]
|
|
37
|
+
|
|
38
|
+
group: facts
|
|
39
|
+
summary:
|
|
40
|
+
ja: 「2月30日」「4月31日」「2023年2月29日」のように、暦に無い日付
|
|
41
|
+
en: A date the calendar does not have, such as "February 30", "April 31" or "2023-02-29"
|
|
42
|
+
example:
|
|
43
|
+
ja:
|
|
44
|
+
before: 申込みの締切は 4月31日 です。
|
|
45
|
+
after: 申込みの締切は 4月30日 です。
|
|
46
|
+
en:
|
|
47
|
+
before: Applications close on April 31.
|
|
48
|
+
after: Applications close on April 30.
|
|
49
|
+
|
|
50
|
+
not_flagged:
|
|
51
|
+
ja: 元号の年(令和5年)と年を書いていない日付は、うるう年を決められないので 2月29日を言いません。2026-13-45 や 2026/10/45 のような数字だけの並びは、番号や版のこともあるので、月が 1〜12、日が 31 までのときだけ月の長さと比べます。英語の月の名前の日付も、日が 31 までのときだけ見ます。コードの中は読みません。
|
|
52
|
+
en: For a year in a Japanese era, and for a date without a year, February 29 is not reported, since the leap year cannot be decided. A bare run of numbers such as 2026-13-45 may be an identifier or a version, so it is compared with the month's length only when the month is 1 to 12 and the day at most 31; a date with a month's name is likewise checked only up to the 31st. Code is not read.
|
|
53
|
+
|
|
54
|
+
rewrite:
|
|
55
|
+
depth: light
|
|
56
|
+
ja:
|
|
57
|
+
direction: 書き手が意図した日を確かめて、暦にある日付に直してください。月末のつもりなら、その月の最後の日を書きます。曜日を添えているなら、曜日も合わせて確かめます。
|
|
58
|
+
pairs:
|
|
59
|
+
- before: 締切は 4月31日 です。
|
|
60
|
+
after: 締切は 4月30日 です。
|
|
61
|
+
- before: 2023年2月29日に開催します。
|
|
62
|
+
after: 2023年2月28日に開催します。
|
|
63
|
+
keep:
|
|
64
|
+
- 意図した月と、前後の予定の順番
|
|
65
|
+
avoid:
|
|
66
|
+
- どの日が正しいか確かめずに、月末の日へ機械的に寄せる
|
|
67
|
+
- 曜日や「何日後」の数を直さずに残す
|
|
68
|
+
en:
|
|
69
|
+
direction: Find out which day was meant and write a date the calendar has. For the end of a month, write that month's last day. When a weekday is written beside it, check that too.
|
|
70
|
+
pairs:
|
|
71
|
+
- before: Applications close on April 31.
|
|
72
|
+
after: Applications close on April 30.
|
|
73
|
+
- before: The audit runs on 2023-02-29.
|
|
74
|
+
after: The audit runs on 2023-02-28.
|
|
75
|
+
keep:
|
|
76
|
+
- the month meant, and the order of the dates around it
|
|
77
|
+
avoid:
|
|
78
|
+
- moving the date to the month's last day without checking which day was meant
|
|
79
|
+
- leaving a weekday or a "three days later" that no longer matches
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
id: impossible-time
|
|
2
|
+
layer: L3
|
|
3
|
+
status: stable
|
|
4
|
+
how_to_find: impossible-time
|
|
5
|
+
severity: error
|
|
6
|
+
|
|
7
|
+
name:
|
|
8
|
+
ja: 時計に無い時刻
|
|
9
|
+
en: A time the clock does not have
|
|
10
|
+
|
|
11
|
+
why:
|
|
12
|
+
ja: 「午後13時」「13 PM」「10時75分」のような時刻は時計にありません。午後1時のつもりか13時のつもりか、分の書き違いか、読み手には分からず、集まる時刻を間違える人が出ます。24時間の書き方と午前・午後の書き方を混ぜたときや、打ち間違えたときに起きます。午前・午後を付けた時は12まで、分と秒は59までなので、機械で言えます。
|
|
13
|
+
en: A time such as "13 PM", "午後13時" or "10:75" is not on the clock. The reader cannot tell whether 1 PM or 13:00 was meant, or which minute, and someone turns up at the wrong time. It happens when the 24-hour clock and AM/PM are mixed, or a digit is mistyped. With AM or PM the hour runs to 12, and minutes and seconds to 59, so a machine can tell.
|
|
14
|
+
|
|
15
|
+
message:
|
|
16
|
+
ja: 「{written}」は時計にありません(午前・午後を付けた時は12まで)
|
|
17
|
+
en: '"{written}" is not a time (with AM or PM, the hour runs to 12)'
|
|
18
|
+
|
|
19
|
+
messages:
|
|
20
|
+
hour:
|
|
21
|
+
ja: 「{written}」は時計にありません(午前・午後を付けた時は12まで)
|
|
22
|
+
en: '"{written}" is not a time (with AM or PM, the hour runs to 12)'
|
|
23
|
+
minute:
|
|
24
|
+
ja: 「{written}」は時計にありません(分と秒は59まで)
|
|
25
|
+
en: '"{written}" is not a time (minutes and seconds run to 59)'
|
|
26
|
+
|
|
27
|
+
how_to_fix:
|
|
28
|
+
ja: 意図した時刻を確かめて直してください。午後1時なら「午後1時」か「13時」のどちらかで書き、二つを混ぜません。
|
|
29
|
+
en: Check the time that was meant and correct it. For one in the afternoon write "1 PM" or "13:00", not both at once.
|
|
30
|
+
|
|
31
|
+
levels: { normal: error, relaxed: warning }
|
|
32
|
+
|
|
33
|
+
use_for: [business, technical, blog, legal, docs, academic, literature, speech]
|
|
34
|
+
|
|
35
|
+
group: facts
|
|
36
|
+
summary:
|
|
37
|
+
ja: 「午後13時」「13 PM」「10時75分」のように、時計に無い時刻
|
|
38
|
+
en: A time the clock does not have, such as "13 PM", "午後13時" or "10:75"
|
|
39
|
+
example:
|
|
40
|
+
ja:
|
|
41
|
+
before: 説明会は午後13時から始めます。
|
|
42
|
+
after: 説明会は午後1時から始めます。
|
|
43
|
+
en:
|
|
44
|
+
before: The briefing starts at 13 PM.
|
|
45
|
+
after: The briefing starts at 1 PM.
|
|
46
|
+
|
|
47
|
+
not_flagged:
|
|
48
|
+
ja: 午前・午後を付けない「25:00」「26時」は、深夜の番組表のように24を超えて数える書き方があるので言いません。「Genesis 24:67」「Science, 12:75」のように頭が大文字の語や区切りの印の後ろの数、「1:75」のような縮尺や比、24を超える数に付いた pm(50 pm はピコメートル)は時刻と読みません。コードの中は読みません。
|
|
49
|
+
en: A time past 24 without AM or PM ("25:00") is not reported, since late-night schedules count on past midnight that way. Numbers right after a capitalised word or a punctuation mark ("Genesis 24:67", "Science, 12:75"), scales and ratios such as "1:75", and "pm" after a number above 24 (50 pm is picometres) are not read as times. Code is not read.
|
|
50
|
+
|
|
51
|
+
rewrite:
|
|
52
|
+
depth: light
|
|
53
|
+
ja:
|
|
54
|
+
direction: 書き手が意図した時刻を確かめて、時計にある時刻に直してください。午前・午後を付けるなら時は12までで、24時間で書くなら午前・午後を外します。
|
|
55
|
+
pairs:
|
|
56
|
+
- before: 説明会は午後13時から始めます。
|
|
57
|
+
after: 説明会は午後1時から始めます。
|
|
58
|
+
- before: 受付は9時75分までです。
|
|
59
|
+
after: 受付は9時45分までです。
|
|
60
|
+
keep:
|
|
61
|
+
- 意図した時刻と、前後の予定の順番
|
|
62
|
+
avoid:
|
|
63
|
+
- 午前・午後と24時間の書き方を一つの時刻に重ねる
|
|
64
|
+
- どの時刻が正しいか確かめずに数だけを変える
|
|
65
|
+
en:
|
|
66
|
+
direction: Find out which time was meant and write one the clock has. With AM or PM the hour runs to 12; on the 24-hour clock, drop AM and PM.
|
|
67
|
+
pairs:
|
|
68
|
+
- before: The briefing starts at 13 PM.
|
|
69
|
+
after: The briefing starts at 1 PM.
|
|
70
|
+
- before: Doors close at 10:75 sharp.
|
|
71
|
+
after: Doors close at 10:45 sharp.
|
|
72
|
+
keep:
|
|
73
|
+
- the time meant, and the order of the times around it
|
|
74
|
+
avoid:
|
|
75
|
+
- writing AM or PM on a 24-hour time
|
|
76
|
+
- changing the digits without checking which time was meant
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
id: katakana-density
|
|
2
2
|
layer: L3
|
|
3
|
-
status:
|
|
3
|
+
status: stable
|
|
4
4
|
how_to_find: katakana-density
|
|
5
5
|
# Katakana runs are read from the characters, so the rule needs no morphology. chaff.yaml の names に並べた名前は数えない。
|
|
6
6
|
languages: [ja]
|
|
@@ -78,6 +78,7 @@ level_meaning:
|
|
|
78
78
|
ja: カタカナ語が 1000 字あたり {limit} 語まで
|
|
79
79
|
en: "katakana loanwords: up to {limit} per 1000 characters"
|
|
80
80
|
rewrite:
|
|
81
|
+
depth: light
|
|
81
82
|
ja:
|
|
82
83
|
direction: 多いと示されたカタカナ語から、日本語で言えるものを言い換えてください。読み手が毎日使う用語と製品名は残します。
|
|
83
84
|
pairs:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
id: known-misspelling
|
|
2
2
|
layer: L2
|
|
3
|
-
status:
|
|
3
|
+
status: stable
|
|
4
4
|
how_to_find: known-correction
|
|
5
5
|
word_list: known-misspelling
|
|
6
6
|
uses: [pos]
|
|
@@ -50,6 +50,7 @@ not_flagged:
|
|
|
50
50
|
ja: 語彙表にない誤りは指しません。どちらも使われる書き方(コンピュータ/コンピューター、エンターテイメント/エンターテインメント)は誤りとせず、表記ゆれの rule に任せます。語の途中の同じ字の並び(「ですすべて」)と、チームが names に並べた語は指しません。
|
|
51
51
|
en: Misspellings not in the lexicon are not reported. Spellings that are both in use (British and American, judgement and judgment) are left to the consistency rules. A form inside a longer word ("teh" in "Tehran") and words listed under names in chaff.yaml are not reported.
|
|
52
52
|
rewrite:
|
|
53
|
+
depth: light
|
|
53
54
|
ja:
|
|
54
55
|
direction: 指された語を語彙表の正しい形に直してください。直すのはその語だけで、文の言い回しは変えません。
|
|
55
56
|
pairs:
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
id: latin-abbreviation-form
|
|
2
|
+
layer: L1
|
|
3
|
+
status: stable
|
|
4
|
+
how_to_find: latin-abbreviation
|
|
5
|
+
word_list: latin-abbreviation
|
|
6
|
+
languages: [en]
|
|
7
|
+
severity: info
|
|
8
|
+
|
|
9
|
+
name:
|
|
10
|
+
ja: e.g. と i.e. のピリオドの欠け
|
|
11
|
+
en: e.g. or i.e. missing a period
|
|
12
|
+
|
|
13
|
+
why:
|
|
14
|
+
ja: 英語の「e.g.」「i.e.」は、ピリオドを全部付けるか(e.g.)、全部落とすか(eg、イギリスの官公庁の書き方)のどちらかです。一部だけ付けた「e.g」「eg.」は書き損じに見えます。略語は言語ごとの語彙表にあります。
|
|
15
|
+
en: '"e.g." and "i.e." take all their periods ("e.g.") or none ("eg", as GOV.UK writes it). With only some ("e.g", "eg.") they read as a slip. The abbreviations are listed in the lexicon.'
|
|
16
|
+
|
|
17
|
+
message:
|
|
18
|
+
ja: 「{matched}」はピリオドが一部だけです
|
|
19
|
+
en: '"{matched}" has some of its periods but not all'
|
|
20
|
+
|
|
21
|
+
how_to_fix:
|
|
22
|
+
ja: ピリオドを全部付けるか(e.g.)、全部落としてください(eg)。文書の中でほかに使っている形に合わせます。
|
|
23
|
+
en: Write all the periods ("e.g.") or none ("eg"), as the rest of the document does.
|
|
24
|
+
|
|
25
|
+
levels: { strict: 1, normal: 1, relaxed: 2 }
|
|
26
|
+
|
|
27
|
+
use_for: [business, technical, blog, legal, docs, academic, literature, speech]
|
|
28
|
+
|
|
29
|
+
group: slips
|
|
30
|
+
summary:
|
|
31
|
+
ja: 英語で、「e.g」「eg.」のように、e.g. と i.e. のピリオドが一部だけの所
|
|
32
|
+
en: '"e.g" or "eg." for "e.g.", and the same for "i.e."'
|
|
33
|
+
example:
|
|
34
|
+
en:
|
|
35
|
+
before: |
|
|
36
|
+
Bring a document, e.g a passport.
|
|
37
|
+
after: |
|
|
38
|
+
Bring a document, e.g. a passport.
|
|
39
|
+
|
|
40
|
+
not_flagged:
|
|
41
|
+
ja: ピリオドを全部落とした「eg」「ie」は、一つの書き方なので指しません。
|
|
42
|
+
en: '"eg" and "ie" with no periods are a house style and are not reported.'
|
|
43
|
+
level_meaning:
|
|
44
|
+
ja: "{limit} 箇所あれば指摘"
|
|
45
|
+
en: reported once there are {limit}
|
|
46
|
+
rewrite:
|
|
47
|
+
depth: light
|
|
48
|
+
en:
|
|
49
|
+
direction: Write the abbreviation with all its periods, or with none if the rest of the document writes it that way.
|
|
50
|
+
pairs:
|
|
51
|
+
- before: Bring a document, e.g a passport.
|
|
52
|
+
after: Bring a document, e.g. a passport.
|
|
53
|
+
- before: Use the short form, ie. the one on the card.
|
|
54
|
+
after: Use the short form, i.e. the one on the card.
|
|
55
|
+
keep:
|
|
56
|
+
- the rest of the sentence
|
|
57
|
+
avoid:
|
|
58
|
+
- replacing the abbreviation with a phrase the sentence did not have
|
package/rules/latin-spacing.yaml
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
id: latin-spacing
|
|
2
2
|
layer: L3
|
|
3
|
-
status:
|
|
3
|
+
status: stable
|
|
4
4
|
how_to_find: latin-spacing
|
|
5
5
|
languages: [ja]
|
|
6
|
-
severity:
|
|
6
|
+
severity: info
|
|
7
7
|
# 番号・識別子として書かれた数を見分けるのに、数の後ろの語の品詞を使う。無ければ全部数える。
|
|
8
8
|
uses: [pos]
|
|
9
9
|
# 番地(千代田区紀尾井町1-3)を、都道府県までの地名の後ろの範囲(東京都2-3 営業日)と分ける。
|
|
@@ -36,6 +36,10 @@ how_to_fix:
|
|
|
36
36
|
# 何箇所違えば指摘するか。1 は「1 箇所でも混ざっていれば」。
|
|
37
37
|
levels: { strict: 1, normal: 1, relaxed: 3 }
|
|
38
38
|
|
|
39
|
+
# 技術文書は、識別子やコマンド名の前後で空け方が揺れやすい。一箇所でも指すと group の文書の過半に出たので、測って上げた(spec §21.1)。
|
|
40
|
+
by_genre:
|
|
41
|
+
technical: { strict: 1, normal: 2, relaxed: 4 }
|
|
42
|
+
|
|
39
43
|
use_for: [business, blog, technical, legal, docs, academic, literature, speech]
|
|
40
44
|
sources: [koyobun-2022, jtf-style-guide]
|
|
41
45
|
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
id: less-for-fewer
|
|
2
|
+
layer: L3
|
|
3
|
+
status: stable
|
|
4
|
+
how_to_find: amount-for-count
|
|
5
|
+
requires: [pos]
|
|
6
|
+
languages: [en]
|
|
7
|
+
extra_word_lists: [amount-quantifier, invariant-noun, finite-auxiliary]
|
|
8
|
+
severity: info
|
|
9
|
+
|
|
10
|
+
name:
|
|
11
|
+
ja: 数えられる名詞に less
|
|
12
|
+
en: '"Less" with a countable plural'
|
|
13
|
+
|
|
14
|
+
why:
|
|
15
|
+
ja: 英語の書き言葉では、量には less、数には fewer を使います(less time、fewer errors)。「less errors」「less people」は話し言葉ではよく聞きますが、改まった文書では誤りと読まれます。直後の名詞が数えられる複数とはっきり読める所だけを指します。名詞や数の後ろの less は「引く」の意味(revenue less costs)なので指しません。
|
|
16
|
+
en: 'Written English uses "less" for an amount and "fewer" for a count ("less time", "fewer errors"). "Less errors" and "less people" are common in speech, but a formal reader takes them as a slip. Only a "less" directly before a noun that reads clearly as a countable plural is reported. "Less" after a noun or a number means "minus" ("revenue less costs") and is not reported.'
|
|
17
|
+
|
|
18
|
+
message:
|
|
19
|
+
ja: 「{word}」は数を言うので「{suggestion}」と書きます
|
|
20
|
+
en: '"{word}" counts things; write "{suggestion}"'
|
|
21
|
+
|
|
22
|
+
how_to_fix:
|
|
23
|
+
ja: 数えられる名詞の複数の前では fewer を使ってください(less errors → fewer errors)。量を言いたいなら、名詞を量の語に替えてください(less work)。
|
|
24
|
+
en: Use "fewer" before a countable plural ("less errors" becomes "fewer errors"). To speak of an amount, use a word for the amount ("less work").
|
|
25
|
+
|
|
26
|
+
levels: { strict: warning, normal: info, relaxed: info }
|
|
27
|
+
|
|
28
|
+
use_for: [business, technical, blog, legal, docs, academic, literature, speech]
|
|
29
|
+
off_for:
|
|
30
|
+
literature: 'A narrator and a character speak as they speak: "less people" in dialogue is the voice.'
|
|
31
|
+
speech: "A transcript keeps the speaker's words."
|
|
32
|
+
|
|
33
|
+
group: slips
|
|
34
|
+
summary:
|
|
35
|
+
ja: 英語で、「less errors」のように数えられる名詞の複数に less を付けた所
|
|
36
|
+
en: '"Less" before a countable plural, as in "less errors", where written English uses "fewer"'
|
|
37
|
+
example:
|
|
38
|
+
en:
|
|
39
|
+
before: The new parser reports less errors on long files.
|
|
40
|
+
after: The new parser reports fewer errors on long files.
|
|
41
|
+
|
|
42
|
+
not_flagged:
|
|
43
|
+
ja: 量の名詞(less time、less work)、形容詞に付く less(less experienced staff)、「引く」の less(revenue less costs、$500 less fees)、less than、単数と複数が同じ綴りの名詞(less data)は指しません。
|
|
44
|
+
en: 'Mass nouns ("less time", "less work"), "less" before an adjective ("less experienced staff"), "less" meaning minus ("revenue less costs", "$500 less fees"), "less than", and nouns spelled alike in both numbers ("less data") are not reported.'
|
|
45
|
+
|
|
46
|
+
rewrite:
|
|
47
|
+
depth: light
|
|
48
|
+
en:
|
|
49
|
+
direction: Replace "less" with "fewer" before the countable plural. Change only that word.
|
|
50
|
+
pairs:
|
|
51
|
+
- before: The new parser reports less errors on long files.
|
|
52
|
+
after: The new parser reports fewer errors on long files.
|
|
53
|
+
- before: We hired less people in the spring.
|
|
54
|
+
after: We hired fewer people in the spring.
|
|
55
|
+
keep:
|
|
56
|
+
- the noun and the rest of the sentence
|
|
57
|
+
- '"less" before an amount ("less time") or meaning minus ("revenue less costs")'
|
|
58
|
+
avoid:
|
|
59
|
+
- turning every "less" into "fewer", including amounts
|