chaffjs 0.50.0 → 0.52.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.ja.md +30 -3
- package/README.md +30 -2
- package/dist/allow.d.ts +49 -0
- package/dist/allow.d.ts.map +1 -0
- package/dist/allow.js +111 -0
- package/dist/allow.js.map +1 -0
- package/dist/check-source.d.ts +13 -3
- package/dist/check-source.d.ts.map +1 -1
- package/dist/check-source.js +23 -6
- package/dist/check-source.js.map +1 -1
- package/dist/clause-particles.d.ts +10 -2
- package/dist/clause-particles.d.ts.map +1 -1
- package/dist/clause-particles.js +15 -3
- package/dist/clause-particles.js.map +1 -1
- package/dist/cli-text.d.ts +7 -1
- package/dist/cli-text.d.ts.map +1 -1
- package/dist/cli-text.js +8 -2
- package/dist/cli-text.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +12 -11
- package/dist/cli.js.map +1 -1
- package/dist/commands/eval.js +1 -1
- package/dist/commands/eval.js.map +1 -1
- package/dist/commands/suppressions.d.ts +4 -1
- package/dist/commands/suppressions.d.ts.map +1 -1
- package/dist/commands/suppressions.js +2 -2
- package/dist/commands/suppressions.js.map +1 -1
- package/dist/commands/test.js +1 -1
- package/dist/commands/test.js.map +1 -1
- package/dist/compound-head.d.ts +5 -2
- package/dist/compound-head.d.ts.map +1 -1
- package/dist/compound-head.js +17 -8
- package/dist/compound-head.js.map +1 -1
- package/dist/config/allow-problems.d.ts +8 -0
- package/dist/config/allow-problems.d.ts.map +1 -0
- package/dist/config/allow-problems.js +61 -0
- package/dist/config/allow-problems.js.map +1 -0
- package/dist/config/by-path-problems.d.ts +3 -0
- package/dist/config/by-path-problems.d.ts.map +1 -1
- package/dist/config/by-path-problems.js +21 -2
- package/dist/config/by-path-problems.js.map +1 -1
- package/dist/config/by-path-rules.d.ts +34 -0
- package/dist/config/by-path-rules.d.ts.map +1 -0
- package/dist/config/by-path-rules.js +53 -0
- package/dist/config/by-path-rules.js.map +1 -0
- package/dist/config/by-path.d.ts +15 -0
- package/dist/config/by-path.d.ts.map +1 -1
- package/dist/config/by-path.js.map +1 -1
- package/dist/config/consistent-problems.d.ts +5 -0
- package/dist/config/consistent-problems.d.ts.map +1 -0
- package/dist/config/consistent-problems.js +24 -0
- package/dist/config/consistent-problems.js.map +1 -0
- package/dist/config/load.d.ts +23 -1
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/load.js +63 -10
- package/dist/config/load.js.map +1 -1
- package/dist/config/option-problems.d.ts +6 -4
- package/dist/config/option-problems.d.ts.map +1 -1
- package/dist/config/option-problems.js +5 -2
- package/dist/config/option-problems.js.map +1 -1
- package/dist/config/prefer-problems.d.ts +5 -0
- package/dist/config/prefer-problems.d.ts.map +1 -0
- package/dist/config/prefer-problems.js +15 -0
- package/dist/config/prefer-problems.js.map +1 -0
- package/dist/config/prefer.d.ts +21 -0
- package/dist/config/prefer.d.ts.map +1 -0
- package/dist/config/prefer.js +35 -0
- package/dist/config/prefer.js.map +1 -0
- package/dist/config/term-problems.d.ts +5 -0
- package/dist/config/term-problems.d.ts.map +1 -0
- package/dist/config/term-problems.js +25 -0
- package/dist/config/term-problems.js.map +1 -0
- package/dist/config/warnings.d.ts +1 -1
- package/dist/config/warnings.d.ts.map +1 -1
- package/dist/config/warnings.js +9 -2
- package/dist/config/warnings.js.map +1 -1
- package/dist/cross-variants.d.ts +1 -1
- package/dist/cross-variants.d.ts.map +1 -1
- package/dist/cross-variants.js +4 -8
- package/dist/cross-variants.js.map +1 -1
- package/dist/cross-votes.d.ts +13 -0
- package/dist/cross-votes.d.ts.map +1 -1
- package/dist/cross-votes.js +25 -2
- package/dist/cross-votes.js.map +1 -1
- package/dist/custom/parse.d.ts +9 -0
- package/dist/custom/parse.d.ts.map +1 -1
- package/dist/custom/parse.js +11 -2
- package/dist/custom/parse.js.map +1 -1
- package/dist/custom/problems.d.ts.map +1 -1
- package/dist/custom/problems.js +9 -3
- package/dist/custom/problems.js.map +1 -1
- package/dist/custom/scope-field.d.ts +7 -0
- package/dist/custom/scope-field.d.ts.map +1 -0
- package/dist/custom/scope-field.js +14 -0
- package/dist/custom/scope-field.js.map +1 -0
- package/dist/date-format.d.ts +5 -3
- package/dist/date-format.d.ts.map +1 -1
- package/dist/date-format.js +30 -5
- package/dist/date-format.js.map +1 -1
- package/dist/derived/elapsed.d.ts +4 -1
- package/dist/derived/elapsed.d.ts.map +1 -1
- package/dist/derived/elapsed.js +11 -1
- package/dist/derived/elapsed.js.map +1 -1
- package/dist/detectors/acronym-context.d.ts +3 -1
- package/dist/detectors/acronym-context.d.ts.map +1 -1
- package/dist/detectors/acronym-context.js +7 -1
- package/dist/detectors/acronym-context.js.map +1 -1
- package/dist/detectors/acronym-gloss.d.ts +20 -7
- package/dist/detectors/acronym-gloss.d.ts.map +1 -1
- package/dist/detectors/acronym-gloss.js +50 -13
- package/dist/detectors/acronym-gloss.js.map +1 -1
- package/dist/detectors/address-blank.d.ts +14 -0
- package/dist/detectors/address-blank.d.ts.map +1 -0
- package/dist/detectors/address-blank.js +41 -0
- package/dist/detectors/address-blank.js.map +1 -0
- package/dist/detectors/bare-comparative.d.ts +4 -0
- package/dist/detectors/bare-comparative.d.ts.map +1 -1
- package/dist/detectors/bare-comparative.js +27 -3
- package/dist/detectors/bare-comparative.js.map +1 -1
- package/dist/detectors/blank-structure.d.ts +5 -1
- package/dist/detectors/blank-structure.d.ts.map +1 -1
- package/dist/detectors/blank-structure.js +13 -7
- package/dist/detectors/blank-structure.js.map +1 -1
- package/dist/detectors/bold-emphasis-form.d.ts +1 -0
- package/dist/detectors/bold-emphasis-form.d.ts.map +1 -1
- package/dist/detectors/bold-emphasis-form.js +7 -1
- package/dist/detectors/bold-emphasis-form.js.map +1 -1
- package/dist/detectors/bold-label.d.ts.map +1 -1
- package/dist/detectors/bold-label.js +12 -6
- package/dist/detectors/bold-label.js.map +1 -1
- package/dist/detectors/bracket-title-date.d.ts +6 -0
- package/dist/detectors/bracket-title-date.d.ts.map +1 -0
- package/dist/detectors/bracket-title-date.js +29 -0
- package/dist/detectors/bracket-title-date.js.map +1 -0
- package/dist/detectors/broken-link.d.ts.map +1 -1
- package/dist/detectors/broken-link.js +12 -1
- package/dist/detectors/broken-link.js.map +1 -1
- package/dist/detectors/capitalised-term.d.ts.map +1 -1
- package/dist/detectors/capitalised-term.js +24 -11
- package/dist/detectors/capitalised-term.js.map +1 -1
- package/dist/detectors/change-rate.d.ts.map +1 -1
- package/dist/detectors/change-rate.js +27 -4
- package/dist/detectors/change-rate.js.map +1 -1
- package/dist/detectors/char-shape.d.ts.map +1 -1
- package/dist/detectors/char-shape.js +15 -21
- package/dist/detectors/char-shape.js.map +1 -1
- package/dist/detectors/clause-shape.d.ts +4 -2
- package/dist/detectors/clause-shape.d.ts.map +1 -1
- package/dist/detectors/clause-shape.js +8 -4
- package/dist/detectors/clause-shape.js.map +1 -1
- package/dist/detectors/closing-cliche.d.ts +1 -1
- package/dist/detectors/closing-cliche.d.ts.map +1 -1
- package/dist/detectors/closing-cliche.js +16 -3
- package/dist/detectors/closing-cliche.js.map +1 -1
- package/dist/detectors/contraction-mix.d.ts.map +1 -1
- package/dist/detectors/contraction-mix.js +6 -3
- package/dist/detectors/contraction-mix.js.map +1 -1
- package/dist/detectors/contraction-set-apart.d.ts +7 -1
- package/dist/detectors/contraction-set-apart.d.ts.map +1 -1
- package/dist/detectors/contraction-set-apart.js +14 -1
- package/dist/detectors/contraction-set-apart.js.map +1 -1
- package/dist/detectors/coordinate-adjective.d.ts +5 -3
- package/dist/detectors/coordinate-adjective.d.ts.map +1 -1
- package/dist/detectors/coordinate-adjective.js +49 -1
- package/dist/detectors/coordinate-adjective.js.map +1 -1
- package/dist/detectors/count-per-section.d.ts.map +1 -1
- package/dist/detectors/count-per-section.js +29 -23
- package/dist/detectors/count-per-section.js.map +1 -1
- package/dist/detectors/counter-edge.d.ts +11 -0
- package/dist/detectors/counter-edge.d.ts.map +1 -1
- package/dist/detectors/counter-edge.js +17 -0
- package/dist/detectors/counter-edge.js.map +1 -1
- package/dist/detectors/cross-variant.d.ts.map +1 -1
- package/dist/detectors/cross-variant.js +14 -2
- package/dist/detectors/cross-variant.js.map +1 -1
- package/dist/detectors/currency-notation.d.ts.map +1 -1
- package/dist/detectors/currency-notation.js +9 -1
- package/dist/detectors/currency-notation.js.map +1 -1
- package/dist/detectors/custom.d.ts.map +1 -1
- package/dist/detectors/custom.js +6 -4
- package/dist/detectors/custom.js.map +1 -1
- package/dist/detectors/date-format.js +1 -1
- package/dist/detectors/date-format.js.map +1 -1
- package/dist/detectors/date-repeated-day.d.ts +11 -0
- package/dist/detectors/date-repeated-day.d.ts.map +1 -0
- package/dist/detectors/date-repeated-day.js +15 -0
- package/dist/detectors/date-repeated-day.js.map +1 -0
- package/dist/detectors/date-year.d.ts.map +1 -1
- package/dist/detectors/date-year.js +8 -1
- package/dist/detectors/date-year.js.map +1 -1
- package/dist/detectors/defined-term-form.d.ts.map +1 -1
- package/dist/detectors/defined-term-form.js +6 -3
- package/dist/detectors/defined-term-form.js.map +1 -1
- package/dist/detectors/definition-use.d.ts.map +1 -1
- package/dist/detectors/definition-use.js +8 -1
- package/dist/detectors/definition-use.js.map +1 -1
- package/dist/detectors/derived-numbers.d.ts.map +1 -1
- package/dist/detectors/derived-numbers.js +1 -0
- package/dist/detectors/derived-numbers.js.map +1 -1
- package/dist/detectors/document-shape.d.ts +1 -1
- package/dist/detectors/document-shape.d.ts.map +1 -1
- package/dist/detectors/document-shape.js +4 -1
- package/dist/detectors/document-shape.js.map +1 -1
- package/dist/detectors/email-letter.d.ts +3 -1
- package/dist/detectors/email-letter.d.ts.map +1 -1
- package/dist/detectors/email-letter.js +4 -2
- package/dist/detectors/email-letter.js.map +1 -1
- package/dist/detectors/empty-section.d.ts +1 -0
- package/dist/detectors/empty-section.d.ts.map +1 -1
- package/dist/detectors/empty-section.js +10 -1
- package/dist/detectors/empty-section.js.map +1 -1
- package/dist/detectors/en-shape.d.ts.map +1 -1
- package/dist/detectors/en-shape.js +27 -2
- package/dist/detectors/en-shape.js.map +1 -1
- package/dist/detectors/enumeration-marker.d.ts +7 -0
- package/dist/detectors/enumeration-marker.d.ts.map +1 -0
- package/dist/detectors/enumeration-marker.js +8 -0
- package/dist/detectors/enumeration-marker.js.map +1 -0
- package/dist/detectors/event-title-item.d.ts +8 -0
- package/dist/detectors/event-title-item.d.ts.map +1 -0
- package/dist/detectors/event-title-item.js +45 -0
- package/dist/detectors/event-title-item.js.map +1 -0
- package/dist/detectors/example-baseline.d.ts +5 -0
- package/dist/detectors/example-baseline.d.ts.map +1 -1
- package/dist/detectors/example-baseline.js +15 -1
- package/dist/detectors/example-baseline.js.map +1 -1
- package/dist/detectors/filler-word.d.ts +11 -0
- package/dist/detectors/filler-word.d.ts.map +1 -0
- package/dist/detectors/filler-word.js +73 -0
- package/dist/detectors/filler-word.js.map +1 -0
- package/dist/detectors/fullwidth-alnum.d.ts.map +1 -1
- package/dist/detectors/fullwidth-alnum.js +19 -0
- package/dist/detectors/fullwidth-alnum.js.map +1 -1
- package/dist/detectors/gram-ending.d.ts +12 -0
- package/dist/detectors/gram-ending.d.ts.map +1 -0
- package/dist/detectors/gram-ending.js +27 -0
- package/dist/detectors/gram-ending.js.map +1 -0
- package/dist/detectors/gram-repetition.d.ts.map +1 -1
- package/dist/detectors/gram-repetition.js +19 -3
- package/dist/detectors/gram-repetition.js.map +1 -1
- package/dist/detectors/heading-case.d.ts.map +1 -1
- package/dist/detectors/heading-case.js +6 -1
- package/dist/detectors/heading-case.js.map +1 -1
- package/dist/detectors/heading-marker-no-space.d.ts +3 -0
- package/dist/detectors/heading-marker-no-space.d.ts.map +1 -0
- package/dist/detectors/heading-marker-no-space.js +49 -0
- package/dist/detectors/heading-marker-no-space.js.map +1 -0
- package/dist/detectors/hyphen-name-suffix.d.ts.map +1 -1
- package/dist/detectors/hyphen-name-suffix.js +3 -2
- package/dist/detectors/hyphen-name-suffix.js.map +1 -1
- package/dist/detectors/inline-item-label.d.ts +6 -0
- package/dist/detectors/inline-item-label.d.ts.map +1 -0
- package/dist/detectors/inline-item-label.js +79 -0
- package/dist/detectors/inline-item-label.js.map +1 -0
- package/dist/detectors/kanji-name-edge.d.ts +5 -0
- package/dist/detectors/kanji-name-edge.d.ts.map +1 -1
- package/dist/detectors/kanji-name-edge.js +9 -0
- package/dist/detectors/kanji-name-edge.js.map +1 -1
- package/dist/detectors/kanji-run-pieces.d.ts +21 -6
- package/dist/detectors/kanji-run-pieces.d.ts.map +1 -1
- package/dist/detectors/kanji-run-pieces.js +23 -8
- package/dist/detectors/kanji-run-pieces.js.map +1 -1
- package/dist/detectors/known-correction.d.ts.map +1 -1
- package/dist/detectors/known-correction.js +13 -1
- package/dist/detectors/known-correction.js.map +1 -1
- package/dist/detectors/link-definition.d.ts +3 -0
- package/dist/detectors/link-definition.d.ts.map +1 -0
- package/dist/detectors/link-definition.js +78 -0
- package/dist/detectors/link-definition.js.map +1 -0
- package/dist/detectors/list-item-asides.d.ts +7 -0
- package/dist/detectors/list-item-asides.d.ts.map +1 -0
- package/dist/detectors/list-item-asides.js +25 -0
- package/dist/detectors/list-item-asides.js.map +1 -0
- package/dist/detectors/list-item-own.d.ts +11 -0
- package/dist/detectors/list-item-own.d.ts.map +1 -0
- package/dist/detectors/list-item-own.js +31 -0
- package/dist/detectors/list-item-own.js.map +1 -0
- package/dist/detectors/list-item-phrase.d.ts +1 -1
- package/dist/detectors/list-item-phrase.d.ts.map +1 -1
- package/dist/detectors/list-item-phrase.js +18 -7
- package/dist/detectors/list-item-phrase.js.map +1 -1
- package/dist/detectors/list-item.d.ts +2 -0
- package/dist/detectors/list-item.d.ts.map +1 -1
- package/dist/detectors/list-item.js +6 -0
- package/dist/detectors/list-item.js.map +1 -1
- package/dist/detectors/list-items.d.ts.map +1 -1
- package/dist/detectors/list-items.js +12 -3
- package/dist/detectors/list-items.js.map +1 -1
- package/dist/detectors/list-joint.d.ts +6 -0
- package/dist/detectors/list-joint.d.ts.map +1 -1
- package/dist/detectors/list-joint.js +18 -2
- package/dist/detectors/list-joint.js.map +1 -1
- package/dist/detectors/list-opening-conjunction.d.ts +7 -0
- package/dist/detectors/list-opening-conjunction.d.ts.map +1 -0
- package/dist/detectors/list-opening-conjunction.js +22 -0
- package/dist/detectors/list-opening-conjunction.js.map +1 -0
- package/dist/detectors/list-parallel.d.ts +3 -8
- package/dist/detectors/list-parallel.d.ts.map +1 -1
- package/dist/detectors/list-parallel.js +29 -46
- package/dist/detectors/list-parallel.js.map +1 -1
- package/dist/detectors/list-run.d.ts.map +1 -1
- package/dist/detectors/list-run.js +15 -3
- package/dist/detectors/list-run.js.map +1 -1
- package/dist/detectors/list-verb-series.d.ts +6 -0
- package/dist/detectors/list-verb-series.d.ts.map +1 -0
- package/dist/detectors/list-verb-series.js +20 -0
- package/dist/detectors/list-verb-series.js.map +1 -0
- package/dist/detectors/mark-shape.d.ts +5 -2
- package/dist/detectors/mark-shape.d.ts.map +1 -1
- package/dist/detectors/mark-shape.js +12 -15
- package/dist/detectors/mark-shape.js.map +1 -1
- package/dist/detectors/markdown-slip.d.ts +5 -0
- package/dist/detectors/markdown-slip.d.ts.map +1 -1
- package/dist/detectors/markdown-slip.js +23 -0
- package/dist/detectors/markdown-slip.js.map +1 -1
- package/dist/detectors/marked-word.d.ts +10 -0
- package/dist/detectors/marked-word.d.ts.map +1 -0
- package/dist/detectors/marked-word.js +30 -0
- package/dist/detectors/marked-word.js.map +1 -0
- package/dist/detectors/middle-dot.d.ts +1 -1
- package/dist/detectors/middle-dot.d.ts.map +1 -1
- package/dist/detectors/middle-dot.js +21 -2
- package/dist/detectors/middle-dot.js.map +1 -1
- package/dist/detectors/missing-final-period.d.ts.map +1 -1
- package/dist/detectors/missing-final-period.js +8 -1
- package/dist/detectors/missing-final-period.js.map +1 -1
- package/dist/detectors/name-variant-two-things.d.ts +2 -1
- package/dist/detectors/name-variant-two-things.d.ts.map +1 -1
- package/dist/detectors/name-variant-two-things.js +30 -2
- package/dist/detectors/name-variant-two-things.js.map +1 -1
- package/dist/detectors/net-amount-mismatch.d.ts.map +1 -1
- package/dist/detectors/net-amount-mismatch.js +26 -4
- package/dist/detectors/net-amount-mismatch.js.map +1 -1
- package/dist/detectors/nominalization.d.ts.map +1 -1
- package/dist/detectors/nominalization.js +6 -1
- package/dist/detectors/nominalization.js.map +1 -1
- package/dist/detectors/number-style.d.ts +2 -0
- package/dist/detectors/number-style.d.ts.map +1 -1
- package/dist/detectors/number-style.js +5 -0
- package/dist/detectors/number-style.js.map +1 -1
- package/dist/detectors/open-end-scope.d.ts.map +1 -1
- package/dist/detectors/open-end-scope.js +2 -2
- package/dist/detectors/open-end-scope.js.map +1 -1
- package/dist/detectors/ordinary-phrase.d.ts +5 -0
- package/dist/detectors/ordinary-phrase.d.ts.map +1 -1
- package/dist/detectors/ordinary-phrase.js +12 -0
- package/dist/detectors/ordinary-phrase.js.map +1 -1
- package/dist/detectors/organisation-run.d.ts +2 -0
- package/dist/detectors/organisation-run.d.ts.map +1 -1
- package/dist/detectors/organisation-run.js +7 -0
- package/dist/detectors/organisation-run.js.map +1 -1
- package/dist/detectors/orthographic-variant-kanji-word.d.ts +22 -0
- package/dist/detectors/orthographic-variant-kanji-word.d.ts.map +1 -0
- package/dist/detectors/orthographic-variant-kanji-word.js +27 -0
- package/dist/detectors/orthographic-variant-kanji-word.js.map +1 -0
- package/dist/detectors/orthographic-variant-open.d.ts.map +1 -1
- package/dist/detectors/orthographic-variant-open.js +2 -1
- package/dist/detectors/orthographic-variant-open.js.map +1 -1
- package/dist/detectors/orthographic-variant-text.d.ts +7 -0
- package/dist/detectors/orthographic-variant-text.d.ts.map +1 -0
- package/dist/detectors/orthographic-variant-text.js +14 -0
- package/dist/detectors/orthographic-variant-text.js.map +1 -0
- package/dist/detectors/orthographic-variant.d.ts.map +1 -1
- package/dist/detectors/orthographic-variant.js +22 -23
- package/dist/detectors/orthographic-variant.js.map +1 -1
- package/dist/detectors/orthography.d.ts.map +1 -1
- package/dist/detectors/orthography.js +12 -2
- package/dist/detectors/orthography.js.map +1 -1
- package/dist/detectors/oxford-comma.d.ts.map +1 -1
- package/dist/detectors/oxford-comma.js +16 -4
- package/dist/detectors/oxford-comma.js.map +1 -1
- package/dist/detectors/paragraph-run.d.ts +1 -1
- package/dist/detectors/paragraph-run.d.ts.map +1 -1
- package/dist/detectors/paragraph-run.js +4 -2
- package/dist/detectors/paragraph-run.js.map +1 -1
- package/dist/detectors/placeholder-text.d.ts.map +1 -1
- package/dist/detectors/placeholder-text.js +12 -4
- package/dist/detectors/placeholder-text.js.map +1 -1
- package/dist/detectors/placeholder.d.ts +1 -0
- package/dist/detectors/placeholder.d.ts.map +1 -1
- package/dist/detectors/placeholder.js +8 -0
- package/dist/detectors/placeholder.js.map +1 -1
- package/dist/detectors/pseudo-heading.d.ts +11 -0
- package/dist/detectors/pseudo-heading.d.ts.map +1 -0
- package/dist/detectors/pseudo-heading.js +115 -0
- package/dist/detectors/pseudo-heading.js.map +1 -0
- package/dist/detectors/quote-around.d.ts +1 -1
- package/dist/detectors/quote-around.d.ts.map +1 -1
- package/dist/detectors/quote-around.js +26 -5
- package/dist/detectors/quote-around.js.map +1 -1
- package/dist/detectors/quoted-label.d.ts +8 -0
- package/dist/detectors/quoted-label.d.ts.map +1 -0
- package/dist/detectors/quoted-label.js +18 -0
- package/dist/detectors/quoted-label.js.map +1 -0
- package/dist/detectors/ra-nuki.d.ts +1 -7
- package/dist/detectors/ra-nuki.d.ts.map +1 -1
- package/dist/detectors/ra-nuki.js +2 -27
- package/dist/detectors/ra-nuki.js.map +1 -1
- package/dist/detectors/register-label-note.d.ts +8 -0
- package/dist/detectors/register-label-note.d.ts.map +1 -0
- package/dist/detectors/register-label-note.js +31 -0
- package/dist/detectors/register-label-note.js.map +1 -0
- package/dist/detectors/register-required.d.ts +27 -0
- package/dist/detectors/register-required.d.ts.map +1 -0
- package/dist/detectors/register-required.js +33 -0
- package/dist/detectors/register-required.js.map +1 -0
- package/dist/detectors/register-voice.d.ts +13 -1
- package/dist/detectors/register-voice.d.ts.map +1 -1
- package/dist/detectors/register-voice.js +27 -0
- package/dist/detectors/register-voice.js.map +1 -1
- package/dist/detectors/registry/enumeration-marker.d.ts +3 -0
- package/dist/detectors/registry/enumeration-marker.d.ts.map +1 -0
- package/dist/detectors/registry/enumeration-marker.js +3 -0
- package/dist/detectors/registry/enumeration-marker.js.map +1 -0
- package/dist/detectors/registry/filler-word.d.ts +3 -0
- package/dist/detectors/registry/filler-word.d.ts.map +1 -0
- package/dist/detectors/registry/filler-word.js +3 -0
- package/dist/detectors/registry/filler-word.js.map +1 -0
- package/dist/detectors/registry/heading-marker-no-space.d.ts +3 -0
- package/dist/detectors/registry/heading-marker-no-space.d.ts.map +1 -0
- package/dist/detectors/registry/heading-marker-no-space.js +3 -0
- package/dist/detectors/registry/heading-marker-no-space.js.map +1 -0
- package/dist/detectors/registry/link-definition-unused.d.ts +3 -0
- package/dist/detectors/registry/link-definition-unused.d.ts.map +1 -0
- package/dist/detectors/registry/link-definition-unused.js +3 -0
- package/dist/detectors/registry/link-definition-unused.js.map +1 -0
- package/dist/detectors/registry/pseudo-heading.d.ts +3 -0
- package/dist/detectors/registry/pseudo-heading.d.ts.map +1 -0
- package/dist/detectors/registry/pseudo-heading.js +3 -0
- package/dist/detectors/registry/pseudo-heading.js.map +1 -0
- package/dist/detectors/registry/reversed-link.d.ts +3 -0
- package/dist/detectors/registry/reversed-link.d.ts.map +1 -0
- package/dist/detectors/registry/reversed-link.js +3 -0
- package/dist/detectors/registry/reversed-link.js.map +1 -0
- package/dist/detectors/registry/sa-ire.d.ts +3 -0
- package/dist/detectors/registry/sa-ire.d.ts.map +1 -0
- package/dist/detectors/registry/sa-ire.js +3 -0
- package/dist/detectors/registry/sa-ire.js.map +1 -0
- package/dist/detectors/registry/table-absorbed-line.d.ts +3 -0
- package/dist/detectors/registry/table-absorbed-line.d.ts.map +1 -0
- package/dist/detectors/registry/table-absorbed-line.js +3 -0
- package/dist/detectors/registry/table-absorbed-line.js.map +1 -0
- package/dist/detectors/registry/term-consistency.d.ts +3 -0
- package/dist/detectors/registry/term-consistency.d.ts.map +1 -0
- package/dist/detectors/registry/term-consistency.js +3 -0
- package/dist/detectors/registry/term-consistency.js.map +1 -0
- package/dist/detectors/registry/term-form.d.ts +3 -0
- package/dist/detectors/registry/term-form.d.ts.map +1 -0
- package/dist/detectors/registry/term-form.js +3 -0
- package/dist/detectors/registry/term-form.js.map +1 -0
- package/dist/detectors/relative-pronoun-mix.d.ts +1 -1
- package/dist/detectors/relative-pronoun-mix.d.ts.map +1 -1
- package/dist/detectors/relative-pronoun-mix.js +14 -3
- package/dist/detectors/relative-pronoun-mix.js.map +1 -1
- package/dist/detectors/release-notes.d.ts +7 -0
- package/dist/detectors/release-notes.d.ts.map +1 -0
- package/dist/detectors/release-notes.js +12 -0
- package/dist/detectors/release-notes.js.map +1 -0
- package/dist/detectors/request-owner.d.ts +5 -1
- package/dist/detectors/request-owner.d.ts.map +1 -1
- package/dist/detectors/request-owner.js +53 -1
- package/dist/detectors/request-owner.js.map +1 -1
- package/dist/detectors/reversed-link.d.ts +3 -0
- package/dist/detectors/reversed-link.d.ts.map +1 -0
- package/dist/detectors/reversed-link.js +31 -0
- package/dist/detectors/reversed-link.js.map +1 -0
- package/dist/detectors/run-in-title.d.ts +6 -0
- package/dist/detectors/run-in-title.d.ts.map +1 -0
- package/dist/detectors/run-in-title.js +32 -0
- package/dist/detectors/run-in-title.js.map +1 -0
- package/dist/detectors/sa-ire.d.ts +3 -0
- package/dist/detectors/sa-ire.d.ts.map +1 -0
- package/dist/detectors/sa-ire.js +5 -0
- package/dist/detectors/sa-ire.js.map +1 -0
- package/dist/detectors/sentence-counts.d.ts.map +1 -1
- package/dist/detectors/sentence-counts.js +19 -6
- package/dist/detectors/sentence-counts.js.map +1 -1
- package/dist/detectors/sentence-ending.d.ts.map +1 -1
- package/dist/detectors/sentence-ending.js +40 -12
- 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 +23 -4
- package/dist/detectors/sentence-length.js.map +1 -1
- package/dist/detectors/sentence-rhythm.d.ts.map +1 -1
- package/dist/detectors/sentence-rhythm.js +6 -2
- package/dist/detectors/sentence-rhythm.js.map +1 -1
- package/dist/detectors/signals.js +2 -2
- package/dist/detectors/signals.js.map +1 -1
- package/dist/detectors/structure.d.ts +1 -0
- package/dist/detectors/structure.d.ts.map +1 -1
- package/dist/detectors/structure.js +5 -0
- package/dist/detectors/structure.js.map +1 -1
- package/dist/detectors/technical-docs.d.ts +8 -1
- package/dist/detectors/technical-docs.d.ts.map +1 -1
- package/dist/detectors/technical-docs.js +41 -9
- package/dist/detectors/technical-docs.js.map +1 -1
- package/dist/detectors/term-consistency.d.ts +4 -0
- package/dist/detectors/term-consistency.d.ts.map +1 -0
- package/dist/detectors/term-consistency.js +35 -0
- package/dist/detectors/term-consistency.js.map +1 -0
- package/dist/detectors/term-form.d.ts +4 -0
- package/dist/detectors/term-form.d.ts.map +1 -0
- package/dist/detectors/term-form.js +17 -0
- package/dist/detectors/term-form.js.map +1 -0
- package/dist/detectors/token-shape.d.ts.map +1 -1
- package/dist/detectors/token-shape.js +8 -4
- package/dist/detectors/token-shape.js.map +1 -1
- package/dist/detectors/unbalanced-bracket.d.ts +1 -1
- package/dist/detectors/unbalanced-bracket.d.ts.map +1 -1
- package/dist/detectors/unbalanced-bracket.js +4 -2
- package/dist/detectors/unbalanced-bracket.js.map +1 -1
- package/dist/detectors/unfilled-placeholder.d.ts.map +1 -1
- package/dist/detectors/unfilled-placeholder.js +11 -1
- package/dist/detectors/unfilled-placeholder.js.map +1 -1
- package/dist/detectors/unknown-word-context.d.ts +2 -0
- package/dist/detectors/unknown-word-context.d.ts.map +1 -1
- package/dist/detectors/unknown-word-context.js +3 -0
- package/dist/detectors/unknown-word-context.js.map +1 -1
- package/dist/detectors/unknown-word.d.ts.map +1 -1
- package/dist/detectors/unknown-word.js +7 -2
- package/dist/detectors/unknown-word.js.map +1 -1
- package/dist/detectors/vague-density.d.ts.map +1 -1
- package/dist/detectors/vague-density.js +10 -2
- package/dist/detectors/vague-density.js.map +1 -1
- package/dist/detectors/version-mismatch.d.ts.map +1 -1
- package/dist/detectors/version-mismatch.js +5 -1
- package/dist/detectors/version-mismatch.js.map +1 -1
- package/dist/detectors/weasel-word.d.ts.map +1 -1
- package/dist/detectors/weasel-word.js +11 -2
- package/dist/detectors/weasel-word.js.map +1 -1
- package/dist/document-prose.d.ts +17 -0
- package/dist/document-prose.d.ts.map +1 -0
- package/dist/document-prose.js +35 -0
- package/dist/document-prose.js.map +1 -0
- package/dist/document-scope.d.ts +16 -0
- package/dist/document-scope.d.ts.map +1 -0
- package/dist/document-scope.js +51 -0
- package/dist/document-scope.js.map +1 -0
- package/dist/document.d.ts +10 -1
- package/dist/document.d.ts.map +1 -1
- package/dist/document.js +26 -37
- package/dist/document.js.map +1 -1
- package/dist/enumeration-marks.d.ts +23 -0
- package/dist/enumeration-marks.d.ts.map +1 -0
- package/dist/enumeration-marks.js +184 -0
- package/dist/enumeration-marks.js.map +1 -0
- package/dist/facts/cross-facts.d.ts +1 -1
- package/dist/facts/cross-facts.d.ts.map +1 -1
- package/dist/facts/cross-facts.js +8 -3
- package/dist/facts/cross-facts.js.map +1 -1
- package/dist/facts/labelled-facts.d.ts.map +1 -1
- package/dist/facts/labelled-facts.js +7 -4
- package/dist/facts/labelled-facts.js.map +1 -1
- package/dist/file-header.d.ts +2 -6
- package/dist/file-header.d.ts.map +1 -1
- package/dist/file-header.js +1 -1
- package/dist/file-header.js.map +1 -1
- package/dist/files.d.ts +18 -1
- package/dist/files.d.ts.map +1 -1
- package/dist/files.js +58 -8
- package/dist/files.js.map +1 -1
- package/dist/gitignore.d.ts +30 -0
- package/dist/gitignore.d.ts.map +1 -0
- package/dist/gitignore.js +68 -0
- package/dist/gitignore.js.map +1 -0
- package/dist/grade/stamp.d.ts.map +1 -1
- package/dist/grade/stamp.js +5 -0
- package/dist/grade/stamp.js.map +1 -1
- package/dist/latin-word-boundary.d.ts +5 -0
- package/dist/latin-word-boundary.d.ts.map +1 -1
- package/dist/latin-word-boundary.js +11 -0
- package/dist/latin-word-boundary.js.map +1 -1
- package/dist/markdown-node.d.ts +1 -0
- package/dist/markdown-node.d.ts.map +1 -1
- package/dist/markdown-node.js.map +1 -1
- package/dist/name-separator.d.ts.map +1 -1
- package/dist/name-separator.js +27 -5
- package/dist/name-separator.js.map +1 -1
- package/dist/news-dateline.d.ts +7 -0
- package/dist/news-dateline.d.ts.map +1 -0
- package/dist/news-dateline.js +24 -0
- package/dist/news-dateline.js.map +1 -0
- package/dist/plugin.d.ts +24 -0
- package/dist/plugin.d.ts.map +1 -1
- package/dist/reasons.d.ts +4 -0
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +4 -0
- package/dist/reasons.js.map +1 -1
- package/dist/render/explain.d.ts +3 -0
- package/dist/render/explain.d.ts.map +1 -1
- package/dist/render/explain.js +19 -1
- package/dist/render/explain.js.map +1 -1
- package/dist/render/rules-json.d.ts.map +1 -1
- package/dist/render/rules-json.js +12 -2
- package/dist/render/rules-json.js.map +1 -1
- package/dist/render/summary.d.ts +5 -2
- package/dist/render/summary.d.ts.map +1 -1
- package/dist/render/summary.js +25 -4
- package/dist/render/summary.js.map +1 -1
- package/dist/render/suppressions.d.ts +6 -1
- package/dist/render/suppressions.d.ts.map +1 -1
- package/dist/render/suppressions.js +76 -3
- package/dist/render/suppressions.js.map +1 -1
- package/dist/rule-load.d.ts.map +1 -1
- package/dist/rule-load.js +2 -1
- package/dist/rule-load.js.map +1 -1
- package/dist/run-in-title.d.ts +4 -0
- package/dist/run-in-title.d.ts.map +1 -0
- package/dist/run-in-title.js +82 -0
- package/dist/run-in-title.js.map +1 -0
- package/dist/run.d.ts +2 -0
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +20 -8
- package/dist/run.js.map +1 -1
- package/dist/scope-markers.d.ts +9 -0
- package/dist/scope-markers.d.ts.map +1 -0
- package/dist/scope-markers.js +19 -0
- package/dist/scope-markers.js.map +1 -0
- package/dist/scope-problem-text.d.ts +4 -0
- package/dist/scope-problem-text.d.ts.map +1 -0
- package/dist/scope-problem-text.js +17 -0
- package/dist/scope-problem-text.js.map +1 -0
- package/dist/scoped-sentences.d.ts +21 -0
- package/dist/scoped-sentences.d.ts.map +1 -0
- package/dist/scoped-sentences.js +21 -0
- package/dist/scoped-sentences.js.map +1 -0
- package/dist/setting-problems.d.ts.map +1 -1
- package/dist/setting-problems.js +4 -0
- package/dist/setting-problems.js.map +1 -1
- package/dist/spelling.js +4 -4
- package/dist/spelling.js.map +1 -1
- package/dist/stet-body.d.ts +13 -0
- package/dist/stet-body.d.ts.map +1 -0
- package/dist/stet-body.js +49 -0
- package/dist/stet-body.js.map +1 -0
- package/dist/stet.d.ts +30 -4
- package/dist/stet.d.ts.map +1 -1
- package/dist/stet.js +78 -28
- package/dist/stet.js.map +1 -1
- package/dist/structure/alert-lines.d.ts +4 -0
- package/dist/structure/alert-lines.d.ts.map +1 -0
- package/dist/structure/alert-lines.js +19 -0
- package/dist/structure/alert-lines.js.map +1 -0
- package/dist/structure/catch-all-row-blank.d.ts +9 -0
- package/dist/structure/catch-all-row-blank.d.ts.map +1 -0
- package/dist/structure/catch-all-row-blank.js +19 -0
- package/dist/structure/catch-all-row-blank.js.map +1 -0
- package/dist/structure/change-rate-tied.d.ts +22 -0
- package/dist/structure/change-rate-tied.d.ts.map +1 -0
- package/dist/structure/change-rate-tied.js +85 -0
- package/dist/structure/change-rate-tied.js.map +1 -0
- package/dist/structure/cross-definitions.d.ts +1 -1
- package/dist/structure/cross-definitions.d.ts.map +1 -1
- package/dist/structure/cross-definitions.js +3 -9
- package/dist/structure/cross-definitions.js.map +1 -1
- package/dist/structure/defining-names.d.ts +1 -1
- package/dist/structure/defining-names.d.ts.map +1 -1
- package/dist/structure/defining-names.js +12 -1
- package/dist/structure/defining-names.js.map +1 -1
- package/dist/structure/definition-use.d.ts +5 -3
- package/dist/structure/definition-use.d.ts.map +1 -1
- package/dist/structure/definition-use.js +10 -2
- package/dist/structure/definition-use.js.map +1 -1
- package/dist/structure/forward-reference.d.ts +8 -0
- package/dist/structure/forward-reference.d.ts.map +1 -0
- package/dist/structure/forward-reference.js +18 -0
- package/dist/structure/forward-reference.js.map +1 -0
- package/dist/structure/net-amount.d.ts +16 -0
- package/dist/structure/net-amount.d.ts.map +1 -1
- package/dist/structure/net-amount.js +28 -1
- package/dist/structure/net-amount.js.map +1 -1
- package/dist/structure/period-label-conflict.d.ts +2 -2
- package/dist/structure/period-label-conflict.d.ts.map +1 -1
- package/dist/structure/period-label-conflict.js +17 -3
- package/dist/structure/period-label-conflict.js.map +1 -1
- package/dist/structure/serial-range.d.ts.map +1 -1
- package/dist/structure/serial-range.js +14 -6
- package/dist/structure/serial-range.js.map +1 -1
- package/dist/structure/version-mismatch.d.ts +6 -1
- package/dist/structure/version-mismatch.d.ts.map +1 -1
- package/dist/structure/version-mismatch.js +28 -6
- package/dist/structure/version-mismatch.js.map +1 -1
- package/dist/structure/weekday.d.ts.map +1 -1
- package/dist/structure/weekday.js +14 -1
- package/dist/structure/weekday.js.map +1 -1
- package/dist/table-cells.d.ts +1 -1
- package/dist/table-cells.d.ts.map +1 -1
- package/dist/table-cells.js.map +1 -1
- package/dist/term-form.d.ts +15 -0
- package/dist/term-form.d.ts.map +1 -0
- package/dist/term-form.js +72 -0
- package/dist/term-form.js.map +1 -0
- package/dist/term-groups.d.ts +33 -0
- package/dist/term-groups.d.ts.map +1 -0
- package/dist/term-groups.js +46 -0
- package/dist/term-groups.js.map +1 -0
- package/dist/text-scope.d.ts +35 -0
- package/dist/text-scope.d.ts.map +1 -0
- package/dist/text-scope.js +55 -0
- package/dist/text-scope.js.map +1 -0
- package/dist/topic-clause.d.ts.map +1 -1
- package/dist/topic-clause.js +103 -21
- package/dist/topic-clause.js.map +1 -1
- package/dist/unclosed-code-quote.d.ts +7 -0
- package/dist/unclosed-code-quote.d.ts.map +1 -0
- package/dist/unclosed-code-quote.js +37 -0
- package/dist/unclosed-code-quote.js.map +1 -0
- package/package.json +4 -3
- package/rules/adverb-overuse.yaml +2 -2
- package/rules/bold-density.yaml +2 -2
- package/rules/bold-emphasis.yaml +2 -2
- package/rules/bold-label-list.yaml +2 -2
- package/rules/bracket-width-consistency.yaml +2 -2
- package/rules/broken-link.yaml +2 -2
- package/rules/change-rate-mismatch.yaml +2 -2
- package/rules/closing-cliche.yaml +2 -2
- package/rules/code-fence-language-mix.yaml +2 -2
- package/rules/comparative-without-baseline.yaml +2 -2
- package/rules/contraction-consistency.yaml +3 -3
- package/rules/cross-doc-duplicate-definition.yaml +2 -2
- package/rules/cross-doc-fact-conflict.yaml +2 -2
- package/rules/cross-doc-term-variant.yaml +4 -4
- package/rules/date-format-consistency.yaml +2 -2
- package/rules/date-weekday-mismatch.yaml +2 -2
- package/rules/date-without-year.yaml +2 -2
- package/rules/defined-term-form.yaml +2 -2
- package/rules/elapsed-years-mismatch.yaml +2 -2
- package/rules/empty-section.yaml +2 -2
- package/rules/empty-table-cell.yaml +2 -2
- package/rules/enumeration-marker-mix.yaml +102 -0
- package/rules/expletive-construction.yaml +2 -2
- package/rules/filler-word.yaml +74 -0
- package/rules/fullwidth-alnum-consistency.yaml +2 -2
- package/rules/heading-marker-no-space.yaml +79 -0
- package/rules/hyphen-as-dash.yaml +2 -2
- package/rules/internal-jargon.yaml +1 -0
- package/rules/known-misspelling.yaml +2 -2
- package/rules/latin-spacing.yaml +4 -4
- package/rules/link-definition-unused.yaml +107 -0
- package/rules/list-item-form-mix.yaml +2 -2
- package/rules/max-kanji-continuous.yaml +8 -2
- package/rules/max-sentence-length.yaml +2 -2
- package/rules/missing-final-period.yaml +2 -2
- package/rules/name-variant.yaml +2 -2
- package/rules/net-amount-mismatch.yaml +5 -5
- package/rules/ngram-repetition.yaml +2 -2
- package/rules/no-doubled-joshi.yaml +2 -2
- package/rules/no-mixed-desumasu.yaml +62 -2
- package/rules/no-nakaguro-parallel.yaml +2 -2
- package/rules/nominalization.yaml +2 -2
- package/rules/number-style-consistency.yaml +2 -2
- package/rules/obligation-without-deadline.yaml +2 -2
- package/rules/one-sentence-paragraph-run.yaml +2 -2
- package/rules/orthographic-variant.yaml +2 -2
- package/rules/oxford-comma-consistency.yaml +2 -2
- package/rules/period-label-conflict.yaml +2 -2
- package/rules/preamble-length.yaml +2 -2
- package/rules/preferred-term.yaml +1 -0
- package/rules/pseudo-heading.yaml +79 -0
- package/rules/quote-without-source.yaml +2 -2
- package/rules/repeated-sentence-ending.yaml +2 -2
- package/rules/request-without-deadline.yaml +2 -2
- package/rules/reversed-link.yaml +78 -0
- package/rules/sa-ire.yaml +43 -0
- package/rules/sentence-rhythm.yaml +2 -2
- package/rules/serial-range-reversed.yaml +4 -4
- package/rules/shell-prompt-mix.yaml +2 -2
- package/rules/step-statement-mix.yaml +2 -2
- package/rules/table-absorbed-line.yaml +88 -0
- package/rules/teki-overuse.yaml +2 -2
- package/rules/term-consistency.yaml +56 -0
- package/rules/term-form.yaml +56 -0
- package/rules/title-case-consistency.yaml +4 -4
- package/rules/title-length.yaml +2 -2
- package/rules/topic-predicate-distance.yaml +2 -2
- package/rules/unbalanced-bracket.yaml +2 -2
- package/rules/undefined-acronym.yaml +4 -2
- package/rules/undefined-term.yaml +2 -2
- package/rules/unfilled-placeholder.yaml +2 -2
- package/rules/unknown-word.yaml +2 -2
- package/rules/use-before-definition.yaml +2 -2
- package/rules/vague-word-density.yaml +2 -2
- package/rules/version-mismatch.yaml +2 -2
- package/rules/weasel-word.yaml +3 -3
- package/rules/which-that-consistency.yaml +2 -2
- package/skills/chaff/SKILL.md +51 -7
- package/src/allow.ts +146 -0
- package/src/check-source.ts +33 -9
- package/src/clause-particles.ts +19 -3
- package/src/cli-text.ts +13 -4
- package/src/cli.ts +16 -15
- package/src/commands/eval.ts +1 -1
- package/src/commands/suppressions.ts +3 -3
- package/src/commands/test.ts +1 -1
- package/src/compound-head.ts +17 -8
- package/src/config/allow-problems.ts +75 -0
- package/src/config/by-path-problems.ts +29 -3
- package/src/config/by-path-rules.ts +78 -0
- package/src/config/by-path.ts +9 -0
- package/src/config/consistent-problems.ts +36 -0
- package/src/config/load.ts +87 -15
- package/src/config/option-problems.ts +8 -5
- package/src/config/prefer-problems.ts +22 -0
- package/src/config/prefer.ts +52 -0
- package/src/config/term-problems.ts +38 -0
- package/src/config/warnings.ts +9 -2
- package/src/cross-variants.ts +4 -7
- package/src/cross-votes.ts +35 -4
- package/src/custom/parse.ts +16 -3
- package/src/custom/problems.ts +9 -3
- package/src/custom/scope-field.ts +16 -0
- package/src/date-format.ts +43 -8
- package/src/derived/elapsed.ts +17 -2
- package/src/detectors/acronym-context.ts +7 -1
- package/src/detectors/acronym-gloss.ts +59 -11
- package/src/detectors/address-blank.ts +49 -0
- package/src/detectors/bare-comparative.ts +35 -3
- package/src/detectors/blank-structure.ts +18 -9
- package/src/detectors/bold-emphasis-form.ts +10 -1
- package/src/detectors/bold-label.ts +7 -2
- package/src/detectors/bracket-title-date.ts +36 -0
- package/src/detectors/broken-link.ts +14 -1
- package/src/detectors/capitalised-term.ts +18 -4
- package/src/detectors/change-rate.ts +29 -4
- package/src/detectors/char-shape.ts +19 -24
- package/src/detectors/clause-shape.ts +8 -4
- package/src/detectors/closing-cliche.ts +19 -2
- package/src/detectors/contraction-mix.ts +11 -3
- package/src/detectors/contraction-set-apart.ts +22 -2
- package/src/detectors/coordinate-adjective.ts +54 -1
- package/src/detectors/count-per-section.ts +13 -8
- package/src/detectors/counter-edge.ts +20 -0
- package/src/detectors/cross-variant.ts +16 -2
- package/src/detectors/currency-notation.ts +17 -6
- package/src/detectors/custom.ts +6 -4
- package/src/detectors/date-format.ts +1 -1
- package/src/detectors/date-repeated-day.ts +20 -0
- package/src/detectors/date-year.ts +8 -1
- package/src/detectors/defined-term-form.ts +6 -3
- package/src/detectors/definition-use.ts +8 -1
- package/src/detectors/derived-numbers.ts +1 -0
- package/src/detectors/document-shape.ts +4 -1
- package/src/detectors/email-letter.ts +6 -2
- package/src/detectors/empty-section.ts +10 -2
- package/src/detectors/en-shape.ts +31 -2
- package/src/detectors/enumeration-marker.ts +14 -0
- package/src/detectors/event-title-item.ts +57 -0
- package/src/detectors/example-baseline.ts +16 -1
- package/src/detectors/filler-word.ts +96 -0
- package/src/detectors/fullwidth-alnum.ts +24 -0
- package/src/detectors/gram-ending.ts +40 -0
- package/src/detectors/gram-repetition.ts +28 -4
- package/src/detectors/heading-case.ts +7 -1
- package/src/detectors/heading-marker-no-space.ts +62 -0
- package/src/detectors/hyphen-name-suffix.ts +3 -2
- package/src/detectors/inline-item-label.ts +113 -0
- package/src/detectors/kanji-name-edge.ts +11 -0
- package/src/detectors/kanji-run-pieces.ts +35 -8
- package/src/detectors/known-correction.ts +17 -1
- package/src/detectors/link-definition.ts +91 -0
- package/src/detectors/list-item-asides.ts +29 -0
- package/src/detectors/list-item-own.ts +38 -0
- package/src/detectors/list-item-phrase.ts +20 -8
- package/src/detectors/list-item.ts +7 -0
- package/src/detectors/list-items.ts +13 -2
- package/src/detectors/list-joint.ts +31 -2
- package/src/detectors/list-opening-conjunction.ts +22 -0
- package/src/detectors/list-parallel.ts +36 -53
- package/src/detectors/list-run.ts +16 -3
- package/src/detectors/list-verb-series.ts +24 -0
- package/src/detectors/mark-shape.ts +15 -19
- package/src/detectors/markdown-slip.ts +25 -1
- package/src/detectors/marked-word.ts +40 -0
- package/src/detectors/middle-dot.ts +27 -2
- package/src/detectors/missing-final-period.ts +9 -1
- package/src/detectors/name-variant-two-things.ts +37 -2
- package/src/detectors/net-amount-mismatch.ts +41 -4
- package/src/detectors/nominalization.ts +8 -1
- package/src/detectors/number-style.ts +8 -0
- package/src/detectors/open-end-scope.ts +3 -2
- package/src/detectors/ordinary-phrase.ts +13 -0
- package/src/detectors/organisation-run.ts +9 -0
- package/src/detectors/orthographic-variant-kanji-word.ts +33 -0
- package/src/detectors/orthographic-variant-open.ts +2 -1
- package/src/detectors/orthographic-variant-text.ts +20 -0
- package/src/detectors/orthographic-variant.ts +25 -32
- package/src/detectors/orthography.ts +18 -2
- package/src/detectors/oxford-comma.ts +16 -3
- package/src/detectors/paragraph-run.ts +7 -10
- package/src/detectors/placeholder-text.ts +22 -5
- package/src/detectors/placeholder.ts +10 -0
- package/src/detectors/pseudo-heading.ts +131 -0
- package/src/detectors/quote-around.ts +31 -6
- package/src/detectors/quoted-label.ts +22 -0
- package/src/detectors/ra-nuki.ts +3 -34
- package/src/detectors/register-label-note.ts +37 -0
- package/src/detectors/register-required.ts +56 -0
- package/src/detectors/register-voice.ts +36 -1
- package/src/detectors/registry/enumeration-marker.ts +4 -0
- package/src/detectors/registry/filler-word.ts +4 -0
- package/src/detectors/registry/heading-marker-no-space.ts +4 -0
- package/src/detectors/registry/link-definition-unused.ts +4 -0
- package/src/detectors/registry/pseudo-heading.ts +4 -0
- package/src/detectors/registry/reversed-link.ts +4 -0
- package/src/detectors/registry/sa-ire.ts +4 -0
- package/src/detectors/registry/table-absorbed-line.ts +4 -0
- package/src/detectors/registry/term-consistency.ts +4 -0
- package/src/detectors/registry/term-form.ts +4 -0
- package/src/detectors/relative-pronoun-mix.ts +18 -3
- package/src/detectors/release-notes.ts +19 -0
- package/src/detectors/request-owner.ts +62 -2
- package/src/detectors/reversed-link.ts +39 -0
- package/src/detectors/run-in-title.ts +35 -0
- package/src/detectors/sa-ire.ts +7 -0
- package/src/detectors/sentence-counts.ts +28 -9
- package/src/detectors/sentence-ending.ts +58 -13
- package/src/detectors/sentence-length.ts +34 -7
- package/src/detectors/sentence-rhythm.ts +6 -2
- package/src/detectors/signals.ts +2 -2
- package/src/detectors/structure.ts +4 -0
- package/src/detectors/technical-docs.ts +58 -9
- package/src/detectors/term-consistency.ts +41 -0
- package/src/detectors/term-form.ts +17 -0
- package/src/detectors/token-shape.ts +8 -4
- package/src/detectors/unbalanced-bracket.ts +4 -2
- package/src/detectors/unfilled-placeholder.ts +13 -1
- package/src/detectors/unknown-word-context.ts +6 -0
- package/src/detectors/unknown-word.ts +7 -1
- package/src/detectors/vague-density.ts +10 -2
- package/src/detectors/version-mismatch.ts +7 -1
- package/src/detectors/weasel-word.ts +13 -2
- package/src/document-prose.ts +43 -0
- package/src/document-scope.ts +66 -0
- package/src/document.ts +43 -50
- package/src/enumeration-marks.ts +233 -0
- package/src/facts/cross-facts.ts +10 -4
- package/src/facts/labelled-facts.ts +7 -4
- package/src/file-header.ts +3 -5
- package/src/files.ts +87 -8
- package/src/gitignore.ts +83 -0
- package/src/grade/stamp.ts +5 -0
- package/src/latin-word-boundary.ts +12 -0
- package/src/markdown-node.ts +1 -0
- package/src/name-separator.ts +29 -7
- package/src/news-dateline.ts +29 -0
- package/src/plugin.ts +21 -3
- package/src/reasons.ts +8 -0
- package/src/render/explain.ts +26 -1
- package/src/render/rules-json.ts +16 -2
- package/src/render/summary.ts +33 -4
- package/src/render/suppressions.ts +101 -4
- package/src/rule-load.ts +3 -2
- package/src/run-in-title.ts +91 -0
- package/src/run.ts +21 -8
- package/src/scope-markers.ts +25 -0
- package/src/scope-problem-text.ts +21 -0
- package/src/scoped-sentences.ts +41 -0
- package/src/setting-problems.ts +4 -0
- package/src/spelling.ts +4 -4
- package/src/stet-body.ts +74 -0
- package/src/stet.ts +113 -32
- package/src/structure/alert-lines.ts +19 -0
- package/src/structure/catch-all-row-blank.ts +22 -0
- package/src/structure/change-rate-tied.ts +113 -0
- package/src/structure/cross-definitions.ts +6 -9
- package/src/structure/defining-names.ts +14 -1
- package/src/structure/definition-use.ts +13 -3
- package/src/structure/forward-reference.ts +21 -0
- package/src/structure/net-amount.ts +44 -5
- package/src/structure/period-label-conflict.ts +22 -7
- package/src/structure/serial-range.ts +14 -6
- package/src/structure/version-mismatch.ts +41 -8
- package/src/structure/weekday.ts +14 -1
- package/src/table-cells.ts +2 -2
- package/src/term-form.ts +99 -0
- package/src/term-groups.ts +68 -0
- package/src/text-scope.ts +79 -0
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AY,GAAI,CAAC,SAAS,QAAQ,EAAE,MAAM,SAAS,CAAC,EAAE,KAAG,YAAY,CAAC,CAAC,CAAC,GAAG,SASvF,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { escapeRegExp } from "./orthography.js";
|
|
2
|
+
/** The groups as the word list carries them: one entry per member, its group's position in `group`. */
|
|
3
|
+
export const groupsOfLexicon = (lexicon) => {
|
|
4
|
+
const byGroup = new Map();
|
|
5
|
+
lexicon.forEach((entry) => {
|
|
6
|
+
if (entry.group === undefined)
|
|
7
|
+
return;
|
|
8
|
+
byGroup.set(entry.group, [...(byGroup.get(entry.group) ?? []), entry.pattern]);
|
|
9
|
+
});
|
|
10
|
+
return [...byGroup.values()];
|
|
11
|
+
};
|
|
12
|
+
/** A Latin letter or digit: a member that starts or ends with one is a word, and a match inside a longer word is not it. */
|
|
13
|
+
const WORD_CHAR = /[\p{Script=Latin}\p{N}_]/u;
|
|
14
|
+
const isWordEdge = (text, span, member) => {
|
|
15
|
+
const before = WORD_CHAR.test(member.charAt(0)) && WORD_CHAR.test(text.charAt(span.start - 1));
|
|
16
|
+
const after = WORD_CHAR.test(member.charAt(member.length - 1)) && WORD_CHAR.test(text.charAt(span.end));
|
|
17
|
+
return !before && !after;
|
|
18
|
+
};
|
|
19
|
+
/** A member as written, in any case: a sentence or a title capitalises "Log in" without choosing another word. */
|
|
20
|
+
const memberHits = (text, group, member) => [...text.matchAll(new RegExp(escapeRegExp(member), "giu"))]
|
|
21
|
+
.map((match) => ({ group, member, span: { start: match.index, end: match.index + match[0].length } }))
|
|
22
|
+
.filter((hit) => isWordEdge(text, hit.span, member));
|
|
23
|
+
const isInsideLonger = (hit, other) => other.span.end - other.span.start > hit.span.end - hit.span.start && other.span.start <= hit.span.start && hit.span.end <= other.span.end;
|
|
24
|
+
/** Every member written in the text, in order. A member inside a longer one written there (申込 inside 申し込み) is part of the longer. */
|
|
25
|
+
export const groupHits = (text, groups) => {
|
|
26
|
+
const found = groups.flatMap((members, group) => members.flatMap((member) => memberHits(text, group, member)));
|
|
27
|
+
return found.filter((hit) => !found.some((other) => isInsideLonger(hit, other))).toSorted((left, right) => left.span.start - right.span.start);
|
|
28
|
+
};
|
|
29
|
+
const countsOf = (hits) => hits.reduce((counts, hit) => counts.set(hit.member, (counts.get(hit.member) ?? 0) + 1), new Map());
|
|
30
|
+
/**
|
|
31
|
+
* One group's hits in one text. With one member used there is nothing to say. With one member used most, the places of the
|
|
32
|
+
* others are the minority. When two or more share the most, neither side is taken: one verdict names every member used.
|
|
33
|
+
*/
|
|
34
|
+
export const groupVerdict = (hits) => {
|
|
35
|
+
const counts = countsOf(hits);
|
|
36
|
+
const first = hits[0];
|
|
37
|
+
if (counts.size < 2 || first === undefined)
|
|
38
|
+
return undefined;
|
|
39
|
+
const top = Math.max(...counts.values());
|
|
40
|
+
const leaders = [...counts].filter(([, count]) => count === top).map(([member]) => member);
|
|
41
|
+
const [usual] = leaders;
|
|
42
|
+
if (leaders.length > 1 || usual === undefined)
|
|
43
|
+
return { kind: "tie", members: [...counts].map(([member, count]) => ({ member, count })), first };
|
|
44
|
+
return { kind: "minority", usual, usualCount: top, odd: hits.filter((hit) => hit.member !== usual) };
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=term-groups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"term-groups.js","sourceRoot":"","sources":["../src/term-groups.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAWhD,uGAAuG;AACvG,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,OAAgC,EAAe,EAAE;IAC/E,MAAM,OAAO,GAAG,IAAI,GAAG,EAAoB,CAAC;IAC5C,OAAO,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACxB,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS;YAAE,OAAO;QACtC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,KAA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IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,KAAK,KAAK,CAAC,EAAE,CAAC;AACvG,CAAC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ScopeSelector, Span, TextScope } from "./plugin.ts";
|
|
2
|
+
export declare const TEXT_SCOPES: readonly TextScope[];
|
|
3
|
+
/** not-a-list: neither a name nor a list of names. unknown: a name that is not a scope. empty: it leaves no text to read. */
|
|
4
|
+
export type ScopeProblem = {
|
|
5
|
+
readonly kind: "not-a-list";
|
|
6
|
+
readonly written: string;
|
|
7
|
+
} | {
|
|
8
|
+
readonly kind: "unknown";
|
|
9
|
+
readonly written: string;
|
|
10
|
+
} | {
|
|
11
|
+
readonly kind: "empty";
|
|
12
|
+
readonly written: string;
|
|
13
|
+
};
|
|
14
|
+
export type ScopeRead = {
|
|
15
|
+
readonly selector: ScopeSelector;
|
|
16
|
+
} | {
|
|
17
|
+
readonly problem: ScopeProblem;
|
|
18
|
+
};
|
|
19
|
+
/** scope as written: one name or a list of names, each optionally negated with a leading ~. */
|
|
20
|
+
export declare const scopeSelectorOf: (raw: unknown) => ScopeRead;
|
|
21
|
+
/** Whether a passage in these parts is read: in a chosen part (or any part, when none is chosen) and in no part taken away. */
|
|
22
|
+
export declare const inScope: (selector: ScopeSelector, scopes: readonly TextScope[]) => boolean;
|
|
23
|
+
/** The selector as chaff.yaml writes it, for messages and explain: [list, ~quote]. */
|
|
24
|
+
export declare const writtenScope: (selector: ScopeSelector) => string;
|
|
25
|
+
/** Where the list items and the quotations of a document are. */
|
|
26
|
+
export type ScopeRegions = {
|
|
27
|
+
readonly list: readonly Span[];
|
|
28
|
+
readonly quote: readonly Span[];
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* The parts a passage starting at span is in. own is what the passage itself is (a heading, a table cell); a list item
|
|
32
|
+
* and a quotation are found around it. A passage in none of these is paragraph.
|
|
33
|
+
*/
|
|
34
|
+
export declare const scopesOf: (span: Span, regions: ScopeRegions, own?: "heading" | "table") => TextScope[];
|
|
35
|
+
//# sourceMappingURL=text-scope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-scope.d.ts","sourceRoot":"","sources":["../src/text-scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKlE,eAAO,MAAM,WAAW,EAAE,SAAS,SAAS,EAAuD,CAAC;AAIpG,6HAA6H;AAC7H,MAAM,MAAM,YAAY,GACpB;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACzD;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACtD;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzD,MAAM,MAAM,SAAS,GAAG;IAAE,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAA;CAAE,CAAC;AAuBlG,+FAA+F;AAC/F,eAAO,MAAM,eAAe,GAAI,KAAK,OAAO,KAAG,SAa9C,CAAC;AAEF,+HAA+H;AAC/H,eAAO,MAAM,OAAO,GAAI,UAAU,aAAa,EAAE,QAAQ,SAAS,SAAS,EAAE,KAAG,OAErB,CAAC;AAE5D,sFAAsF;AACtF,eAAO,MAAM,YAAY,GAAI,UAAU,aAAa,KAAG,MAGtD,CAAC;AAEF,iEAAiE;AACjE,MAAM,MAAM,YAAY,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,IAAI,EAAE,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,CAAA;CAAE,CAAC;AAI/F;;;GAGG;AACH,eAAO,MAAM,QAAQ,GAAI,MAAM,IAAI,EAAE,SAAS,YAAY,EAAE,MAAM,SAAS,GAAG,OAAO,KAAG,SAAS,EAIhG,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// scope: in chaff.yaml (custom_rules and prefer): which parts of a document a team's rule reads. Pure.
|
|
2
|
+
// Positives choose where (none written: every part); negatives (~quote) then take parts away.
|
|
3
|
+
export const TEXT_SCOPES = ["heading", "list", "table", "quote", "paragraph"];
|
|
4
|
+
const NEGATION = "~";
|
|
5
|
+
const printed = (value) => JSON.stringify(value) ?? String(value);
|
|
6
|
+
const scopeNamed = (name) => TEXT_SCOPES.find((scope) => scope === name);
|
|
7
|
+
const termOf = (written) => {
|
|
8
|
+
const trimmed = written.trim();
|
|
9
|
+
const negated = trimmed.startsWith(NEGATION);
|
|
10
|
+
const scope = scopeNamed(negated ? trimmed.slice(NEGATION.length).trim() : trimmed);
|
|
11
|
+
return scope === undefined ? undefined : { scope, negated };
|
|
12
|
+
};
|
|
13
|
+
const unique = (scopes) => TEXT_SCOPES.filter((scope) => scopes.includes(scope));
|
|
14
|
+
/** A selector that no passage can meet: every part it chooses is also taken away. */
|
|
15
|
+
const selectsNothing = (selector) => {
|
|
16
|
+
const chosen = selector.include.length === 0 ? TEXT_SCOPES : selector.include;
|
|
17
|
+
return chosen.every((scope) => selector.exclude.includes(scope));
|
|
18
|
+
};
|
|
19
|
+
/** scope as written: one name or a list of names, each optionally negated with a leading ~. */
|
|
20
|
+
export const scopeSelectorOf = (raw) => {
|
|
21
|
+
const list = Array.isArray(raw) ? raw : [raw];
|
|
22
|
+
if (list.length === 0)
|
|
23
|
+
return { problem: { kind: "empty", written: printed(raw) } };
|
|
24
|
+
if (!list.every((entry) => typeof entry === "string"))
|
|
25
|
+
return { problem: { kind: "not-a-list", written: printed(raw) } };
|
|
26
|
+
const names = list.filter((entry) => typeof entry === "string");
|
|
27
|
+
const unknown = names.find((name) => termOf(name) === undefined);
|
|
28
|
+
if (unknown !== undefined)
|
|
29
|
+
return { problem: { kind: "unknown", written: unknown } };
|
|
30
|
+
const terms = names.flatMap((name) => termOf(name) ?? []);
|
|
31
|
+
const selector = {
|
|
32
|
+
include: unique(terms.filter((term) => !term.negated).map((term) => term.scope)),
|
|
33
|
+
exclude: unique(terms.filter((term) => term.negated).map((term) => term.scope)),
|
|
34
|
+
};
|
|
35
|
+
return selectsNothing(selector) ? { problem: { kind: "empty", written: printed(raw) } } : { selector };
|
|
36
|
+
};
|
|
37
|
+
/** Whether a passage in these parts is read: in a chosen part (or any part, when none is chosen) and in no part taken away. */
|
|
38
|
+
export const inScope = (selector, scopes) => (selector.include.length === 0 ? scopes.length > 0 : selector.include.some((scope) => scopes.includes(scope))) &&
|
|
39
|
+
!selector.exclude.some((scope) => scopes.includes(scope));
|
|
40
|
+
/** The selector as chaff.yaml writes it, for messages and explain: [list, ~quote]. */
|
|
41
|
+
export const writtenScope = (selector) => {
|
|
42
|
+
const names = [...selector.include, ...selector.exclude.map((scope) => NEGATION + scope)];
|
|
43
|
+
return `[${names.join(", ")}]`;
|
|
44
|
+
};
|
|
45
|
+
const startsIn = (span, regions) => regions.some((region) => span.start >= region.start && span.start < region.end);
|
|
46
|
+
/**
|
|
47
|
+
* The parts a passage starting at span is in. own is what the passage itself is (a heading, a table cell); a list item
|
|
48
|
+
* and a quotation are found around it. A passage in none of these is paragraph.
|
|
49
|
+
*/
|
|
50
|
+
export const scopesOf = (span, regions, own) => {
|
|
51
|
+
const around = { list: regions.list, quote: regions.quote };
|
|
52
|
+
const found = TEXT_SCOPES.filter((scope) => scope === own || startsIn(span, around[scope] ?? []));
|
|
53
|
+
return found.length === 0 ? ["paragraph"] : found;
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=text-scope.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-scope.js","sourceRoot":"","sources":["../src/text-scope.ts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AAG,CAAC,GAAG,QAAQ,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC;IAC1F,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;AACjC,CAAC,CAAC;AAKF,MAAM,QAAQ,GAAG,CAAC,IAAU,EAAE,OAAwB,EAAW,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AAEpJ;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,IAAU,EAAE,OAAqB,EAAE,GAAyB,EAAe,EAAE;IACpG,MAAM,MAAM,GAA0D,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC;IACnH,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,GAAG,IAAI,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IAClG,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AACpD,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topic-clause.d.ts","sourceRoot":"","sources":["../src/topic-clause.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"topic-clause.d.ts","sourceRoot":"","sources":["../src/topic-clause.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAsMzC,qIAAqI;AACrI,MAAM,MAAM,gBAAgB,GAAG;IAC7B,0GAA0G;IAC1G,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,yGAAyG;IACzG,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACtC,CAAC;AAiJF;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,SAAS,KAAK,EAAE,EAAE,OAAO,MAAM,EAAE,MAAM,MAAM,EAAE,QAAO,gBAA2B,KAAG,MAAM,GAAG,SAanI,CAAC"}
|
package/dist/topic-clause.js
CHANGED
|
@@ -82,21 +82,79 @@ const closesFirstClauseWithNoun = (tokens, topic, at, last) => tokens[at]?.surfa
|
|
|
82
82
|
isComma(tokens[at + 1]) &&
|
|
83
83
|
!tokens.slice(topic + 1, at).some(isComma) &&
|
|
84
84
|
newTopicAfter(tokens, at + 1, last);
|
|
85
|
+
/** 〜の積上げであり、: the copula's continuing あり after で, and a comma. */
|
|
86
|
+
const isCopulaContinuing = (tokens, at) => tokens[at]?.surface === "あり" && tokens[at]?.lemma === "ある" && tokens[at - 1]?.surface === "で" && isCopula(tokens[at - 1]) && isComma(tokens[at + 1]);
|
|
87
|
+
/** The sentence ends on a copula (〜ものではありません, 〜ということです) or on ある after が (〜する必要があります). */
|
|
88
|
+
const endsOnCopulaOrBeing = (tokens, last) => {
|
|
89
|
+
const head = beforeTail(tokens, last);
|
|
90
|
+
const token = tokens[head];
|
|
91
|
+
return isCopula(token) || (token !== undefined && isParticle(token, "が") && tokens[head + 1]?.lemma === "ある");
|
|
92
|
+
};
|
|
93
|
+
/** A が on a noun, a nominaliser too (感染するものが増えている), past at and past the last comma: the final predicate's subject. */
|
|
94
|
+
const finalGaAfter = (tokens, at, last) => {
|
|
95
|
+
const lastComma = tokens.findLastIndex((token, index) => index < last && isComma(token));
|
|
96
|
+
return tokens.some((token, index) => index > Math.max(at, lastComma) && index < last && isParticle(token, "が") && NOMINAL.has(tokens[index - 1]?.pos ?? ""));
|
|
97
|
+
};
|
|
98
|
+
/** The sentence ends on a noun and a copula, and a が straight before the noun is its subject (〜を図ることが必要である), past at. */
|
|
99
|
+
const predicateNounTakesGa = (tokens, at, last) => {
|
|
100
|
+
const copula = beforeTail(tokens, last);
|
|
101
|
+
const ga = tokens[copula - 2];
|
|
102
|
+
return (copula - 2 > at &&
|
|
103
|
+
isCopula(tokens[copula]) &&
|
|
104
|
+
isOwnNoun(tokens[copula - 1]) &&
|
|
105
|
+
ga !== undefined &&
|
|
106
|
+
isParticle(ga, "が") &&
|
|
107
|
+
NOMINAL.has(tokens[copula - 3]?.pos ?? ""));
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* 収益は、…の積上げであり、…ストック型が主要を占めております: the copula's continuing form closes the topic's clause when a new
|
|
111
|
+
* topic follows, or a subject of its own (が, a clause made a noun too: 〜することが求められている) whose predicate is not again a
|
|
112
|
+
* copula or ある, or the subject of the final copula's noun (〜を図ることが必要である). 信頼型は、…ものであり、…ものではありません
|
|
113
|
+
* and これは…リンクであり、ユーザーが…ということです say two things of the same topic. With another topic between the topic and it
|
|
114
|
+
* (復興は、…進んでいる一方で、…状況は様々であり、), the copula is that topic's, not the first one's. A が there (〜ことは、パレスチナが
|
|
115
|
+
* …共存することであり、) is inside a clause the topic's own predicate takes, and does not count.
|
|
116
|
+
*/
|
|
117
|
+
const closesWithCopulaContinuing = (tokens, topic, at, last, subject) => isCopulaContinuing(tokens, at) &&
|
|
118
|
+
!newTopicAfter(tokens, topic, at) &&
|
|
119
|
+
(newTopicAfter(tokens, at + 1, last) ||
|
|
120
|
+
((subject > at || finalGaAfter(tokens, at, last)) && !endsOnCopulaOrBeing(tokens, last)) ||
|
|
121
|
+
predicateNounTakesGa(tokens, at, last));
|
|
122
|
+
/**
|
|
123
|
+
* 〜する想定のため: a clause, a noun it ends on, and の before ため, the copula's attributive form (想定であるため). A bare noun
|
|
124
|
+
* before のため (安全管理のため) is more often a purpose, which the topic's own predicate still follows.
|
|
125
|
+
*/
|
|
126
|
+
const clauseNounBeforeTame = (tokens, at) => {
|
|
127
|
+
const before = tokens[at - 1];
|
|
128
|
+
const clauseEnd = tokens[at - 3];
|
|
129
|
+
const endsClause = clauseEnd?.pos === "VERB" || (clauseEnd?.pos === "AUX" && clauseEnd.lemma !== "だ");
|
|
130
|
+
return before !== undefined && isParticle(before, "の") && isOwnNoun(tokens[at - 2]) && endsClause;
|
|
131
|
+
};
|
|
85
132
|
/**
|
|
86
133
|
* A clause that may close the topic's predicate, when a new subject follows, each stopped by a comma: a copula after ない or
|
|
87
|
-
* ため (〜ではなく、,
|
|
88
|
-
* (〜を続けており、).
|
|
134
|
+
* ため (〜ではなく、, 〜であるため、, 〜の想定のため、), a copula's condition (〜であるならば、), ところ (〜にあるところ、), and a
|
|
135
|
+
* continuing verb (〜を続けており、).
|
|
89
136
|
*/
|
|
90
137
|
const closesIfNewSubject = (tokens, at) => {
|
|
91
138
|
const token = tokens[at];
|
|
92
139
|
if (!isComma(tokens[at + 1]))
|
|
93
140
|
return false;
|
|
94
|
-
if (token?.surface === "ため"
|
|
141
|
+
if (token?.surface === "ため")
|
|
142
|
+
return copulaBefore(tokens, at) || clauseNounBeforeTame(tokens, at);
|
|
143
|
+
if (token?.lemma === "ない")
|
|
95
144
|
return copulaBefore(tokens, at);
|
|
96
145
|
if (closesWithTokoro(tokens, at) || closesWithCondition(tokens, at))
|
|
97
146
|
return true;
|
|
98
147
|
return token?.pos === "VERB" && token.lemma === "おる" && token.features?.["Bound"] === "Yes";
|
|
99
148
|
};
|
|
149
|
+
/** Verbs of receiving a favour (〜していただく, 〜してもらう): their doer is the one asked, not the speaker. */
|
|
150
|
+
const BENEFACTIVE = new Set(["いただく", "いただける", "くださる", "もらう", "もらえる"]);
|
|
151
|
+
/** The forms that make a favour a request or a hope: 〜いただけると, 〜いただければ, 〜いただきたい. The tagger reads と as either. */
|
|
152
|
+
const isRequestForm = (token) => ((token?.pos === "SCONJ" || token?.pos === "ADP") && (token.surface === "と" || token.surface === "ば")) || (token?.pos === "AUX" && token.lemma === "たい");
|
|
153
|
+
/**
|
|
154
|
+
* 〜を示していただけると…つながるのではないか: past at, the speaker asks for a favour. What follows is the speaker's request, so a
|
|
155
|
+
* clause that may close the topic's predicate does close it, though no subject of its own is spelt out.
|
|
156
|
+
*/
|
|
157
|
+
const requestAfter = (tokens, at, last) => tokens.some((token, index) => index > at && index < last && BENEFACTIVE.has(token.lemma ?? "") && isRequestForm(tokens[index + 1]));
|
|
100
158
|
const NO_WORDS = { closers: [] };
|
|
101
159
|
/** The first of the words that spell text when they end at at (こと + から for ことから), or -1 when no run of words does. */
|
|
102
160
|
const wordsStart = (tokens, at, text, spelled = "") => {
|
|
@@ -115,42 +173,65 @@ const isPoliteMasu = (token) => token?.pos === "AUX" && token.lemma === "ます"
|
|
|
115
173
|
const POLITE_TAILS = [[], ["た"], ["ん"], ["ん", "でし", "た"]];
|
|
116
174
|
const endsPolite = (tokens, at, tail) => isPoliteMasu(tokens[at - tail.length - 1]) &&
|
|
117
175
|
tail.every((surface, index) => tokens[at - tail.length + index]?.pos === "AUX" && tokens[at - tail.length + index]?.surface === surface);
|
|
118
|
-
/**
|
|
176
|
+
/** The polite copula, past or not, just before at: ほとんどですが, ほとんどでしたが. */
|
|
177
|
+
const endsPoliteCopula = (tokens, at) => {
|
|
178
|
+
const end = tokens[at - 1]?.surface === "た" && tokens[at - 1]?.pos === "AUX" ? at - 1 : at;
|
|
179
|
+
const copula = tokens[end - 1];
|
|
180
|
+
return copula?.pos === "AUX" && copula.lemma === "です";
|
|
181
|
+
};
|
|
182
|
+
/** 〜ておりますが / 〜しましたが / 〜できませんでしたが / 〜でしたが: a polite predicate and the contrastive が. */
|
|
119
183
|
const isPoliteGa = (tokens, at) => {
|
|
120
184
|
if (tokens[at]?.surface !== "が" || tokens[at]?.pos !== "SCONJ")
|
|
121
185
|
return false;
|
|
122
|
-
return POLITE_TAILS.some((tail) => endsPolite(tokens, at, tail));
|
|
186
|
+
return POLITE_TAILS.some((tail) => endsPolite(tokens, at, tail)) || endsPoliteCopula(tokens, at);
|
|
123
187
|
};
|
|
124
|
-
|
|
188
|
+
/** A topic on a noun that sets the time or the case (普及以前は, 決定後は): it frames a clause, not the whole sentence. */
|
|
189
|
+
const isSettingTopic = (tokens, topic) => tokens[topic - 1]?.features?.["Adverbial"] === "Yes";
|
|
190
|
+
/** A new topic on a noun after at, before the last word, bare or on に or で (プログラムには, 国内では). */
|
|
191
|
+
const frameTopicAfter = (tokens, at, last) => tokens.some((token, index) => {
|
|
192
|
+
if (index <= at || index >= last || !isParticle(token, "は"))
|
|
193
|
+
return false;
|
|
194
|
+
const head = tokens[index - 1]?.surface === "に" || tokens[index - 1]?.surface === "で" ? index - 2 : index - 1;
|
|
195
|
+
return isOwnNoun(tokens[head]);
|
|
196
|
+
});
|
|
125
197
|
/** A word of a name (赤澤, 大臣), not a noun that sets the time or the case (今後, 当日). */
|
|
126
198
|
const isNameWord = (token) => NOMINAL.has(token.pos) && token.features?.["Adverbial"] !== "Yes";
|
|
199
|
+
/** A prefix bound to the noun after it (本事業, 同社, 各部): the tagger reads it as a bound adjective. */
|
|
200
|
+
const isNounPrefix = (token) => token?.pos === "ADJ" && token.features?.["Bound"] === "Yes";
|
|
127
201
|
/**
|
|
128
|
-
*
|
|
129
|
-
* that the rest of the sentence is said of, when no subject of its own
|
|
202
|
+
* 石破総理大臣は…明らかにしましたが、赤澤大臣は…どう考えているか / 〜しておりますが、本事業は、…: a noun (a prefix may stand before
|
|
203
|
+
* it) and は straight after the comma is a topic of its own that the rest of the sentence is said of, when no subject of its own
|
|
204
|
+
* (が) follows it. A phrase before は (〜した行為は) is not one.
|
|
130
205
|
*/
|
|
131
206
|
const newNameTopicRunsToEnd = (tokens, comma, last) => {
|
|
132
|
-
const
|
|
207
|
+
const start = isNounPrefix(tokens[comma + 1]) ? comma + 2 : comma + 1;
|
|
208
|
+
const topic = tokens.findIndex((token, index) => index >= start && !isNameWord(token));
|
|
133
209
|
const wa = tokens[topic];
|
|
134
|
-
return topic >
|
|
210
|
+
return topic > start && wa !== undefined && isParticle(wa, "は") && lastOwnSubject(tokens, last) <= topic;
|
|
135
211
|
};
|
|
136
212
|
/** A topic on the nominaliser こと after a predicate (公表することは): an act made a noun. */
|
|
137
213
|
const isActTopic = (tokens, topic) => tokens[topic - 1]?.surface === "こと" && tokens[topic - 1]?.pos === "NOUN" && PREDICATE.has(tokens[topic - 2]?.pos ?? "");
|
|
138
214
|
/**
|
|
139
215
|
* 当社は…を営んでおりますが、…の重要性が乏しいため、…の記載は行っておりません: after 〜ますが、 the words up to the next comma
|
|
140
|
-
* say something of a subject of their own (が) and a new topic
|
|
141
|
-
* topic's, when no other subject stands between the topic and it
|
|
142
|
-
* its own there is read to the end, unless a name stands as a new
|
|
143
|
-
* topic
|
|
144
|
-
* speaker's.
|
|
216
|
+
* say something of a subject of their own (が) and a new topic (bare, or on に or で: 〜プログラムには) takes what comes after
|
|
217
|
+
* that subject, so the predicate before が was the topic's, when no other subject stands between the topic and it
|
|
218
|
+
* (需要の停滞がありましたが is not). A clause with no subject of its own there is read to the end, unless a name stands as a new
|
|
219
|
+
* topic straight after the comma (〜ましたが、B大臣は…), or the topic is an act made a noun (つまびらかにすることは差し控えますが、…):
|
|
220
|
+
* what is said of an act ends there, and the rest is the speaker's. A topic that sets the time or the case (普及以前は、決定後は)
|
|
221
|
+
* frames only its clause: when a subject of its own follows the comma, its clause ends at 〜ますが even with a subject between.
|
|
145
222
|
*/
|
|
146
|
-
const closesWithPoliteGa = (tokens, topic, at, last) => {
|
|
147
|
-
if (!isPoliteGa(tokens, at) || !isComma(tokens[at + 1])
|
|
223
|
+
const closesWithPoliteGa = (tokens, topic, at, last, subject) => {
|
|
224
|
+
if (!isPoliteGa(tokens, at) || !isComma(tokens[at + 1]))
|
|
225
|
+
return false;
|
|
226
|
+
if (isSettingTopic(tokens, topic))
|
|
227
|
+
return newTopicAfter(tokens, at + 1, last) || subject > at || finalGaAfter(tokens, at, last);
|
|
228
|
+
if (subjectBetween(tokens, topic, at))
|
|
148
229
|
return false;
|
|
149
230
|
if (isActTopic(tokens, topic) || newNameTopicRunsToEnd(tokens, at + 1, last))
|
|
150
231
|
return true;
|
|
151
232
|
const comma = tokens.findIndex((token, index) => index > at + 1 && index < last && isComma(token));
|
|
152
|
-
const
|
|
153
|
-
return
|
|
233
|
+
const ga = tokens.findIndex((token, index) => index > at + 1 && index < (comma === -1 ? last : comma) && isParticle(token, "が") && headsSubject(tokens, index));
|
|
234
|
+
return ga !== -1 && frameTopicAfter(tokens, ga, last);
|
|
154
235
|
};
|
|
155
236
|
/**
|
|
156
237
|
* 学校は地域の核となることから、…: a closer after a predicate, then a comma, with no subject of its own
|
|
@@ -205,9 +286,10 @@ const closesCleftInNounPhrase = (tokens, topic, at, last) => {
|
|
|
205
286
|
export const topicClauseEnd = (tokens, topic, last, words = NO_WORDS) => {
|
|
206
287
|
const subject = lastOwnSubject(tokens, last);
|
|
207
288
|
const closes = (at) => closesSurely(tokens, at, last) ||
|
|
208
|
-
(closesIfNewSubject(tokens, at) && subject > at) ||
|
|
289
|
+
(closesIfNewSubject(tokens, at) && (subject > at || requestAfter(tokens, at, last))) ||
|
|
290
|
+
closesWithCopulaContinuing(tokens, topic, at, last, subject) ||
|
|
209
291
|
closesFirstClauseWithNoun(tokens, topic, at, last) ||
|
|
210
|
-
closesWithPoliteGa(tokens, topic, at, last) ||
|
|
292
|
+
closesWithPoliteGa(tokens, topic, at, last, subject) ||
|
|
211
293
|
closesAfterPredicate(tokens, topic, at, words) ||
|
|
212
294
|
closesWithItemMark(tokens, at) ||
|
|
213
295
|
closesCleftInNounPhrase(tokens, topic, at, last);
|
package/dist/topic-clause.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topic-clause.js","sourceRoot":"","sources":["../src/topic-clause.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O,CAAC;QAC5D,yBAAyB,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,CAAC;QAClD,kBAAkB,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC;QACpD,oBAAoB,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,CAAC;QAC9C,kBAAkB,CAAC,MAAM,EAAE,EAAE,CAAC;QAC9B,uBAAuB,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IACnD,MAAM,GAAG,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,GAAG,KAAK,IAAI,EAAE,GAAG,IAAI,IAAI,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/E,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC;AACtC,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The offsets in `source` of the quote marks of a quoted value that opens right after a code mark left unclosed in its
|
|
3
|
+
* paragraph (`"my-secure-password" (don't use this)): the writer meant the value as code and dropped the closing mark, so
|
|
4
|
+
* its quotes are the code's, not the prose's. Code marks pair from the left, so with an odd count the last one is unclosed.
|
|
5
|
+
*/
|
|
6
|
+
export declare const unclosedCodeQuoteOffsets: (source: string) => ReadonlySet<number>;
|
|
7
|
+
//# sourceMappingURL=unclosed-code-quote.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unclosed-code-quote.d.ts","sourceRoot":"","sources":["../src/unclosed-code-quote.ts"],"names":[],"mappings":"AAmCA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GAAI,QAAQ,MAAM,KAAG,WAAW,CAAC,MAAM,CACiB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const CODE_MARK = "`";
|
|
2
|
+
const PARAGRAPH_BREAK = /\n[ \t]*\n/u;
|
|
3
|
+
const PARAGRAPH_BREAKS = new RegExp(PARAGRAPH_BREAK.source, "gu");
|
|
4
|
+
/** The quote that opens right after a code mark, and the mark that closes it. */
|
|
5
|
+
const CLOSER = { '"': '"', "'": "'", "“": "”", "‘": "’" };
|
|
6
|
+
/** The offsets in a paragraph of its single code marks; a run of two or more (``) is a fence or a longer delimiter, not counted. */
|
|
7
|
+
const codeMarksIn = (paragraph) => [...paragraph].flatMap((char, at) => (char === CODE_MARK && paragraph[at - 1] !== CODE_MARK && paragraph[at + 1] !== CODE_MARK ? [at] : []));
|
|
8
|
+
/** The quote's two offsets in a paragraph, when a quote opens right after the code mark at `mark` and closes on the same line. */
|
|
9
|
+
const quoteAfter = (paragraph, mark) => {
|
|
10
|
+
const opening = mark + 1;
|
|
11
|
+
const closer = CLOSER[paragraph[opening] ?? ""];
|
|
12
|
+
if (closer === undefined)
|
|
13
|
+
return [];
|
|
14
|
+
const closing = paragraph.indexOf(closer, opening + 1);
|
|
15
|
+
const lineEnd = paragraph.indexOf("\n", opening);
|
|
16
|
+
return closing === -1 || (lineEnd !== -1 && closing > lineEnd) ? [] : [opening, closing];
|
|
17
|
+
};
|
|
18
|
+
/** Where each paragraph of `source` starts and ends (its break excluded). */
|
|
19
|
+
const paragraphSpans = (source) => {
|
|
20
|
+
const breaks = [...source.matchAll(PARAGRAPH_BREAKS)];
|
|
21
|
+
const starts = [0, ...breaks.map((match) => match.index + match[0].length)];
|
|
22
|
+
return starts.map((start, at) => ({ start, end: breaks[at]?.index ?? source.length }));
|
|
23
|
+
};
|
|
24
|
+
/** The quote offsets in `source` of the one paragraph from start to end. */
|
|
25
|
+
const unclosedIn = (source, start, end) => {
|
|
26
|
+
const paragraph = source.slice(start, end);
|
|
27
|
+
const marks = codeMarksIn(paragraph);
|
|
28
|
+
const last = marks.at(-1);
|
|
29
|
+
return last !== undefined && marks.length % 2 === 1 ? quoteAfter(paragraph, last).map((at) => start + at) : [];
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* The offsets in `source` of the quote marks of a quoted value that opens right after a code mark left unclosed in its
|
|
33
|
+
* paragraph (`"my-secure-password" (don't use this)): the writer meant the value as code and dropped the closing mark, so
|
|
34
|
+
* its quotes are the code's, not the prose's. Code marks pair from the left, so with an odd count the last one is unclosed.
|
|
35
|
+
*/
|
|
36
|
+
export const unclosedCodeQuoteOffsets = (source) => new Set(paragraphSpans(source).flatMap(({ start, end }) => unclosedIn(source, start, end)));
|
|
37
|
+
//# sourceMappingURL=unclosed-code-quote.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unclosed-code-quote.js","sourceRoot":"","sources":["../src/unclosed-code-quote.ts"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAG,GAAG,CAAC;AACtB,MAAM,eAAe,GAAG,aAAa,CAAC;AACtC,MAAM,gBAAgB,GAAG,IAAI,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAClE,iFAAiF;AACjF,MAAM,MAAM,GAAqC,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAE5F,oIAAoI;AACpI,MAAM,WAAW,GAAG,CAAC,SAAiB,EAAY,EAAE,CAClD,CAAC,GAAG,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,KAAK,SAAS,IAAI,SAAS,CAAC,EAAE,GAAG,CAAC,CAAC,KAAK,SAAS,IAAI,SAAS,CAAC,EAAE,GAAG,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAE/I,kIAAkI;AAClI,MAAM,UAAU,GAAG,CAAC,SAAi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AM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC3C,MAAM,KAAK,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;IACrC,MAAM,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1B,OAAO,IAAI,KAAK,SAAS,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACjH,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,MAAc,EAAuB,EAAE,CAC9E,IAAI,GAAG,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chaffjs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.52.0",
|
|
4
4
|
"description": "Prose validation harness. Finds what is hard to read, and never rewrites it for you.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chaff",
|
|
@@ -89,9 +89,10 @@
|
|
|
89
89
|
},
|
|
90
90
|
"dependencies": {
|
|
91
91
|
"@anthropic-ai/sdk": "^0.125.0",
|
|
92
|
-
"@chaffjs/lang-en": "0.
|
|
93
|
-
"@chaffjs/lang-ja": "0.
|
|
92
|
+
"@chaffjs/lang-en": "0.49.0",
|
|
93
|
+
"@chaffjs/lang-ja": "0.51.0",
|
|
94
94
|
"character-entities": "^2.0.2",
|
|
95
|
+
"ignore": "^7.0.5",
|
|
95
96
|
"mdast-util-from-markdown": "^2.0.3",
|
|
96
97
|
"mdast-util-frontmatter": "^2.0.1",
|
|
97
98
|
"mdast-util-gfm-table": "^2.0.0",
|
|
@@ -46,8 +46,8 @@ example:
|
|
|
46
46
|
She hurried to the room and eased the door open. He needed the report and demanded it.
|
|
47
47
|
|
|
48
48
|
not_flagged:
|
|
49
|
-
ja: 短い文書(200 語より短いもの)は測りません。文の途中の頭だけ大文字の -ly の語(July、Kelly)は名前か題の語なので数えません。題の書き方の行の頭の語(Frequently Asked Questions)も、題の語なので数えません。書き手の確かさを言う副詞(probably、apparently、honestly)も、畳む先の動詞が無いので数えません(語の一覧は語彙表 stance-adverb
|
|
50
|
-
en: Documents under 200 words are not measured. A capitalised -ly word in mid-sentence (July, Kelly) is a name or a word of a title, and is not counted; so is one that opens a line written in title case (Frequently Asked Questions). Nor is an adverb that says how sure or frank the writer is (probably, apparently, honestly), since there is no verb to fold it into (the words are in the stance-adverb lexicon).
|
|
49
|
+
ja: 短い文書(200 語より短いもの)は測りません。文の途中の頭だけ大文字の -ly の語(July、Kelly)は名前か題の語なので数えません。題の書き方の行の頭の語(Frequently Asked Questions)も、題の語なので数えません。書き手の確かさを言う副詞(probably、apparently、honestly)も、畳む先の動詞が無いので数えません(語の一覧は語彙表 stance-adverb)。数の前の語(only 26、nearly 40)と、括弧の頭で呼び名を前置きする語((collectively, the agencies))も、動詞を修飾していないので数えません。
|
|
50
|
+
en: Documents under 200 words are not measured. A capitalised -ly word in mid-sentence (July, Kelly) is a name or a word of a title, and is not counted; so is one that opens a line written in title case (Frequently Asked Questions). Nor is an adverb that says how sure or frank the writer is (probably, apparently, honestly), since there is no verb to fold it into (the words are in the stance-adverb lexicon). Nor is one right before a number (only 26, nearly 40), or one that opens a naming aside in brackets ((collectively, the agencies)), since neither modifies a verb.
|
|
51
51
|
level_meaning:
|
|
52
52
|
ja: 1000 語あたり -ly 副詞 {limit} 個まで
|
|
53
53
|
en: up to {limit} {limit|-ly adverb|-ly adverbs} per 1000 words
|
package/rules/bold-density.yaml
CHANGED
|
@@ -55,8 +55,8 @@ example:
|
|
|
55
55
|
Send the form to HR. **The deadline is the end of the month, and late forms will not be accepted, whatever the reason.** The form is in the shared folder. You can print it and fill it in by hand, or type into it on screen and then print it. It needs your manager's signature, so give it to your manager at least three days before the deadline. If you have a question, call the HR desk between nine and five on a weekday.
|
|
56
56
|
|
|
57
57
|
not_flagged:
|
|
58
|
-
ja: 200 字より短い節は、1 箇所で割合が跳ねるので測りません。行の頭に置いた短い項目名(**日時:**、**Date
|
|
59
|
-
en: Sections under 200 characters are not measured, since one bold span would swing the rate. A short field label opening a line (**Date:**, **Motion:**) names the value after it and is not emphasis, so it is not counted; a bold label opening a list item is.
|
|
58
|
+
ja: 200 字より短い節は、1 箇所で割合が跳ねるので測りません。行の頭に置いた短い項目名(**日時:**、**Date:**)は、続く値の名前で強調ではないので数えません。箇条書きの頭の太字の項目名は数えますが、変更履歴の版の見出しの下で項目の頭に書いたコミットの範囲(* **deps:** …、生成した変更履歴の形)は数えません。
|
|
59
|
+
en: Sections under 200 characters are not measured, since one bold span would swing the rate. A short field label opening a line (**Date:**, **Motion:**) names the value after it and is not emphasis, so it is not counted; a bold label opening a list item is, except a commit scope opening an entry under a changelog's release heading (* **deps:** ..., the format of a generated changelog).
|
|
60
60
|
level_meaning:
|
|
61
61
|
ja: 1000 字あたり太字 {limit} 箇所まで
|
|
62
62
|
en: up to {limit} {limit|bold span|bold spans} per 1000 characters
|
package/rules/bold-emphasis.yaml
CHANGED
|
@@ -79,8 +79,8 @@ example:
|
|
|
79
79
|
戻せるかどうかは**月に一度**確かめ、困る前に気付けるようにします。
|
|
80
80
|
|
|
81
81
|
not_flagged:
|
|
82
|
-
ja: 太字が 2 つまでの文書と、短い文書は測りません。行と段落(または箇条書きの項目)の頭に立つ太字は、札・見出し・欄の名前なので数えません(「- **速さ**:」「- **給与は同じ。**」「**差出人:**」「**長所:**」)。箇条書きの札は bold-label-list が数えます。文の途中でも、大文字で始まる太字(「**Add Printer**
|
|
83
|
-
en: A document with two bold spans or fewer, and a short document, are not measured. Bold that opens its line and its paragraph or list item is a label, a lead sentence, a field or a run-in heading ("- **Speed**:", "- **Same pay.**", "**From:**", "**Pros:**") and is not counted; bold-label-list counts the list labels. A capitalised bold inside a sentence ("click **Add Printer**") names a button, a setting or a title and is not counted either, nor is bold inside a table cell or a heading. READMEs, meeting notes, documentation, legal, academic, literary and speech genres do not run this rule, since they bold feature names and fields as their layout.
|
|
82
|
+
ja: 太字が 2 つまでの文書と、短い文書は測りません。行と段落(または箇条書きの項目)の頭に立つ太字は、札・見出し・欄の名前なので数えません(「- **速さ**:」「- **給与は同じ。**」「**差出人:**」「**長所:**」)。箇条書きの札は bold-label-list が数えます。文の途中でも、大文字で始まる太字(「**Add Printer** を押す」)はボタンや設定の名前なので数えません。符号や番号だけの太字(「日付コード **2602**」)も、ラベルで探す値の名前なので数えません(「**50%**」のような単位や記号の付いた数は数えます)。表のセルと見出しの中の太字も数えません。README・議事録・説明書・法務・論文・文学・話し言葉のジャンルでは見ません。機能や項目の名前を太字にするのがその形だからです。
|
|
83
|
+
en: A document with two bold spans or fewer, and a short document, are not measured. Bold that opens its line and its paragraph or list item is a label, a lead sentence, a field or a run-in heading ("- **Speed**:", "- **Same pay.**", "**From:**", "**Pros:**") and is not counted; bold-label-list counts the list labels. A capitalised bold inside a sentence ("click **Add Printer**") names a button, a setting or a title and is not counted either, nor is a bold holding only a code or a number ("date code **2602**"), the value a reader looks for on a label (a figure with a unit or a sign, "**50%**", still counts), nor bold inside a table cell or a heading. READMEs, meeting notes, documentation, legal, academic, literary and speech genres do not run this rule, since they bold feature names and fields as their layout.
|
|
84
84
|
level_meaning:
|
|
85
85
|
ja: 太字の強調が 1000 字あたり {limit} 箇所まで
|
|
86
86
|
en: up to {limit} {limit|bold span|bold spans} of emphasis per 1000 words
|
|
@@ -94,8 +94,8 @@ example:
|
|
|
94
94
|
The monthly bill is lower, and permissions can be split finely.
|
|
95
95
|
|
|
96
96
|
not_flagged:
|
|
97
|
-
ja: 札がコードだけの項目(`--flag` の説明のような、設定や引数の一覧)は数えません。段落は、太字が言い切りの文か、句点で閉じた英語の命令の一文(**Pick the quietest room you can.**)のときだけ数え、語だけの太字・コロンで閉じた英語の命令形の札(**Talk to the people:**)・動名詞・問いは数えません。札の後ろにコロンも句点も無い項目(太字が文の頭の語だけのもの)と、その後ろに何も無い項目も数えません。太字の後ろが一項目ずつ段落ほどの長さ(中ほどの項目で英語 40 語、日本語 100
|
|
98
|
-
en: An item whose label is only code (a list of options or fields) is not counted, nor is one whose bold ends in neither a colon nor a full stop (a bold opening word of a sentence), or that has no text after it. A list whose items each run a paragraph after the bold (the middle item 40 words or more, 100 characters in Japanese) is a handbook's tips, the advice in bold and the item explaining it, and is not counted. A paragraph counts only when its bold is a statement, or a whole English instruction closed by its own stop (**Pick the quietest room you can.**), not a term, an imperative run-in head closed by a colon (**Talk to the people:**), a gerund or a question. Specification (technical/spec), legal, documentation, academic and literary genres do not run this rule.
|
|
97
|
+
ja: 札がコードだけの項目(`--flag` の説明のような、設定や引数の一覧)は数えません。段落は、太字が言い切りの文か、句点で閉じた英語の命令の一文(**Pick the quietest room you can.**)のときだけ数え、語だけの太字・コロンで閉じた英語の命令形の札(**Talk to the people:**)・動名詞・問いは数えません。札の後ろにコロンも句点も無い項目(太字が文の頭の語だけのもの)と、その後ろに何も無い項目も数えません。太字の後ろが一項目ずつ段落ほどの長さ(中ほどの項目で英語 40 語、日本語 100 字から)ある箇条書きは、太字の助言をそれぞれ長く説明する手引きの形なので数えません。変更履歴の版の見出しの下で、項目の頭にコミットの範囲を太字で書いたもの(* **deps:** …、生成した変更履歴の形)も数えません。仕様書(technical/spec)・法務・説明書・論文・文学のジャンルでは見ません。
|
|
98
|
+
en: An item whose label is only code (a list of options or fields) is not counted, nor is one whose bold ends in neither a colon nor a full stop (a bold opening word of a sentence), or that has no text after it. A list whose items each run a paragraph after the bold (the middle item 40 words or more, 100 characters in Japanese) is a handbook's tips, the advice in bold and the item explaining it, and is not counted. A paragraph counts only when its bold is a statement, or a whole English instruction closed by its own stop (**Pick the quietest room you can.**), not a term, an imperative run-in head closed by a colon (**Talk to the people:**), a gerund or a question. Entries under a changelog's release headings that open with their commit scope in bold (* **deps:** ..., the format of a generated changelog) are not counted. Specification (technical/spec), legal, documentation, academic and literary genres do not run this rule.
|
|
99
99
|
level_meaning:
|
|
100
100
|
ja: 太字の札で始まる項目が {limit} 個あれば指摘(太字の一文で始まる項目は min_leads、言い切りの太字で始まる段落は min_clause_paragraphs の数から)
|
|
101
101
|
en: reported once {limit} {limit|list item opens|list items open} with a bold label (items opening with a bold lead sentence from min_leads, paragraphs opening with a bold statement from min_clause_paragraphs)
|
|
@@ -44,8 +44,8 @@ example:
|
|
|
44
44
|
会議(定例)は月曜です。報告(月次)は金曜です。資料(最新版)を配ります。
|
|
45
45
|
|
|
46
46
|
not_flagged:
|
|
47
|
-
ja: 日本語の字に接する括弧だけを数え、丸括弧と角括弧は別々に比べます。Markdown のリンクは数えず、注の番号([1]、[^1])は注の番号どうしで、行の頭の番号や英字の札((1)、[Web]
|
|
48
|
-
en: Only brackets touching Japanese text, parentheses and square brackets compared apart; Markdown links are not counted, and note markers ([1], [^1]) are compared only with each other, and so are the labels opening a line ((1), [Web]) and an item's address in the prose (4(2)
|
|
47
|
+
ja: 日本語の字に接する括弧だけを数え、丸括弧と角括弧は別々に比べます。Markdown のリンクは数えず、注の番号([1]、[^1])は注の番号どうしで、行の頭の番号や英字の札((1)、[Web])と、一行に続けた文書で文の後ろから始まる番号やその続きの番号(。(2)目標、まで(3)価額)、それを指す番号(4(2)で、第3条(a)(1)および(2))は、それどうしで、本文が引く注の番号(注(24)で)は注の番号の引用どうしで比べます。英語の中の括弧(f(x)、API(s))、式の括弧(賃金 × (1 - 時間 ÷ 月平均))、コード、鉤括弧で引いたものの中、行の頭のリンクで引いた外のページの題名(- [題名 (版)](https://…))、文書が自分の見出しを文献として引いた所(著者. 題名(略称)の動向. 誌名.)は数えません。
|
|
48
|
+
en: Only brackets touching Japanese text, parentheses and square brackets compared apart; Markdown links are not counted, and note markers ([1], [^1]) are compared only with each other, and so are the labels opening a line ((1), [Web]), the item numbers that open a sentence or continue their run in a document joined into one line (。(2)目標, まで(3)価額), and an item's address in the prose (4(2)で, 第3条(a)(1)および(2)), and a note's number cited in the prose (注(24)で) with the other cited note numbers. Brackets in English text (f(x)), brackets in a formula (賃金 × (1 - 時間 ÷ 月平均)), code, 「」 quotations, the title of an outside page quoted by a link at a line's head (- [Title (draft)](https://…)) and the document's own heading quoted in a line of other words (a self-citation) are not counted.
|
|
49
49
|
level_meaning:
|
|
50
50
|
ja: 少ないほうの書き方が {limit} 箇所あれば指摘
|
|
51
51
|
en: reported once the less common way appears {limit} {limit|time|times}
|