chaffjs 0.17.0 → 0.18.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-count.d.ts +26 -0
- package/dist/announced-count.d.ts.map +1 -0
- package/dist/announced-count.js +104 -0
- package/dist/announced-count.js.map +1 -0
- package/dist/bare-url.d.ts +14 -0
- package/dist/bare-url.d.ts.map +1 -0
- package/dist/bare-url.js +28 -0
- package/dist/bare-url.js.map +1 -0
- package/dist/baseline.d.ts +5 -0
- package/dist/baseline.d.ts.map +1 -1
- package/dist/baseline.js +16 -1
- package/dist/baseline.js.map +1 -1
- package/dist/body-section.d.ts +7 -0
- package/dist/body-section.d.ts.map +1 -0
- package/dist/body-section.js +6 -0
- package/dist/body-section.js.map +1 -0
- package/dist/calendar-number.d.ts +2 -0
- package/dist/calendar-number.d.ts.map +1 -1
- package/dist/calendar-number.js +9 -2
- package/dist/calendar-number.js.map +1 -1
- package/dist/cli-args.d.ts +4 -0
- package/dist/cli-args.d.ts.map +1 -1
- package/dist/cli-args.js +5 -0
- package/dist/cli-args.js.map +1 -1
- package/dist/cli-text.d.ts.map +1 -1
- package/dist/cli-text.js +8 -4
- package/dist/cli-text.js.map +1 -1
- package/dist/cli.js +33 -30
- package/dist/cli.js.map +1 -1
- package/dist/commands/compare.d.ts +8 -0
- package/dist/commands/compare.d.ts.map +1 -0
- package/dist/commands/compare.js +72 -0
- package/dist/commands/compare.js.map +1 -0
- package/dist/commands/eval.d.ts.map +1 -1
- package/dist/commands/eval.js +17 -9
- package/dist/commands/eval.js.map +1 -1
- package/dist/commands/feedback.d.ts +5 -2
- package/dist/commands/feedback.d.ts.map +1 -1
- package/dist/commands/feedback.js +11 -5
- package/dist/commands/feedback.js.map +1 -1
- package/dist/commands/test.d.ts.map +1 -1
- package/dist/commands/test.js +2 -4
- package/dist/commands/test.js.map +1 -1
- package/dist/commands/tree.d.ts +13 -0
- package/dist/commands/tree.d.ts.map +1 -1
- package/dist/commands/tree.js +35 -5
- package/dist/commands/tree.js.map +1 -1
- package/dist/compare/atom.d.ts +31 -0
- package/dist/compare/atom.d.ts.map +1 -0
- package/dist/compare/atom.js +4 -0
- package/dist/compare/atom.js.map +1 -0
- package/dist/compare/clock-time.d.ts +8 -0
- package/dist/compare/clock-time.d.ts.map +1 -0
- package/dist/compare/clock-time.js +65 -0
- package/dist/compare/clock-time.js.map +1 -0
- package/dist/compare/extract.d.ts +15 -0
- package/dist/compare/extract.d.ts.map +1 -0
- package/dist/compare/extract.js +58 -0
- package/dist/compare/extract.js.map +1 -0
- package/dist/compare/fact-text.d.ts +23 -0
- package/dist/compare/fact-text.d.ts.map +1 -0
- package/dist/compare/fact-text.js +47 -0
- package/dist/compare/fact-text.js.map +1 -0
- package/dist/compare/markup-atoms.d.ts +11 -0
- package/dist/compare/markup-atoms.d.ts.map +1 -0
- package/dist/compare/markup-atoms.js +23 -0
- package/dist/compare/markup-atoms.js.map +1 -0
- package/dist/compare/match.d.ts +19 -0
- package/dist/compare/match.d.ts.map +1 -0
- package/dist/compare/match.js +84 -0
- package/dist/compare/match.js.map +1 -0
- package/dist/compare/outcome.d.ts +33 -0
- package/dist/compare/outcome.d.ts.map +1 -0
- package/dist/compare/outcome.js +40 -0
- package/dist/compare/outcome.js.map +1 -0
- package/dist/compare/proper-nouns.d.ts +19 -0
- package/dist/compare/proper-nouns.d.ts.map +1 -0
- package/dist/compare/proper-nouns.js +44 -0
- package/dist/compare/proper-nouns.js.map +1 -0
- package/dist/compare/render.d.ts +9 -0
- package/dist/compare/render.d.ts.map +1 -0
- package/dist/compare/render.js +64 -0
- package/dist/compare/render.js.map +1 -0
- package/dist/compare/spans.d.ts +9 -0
- package/dist/compare/spans.d.ts.map +1 -0
- package/dist/compare/spans.js +11 -0
- package/dist/compare/spans.js.map +1 -0
- package/dist/compare/text-atoms.d.ts +24 -0
- package/dist/compare/text-atoms.d.ts.map +1 -0
- package/dist/compare/text-atoms.js +67 -0
- package/dist/compare/text-atoms.js.map +1 -0
- package/dist/compare/text.d.ts +24 -0
- package/dist/compare/text.d.ts.map +1 -0
- package/dist/compare/text.js +90 -0
- package/dist/compare/text.js.map +1 -0
- package/dist/compare/tree-atoms.d.ts +20 -0
- package/dist/compare/tree-atoms.d.ts.map +1 -0
- package/dist/compare/tree-atoms.js +58 -0
- package/dist/compare/tree-atoms.js.map +1 -0
- package/dist/compare/written-names.d.ts +8 -0
- package/dist/compare/written-names.d.ts.map +1 -0
- package/dist/compare/written-names.js +24 -0
- package/dist/compare/written-names.js.map +1 -0
- package/dist/config/load.d.ts +15 -0
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/load.js +5 -0
- package/dist/config/load.js.map +1 -1
- package/dist/config/option-problems.d.ts +16 -0
- package/dist/config/option-problems.d.ts.map +1 -0
- package/dist/config/option-problems.js +58 -0
- package/dist/config/option-problems.js.map +1 -0
- package/dist/config/read.d.ts +4 -0
- package/dist/config/read.d.ts.map +1 -0
- package/dist/config/read.js +8 -0
- package/dist/config/read.js.map +1 -0
- package/dist/config/rule-problems.d.ts +2 -4
- package/dist/config/rule-problems.d.ts.map +1 -1
- package/dist/config/rule-problems.js +7 -1
- package/dist/config/rule-problems.js.map +1 -1
- package/dist/config/style.d.ts +16 -0
- package/dist/config/style.d.ts.map +1 -0
- package/dist/config/style.js +36 -0
- package/dist/config/style.js.map +1 -0
- package/dist/config/warnings.d.ts +6 -0
- package/dist/config/warnings.d.ts.map +1 -0
- package/dist/config/warnings.js +10 -0
- package/dist/config/warnings.js.map +1 -0
- package/dist/config/write.d.ts.map +1 -1
- package/dist/config/write.js +17 -4
- package/dist/config/write.js.map +1 -1
- package/dist/custom/bounded-match.d.ts +15 -0
- package/dist/custom/bounded-match.d.ts.map +1 -0
- package/dist/custom/bounded-match.js +43 -0
- package/dist/custom/bounded-match.js.map +1 -0
- package/dist/custom/load.d.ts +8 -0
- package/dist/custom/load.d.ts.map +1 -0
- package/dist/custom/load.js +11 -0
- package/dist/custom/load.js.map +1 -0
- package/dist/custom/parse.d.ts +70 -0
- package/dist/custom/parse.d.ts.map +1 -0
- package/dist/custom/parse.js +215 -0
- package/dist/custom/parse.js.map +1 -0
- package/dist/custom/problems.d.ts +5 -0
- package/dist/custom/problems.d.ts.map +1 -0
- package/dist/custom/problems.js +78 -0
- package/dist/custom/problems.js.map +1 -0
- package/dist/custom/regex-safety.d.ts +11 -0
- package/dist/custom/regex-safety.d.ts.map +1 -0
- package/dist/custom/regex-safety.js +110 -0
- package/dist/custom/regex-safety.js.map +1 -0
- package/dist/custom/token-pattern.d.ts +8 -0
- package/dist/custom/token-pattern.d.ts.map +1 -0
- package/dist/custom/token-pattern.js +75 -0
- package/dist/custom/token-pattern.js.map +1 -0
- package/dist/detect.d.ts.map +1 -1
- package/dist/detect.js +24 -2
- package/dist/detect.js.map +1 -1
- package/dist/detectors/acronym-context.d.ts +2 -0
- package/dist/detectors/acronym-context.d.ts.map +1 -1
- package/dist/detectors/acronym-context.js +12 -4
- package/dist/detectors/acronym-context.js.map +1 -1
- package/dist/detectors/ai-phrasing.d.ts +20 -0
- package/dist/detectors/ai-phrasing.d.ts.map +1 -0
- package/dist/detectors/ai-phrasing.js +112 -0
- package/dist/detectors/ai-phrasing.js.map +1 -0
- package/dist/detectors/announced-count.d.ts +4 -0
- package/dist/detectors/announced-count.d.ts.map +1 -0
- package/dist/detectors/announced-count.js +20 -0
- package/dist/detectors/announced-count.js.map +1 -0
- package/dist/detectors/broken-link.d.ts +17 -0
- package/dist/detectors/broken-link.d.ts.map +1 -0
- package/dist/detectors/broken-link.js +66 -0
- package/dist/detectors/broken-link.js.map +1 -0
- package/dist/detectors/cited-name.d.ts.map +1 -1
- package/dist/detectors/cited-name.js +4 -4
- package/dist/detectors/cited-name.js.map +1 -1
- package/dist/detectors/cited-title.d.ts +11 -0
- package/dist/detectors/cited-title.d.ts.map +1 -0
- package/dist/detectors/cited-title.js +75 -0
- package/dist/detectors/cited-title.js.map +1 -0
- package/dist/detectors/concrete-evidence.d.ts +1 -1
- package/dist/detectors/concrete-evidence.d.ts.map +1 -1
- package/dist/detectors/concrete-evidence.js +2 -1
- package/dist/detectors/concrete-evidence.js.map +1 -1
- package/dist/detectors/contrast-frame.d.ts +17 -0
- package/dist/detectors/contrast-frame.d.ts.map +1 -0
- package/dist/detectors/contrast-frame.js +32 -0
- package/dist/detectors/contrast-frame.js.map +1 -0
- package/dist/detectors/custom.d.ts +8 -0
- package/dist/detectors/custom.d.ts.map +1 -0
- package/dist/detectors/custom.js +71 -0
- package/dist/detectors/custom.js.map +1 -0
- package/dist/detectors/dangling-figure.d.ts +4 -0
- package/dist/detectors/dangling-figure.d.ts.map +1 -0
- package/dist/detectors/dangling-figure.js +18 -0
- package/dist/detectors/dangling-figure.js.map +1 -0
- package/dist/detectors/doubled-punctuation.d.ts +9 -0
- package/dist/detectors/doubled-punctuation.d.ts.map +1 -0
- package/dist/detectors/doubled-punctuation.js +33 -0
- package/dist/detectors/doubled-punctuation.js.map +1 -0
- package/dist/detectors/doubled-word.d.ts +5 -0
- package/dist/detectors/doubled-word.d.ts.map +1 -1
- package/dist/detectors/doubled-word.js +24 -11
- package/dist/detectors/doubled-word.js.map +1 -1
- package/dist/detectors/enumerated-runs.d.ts +1 -1
- package/dist/detectors/enumerated-runs.d.ts.map +1 -1
- package/dist/detectors/enumerated-runs.js +15 -4
- package/dist/detectors/enumerated-runs.js.map +1 -1
- package/dist/detectors/gram-furniture.d.ts +6 -0
- package/dist/detectors/gram-furniture.d.ts.map +1 -0
- package/dist/detectors/gram-furniture.js +21 -0
- package/dist/detectors/gram-furniture.js.map +1 -0
- package/dist/detectors/gram-place.d.ts +2 -0
- package/dist/detectors/gram-place.d.ts.map +1 -1
- package/dist/detectors/gram-place.js +9 -7
- package/dist/detectors/gram-place.js.map +1 -1
- package/dist/detectors/gram-windows.d.ts +9 -0
- package/dist/detectors/gram-windows.d.ts.map +1 -0
- package/dist/detectors/gram-windows.js +27 -0
- package/dist/detectors/gram-windows.js.map +1 -0
- package/dist/detectors/heading-case.d.ts +2 -0
- package/dist/detectors/heading-case.d.ts.map +1 -1
- package/dist/detectors/heading-case.js +29 -2
- package/dist/detectors/heading-case.js.map +1 -1
- package/dist/detectors/heading-code-words.d.ts +6 -0
- package/dist/detectors/heading-code-words.d.ts.map +1 -0
- package/dist/detectors/heading-code-words.js +29 -0
- package/dist/detectors/heading-code-words.js.map +1 -0
- package/dist/detectors/heading-echo.d.ts.map +1 -1
- package/dist/detectors/heading-echo.js +7 -4
- package/dist/detectors/heading-echo.js.map +1 -1
- package/dist/detectors/heading-level-skip.d.ts +12 -0
- package/dist/detectors/heading-level-skip.d.ts.map +1 -0
- package/dist/detectors/heading-level-skip.js +11 -0
- package/dist/detectors/heading-level-skip.js.map +1 -0
- package/dist/detectors/image-alt-text.d.ts +3 -0
- package/dist/detectors/image-alt-text.d.ts.map +1 -0
- package/dist/detectors/image-alt-text.js +9 -0
- package/dist/detectors/image-alt-text.js.map +1 -0
- package/dist/detectors/index.d.ts.map +1 -1
- package/dist/detectors/index.js +34 -1
- package/dist/detectors/index.js.map +1 -1
- package/dist/detectors/kutoten-consistency.d.ts +24 -0
- package/dist/detectors/kutoten-consistency.d.ts.map +1 -0
- package/dist/detectors/kutoten-consistency.js +77 -0
- package/dist/detectors/kutoten-consistency.js.map +1 -0
- package/dist/detectors/lead-in.d.ts +1 -0
- package/dist/detectors/lead-in.d.ts.map +1 -1
- package/dist/detectors/lead-in.js +2 -1
- package/dist/detectors/lead-in.js.map +1 -1
- package/dist/detectors/lexicon-match.d.ts +4 -0
- package/dist/detectors/lexicon-match.d.ts.map +1 -1
- package/dist/detectors/lexicon-match.js +7 -2
- package/dist/detectors/lexicon-match.js.map +1 -1
- package/dist/detectors/list-item.d.ts +45 -0
- package/dist/detectors/list-item.d.ts.map +1 -0
- package/dist/detectors/list-item.js +88 -0
- package/dist/detectors/list-item.js.map +1 -0
- package/dist/detectors/list-items.d.ts +31 -0
- package/dist/detectors/list-items.d.ts.map +1 -0
- package/dist/detectors/list-items.js +113 -0
- package/dist/detectors/list-items.js.map +1 -0
- package/dist/detectors/list-lead-in.d.ts +7 -0
- package/dist/detectors/list-lead-in.d.ts.map +1 -0
- package/dist/detectors/list-lead-in.js +28 -0
- package/dist/detectors/list-lead-in.js.map +1 -0
- package/dist/detectors/list-sentence.d.ts +65 -0
- package/dist/detectors/list-sentence.d.ts.map +1 -0
- package/dist/detectors/list-sentence.js +105 -0
- package/dist/detectors/list-sentence.js.map +1 -0
- package/dist/detectors/list-view.d.ts +34 -0
- package/dist/detectors/list-view.d.ts.map +1 -0
- package/dist/detectors/list-view.js +137 -0
- package/dist/detectors/list-view.js.map +1 -0
- package/dist/detectors/long-vowel.d.ts +7 -0
- package/dist/detectors/long-vowel.d.ts.map +1 -0
- package/dist/detectors/long-vowel.js +57 -0
- package/dist/detectors/long-vowel.js.map +1 -0
- package/dist/detectors/markup-finding.d.ts +6 -0
- package/dist/detectors/markup-finding.d.ts.map +1 -0
- package/dist/detectors/markup-finding.js +19 -0
- package/dist/detectors/markup-finding.js.map +1 -0
- package/dist/detectors/name-numeral.d.ts +1 -1
- package/dist/detectors/name-numeral.d.ts.map +1 -1
- package/dist/detectors/name-numeral.js +2 -7
- package/dist/detectors/name-numeral.js.map +1 -1
- package/dist/detectors/orthography.d.ts.map +1 -1
- package/dist/detectors/orthography.js +14 -10
- package/dist/detectors/orthography.js.map +1 -1
- package/dist/detectors/oxford-comma.d.ts +7 -1
- package/dist/detectors/oxford-comma.d.ts.map +1 -1
- package/dist/detectors/oxford-comma.js +135 -229
- package/dist/detectors/oxford-comma.js.map +1 -1
- package/dist/detectors/place-run.d.ts.map +1 -1
- package/dist/detectors/place-run.js +10 -6
- package/dist/detectors/place-run.js.map +1 -1
- package/dist/detectors/placeholder-text.d.ts +9 -0
- package/dist/detectors/placeholder-text.d.ts.map +1 -0
- package/dist/detectors/placeholder-text.js +18 -0
- package/dist/detectors/placeholder-text.js.map +1 -0
- package/dist/detectors/quote-around.d.ts +3 -0
- package/dist/detectors/quote-around.d.ts.map +1 -0
- package/dist/detectors/quote-around.js +8 -0
- package/dist/detectors/quote-around.js.map +1 -0
- package/dist/detectors/register.d.ts +11 -3
- package/dist/detectors/register.d.ts.map +1 -1
- package/dist/detectors/register.js +28 -9
- package/dist/detectors/register.js.map +1 -1
- package/dist/detectors/roman-numeral.d.ts +2 -0
- package/dist/detectors/roman-numeral.d.ts.map +1 -1
- package/dist/detectors/roman-numeral.js +2 -0
- package/dist/detectors/roman-numeral.js.map +1 -1
- package/dist/detectors/sentence-ending.d.ts +17 -1
- package/dist/detectors/sentence-ending.d.ts.map +1 -1
- package/dist/detectors/sentence-ending.js +13 -7
- package/dist/detectors/sentence-ending.js.map +1 -1
- package/dist/detectors/sentence-length.d.ts.map +1 -1
- package/dist/detectors/sentence-length.js +13 -4
- package/dist/detectors/sentence-length.js.map +1 -1
- package/dist/detectors/signals.d.ts +8 -0
- package/dist/detectors/signals.d.ts.map +1 -1
- package/dist/detectors/signals.js +67 -46
- package/dist/detectors/signals.js.map +1 -1
- package/dist/detectors/structure-tree.d.ts +6 -0
- package/dist/detectors/structure-tree.d.ts.map +1 -1
- package/dist/detectors/structure-tree.js +37 -1
- package/dist/detectors/structure-tree.js.map +1 -1
- package/dist/detectors/structure.d.ts +1 -3
- package/dist/detectors/structure.d.ts.map +1 -1
- package/dist/detectors/structure.js +3 -4
- package/dist/detectors/structure.js.map +1 -1
- package/dist/detectors/superlative-name.d.ts.map +1 -1
- package/dist/detectors/superlative-name.js +8 -5
- package/dist/detectors/superlative-name.js.map +1 -1
- package/dist/detectors/superlative-scope.d.ts.map +1 -1
- package/dist/detectors/superlative-scope.js +9 -4
- package/dist/detectors/superlative-scope.js.map +1 -1
- package/dist/detectors/token-column.d.ts +46 -0
- package/dist/detectors/token-column.d.ts.map +1 -0
- package/dist/detectors/token-column.js +95 -0
- package/dist/detectors/token-column.js.map +1 -0
- package/dist/detectors/unbalanced-bracket.d.ts +22 -0
- package/dist/detectors/unbalanced-bracket.d.ts.map +1 -0
- package/dist/detectors/unbalanced-bracket.js +119 -0
- package/dist/detectors/unbalanced-bracket.js.map +1 -0
- package/dist/detectors/url-run-on.d.ts +9 -0
- package/dist/detectors/url-run-on.d.ts.map +1 -0
- package/dist/detectors/url-run-on.js +19 -0
- package/dist/detectors/url-run-on.js.map +1 -0
- package/dist/document-sections.d.ts +13 -0
- package/dist/document-sections.d.ts.map +1 -0
- package/dist/document-sections.js +32 -0
- package/dist/document-sections.js.map +1 -0
- package/dist/document.d.ts +11 -4
- package/dist/document.d.ts.map +1 -1
- package/dist/document.js +90 -98
- package/dist/document.js.map +1 -1
- package/dist/email-parts.d.ts +28 -0
- package/dist/email-parts.d.ts.map +1 -0
- package/dist/email-parts.js +230 -0
- package/dist/email-parts.js.map +1 -0
- package/dist/eval.d.ts +2 -1
- package/dist/eval.d.ts.map +1 -1
- package/dist/eval.js +16 -4
- package/dist/eval.js.map +1 -1
- package/dist/figure-references.d.ts +30 -0
- package/dist/figure-references.d.ts.map +1 -0
- package/dist/figure-references.js +76 -0
- package/dist/figure-references.js.map +1 -0
- package/dist/files.d.ts +2 -0
- package/dist/files.d.ts.map +1 -1
- package/dist/files.js +4 -0
- package/dist/files.js.map +1 -1
- package/dist/heading-label.d.ts +22 -0
- package/dist/heading-label.d.ts.map +1 -0
- package/dist/heading-label.js +50 -0
- package/dist/heading-label.js.map +1 -0
- package/dist/in-page-nav.d.ts +4 -1
- package/dist/in-page-nav.d.ts.map +1 -1
- package/dist/in-page-nav.js +53 -18
- package/dist/in-page-nav.js.map +1 -1
- package/dist/joined-view.d.ts.map +1 -1
- package/dist/joined-view.js +1 -0
- package/dist/joined-view.js.map +1 -1
- package/dist/levels.d.ts +5 -1
- package/dist/levels.d.ts.map +1 -1
- package/dist/levels.js +9 -0
- package/dist/levels.js.map +1 -1
- package/dist/line-paragraphs.d.ts +8 -0
- package/dist/line-paragraphs.d.ts.map +1 -1
- package/dist/line-paragraphs.js +33 -10
- package/dist/line-paragraphs.js.map +1 -1
- package/dist/long-vowel.d.ts +35 -0
- package/dist/long-vowel.d.ts.map +1 -0
- package/dist/long-vowel.js +71 -0
- package/dist/long-vowel.js.map +1 -0
- package/dist/markdown-node.d.ts +19 -0
- package/dist/markdown-node.d.ts.map +1 -0
- package/dist/markdown-node.js +6 -0
- package/dist/markdown-node.js.map +1 -0
- package/dist/markdown-read.d.ts +17 -0
- package/dist/markdown-read.d.ts.map +1 -0
- package/dist/markdown-read.js +37 -0
- package/dist/markdown-read.js.map +1 -0
- package/dist/markup.d.ts +22 -0
- package/dist/markup.d.ts.map +1 -0
- package/dist/markup.js +180 -0
- package/dist/markup.js.map +1 -0
- package/dist/mask.js +8 -5
- package/dist/mask.js.map +1 -1
- package/dist/number-name.d.ts +21 -5
- package/dist/number-name.d.ts.map +1 -1
- package/dist/number-name.js +119 -17
- package/dist/number-name.js.map +1 -1
- package/dist/orthography.d.ts +2 -0
- package/dist/orthography.d.ts.map +1 -1
- package/dist/orthography.js +9 -4
- package/dist/orthography.js.map +1 -1
- package/dist/page-furniture.d.ts +5 -2
- package/dist/page-furniture.d.ts.map +1 -1
- package/dist/page-furniture.js +8 -2
- package/dist/page-furniture.js.map +1 -1
- package/dist/plain-source.d.ts +1 -0
- package/dist/plain-source.d.ts.map +1 -1
- package/dist/plain-source.js +2 -1
- package/dist/plain-source.js.map +1 -1
- package/dist/plugin.d.ts +115 -0
- package/dist/plugin.d.ts.map +1 -1
- package/dist/profile/for-file.d.ts.map +1 -1
- package/dist/profile/for-file.js +3 -1
- package/dist/profile/for-file.js.map +1 -1
- package/dist/quoted-span.d.ts.map +1 -1
- package/dist/quoted-span.js +8 -3
- package/dist/quoted-span.js.map +1 -1
- package/dist/reasons.d.ts +3 -0
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +6 -0
- package/dist/reasons.js.map +1 -1
- package/dist/reference-lists.d.ts +3 -0
- package/dist/reference-lists.d.ts.map +1 -0
- package/dist/reference-lists.js +75 -0
- package/dist/reference-lists.js.map +1 -0
- package/dist/render/explain.d.ts +7 -1
- package/dist/render/explain.d.ts.map +1 -1
- package/dist/render/explain.js +36 -12
- package/dist/render/explain.js.map +1 -1
- package/dist/render/friendly.d.ts.map +1 -1
- package/dist/render/friendly.js +19 -9
- package/dist/render/friendly.js.map +1 -1
- package/dist/render/options.d.ts +7 -0
- package/dist/render/options.d.ts.map +1 -0
- package/dist/render/options.js +50 -0
- package/dist/render/options.js.map +1 -0
- package/dist/render/rules-json.d.ts +4 -1
- package/dist/render/rules-json.d.ts.map +1 -1
- package/dist/render/rules-json.js +102 -12
- package/dist/render/rules-json.js.map +1 -1
- package/dist/render/rules-table.d.ts +4 -0
- package/dist/render/rules-table.d.ts.map +1 -0
- package/dist/render/rules-table.js +70 -0
- package/dist/render/rules-table.js.map +1 -0
- package/dist/render/sarif.js +4 -4
- package/dist/render/sarif.js.map +1 -1
- package/dist/render/semantic.js +3 -3
- package/dist/render/semantic.js.map +1 -1
- package/dist/render/severity-name.d.ts +6 -0
- package/dist/render/severity-name.d.ts.map +1 -0
- package/dist/render/severity-name.js +7 -0
- package/dist/render/severity-name.js.map +1 -0
- package/dist/render/text.d.ts +7 -2
- package/dist/render/text.d.ts.map +1 -1
- package/dist/render/text.js +15 -4
- package/dist/render/text.js.map +1 -1
- package/dist/resolve-genre.d.ts +1 -1
- package/dist/resolve-genre.d.ts.map +1 -1
- package/dist/resolve-genre.js +4 -1
- package/dist/resolve-genre.js.map +1 -1
- package/dist/rule-genres.d.ts +24 -0
- package/dist/rule-genres.d.ts.map +1 -0
- package/dist/rule-genres.js +11 -0
- package/dist/rule-genres.js.map +1 -0
- package/dist/rule-guide.d.ts +54 -0
- package/dist/rule-guide.d.ts.map +1 -0
- package/dist/rule-guide.js +81 -0
- package/dist/rule-guide.js.map +1 -0
- package/dist/rule-load.d.ts.map +1 -1
- package/dist/rule-load.js +87 -33
- package/dist/rule-load.js.map +1 -1
- package/dist/rule-options.d.ts +50 -0
- package/dist/rule-options.d.ts.map +1 -0
- package/dist/rule-options.js +106 -0
- package/dist/rule-options.js.map +1 -0
- package/dist/run.d.ts +13 -0
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +54 -10
- package/dist/run.js.map +1 -1
- package/dist/sentence-shape.d.ts.map +1 -1
- package/dist/sentence-shape.js +4 -4
- package/dist/sentence-shape.js.map +1 -1
- package/dist/setting-problems.d.ts +2 -1
- package/dist/setting-problems.d.ts.map +1 -1
- package/dist/setting-problems.js +6 -1
- package/dist/setting-problems.js.map +1 -1
- package/dist/span-cut.d.ts +6 -0
- package/dist/span-cut.d.ts.map +1 -0
- package/dist/span-cut.js +22 -0
- package/dist/span-cut.js.map +1 -0
- package/dist/structure/aside-depth.d.ts +21 -0
- package/dist/structure/aside-depth.d.ts.map +1 -0
- package/dist/structure/aside-depth.js +65 -0
- package/dist/structure/aside-depth.js.map +1 -0
- package/dist/structure/build.d.ts +5 -1
- package/dist/structure/build.d.ts.map +1 -1
- package/dist/structure/build.js +29 -17
- package/dist/structure/build.js.map +1 -1
- package/dist/structure/closed-pairs.d.ts +8 -0
- package/dist/structure/closed-pairs.d.ts.map +1 -0
- package/dist/structure/closed-pairs.js +22 -0
- package/dist/structure/closed-pairs.js.map +1 -0
- package/dist/structure/date-range.d.ts +21 -0
- package/dist/structure/date-range.d.ts.map +1 -0
- package/dist/structure/date-range.js +45 -0
- package/dist/structure/date-range.js.map +1 -0
- package/dist/structure/known-mentions.d.ts +18 -0
- package/dist/structure/known-mentions.d.ts.map +1 -0
- package/dist/structure/known-mentions.js +78 -0
- package/dist/structure/known-mentions.js.map +1 -0
- package/dist/structure/numbering.d.ts +1 -0
- package/dist/structure/numbering.d.ts.map +1 -1
- package/dist/structure/numbering.js +11 -6
- package/dist/structure/numbering.js.map +1 -1
- package/dist/structure/of.d.ts +3 -1
- package/dist/structure/of.d.ts.map +1 -1
- package/dist/structure/of.js +5 -1
- package/dist/structure/of.js.map +1 -1
- package/dist/structure/percent-sum.d.ts +16 -0
- package/dist/structure/percent-sum.d.ts.map +1 -0
- package/dist/structure/percent-sum.js +104 -0
- package/dist/structure/percent-sum.js.map +1 -0
- package/dist/structure/quoted-number.d.ts +8 -0
- package/dist/structure/quoted-number.d.ts.map +1 -0
- package/dist/structure/quoted-number.js +34 -0
- package/dist/structure/quoted-number.js.map +1 -0
- package/dist/structure/relative-find.d.ts.map +1 -1
- package/dist/structure/relative-find.js +34 -46
- package/dist/structure/relative-find.js.map +1 -1
- package/dist/structure/relative-resolve.d.ts.map +1 -1
- package/dist/structure/relative-resolve.js +76 -30
- package/dist/structure/relative-resolve.js.map +1 -1
- package/dist/structure/runs.d.ts +2 -0
- package/dist/structure/runs.d.ts.map +1 -1
- package/dist/structure/runs.js +2 -2
- package/dist/structure/runs.js.map +1 -1
- package/dist/structure/sexp.d.ts +1 -1
- package/dist/structure/sexp.d.ts.map +1 -1
- package/dist/structure/sexp.js +18 -6
- package/dist/structure/sexp.js.map +1 -1
- package/dist/structure/total.d.ts +3 -0
- package/dist/structure/total.d.ts.map +1 -1
- package/dist/structure/total.js +2 -2
- package/dist/structure/total.js.map +1 -1
- package/dist/structure/universal.d.ts +14 -2
- package/dist/structure/universal.d.ts.map +1 -1
- package/dist/structure/universal.js +17 -2
- package/dist/structure/universal.js.map +1 -1
- package/dist/structure/wrapped-tail.d.ts +14 -7
- package/dist/structure/wrapped-tail.d.ts.map +1 -1
- package/dist/structure/wrapped-tail.js +33 -8
- package/dist/structure/wrapped-tail.js.map +1 -1
- package/dist/style-load.d.ts +4 -0
- package/dist/style-load.d.ts.map +1 -0
- package/dist/style-load.js +28 -0
- package/dist/style-load.js.map +1 -0
- package/dist/style-parse.d.ts +19 -0
- package/dist/style-parse.d.ts.map +1 -0
- package/dist/style-parse.js +60 -0
- package/dist/style-parse.js.map +1 -0
- package/dist/subheading-line.d.ts +6 -0
- package/dist/subheading-line.d.ts.map +1 -0
- package/dist/subheading-line.js +57 -0
- package/dist/subheading-line.js.map +1 -0
- package/dist/template-syntax.d.ts +17 -0
- package/dist/template-syntax.d.ts.map +1 -0
- package/dist/template-syntax.js +140 -0
- package/dist/template-syntax.js.map +1 -0
- package/dist/text-above.d.ts +19 -0
- package/dist/text-above.d.ts.map +1 -0
- package/dist/text-above.js +43 -0
- package/dist/text-above.js.map +1 -0
- package/dist/text-figures.d.ts +10 -0
- package/dist/text-figures.d.ts.map +1 -0
- package/dist/text-figures.js +131 -0
- package/dist/text-figures.js.map +1 -0
- package/dist/trailing-aside.d.ts +2 -0
- package/dist/trailing-aside.d.ts.map +1 -0
- package/dist/trailing-aside.js +53 -0
- package/dist/trailing-aside.js.map +1 -0
- package/dist/tree-walk.d.ts +18 -0
- package/dist/tree-walk.d.ts.map +1 -0
- package/dist/tree-walk.js +45 -0
- package/dist/tree-walk.js.map +1 -0
- package/genres.yaml +26 -0
- package/package.json +5 -3
- package/reference-headings.yaml +17 -0
- package/rules/adverb-overuse.yaml +19 -0
- package/rules/agentless-passive.yaml +19 -0
- package/rules/agreement-slip.yaml +14 -1
- package/rules/ai-generated-composite.yaml +102 -0
- package/rules/ai-tell.yaml +23 -0
- package/rules/announced-count-mismatch.yaml +57 -0
- package/rules/announcing-opener.yaml +51 -0
- package/rules/assistant-residue.yaml +52 -0
- package/rules/bold-density.yaml +31 -0
- package/rules/broken-link.yaml +65 -0
- package/rules/closing-cliche.yaml +33 -0
- package/rules/colon-lead-in.yaml +59 -0
- package/rules/concrete-evidence-density.yaml +41 -0
- package/rules/contraction-consistency.yaml +18 -0
- package/rules/contrast-framing.yaml +57 -0
- package/rules/cushion-phrase-density.yaml +25 -0
- package/rules/dangling-figure-reference.yaml +61 -0
- package/rules/dangling-reference.yaml +53 -1
- package/rules/date-order.yaml +33 -1
- package/rules/date-range-reversed.yaml +46 -0
- package/rules/date-weekday-mismatch.yaml +17 -1
- package/rules/double-keigo.yaml +16 -0
- package/rules/doubled-punctuation.yaml +45 -0
- package/rules/doubled-word.yaml +17 -1
- package/rules/duplicate-definition.yaml +59 -1
- package/rules/emoji-density.yaml +25 -0
- package/rules/empty-conclusion.yaml +28 -0
- package/rules/empty-intensifier.yaml +19 -0
- package/rules/excessive-hedging.yaml +19 -0
- package/rules/expletive-construction.yaml +19 -0
- package/rules/heading-echo.yaml +31 -0
- package/rules/heading-level-skip.yaml +78 -0
- package/rules/hiragana-fukushi.yaml +16 -0
- package/rules/image-alt-text.yaml +54 -0
- package/rules/internal-jargon.yaml +21 -0
- package/rules/katakana-long-vowel.yaml +98 -0
- package/rules/kutoten-consistency.yaml +53 -0
- package/rules/latin-spacing.yaml +23 -4
- package/rules/max-kanji-continuous.yaml +16 -0
- package/rules/max-paragraph-length.yaml +33 -0
- package/rules/max-sentence-length.yaml +32 -0
- package/rules/ngram-repetition.yaml +29 -2
- package/rules/no-doubled-joshi.yaml +16 -0
- package/rules/no-em-dash.yaml +25 -0
- package/rules/no-mixed-desumasu.yaml +27 -2
- package/rules/no-nakaguro-parallel.yaml +20 -0
- package/rules/numbering-gap.yaml +53 -1
- package/rules/oxford-comma-consistency.yaml +18 -0
- package/rules/padded-intro.yaml +19 -0
- package/rules/paragraph-length-variance.yaml +49 -0
- package/rules/percent-sum-mismatch.yaml +58 -0
- package/rules/preamble-length.yaml +56 -0
- package/rules/preferred-term.yaml +27 -0
- package/rules/proper-noun-density.yaml +26 -0
- package/rules/repeated-conjunction.yaml +47 -0
- package/rules/repeated-sentence-head.yaml +23 -0
- package/rules/required-sections.yaml +49 -0
- package/rules/risk-disclosure.yaml +22 -0
- package/rules/rule-of-three.yaml +97 -0
- package/rules/sasete-itadaku.yaml +18 -0
- package/rules/section-length-uniformity.yaml +89 -0
- package/rules/sentence-initial-conjunction-run.yaml +18 -0
- package/rules/sentence-rhythm.yaml +25 -0
- package/rules/stock-transition.yaml +55 -0
- package/rules/stray-space.yaml +18 -0
- package/rules/taigen-dome-in-prose.yaml +19 -0
- package/rules/title-case-consistency.yaml +42 -0
- package/rules/total-mismatch.yaml +37 -1
- package/rules/unbalanced-bracket.yaml +56 -0
- package/rules/undefined-acronym.yaml +22 -0
- package/rules/unfilled-placeholder.yaml +50 -0
- package/rules/unqualified-superlative.yaml +19 -0
- package/rules/unsourced-number.yaml +16 -0
- package/rules/url-run-on.yaml +45 -0
- package/skills/chaff/SKILL.md +70 -0
- package/src/announced-count.ts +148 -0
- package/src/bare-url.ts +35 -0
- package/src/baseline.ts +17 -1
- package/src/body-section.ts +7 -0
- package/src/calendar-number.ts +18 -4
- package/src/cli-args.ts +6 -0
- package/src/cli-text.ts +8 -4
- package/src/cli.ts +37 -37
- package/src/commands/compare.ts +80 -0
- package/src/commands/eval.ts +19 -8
- package/src/commands/feedback.ts +12 -6
- package/src/commands/test.ts +2 -4
- package/src/commands/tree.ts +41 -5
- package/src/compare/atom.ts +33 -0
- package/src/compare/clock-time.ts +86 -0
- package/src/compare/extract.ts +78 -0
- package/src/compare/fact-text.ts +68 -0
- package/src/compare/markup-atoms.ts +29 -0
- package/src/compare/match.ts +105 -0
- package/src/compare/outcome.ts +70 -0
- package/src/compare/proper-nouns.ts +65 -0
- package/src/compare/render.ts +102 -0
- package/src/compare/spans.ts +17 -0
- package/src/compare/text-atoms.ts +95 -0
- package/src/compare/text.ts +120 -0
- package/src/compare/tree-atoms.ts +80 -0
- package/src/compare/written-names.ts +26 -0
- package/src/config/load.ts +21 -0
- package/src/config/option-problems.ts +70 -0
- package/src/config/read.ts +8 -0
- package/src/config/rule-problems.ts +12 -2
- package/src/config/style.ts +42 -0
- package/src/config/warnings.ts +13 -0
- package/src/config/write.ts +18 -4
- package/src/custom/bounded-match.ts +58 -0
- package/src/custom/load.ts +15 -0
- package/src/custom/parse.ts +274 -0
- package/src/custom/problems.ts +89 -0
- package/src/custom/regex-safety.ts +118 -0
- package/src/custom/token-pattern.ts +84 -0
- package/src/detect.ts +28 -2
- package/src/detectors/acronym-context.ts +16 -4
- package/src/detectors/ai-phrasing.ts +137 -0
- package/src/detectors/announced-count.ts +25 -0
- package/src/detectors/broken-link.ts +90 -0
- package/src/detectors/cited-name.ts +6 -5
- package/src/detectors/cited-title.ts +96 -0
- package/src/detectors/concrete-evidence.ts +3 -2
- package/src/detectors/contrast-frame.ts +54 -0
- package/src/detectors/custom.ts +89 -0
- package/src/detectors/dangling-figure.ts +22 -0
- package/src/detectors/doubled-punctuation.ts +49 -0
- package/src/detectors/doubled-word.ts +19 -4
- package/src/detectors/enumerated-runs.ts +13 -4
- package/src/detectors/gram-furniture.ts +30 -0
- package/src/detectors/gram-place.ts +9 -5
- package/src/detectors/gram-windows.ts +31 -0
- package/src/detectors/heading-case.ts +30 -2
- package/src/detectors/heading-code-words.ts +35 -0
- package/src/detectors/heading-echo.ts +8 -4
- package/src/detectors/heading-level-skip.ts +19 -0
- package/src/detectors/image-alt-text.ts +11 -0
- package/src/detectors/index.ts +43 -1
- package/src/detectors/kutoten-consistency.ts +96 -0
- package/src/detectors/lead-in.ts +3 -1
- package/src/detectors/lexicon-match.ts +9 -2
- package/src/detectors/list-item.ts +122 -0
- package/src/detectors/list-items.ts +163 -0
- package/src/detectors/list-lead-in.ts +33 -0
- package/src/detectors/list-sentence.ts +157 -0
- package/src/detectors/list-view.ts +157 -0
- package/src/detectors/long-vowel.ts +66 -0
- package/src/detectors/markup-finding.ts +24 -0
- package/src/detectors/name-numeral.ts +4 -2
- package/src/detectors/orthography.ts +23 -17
- package/src/detectors/oxford-comma.ts +178 -283
- package/src/detectors/place-run.ts +7 -4
- package/src/detectors/placeholder-text.ts +27 -0
- package/src/detectors/quote-around.ts +9 -0
- package/src/detectors/register.ts +37 -10
- package/src/detectors/roman-numeral.ts +3 -0
- package/src/detectors/sentence-ending.ts +14 -7
- package/src/detectors/sentence-length.ts +16 -5
- package/src/detectors/signals.ts +80 -46
- package/src/detectors/structure-tree.ts +45 -1
- package/src/detectors/structure.ts +3 -4
- package/src/detectors/superlative-name.ts +7 -4
- package/src/detectors/superlative-scope.ts +8 -3
- package/src/detectors/token-column.ts +149 -0
- package/src/detectors/unbalanced-bracket.ts +153 -0
- package/src/detectors/url-run-on.ts +27 -0
- package/src/document-sections.ts +46 -0
- package/src/document.ts +106 -138
- package/src/email-parts.ts +269 -0
- package/src/eval.ts +14 -4
- package/src/figure-references.ts +112 -0
- package/src/files.ts +5 -0
- package/src/heading-label.ts +55 -0
- package/src/in-page-nav.ts +48 -19
- package/src/joined-view.ts +1 -0
- package/src/levels.ts +14 -1
- package/src/line-paragraphs.ts +52 -9
- package/src/long-vowel.ts +99 -0
- package/src/markdown-node.ts +19 -0
- package/src/markdown-read.ts +44 -0
- package/src/markup.ts +210 -0
- package/src/mask.ts +8 -8
- package/src/number-name.ts +151 -24
- package/src/orthography.ts +10 -3
- package/src/page-furniture.ts +11 -2
- package/src/plain-source.ts +2 -1
- package/src/plugin.ts +101 -1
- package/src/profile/for-file.ts +3 -1
- package/src/quoted-span.ts +9 -3
- package/src/reasons.ts +9 -0
- package/src/reference-lists.ts +91 -0
- package/src/render/explain.ts +47 -13
- package/src/render/friendly.ts +20 -9
- package/src/render/options.ts +58 -0
- package/src/render/rules-json.ts +130 -14
- package/src/render/rules-table.ts +91 -0
- package/src/render/sarif.ts +4 -4
- package/src/render/semantic.ts +3 -3
- package/src/render/severity-name.ts +10 -0
- package/src/render/text.ts +21 -7
- package/src/resolve-genre.ts +4 -1
- package/src/rule-genres.ts +25 -0
- package/src/rule-guide.ts +135 -0
- package/src/rule-load.ts +91 -34
- package/src/rule-options.ts +131 -0
- package/src/run.ts +74 -11
- package/src/sentence-shape.ts +4 -5
- package/src/setting-problems.ts +7 -1
- package/src/span-cut.ts +28 -0
- package/src/structure/aside-depth.ts +67 -0
- package/src/structure/build.ts +38 -19
- package/src/structure/closed-pairs.ts +20 -0
- package/src/structure/date-range.ts +69 -0
- package/src/structure/known-mentions.ts +96 -0
- package/src/structure/numbering.ts +9 -5
- package/src/structure/of.ts +11 -3
- package/src/structure/percent-sum.ts +135 -0
- package/src/structure/quoted-number.ts +36 -0
- package/src/structure/relative-find.ts +34 -47
- package/src/structure/relative-resolve.ts +77 -30
- package/src/structure/runs.ts +2 -2
- package/src/structure/sexp.ts +17 -5
- package/src/structure/total.ts +2 -2
- package/src/structure/universal.ts +24 -4
- package/src/structure/wrapped-tail.ts +38 -13
- package/src/style-load.ts +28 -0
- package/src/style-parse.ts +77 -0
- package/src/subheading-line.ts +68 -0
- package/src/template-syntax.ts +164 -0
- package/src/text-above.ts +49 -0
- package/src/text-figures.ts +147 -0
- package/src/trailing-aside.ts +50 -0
- package/src/tree-walk.ts +48 -0
- package/styles/bunkacho.yaml +25 -0
- package/styles/ieice.yaml +29 -0
- package/styles/jis-z8301-2011.yaml +25 -0
package/rules/heading-echo.yaml
CHANGED
|
@@ -29,3 +29,34 @@ levels:
|
|
|
29
29
|
relaxed: 75
|
|
30
30
|
|
|
31
31
|
use_for: [blog, business, technical, legal, docs, academic, literature, speech]
|
|
32
|
+
|
|
33
|
+
group: readability
|
|
34
|
+
summary:
|
|
35
|
+
ja: 見出しのすぐ後の文が、見出しをほぼそのまま繰り返している所
|
|
36
|
+
en: A first sentence that only repeats the heading above it
|
|
37
|
+
example:
|
|
38
|
+
ja:
|
|
39
|
+
before: |
|
|
40
|
+
## 経費の精算方法
|
|
41
|
+
|
|
42
|
+
経費の精算方法について説明します。領収書を添えて、月末までに申請してください。
|
|
43
|
+
after: |
|
|
44
|
+
## 経費の精算方法
|
|
45
|
+
|
|
46
|
+
領収書を添えて、月末までに申請してください。
|
|
47
|
+
en:
|
|
48
|
+
before: |
|
|
49
|
+
## How to claim expenses
|
|
50
|
+
|
|
51
|
+
This section explains how to claim expenses. Attach the receipt and submit it by the end of the month.
|
|
52
|
+
after: |
|
|
53
|
+
## How to claim expenses
|
|
54
|
+
|
|
55
|
+
Attach the receipt and submit it by the end of the month.
|
|
56
|
+
|
|
57
|
+
not_flagged:
|
|
58
|
+
ja: 短い見出し(言葉が少なく、重なりを測れないもの)は見ません。見出しの頭の番号の札(例 3:、Step 3:、1.、第2章)は重なりに数えません。
|
|
59
|
+
en: Headings too short to measure an overlap are not checked. A number label at the head of a heading (Step 3:, Example 4:, 1., Chapter 2:) is not counted in the overlap.
|
|
60
|
+
level_meaning:
|
|
61
|
+
ja: 見出しと直後の文の重なりが {limit}% 以上なら指摘
|
|
62
|
+
en: reported when the first sentence overlaps the heading by {limit}% or more
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
id: heading-level-skip
|
|
2
|
+
layer: L1
|
|
3
|
+
status: experimental
|
|
4
|
+
how_to_find: heading-level-skip
|
|
5
|
+
requires: [markdown]
|
|
6
|
+
severity: warning
|
|
7
|
+
|
|
8
|
+
name:
|
|
9
|
+
ja: 見出しの深さが飛んでいる
|
|
10
|
+
en: Heading level skipped
|
|
11
|
+
|
|
12
|
+
why:
|
|
13
|
+
ja: 「##」の次に「####」が来ると、間の一段が抜けます。目次や画面読み上げは見出しの深さで文書の形を伝えるので、抜けた段は「どこかの節が消えた」ように読めます。見た目の大きさのために深さを選ぶと起きます。最初の見出しは何段から始めてもよく、一つ前の見出しより二段以上深いときだけ指摘します(markdownlint の MD001 と同じ数え方)。
|
|
14
|
+
en: A "####" right after a "##" leaves out a level. A table of contents and a screen reader show a document's shape by heading level, so the missing level reads as a section that went missing. It happens when a level is chosen for its size on screen. The first heading may start at any level; only a heading two or more levels deeper than the one before it is reported (as markdownlint's MD001 counts).
|
|
15
|
+
|
|
16
|
+
message:
|
|
17
|
+
ja: 見出し「{heading}」の深さが {from} から {to} へ飛んでいます({expected} のはず)
|
|
18
|
+
en: 'Heading "{heading}" goes from level {from} to level {to} (expected {expected})'
|
|
19
|
+
|
|
20
|
+
how_to_fix:
|
|
21
|
+
ja: 一つ前の見出しより一段だけ深くしてください。文字の大きさを変えたいだけなら、深さではなく表示の設定で変えてください。
|
|
22
|
+
en: Make the heading one level deeper than the one before it. If only the size on screen was the point, change the style instead of the level.
|
|
23
|
+
|
|
24
|
+
levels: { strict: error, normal: warning, relaxed: info }
|
|
25
|
+
|
|
26
|
+
use_for: [business, technical, blog, legal, docs, academic, literature, speech]
|
|
27
|
+
|
|
28
|
+
group: structure
|
|
29
|
+
summary:
|
|
30
|
+
ja: 「##」の次に「####」が来るように、見出しの深さが一段以上飛んでいる所
|
|
31
|
+
en: A heading two or more levels deeper than the one before it, as "####" right after "##"
|
|
32
|
+
example:
|
|
33
|
+
ja:
|
|
34
|
+
before: |
|
|
35
|
+
# 手順書
|
|
36
|
+
|
|
37
|
+
## 準備
|
|
38
|
+
|
|
39
|
+
道具をそろえます。
|
|
40
|
+
|
|
41
|
+
#### 注意
|
|
42
|
+
|
|
43
|
+
手袋をはめます。
|
|
44
|
+
after: |
|
|
45
|
+
# 手順書
|
|
46
|
+
|
|
47
|
+
## 準備
|
|
48
|
+
|
|
49
|
+
道具をそろえます。
|
|
50
|
+
|
|
51
|
+
### 注意
|
|
52
|
+
|
|
53
|
+
手袋をはめます。
|
|
54
|
+
en:
|
|
55
|
+
before: |
|
|
56
|
+
# Setup guide
|
|
57
|
+
|
|
58
|
+
## Before you start
|
|
59
|
+
|
|
60
|
+
Gather the tools.
|
|
61
|
+
|
|
62
|
+
#### Safety
|
|
63
|
+
|
|
64
|
+
Wear gloves.
|
|
65
|
+
after: |
|
|
66
|
+
# Setup guide
|
|
67
|
+
|
|
68
|
+
## Before you start
|
|
69
|
+
|
|
70
|
+
Gather the tools.
|
|
71
|
+
|
|
72
|
+
### Safety
|
|
73
|
+
|
|
74
|
+
Wear gloves.
|
|
75
|
+
|
|
76
|
+
not_flagged:
|
|
77
|
+
ja: 最初の見出しは何段から始めてもかまいません。浅くなる見出し(「####」の次の「##」)も指しません。
|
|
78
|
+
en: The first heading may start at any level, and a heading that goes back up ("##" after "####") is not reported.
|
|
@@ -26,3 +26,19 @@ how_to_fix:
|
|
|
26
26
|
levels: { strict: 1, normal: 1, relaxed: 3 }
|
|
27
27
|
|
|
28
28
|
use_for: [blog, business, technical, legal, docs, academic, literature, speech]
|
|
29
|
+
|
|
30
|
+
group: readability
|
|
31
|
+
summary:
|
|
32
|
+
ja: 「殆ど」「勿論」のように、ひらがなのほうが読みやすい副詞を漢字で書いた所
|
|
33
|
+
en: A Japanese adverb written in rare kanji where kana is easier to read
|
|
34
|
+
example:
|
|
35
|
+
ja:
|
|
36
|
+
before: 参加者の殆どが、勿論その案に賛成しました。
|
|
37
|
+
after: 参加者のほとんどが、もちろんその案に賛成しました。
|
|
38
|
+
|
|
39
|
+
not_flagged:
|
|
40
|
+
ja: 一覧にある副詞だけを見ます。常用漢字で普通に書く副詞(「必ず」「特に」など)は指しません。
|
|
41
|
+
en: Only the adverbs on chaff's list are checked; adverbs normally written in common kanji are not.
|
|
42
|
+
level_meaning:
|
|
43
|
+
ja: 当てはまる語が {limit} 箇所あれば指摘
|
|
44
|
+
en: reported once there are {limit}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
id: image-alt-text
|
|
2
|
+
layer: L1
|
|
3
|
+
status: experimental
|
|
4
|
+
how_to_find: image-alt-text
|
|
5
|
+
requires: [markdown]
|
|
6
|
+
severity: warning
|
|
7
|
+
|
|
8
|
+
name:
|
|
9
|
+
ja: 画像に代替テキストが無い
|
|
10
|
+
en: Image without alt text
|
|
11
|
+
|
|
12
|
+
why:
|
|
13
|
+
ja: 画像が読み込めないときと、画面読み上げで読むときは、代替テキストだけが画像の代わりに伝わります。「」のように空だと、そこに何があったのか読み手には分かりません。HTML の <img> は alt 属性が無いものだけを数え、alt="" は飾りの画像と書き手が明示したものとして数えません(markdownlint の MD045 と同じ)。
|
|
14
|
+
en: When an image does not load, or a screen reader reads the page, the alt text is all that stands in for it. With an empty one ("") the reader cannot tell what was there. An HTML <img> is reported only when it has no alt attribute; alt="" says the image is decoration and is not counted (as markdownlint's MD045).
|
|
15
|
+
|
|
16
|
+
message:
|
|
17
|
+
ja: 画像「{image}」に代替テキストがありません
|
|
18
|
+
en: 'Image "{image}" has no alt text'
|
|
19
|
+
|
|
20
|
+
how_to_fix:
|
|
21
|
+
ja: 画像が伝えることを一言で書いてください()。飾りの画像なら、HTML で alt="" と書くと読み上げが飛ばします。
|
|
22
|
+
en: Write what the image shows in a few words (""). If it is decoration, write alt="" in HTML so screen readers skip it.
|
|
23
|
+
|
|
24
|
+
levels: { strict: error, normal: warning, relaxed: info }
|
|
25
|
+
|
|
26
|
+
use_for: [business, technical, blog, legal, docs, academic, literature, speech]
|
|
27
|
+
|
|
28
|
+
group: structure
|
|
29
|
+
summary:
|
|
30
|
+
ja: 「」のように、代替テキストの無い画像
|
|
31
|
+
en: An image with no alt text, as in ""
|
|
32
|
+
example:
|
|
33
|
+
ja:
|
|
34
|
+
before: |
|
|
35
|
+
四月から六月の売上です。
|
|
36
|
+
|
|
37
|
+

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

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

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

|
|
51
|
+
|
|
52
|
+
not_flagged:
|
|
53
|
+
ja: HTML で alt="" と書いた画像は、飾りと明示したものとして指しません。引用(>)とコードの中の画像も見ません。
|
|
54
|
+
en: An HTML image with alt="" is marked as decoration and is not reported, nor is an image in a quotation (>) or in code.
|
|
@@ -25,3 +25,24 @@ how_to_fix:
|
|
|
25
25
|
levels: { strict: 1, normal: 1, relaxed: 3 }
|
|
26
26
|
|
|
27
27
|
use_for: [business, blog, technical, legal, docs, academic, literature, speech]
|
|
28
|
+
|
|
29
|
+
group: team
|
|
30
|
+
summary:
|
|
31
|
+
ja: 「横展開」「握る」のように、社内でしか通じない言葉。chaff.yaml の jargon に書いた語だけを見ます
|
|
32
|
+
en: Words that only work inside your team, from jargon in chaff.yaml
|
|
33
|
+
example:
|
|
34
|
+
ja:
|
|
35
|
+
config: { jargon: [横展開] }
|
|
36
|
+
before: この取り組みを、ほかの部にも横展開します。
|
|
37
|
+
after: この取り組みを、ほかの部でも同じように始めます。
|
|
38
|
+
en:
|
|
39
|
+
config: { jargon: [ping] }
|
|
40
|
+
before: I will ping the vendor about the quote.
|
|
41
|
+
after: I will email the vendor about the quote.
|
|
42
|
+
|
|
43
|
+
not_flagged:
|
|
44
|
+
ja: chaff.yaml の jargon に書いた語だけを見ます。何も書かなければ何も言いません。
|
|
45
|
+
en: Only the words under jargon in chaff.yaml are checked. With nothing listed, it says nothing.
|
|
46
|
+
level_meaning:
|
|
47
|
+
ja: 当てはまる語が {limit} 箇所あれば指摘
|
|
48
|
+
en: reported once there are {limit}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
id: katakana-long-vowel
|
|
2
|
+
layer: L3
|
|
3
|
+
status: experimental
|
|
4
|
+
how_to_find: katakana-long-vowel
|
|
5
|
+
# 語は形態素解析で取る。複合語の中の「ユーザー」も一語として見る。品詞が無ければ動かない。
|
|
6
|
+
requires: [pos]
|
|
7
|
+
# ending: keep が読む、辞書が「ー」付きで知る語の印。この rule が動くときだけ lang-ja が辞書に聞く。
|
|
8
|
+
token_features: [LongVowelEnding]
|
|
9
|
+
languages: [ja]
|
|
10
|
+
severity: warning
|
|
11
|
+
|
|
12
|
+
name:
|
|
13
|
+
ja: カタカナ語の語末の「ー」がそろっていない
|
|
14
|
+
en: The final ー of katakana words is inconsistent
|
|
15
|
+
|
|
16
|
+
why:
|
|
17
|
+
ja: 「コンピューター」と「コンピュータ」のように、カタカナ語の語末の「ー」は付ける書き方と省く書き方があります。どちらも正しく、困るのは一つの文書の中で混ざることです。読み手は別のものかと迷い、検索でも片方を取りこぼします。設定が無ければ、同じ語が両方で書かれた所だけを指摘し、違う語どうし(サーバーとブラウザ)は比べません。options の ending を drop か keep にすると、決めた書き方に合わない語をすべて指摘します。音は「コ・ン・ピュ・ー・タ・ー」で 6 音と数えます(小さい「ャュョァィゥェォ」は前の字と合わせて 1 音、「ッ」「ン」「ー」は 1 音ずつ)。辞書が固有名詞と知っている語(ディズニー)と、chaff.yaml の names に並べた名前は見ません。
|
|
18
|
+
en: A katakana loanword can be written with or without its final long-vowel mark (コンピューター / コンピュータ). Both are right; what reads badly is mixing them in one document, which makes a reader wonder whether they differ and makes a search miss one. With no setting chaff points only at a word written both ways, and does not compare different words (サーバー and ブラウザ). Setting ending under options to drop or keep points at every word written the other way. Morae are counted as コ・ン・ピュ・ー・タ・ー, six (a small ャュョァィゥェォ joins the kana before it; ッ, ン and ー are one each). Words the dictionary knows as proper nouns (ディズニー) and the names under names in chaff.yaml are left alone.
|
|
19
|
+
|
|
20
|
+
message:
|
|
21
|
+
ja: 「{matched}」は語末の「ー」がほかと違います(「{preferred}」)
|
|
22
|
+
en: 'The final ー of "{matched}" differs from the rest ("{preferred}")'
|
|
23
|
+
|
|
24
|
+
messages:
|
|
25
|
+
same-word:
|
|
26
|
+
ja: 「{matched}」と「{preferred}」が混ざっています(この語は {of} 回のうち {count} 回が「{matched}」)
|
|
27
|
+
en: '"{matched}" and "{preferred}" are both used ({count} of {of} are "{matched}")'
|
|
28
|
+
drop:
|
|
29
|
+
ja: 「{matched}」は語末の「ー」を省いて「{preferred}」と書きます({min_morae} 音以上の語)
|
|
30
|
+
en: 'Write "{preferred}", without the final ー ({min_morae} morae or more)'
|
|
31
|
+
keep:
|
|
32
|
+
ja: 「{matched}」は語末の「ー」を付けて「{preferred}」と書きます
|
|
33
|
+
en: 'Write "{preferred}", with the final ー'
|
|
34
|
+
|
|
35
|
+
how_to_fix:
|
|
36
|
+
ja: 「{preferred}」に直してください。どちらに寄せるかチームで決めているなら、chaff.yaml の options で ending を決めておくと、この文書の多いほうではなく、決めた書き方で見ます。製品名など、そのままにすべき語は options の except か names に並べます。
|
|
37
|
+
en: Change it to "{preferred}". If the team has decided which way, set ending under options in chaff.yaml, and chaff checks against that instead of the document's usual way. List a word that must stay as it is (a product's name) under except in options, or under names.
|
|
38
|
+
|
|
39
|
+
placeholders:
|
|
40
|
+
matched:
|
|
41
|
+
ja: 見つけた語
|
|
42
|
+
en: the word found
|
|
43
|
+
preferred:
|
|
44
|
+
ja: 直した書き方
|
|
45
|
+
en: the other way of writing it
|
|
46
|
+
|
|
47
|
+
# 何語違えば指摘するか。1 は「1 語でも違えば」。
|
|
48
|
+
levels: { strict: 1, normal: 1, relaxed: 3 }
|
|
49
|
+
|
|
50
|
+
options:
|
|
51
|
+
ending:
|
|
52
|
+
kind: choice
|
|
53
|
+
default: consistent
|
|
54
|
+
about:
|
|
55
|
+
ja: 語末の「ー」をどちらに寄せるか
|
|
56
|
+
en: Which way the final ー goes
|
|
57
|
+
choices:
|
|
58
|
+
consistent:
|
|
59
|
+
ja: 決めない。文書の中でそろっているかだけを見る
|
|
60
|
+
en: No side taken; only checks that the document is consistent
|
|
61
|
+
drop:
|
|
62
|
+
ja: min_morae 音以上の語の語末の「ー」を省く(電子情報通信学会、JIS Z 8301:2011 まで)
|
|
63
|
+
en: Drop the final ー on words of min_morae morae or more (IEICE; JIS Z 8301 up to 2011)
|
|
64
|
+
keep:
|
|
65
|
+
ja: 語末の「ー」を付ける(文化庁「外来語の表記」、JIS Z 8301:2019)。「ー」の無い語は、辞書が「ー」付きで知っている語(メモリ)か、文書がほかで「ー」付きで書く語だけを見る
|
|
66
|
+
en: Keep the final ー (the Agency for Cultural Affairs' 外来語の表記; JIS Z 8301:2019). A word without one is checked only when the dictionary knows it with one (メモリ) or the document writes it with one elsewhere
|
|
67
|
+
min_morae:
|
|
68
|
+
kind: count
|
|
69
|
+
default: 3
|
|
70
|
+
about:
|
|
71
|
+
ja: 何音以上の語を見るか。語末の「ー」も 1 音と数える(コンピューターは 6 音、カーは 2 音)
|
|
72
|
+
en: The shortest word checked, in morae, counting the final ー (コンピューター is six, カー two)
|
|
73
|
+
except:
|
|
74
|
+
kind: words
|
|
75
|
+
default: []
|
|
76
|
+
about:
|
|
77
|
+
ja: 見ない語。どちらの書き方で並べても、両方の書き方が外れる
|
|
78
|
+
en: Words left alone; listing either way of writing one exempts both
|
|
79
|
+
|
|
80
|
+
use_for: [business, blog, technical, legal, docs, academic, literature, speech]
|
|
81
|
+
|
|
82
|
+
group: consistency
|
|
83
|
+
summary:
|
|
84
|
+
ja: カタカナ語の語末の「ー」を、同じ語で付けたり省いたりしている所(コンピューターとコンピュータ)。options で省く・付けるを決めることもできます
|
|
85
|
+
en: A katakana word written both with and without its final ー in one document (コンピューター and コンピュータ); options can set which way
|
|
86
|
+
example:
|
|
87
|
+
ja:
|
|
88
|
+
before: |
|
|
89
|
+
新しいコンピューターを買いました。古いコンピュータは来月捨てます。
|
|
90
|
+
after: |
|
|
91
|
+
新しいコンピューターを買いました。古いコンピューターは来月捨てます。
|
|
92
|
+
|
|
93
|
+
not_flagged:
|
|
94
|
+
ja: 違う語どうし(サーバーとブラウザ)は比べません。2 音の語(カー)、辞書が固有名詞と知っている語、chaff.yaml の names に並べた名前も見ません。
|
|
95
|
+
en: Different words (サーバー and ブラウザ) are not compared. Two-mora words (カー), words the dictionary knows as proper nouns and the names under names in chaff.yaml are left alone.
|
|
96
|
+
level_meaning:
|
|
97
|
+
ja: 違う書き方の語が {limit} 箇所あれば指摘
|
|
98
|
+
en: reported once {limit} words go the other way
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
id: kutoten-consistency
|
|
2
|
+
layer: L3
|
|
3
|
+
status: experimental
|
|
4
|
+
how_to_find: kutoten-consistency
|
|
5
|
+
languages: [ja]
|
|
6
|
+
severity: warning
|
|
7
|
+
|
|
8
|
+
name:
|
|
9
|
+
ja: 句読点の書き方がそろっていない
|
|
10
|
+
en: Japanese commas and periods are mixed
|
|
11
|
+
|
|
12
|
+
why:
|
|
13
|
+
ja: 読点を「、」と「,」、句点を「。」と「.」のどちらで書くかは、どちらでも読めます(横書きの論文や公用文には「,」があります)。困るのは一つの文書の中で混ざることで、貼り付けた文や別の人が書いた段落が、そこだけ違って見えます。chaff はどちらが正しいかを決めず、読点と句点のそれぞれで、文書の中で少ないほうを指摘します。数の中の「,」「.」(1,000、3.5)、番号の印の点(1.はじめに、2.確認)、一、二文字の英字の印の後ろの点(Q.)、鉤括弧で引いたものの中と、注の番号で始まる行や URL を含む文(文献や出典の書き方に従う)は数えません。
|
|
14
|
+
en: Whether Japanese text uses 、 or , for its commas and 。 or . for its periods is a choice either way (, is common in horizontal academic and official writing). What reads badly is mixing both in one document, which makes a pasted sentence or another writer's paragraph stand out. chaff does not decide which is right; for commas and for periods separately, it points at whichever the document uses less. Marks inside a number (1,000, 3.5), after a list number (1.はじめに, 2.確認), after a one- or two-letter label (Q.), inside a 「」 quotation, and in a sentence that starts with a note number or holds a URL (a citation follows its own style) are not counted.
|
|
15
|
+
|
|
16
|
+
message:
|
|
17
|
+
ja: 「{mark}」と書いています(この文書はふつう「{usual}」。{of} 箇所のうち {count} 箇所が違う)
|
|
18
|
+
en: '"{mark}" here, where the document usually writes "{usual}" ({count} of {of})'
|
|
19
|
+
|
|
20
|
+
messages:
|
|
21
|
+
comma:
|
|
22
|
+
ja: 読点を「{mark}」と書いています(この文書はふつう「{usual}」。{of} 箇所のうち {count} 箇所が違う)
|
|
23
|
+
en: 'The Japanese comma is written "{mark}" here, where the document usually writes "{usual}" ({count} of {of})'
|
|
24
|
+
period:
|
|
25
|
+
ja: 句点を「{mark}」と書いています(この文書はふつう「{usual}」。{of} 箇所のうち {count} 箇所が違う)
|
|
26
|
+
en: 'The Japanese period is written "{mark}" here, where the document usually writes "{usual}" ({count} of {of})'
|
|
27
|
+
|
|
28
|
+
how_to_fix:
|
|
29
|
+
ja: 文書の多いほうの書き方に合わせてください。チームで決めているなら、STYLE.md に書いておくと迷いません。
|
|
30
|
+
en: Match the way the rest of the document does it. If the team has decided, write it in the style guide.
|
|
31
|
+
|
|
32
|
+
# 何箇所違えば指摘するか。1 は「1 箇所でも混ざっていれば」。
|
|
33
|
+
levels: { strict: 1, normal: 1, relaxed: 3 }
|
|
34
|
+
|
|
35
|
+
use_for: [business, technical, blog, legal, docs, academic, literature, speech]
|
|
36
|
+
|
|
37
|
+
group: consistency
|
|
38
|
+
summary:
|
|
39
|
+
ja: 読点の「、」と「,」、句点の「。」と「.」が、一つの文書の中で混ざっている所
|
|
40
|
+
en: Japanese commas written both 、 and ,, or periods written both 。 and ., in one document
|
|
41
|
+
example:
|
|
42
|
+
ja:
|
|
43
|
+
before: |
|
|
44
|
+
申込書は、窓口で受け付けます。書類は,担当者が確認します。結果は、翌日に知らせます。
|
|
45
|
+
after: |
|
|
46
|
+
申込書は、窓口で受け付けます。書類は、担当者が確認します。結果は、翌日に知らせます。
|
|
47
|
+
|
|
48
|
+
not_flagged:
|
|
49
|
+
ja: 数の中の「,」「.」(1,000、3.5)、番号の印の点(1.)、「Q.」のような英字の印、「」の中、注の番号で始まる行と URL を含む文は数えません。どちらの書き方が正しいかは決めません。
|
|
50
|
+
en: Marks inside numbers (1,000, 3.5), after a list number (1.), in a letter label (Q.), inside 「」, and in a note or a sentence with a URL are not counted. Neither way is called right.
|
|
51
|
+
level_meaning:
|
|
52
|
+
ja: 少ないほうの書き方が {limit} 箇所あれば指摘
|
|
53
|
+
en: reported once {limit} places go against the document's habit
|
package/rules/latin-spacing.yaml
CHANGED
|
@@ -7,16 +7,17 @@ severity: warning
|
|
|
7
7
|
# 番号・識別子として書かれた数を見分けるのに、数の後ろの語の品詞を使う。無ければ全部数える。
|
|
8
8
|
uses: [pos]
|
|
9
9
|
# 番地(千代田区紀尾井町1-3)を、都道府県までの地名の後ろの範囲(東京都2-3 営業日)と分ける。
|
|
10
|
-
# 日付・時刻(9月、2026年、10時5分)を、長さ(3ヶ月、3 時間)と分ける。
|
|
11
|
-
|
|
10
|
+
# 日付・時刻(9月、2026年、令和8年、10時5分)を、長さ(3ヶ月、3 時間)と分ける。
|
|
11
|
+
# 番号と組んで名前を付ける語(問3、第1節)を見分ける。
|
|
12
|
+
extra_word_lists: [prefecture-unit, date-time-unit, calendar-unit, calendar-year-unit, calendar-era, numbered-label]
|
|
12
13
|
|
|
13
14
|
name:
|
|
14
15
|
ja: 英数字の前後の空白がそろっていない
|
|
15
16
|
en: Spacing around Latin text is inconsistent
|
|
16
17
|
|
|
17
18
|
why:
|
|
18
|
-
ja: 日本語と英字・数字のあいだを空けるか詰めるかは、どちらでも読めます。困るのは一つの文書の中で混ざることで、読み手には違いに意味があるように見えます。chaff はどちらが正しいかを決めず、文書の中で少ないほうを指摘します。英字と、数字の前、数字の後ろは別々に数えます。「を 3回」のように、数字の前は空けて助数詞とは詰める書き方がふつうにあるからです。「3GBの」のように数字に続く単位は、英字ではなく数字の側として数えます。逆に「H30 等」「EC2 で」「Phase 1 は」のように英字で始まって数字で終わる名前は、英字の側として数えます。「073-489-5909」「2026-06-02」のような番号は数量ではないので数えません。日付・時刻(「9月」「2026年」「10月1日」「3時」「10時5
|
|
19
|
-
en: Whether to put a space between Japanese and Latin letters or digits is a choice either way. What reads badly is mixing both in one document, which suggests the difference means something. chaff does not decide which is right; it points at whichever the document uses less. Letters, the space before a digit and the space after one are counted separately, since spacing before a number but not before its counter is common. A unit after a number (3GB) counts with the number; a name that starts with a letter and ends in a digit (H30, EC2, Phase 1) counts with the letters. A code such as a phone number or a date (073-489-5909, 2026-06-02) is not a quantity and is not counted. Nor is
|
|
19
|
+
ja: 日本語と英字・数字のあいだを空けるか詰めるかは、どちらでも読めます。困るのは一つの文書の中で混ざることで、読み手には違いに意味があるように見えます。chaff はどちらが正しいかを決めず、文書の中で少ないほうを指摘します。英字と、数字の前、数字の後ろは別々に数えます。「を 3回」のように、数字の前は空けて助数詞とは詰める書き方がふつうにあるからです。「3GBの」のように数字に続く単位は、英字ではなく数字の側として数えます。逆に「H30 等」「EC2 で」「Phase 1 は」のように英字で始まって数字で終わる名前は、英字の側として数えます。「073-489-5909」「2026-06-02」のような番号は数量ではないので数えません。日付・時刻(「9月」「2026年」「令和8年」「10月1日」「3時」「10時5分」)も、数と単位を詰めて書く決まりなので、その中の境目も、前の境目(「は 9月」「午後3時」)も数えません。長さ(「3ヶ月」「3 時間」「5日で」「3年」)は数量として数えます。題や注の番号として書かれた数(「3.1 リサーチの原則」の節番号、※1 の注番号、行の頭に続き番号で並べた注の番号、番号が増えていく箇条書きの頭の番号、「問3」「図2」のように語のすぐ後ろに書いた番号)、0 で始まる組を含む番号(102-0094)、〒の後ろの郵便番号(〒100-8916)、市・区・町まで下りた地名のすぐ後ろの番地(千代田区紀尾井町1-3)も、後ろの空白が番号と題・項目の区切りなので数えません。「第1節 AI の…」の「第1節」の後ろの空白も同じです。鉤括弧(「」『』)で引いた題名や発言の中も、空け方は引いた元のものなので数えません。
|
|
20
|
+
en: Whether to put a space between Japanese and Latin letters or digits is a choice either way. What reads badly is mixing both in one document, which suggests the difference means something. chaff does not decide which is right; it points at whichever the document uses less. Letters, the space before a digit and the space after one are counted separately, since spacing before a number but not before its counter is common. A unit after a number (3GB) counts with the number; a name that starts with a letter and ends in a digit (H30, EC2, Phase 1) counts with the letters. A code such as a phone number or a date (073-489-5909, 2026-06-02) is not a quantity and is not counted. Nor is a date or a time written with units (9月, 2026年, 令和8年, 10月1日, 3時, 10時5分), which is packed by convention; neither its inside nor the space before it (は 9月, 午後3時) counts. A length of time (3ヶ月, 3 時間, 5日で, 3年) is a quantity and counts. Neither is a number written as the label of a title or a note (a section number such as 3.1 before its title, a note number after ※, the numbers of notes listed one per line in sequence, numbers opening the items of a list that go up, a number written right after a word such as 問 or 図), a code with a part starting with 0 (102-0094), a postal code after 〒 (〒100-8916), or a hyphenated address number right after a city, ward or town (千代田区紀尾井町1-3), since the space after it separates the label from its title or the next item. The same goes for the space after a division such as 第1節. Nor is the spacing inside a title or a quotation in 「」 or 『』, which is the source's, not the writer's.
|
|
20
21
|
|
|
21
22
|
message:
|
|
22
23
|
ja: "日本語と{kind}のあいだを{style}(この文書はふつう{usual}。{of} 箇所のうち {count} 箇所が違う)"
|
|
@@ -30,3 +31,21 @@ how_to_fix:
|
|
|
30
31
|
levels: { strict: 1, normal: 1, relaxed: 3 }
|
|
31
32
|
|
|
32
33
|
use_for: [business, blog, technical, legal, docs, academic, literature, speech]
|
|
34
|
+
|
|
35
|
+
group: consistency
|
|
36
|
+
summary:
|
|
37
|
+
ja: 日本語と英数字のあいだの空白が、文書の中で付いたり付かなかったりしている所
|
|
38
|
+
en: Spacing between Japanese and Latin letters or digits that is done both ways in one document
|
|
39
|
+
example:
|
|
40
|
+
ja:
|
|
41
|
+
before: |
|
|
42
|
+
表は Excel で作り、Word に貼ります。図は PowerPoint で描きます。最後にPDFにします。
|
|
43
|
+
after: |
|
|
44
|
+
表は Excel で作り、Word に貼ります。図は PowerPoint で描きます。最後に PDF にします。
|
|
45
|
+
|
|
46
|
+
not_flagged:
|
|
47
|
+
ja: 電話番号や日付のような番号、単位つきの日付や時刻(9月、10時5分)、見出しの番号、「」の中は数えません。どちらの空け方が正しいかは決めません。
|
|
48
|
+
en: Codes such as phone numbers and dates, dates and times with units (9月, 10時5分), heading numbers and quotations are not counted. Neither way is called right.
|
|
49
|
+
level_meaning:
|
|
50
|
+
ja: 少ないほうの空け方が {limit} 箇所あれば指摘
|
|
51
|
+
en: reported once {limit} places go against the document's habit
|
|
@@ -29,3 +29,19 @@ how_to_fix:
|
|
|
29
29
|
levels: { strict: 6, normal: 8, relaxed: 12 }
|
|
30
30
|
|
|
31
31
|
use_for: [blog, business, technical, legal, docs, academic, literature, speech]
|
|
32
|
+
|
|
33
|
+
group: readability
|
|
34
|
+
summary:
|
|
35
|
+
ja: 「新規顧客獲得施策検討会議」のように、漢字だけが長く続く所
|
|
36
|
+
en: A long run of kanji with no kana between them, which Japanese readers have to take apart
|
|
37
|
+
example:
|
|
38
|
+
ja:
|
|
39
|
+
before: 来週、新規顧客獲得施策検討会議を開きます。
|
|
40
|
+
after: 来週、新しい顧客を増やす施策を話し合う会議を開きます。
|
|
41
|
+
|
|
42
|
+
not_flagged:
|
|
43
|
+
ja: chaff.yaml の names に書いた組織名や製品名、法令の条番号(第二十二条第二項)は数えません。
|
|
44
|
+
en: Names listed under names in chaff.yaml, and provision numbers in statutes (第二十二条第二項), are not counted.
|
|
45
|
+
level_meaning:
|
|
46
|
+
ja: 漢字の連続 {limit} 字まで
|
|
47
|
+
en: up to {limit} kanji in a row
|
|
@@ -37,3 +37,36 @@ by_genre:
|
|
|
37
37
|
academic: { strict: 5, normal: 9, relaxed: 12 }
|
|
38
38
|
|
|
39
39
|
use_for: [blog, business, technical, legal, docs, academic, literature, speech]
|
|
40
|
+
|
|
41
|
+
group: readability
|
|
42
|
+
summary:
|
|
43
|
+
ja: 文を詰めこみすぎて、息をつく場所がない段落
|
|
44
|
+
en: A paragraph packed with so many sentences that the reader has nowhere to pause
|
|
45
|
+
example:
|
|
46
|
+
ja:
|
|
47
|
+
config: { rules: { max-paragraph-length: strict } }
|
|
48
|
+
before: |
|
|
49
|
+
今期の売上は前年より一割増えましたが、その多くは春に新しく始めた定期購入の申し込みによるもので、店頭での買い物が増えたわけではありませんでした。一方で、店頭での販売は三か月続けて前年を下回り、特に平日の夕方の客数が大きく減っています。原因として、駅の反対側に開いた競合店と、夕方の品ぞろえの薄さが考えられるという声が、先月の店長会議で何人もの店長から出ました。来期は夕方の品ぞろえを見直し、定期購入の案内を店頭でも配ることで、両方の数字を同時に上げることを目指します。
|
|
50
|
+
after: |
|
|
51
|
+
今期の売上は前年より一割増えました。その多くは、新しく始めた定期購入の申し込みによるものです。
|
|
52
|
+
|
|
53
|
+
一方で、店頭での販売は三か月続けて前年を下回りました。特に平日の夕方の客数が大きく減っています。
|
|
54
|
+
|
|
55
|
+
来期は夕方の品ぞろえを見直し、定期購入の案内を店頭でも配ります。
|
|
56
|
+
en:
|
|
57
|
+
config: { rules: { max-paragraph-length: strict } }
|
|
58
|
+
before: |
|
|
59
|
+
Sales this term rose by a tenth over last year, and most of the growth came from the new subscription plan that we launched in the spring. In-store sales, on the other hand, fell below last year's level for three months in a row, with weekday evenings down the most. At the store managers' meeting, several people pointed to the competitor that opened nearby and to the thin evening range as likely causes. Next term we will review the evening range and hand out subscription leaflets in store, so that both numbers go up together.
|
|
60
|
+
after: |
|
|
61
|
+
Sales this term rose by a tenth over last year. Most of the growth came from the new subscription plan.
|
|
62
|
+
|
|
63
|
+
In-store sales fell for three months in a row. Weekday evenings fell the most.
|
|
64
|
+
|
|
65
|
+
Next term we will review the evening range and hand out subscription leaflets in store.
|
|
66
|
+
|
|
67
|
+
not_flagged:
|
|
68
|
+
ja: 文の数が多くても、短い文を重ねただけの段落(普通の長さの文を上限の数だけ並べたより短いもの)は指しません。
|
|
69
|
+
en: A paragraph of many short sentences is not reported, as long as it is shorter than that many sentences of ordinary length.
|
|
70
|
+
level_meaning:
|
|
71
|
+
ja: 一つの段落に {limit} 文まで
|
|
72
|
+
en: up to {limit} sentences in a paragraph
|
|
@@ -16,6 +16,15 @@ message:
|
|
|
16
16
|
ja: この文は {count} 文字あります({limit} 文字まで)
|
|
17
17
|
en: "This sentence runs {count} {count|word|words} (limit {limit})"
|
|
18
18
|
|
|
19
|
+
# 文書と違う言語で書いた文。和文の中の英文は語で、英文の中の和文は文字で数え、その言語の段と比べる。
|
|
20
|
+
messages:
|
|
21
|
+
embedded-en:
|
|
22
|
+
ja: この英文は {count} 語あります({limit} 語まで)
|
|
23
|
+
en: "This English sentence runs {count} {count|word|words} (limit {limit})"
|
|
24
|
+
embedded-ja:
|
|
25
|
+
ja: この和文は {count} 文字あります({limit} 文字まで)
|
|
26
|
+
en: "This Japanese sentence runs {count} {count|character|characters} (limit {limit})"
|
|
27
|
+
|
|
19
28
|
how_to_fix:
|
|
20
29
|
ja: 接続助詞のところで 2 文に割ってください。それだけで読めるようになります。
|
|
21
30
|
en: Split it in two at the conjunction.
|
|
@@ -64,3 +73,26 @@ by_genre:
|
|
|
64
73
|
en: { strict: 35, normal: 50, relaxed: 65 }
|
|
65
74
|
|
|
66
75
|
use_for: [blog, business, technical, legal, docs, academic, literature, speech]
|
|
76
|
+
|
|
77
|
+
group: readability
|
|
78
|
+
summary:
|
|
79
|
+
ja: 読み終える前に主語を見失うほど長い一文
|
|
80
|
+
en: A sentence so long that the reader loses the subject before the verb
|
|
81
|
+
example:
|
|
82
|
+
ja:
|
|
83
|
+
before: |
|
|
84
|
+
新しい料金体系は先週の会議で営業部から提案があったもので来月から試験的に導入することになりましたが、既存の顧客への説明のしかたと請求システムを直す時期がまだ決まっていないため、担当者を決めたうえで今週中に進め方を相談したいと考えています。
|
|
85
|
+
after: |
|
|
86
|
+
新しい料金体系を、来月から試験的に導入します。既存の顧客への説明のしかたと、請求システムを直す時期はまだ決まっていません。今週中に担当者を決め、進め方を相談します。
|
|
87
|
+
en:
|
|
88
|
+
before: |
|
|
89
|
+
The new pricing, which the sales team proposed at last week's meeting, will be trialled from next month, but because we have not yet decided how to explain it to existing customers or when to change the billing system, we would like to agree on a plan this week.
|
|
90
|
+
after: |
|
|
91
|
+
The new pricing will be trialled from next month. We have not yet decided how to explain it to existing customers, or when to change the billing system. We will agree on a plan this week.
|
|
92
|
+
|
|
93
|
+
not_flagged:
|
|
94
|
+
ja: 見出し、表のセル、コードは数えません。法令や論文のように長い一文が普通の種類では、ジャンルが上限を長くします。
|
|
95
|
+
en: Headings, table cells and code are not counted. Genres where long sentences are normal (statutes, papers) raise the limit.
|
|
96
|
+
level_meaning:
|
|
97
|
+
ja: 一文 {limit} 字まで
|
|
98
|
+
en: up to {limit} words in a sentence
|
|
@@ -11,8 +11,8 @@ name:
|
|
|
11
11
|
en: Repeated phrasing
|
|
12
12
|
|
|
13
13
|
why:
|
|
14
|
-
ja:
|
|
15
|
-
en: The same phrasing again and again reads as nothing new being said.
|
|
14
|
+
ja: 同じ言い回しが何度も出ると、読み手は新しいことが書かれていないと感じます。日本語は文字の並びで、英語は語の切れ目にそろえた並びで数えます。一覧の項目ごとに付く括弧の札・リンクの文字・記号は、書き手の言い回しではないので数えません。
|
|
15
|
+
en: The same phrasing again and again reads as nothing new being said. Counted on runs of whole words in English and of characters in Japanese. Bracketed tags, link text and symbols that a listing repeats on every entry are not the writer's phrasing, and are not counted.
|
|
16
16
|
|
|
17
17
|
message:
|
|
18
18
|
ja: 「{word}」が {count} 回出てきます({limit} 回まで)
|
|
@@ -25,3 +25,30 @@ how_to_fix:
|
|
|
25
25
|
levels: { strict: 3, normal: 5, relaxed: 9 }
|
|
26
26
|
|
|
27
27
|
use_for: [blog, business, technical, legal, docs, academic, literature, speech]
|
|
28
|
+
|
|
29
|
+
group: readability
|
|
30
|
+
summary:
|
|
31
|
+
ja: 同じ言い回しが何度も出てきて、新しいことを言っていないように読める所
|
|
32
|
+
en: The same phrase used over and over, so nothing new seems to be said
|
|
33
|
+
example:
|
|
34
|
+
ja:
|
|
35
|
+
pad: true
|
|
36
|
+
config: { rules: { ngram-repetition: strict } }
|
|
37
|
+
before: |
|
|
38
|
+
お客様の声を大切にしています。商品開発でもお客様の声を大切にしています。店頭でもお客様の声を大切にしています。電話の窓口でもお客様の声を大切にしています。
|
|
39
|
+
after: |
|
|
40
|
+
お客様の声を大切にしています。商品開発では試作品を常連の方に使ってもらい、店頭では買い物のあとに感想を聞いています。
|
|
41
|
+
en:
|
|
42
|
+
pad: true
|
|
43
|
+
config: { rules: { ngram-repetition: strict } }
|
|
44
|
+
before: |
|
|
45
|
+
We listen to our customers. In product design we listen to our customers. In our stores we listen to our customers. On the phone we listen to our customers.
|
|
46
|
+
after: |
|
|
47
|
+
We listen to our customers. Regulars try every prototype, and store staff ask shoppers what they thought.
|
|
48
|
+
|
|
49
|
+
not_flagged:
|
|
50
|
+
ja: 一覧の飾り(各項目に付くタグやリンクの文字)と、名前にかかる語句は数えません。短い文書は測りません。
|
|
51
|
+
en: Tags, link text and symbols that a listing repeats on every entry, and the words around a repeated name, are not counted. Short documents are not measured.
|
|
52
|
+
level_meaning:
|
|
53
|
+
ja: 同じ言い回し {limit} 回まで
|
|
54
|
+
en: up to {limit} uses of the same phrase
|
|
@@ -26,3 +26,19 @@ how_to_fix:
|
|
|
26
26
|
levels: { strict: 1, normal: 2, relaxed: 3 }
|
|
27
27
|
|
|
28
28
|
use_for: [blog, business, technical, legal, docs, academic, literature, speech]
|
|
29
|
+
|
|
30
|
+
group: readability
|
|
31
|
+
summary:
|
|
32
|
+
ja: 「会社の部の課の方針」のように、同じ助詞が区切りなしに続く所
|
|
33
|
+
en: The same Japanese particle repeated with no break, so the reader cannot tell what attaches to what
|
|
34
|
+
example:
|
|
35
|
+
ja:
|
|
36
|
+
before: 本社の営業部の第二課の方針を確認しました。
|
|
37
|
+
after: 本社営業部にある第二課の方針を確認しました。
|
|
38
|
+
|
|
39
|
+
not_flagged:
|
|
40
|
+
ja: 読点で区切った並び、「」や『』の中の題名や引用は数えません。
|
|
41
|
+
en: Items separated by commas, and titles or quotations inside 「」 or 『』, are not counted.
|
|
42
|
+
level_meaning:
|
|
43
|
+
ja: 同じ助詞の連続 {limit} 回まで
|
|
44
|
+
en: up to {limit} of the same particle in a row
|
package/rules/no-em-dash.yaml
CHANGED
|
@@ -30,3 +30,28 @@ levels:
|
|
|
30
30
|
en: { strict: 3, normal: 8, relaxed: 20 }
|
|
31
31
|
|
|
32
32
|
use_for: [blog, business, technical, legal, docs, academic, literature, speech]
|
|
33
|
+
|
|
34
|
+
group: ai-tells
|
|
35
|
+
summary:
|
|
36
|
+
ja: ダッシュ(——)が多すぎる所。英語では、生成された文章のよく知られた印の一つでもあります
|
|
37
|
+
en: Too many dashes, which is also one of the better-known marks of generated text
|
|
38
|
+
example:
|
|
39
|
+
ja:
|
|
40
|
+
pad: true
|
|
41
|
+
before: |
|
|
42
|
+
新しい料金——来月から始まります——は、請求書にも反映されます。支払いの期限——月末です——にご注意ください。
|
|
43
|
+
after: |
|
|
44
|
+
新しい料金は来月から始まり、請求書にも反映されます。支払いの期限は月末です。
|
|
45
|
+
en:
|
|
46
|
+
pad: true
|
|
47
|
+
before: |
|
|
48
|
+
The new prices — which start next month — will show on invoices. Payment is due — as before — at the end of the month.
|
|
49
|
+
after: |
|
|
50
|
+
The new prices start next month and will show on invoices. Payment is due at the end of the month, as before.
|
|
51
|
+
|
|
52
|
+
not_flagged:
|
|
53
|
+
ja: 短い文書は測りません。英語では、ダッシュそのものを誤りとは言いません。
|
|
54
|
+
en: Short documents are not measured. In English a dash is not called wrong; only a heavy hand is.
|
|
55
|
+
level_meaning:
|
|
56
|
+
ja: 1000 字あたり {limit} 個まで
|
|
57
|
+
en: up to {limit} per 1000 words
|