chaffjs 0.37.0 → 0.39.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 +22 -4
- package/README.md +21 -2
- package/checks/ai-tells.yaml +153 -0
- package/dist/acronym-expansion.d.ts +4 -0
- package/dist/acronym-expansion.d.ts.map +1 -0
- package/dist/acronym-expansion.js +46 -0
- package/dist/acronym-expansion.js.map +1 -0
- package/dist/acronym-expansions.d.ts.map +1 -1
- package/dist/acronym-expansions.js +8 -1
- package/dist/acronym-expansions.js.map +1 -1
- package/dist/ai-score/human-shares.d.ts.map +1 -1
- package/dist/ai-score/human-shares.js +85 -16
- package/dist/ai-score/human-shares.js.map +1 -1
- package/dist/ai-score/of-document.d.ts.map +1 -1
- package/dist/ai-score/of-document.js +4 -2
- package/dist/ai-score/of-document.js.map +1 -1
- package/dist/alternative-words.d.ts +8 -0
- package/dist/alternative-words.d.ts.map +1 -0
- package/dist/alternative-words.js +15 -0
- package/dist/alternative-words.js.map +1 -0
- package/dist/article-h-style.d.ts +7 -0
- package/dist/article-h-style.d.ts.map +1 -0
- package/dist/article-h-style.js +12 -0
- package/dist/article-h-style.js.map +1 -0
- package/dist/body-section.d.ts +3 -1
- package/dist/body-section.d.ts.map +1 -1
- package/dist/body-section.js +9 -2
- package/dist/body-section.js.map +1 -1
- package/dist/bracket-annotation.d.ts +6 -0
- package/dist/bracket-annotation.d.ts.map +1 -0
- package/dist/bracket-annotation.js +46 -0
- package/dist/bracket-annotation.js.map +1 -0
- package/dist/capitals-with-small.d.ts +5 -0
- package/dist/capitals-with-small.d.ts.map +1 -1
- package/dist/capitals-with-small.js +15 -0
- package/dist/capitals-with-small.js.map +1 -1
- package/dist/checks.d.ts +11 -0
- package/dist/checks.d.ts.map +1 -1
- package/dist/checks.js +27 -1
- package/dist/checks.js.map +1 -1
- package/dist/cli-args.js +1 -1
- package/dist/cli-args.js.map +1 -1
- package/dist/cli-text.d.ts.map +1 -1
- package/dist/cli-text.js +4 -0
- package/dist/cli-text.js.map +1 -1
- package/dist/commands/fix-plan.d.ts.map +1 -1
- package/dist/commands/fix-plan.js +64 -4
- package/dist/commands/fix-plan.js.map +1 -1
- package/dist/commands/test.d.ts.map +1 -1
- package/dist/commands/test.js +16 -2
- package/dist/commands/test.js.map +1 -1
- package/dist/compare/misopened-quotes.d.ts +7 -0
- package/dist/compare/misopened-quotes.d.ts.map +1 -0
- package/dist/compare/misopened-quotes.js +22 -0
- package/dist/compare/misopened-quotes.js.map +1 -0
- package/dist/compare/outcome.d.ts +2 -0
- package/dist/compare/outcome.d.ts.map +1 -1
- package/dist/compare/outcome.js +5 -2
- package/dist/compare/outcome.js.map +1 -1
- package/dist/compare/render.d.ts +1 -1
- package/dist/compare/render.d.ts.map +1 -1
- package/dist/compare/render.js +14 -4
- package/dist/compare/render.js.map +1 -1
- package/dist/compare/respelled.d.ts +19 -0
- package/dist/compare/respelled.d.ts.map +1 -0
- package/dist/compare/respelled.js +52 -0
- package/dist/compare/respelled.js.map +1 -0
- package/dist/compare/text-atoms.d.ts +1 -1
- package/dist/compare/text-atoms.d.ts.map +1 -1
- package/dist/compare/text-atoms.js +8 -2
- package/dist/compare/text-atoms.js.map +1 -1
- package/dist/compare/text.d.ts +2 -1
- package/dist/compare/text.d.ts.map +1 -1
- package/dist/compare/text.js +7 -2
- package/dist/compare/text.js.map +1 -1
- package/dist/contact-entry.d.ts +8 -0
- package/dist/contact-entry.d.ts.map +1 -0
- package/dist/contact-entry.js +16 -0
- package/dist/contact-entry.js.map +1 -0
- package/dist/contraction-words.d.ts +2 -0
- package/dist/contraction-words.d.ts.map +1 -0
- package/dist/contraction-words.js +11 -0
- package/dist/contraction-words.js.map +1 -0
- package/dist/derived/relative-dates.d.ts +4 -0
- package/dist/derived/relative-dates.d.ts.map +1 -1
- package/dist/derived/relative-dates.js +28 -1
- package/dist/derived/relative-dates.js.map +1 -1
- package/dist/detectors/abnf-grammar.d.ts +10 -0
- package/dist/detectors/abnf-grammar.d.ts.map +1 -0
- package/dist/detectors/abnf-grammar.js +65 -0
- package/dist/detectors/abnf-grammar.js.map +1 -0
- package/dist/detectors/acronym-context.d.ts +12 -0
- package/dist/detectors/acronym-context.d.ts.map +1 -1
- package/dist/detectors/acronym-context.js +44 -1
- package/dist/detectors/acronym-context.js.map +1 -1
- package/dist/detectors/acronym-expansion.d.ts.map +1 -1
- package/dist/detectors/acronym-expansion.js +52 -3
- package/dist/detectors/acronym-expansion.js.map +1 -1
- package/dist/detectors/acronym-gloss.d.ts +23 -0
- package/dist/detectors/acronym-gloss.d.ts.map +1 -0
- package/dist/detectors/acronym-gloss.js +143 -0
- package/dist/detectors/acronym-gloss.js.map +1 -0
- package/dist/detectors/acronym-known.d.ts +1 -1
- package/dist/detectors/acronym-known.d.ts.map +1 -1
- package/dist/detectors/acronym-known.js +11 -3
- package/dist/detectors/acronym-known.js.map +1 -1
- package/dist/detectors/acronym-name.d.ts +9 -2
- package/dist/detectors/acronym-name.d.ts.map +1 -1
- package/dist/detectors/acronym-name.js +13 -3
- package/dist/detectors/acronym-name.js.map +1 -1
- package/dist/detectors/acronym-series.d.ts +7 -0
- package/dist/detectors/acronym-series.d.ts.map +1 -0
- package/dist/detectors/acronym-series.js +25 -0
- package/dist/detectors/acronym-series.js.map +1 -0
- package/dist/detectors/adversative-ga.d.ts +4 -0
- package/dist/detectors/adversative-ga.d.ts.map +1 -0
- package/dist/detectors/adversative-ga.js +19 -0
- package/dist/detectors/adversative-ga.js.map +1 -0
- package/dist/detectors/agreement-slip.d.ts +3 -1
- package/dist/detectors/agreement-slip.d.ts.map +1 -1
- package/dist/detectors/agreement-slip.js +31 -3
- package/dist/detectors/agreement-slip.js.map +1 -1
- package/dist/detectors/ai-phrasing.d.ts +5 -7
- package/dist/detectors/ai-phrasing.d.ts.map +1 -1
- package/dist/detectors/ai-phrasing.js +22 -18
- package/dist/detectors/ai-phrasing.js.map +1 -1
- package/dist/detectors/ai-structure.d.ts +1 -0
- package/dist/detectors/ai-structure.d.ts.map +1 -1
- package/dist/detectors/ai-structure.js +15 -4
- package/dist/detectors/ai-structure.js.map +1 -1
- package/dist/detectors/alnum-number.d.ts +5 -0
- package/dist/detectors/alnum-number.d.ts.map +1 -0
- package/dist/detectors/alnum-number.js +15 -0
- package/dist/detectors/alnum-number.js.map +1 -0
- package/dist/detectors/asker-voice.d.ts +6 -0
- package/dist/detectors/asker-voice.d.ts.map +1 -0
- package/dist/detectors/asker-voice.js +18 -0
- package/dist/detectors/asker-voice.js.map +1 -0
- package/dist/detectors/bare-comparative.d.ts +12 -0
- package/dist/detectors/bare-comparative.d.ts.map +1 -1
- package/dist/detectors/bare-comparative.js +77 -12
- package/dist/detectors/bare-comparative.js.map +1 -1
- package/dist/detectors/blank-structure.d.ts.map +1 -1
- package/dist/detectors/blank-structure.js +4 -0
- package/dist/detectors/blank-structure.js.map +1 -1
- package/dist/detectors/bold-emphasis-form.d.ts +8 -0
- package/dist/detectors/bold-emphasis-form.d.ts.map +1 -0
- package/dist/detectors/bold-emphasis-form.js +40 -0
- package/dist/detectors/bold-emphasis-form.js.map +1 -0
- package/dist/detectors/bold-emphasis.d.ts +5 -0
- package/dist/detectors/bold-emphasis.d.ts.map +1 -0
- package/dist/detectors/bold-emphasis.js +40 -0
- package/dist/detectors/bold-emphasis.js.map +1 -0
- package/dist/detectors/bold-label.d.ts +2 -0
- package/dist/detectors/bold-label.d.ts.map +1 -1
- package/dist/detectors/bold-label.js +2 -0
- package/dist/detectors/bold-label.js.map +1 -1
- package/dist/detectors/broken-link.d.ts.map +1 -1
- package/dist/detectors/broken-link.js +13 -4
- package/dist/detectors/broken-link.js.map +1 -1
- package/dist/detectors/caps-caption.d.ts +5 -0
- package/dist/detectors/caps-caption.d.ts.map +1 -1
- package/dist/detectors/caps-caption.js +20 -2
- package/dist/detectors/caps-caption.js.map +1 -1
- package/dist/detectors/case-citation.d.ts +15 -0
- package/dist/detectors/case-citation.d.ts.map +1 -0
- package/dist/detectors/case-citation.js +50 -0
- package/dist/detectors/case-citation.js.map +1 -0
- package/dist/detectors/char-shape.d.ts.map +1 -1
- package/dist/detectors/char-shape.js +179 -28
- package/dist/detectors/char-shape.js.map +1 -1
- package/dist/detectors/chat-log-line.d.ts +8 -0
- package/dist/detectors/chat-log-line.d.ts.map +1 -0
- package/dist/detectors/chat-log-line.js +13 -0
- package/dist/detectors/chat-log-line.js.map +1 -0
- package/dist/detectors/citation-entry.d.ts +4 -0
- package/dist/detectors/citation-entry.d.ts.map +1 -1
- package/dist/detectors/citation-entry.js +17 -5
- package/dist/detectors/citation-entry.js.map +1 -1
- package/dist/detectors/citation-marks.d.ts +8 -0
- package/dist/detectors/citation-marks.d.ts.map +1 -1
- package/dist/detectors/citation-marks.js +74 -13
- package/dist/detectors/citation-marks.js.map +1 -1
- package/dist/detectors/citation-note.d.ts +18 -0
- package/dist/detectors/citation-note.d.ts.map +1 -0
- package/dist/detectors/citation-note.js +60 -0
- package/dist/detectors/citation-note.js.map +1 -0
- package/dist/detectors/citation-string.d.ts +3 -0
- package/dist/detectors/citation-string.d.ts.map +1 -0
- package/dist/detectors/citation-string.js +34 -0
- package/dist/detectors/citation-string.js.map +1 -0
- package/dist/detectors/citation-style.d.ts.map +1 -1
- package/dist/detectors/citation-style.js +3 -1
- package/dist/detectors/citation-style.js.map +1 -1
- package/dist/detectors/clause-shape.d.ts.map +1 -1
- package/dist/detectors/clause-shape.js +24 -2
- package/dist/detectors/clause-shape.js.map +1 -1
- package/dist/detectors/closing-cliche.d.ts +18 -0
- package/dist/detectors/closing-cliche.d.ts.map +1 -0
- package/dist/detectors/closing-cliche.js +58 -0
- package/dist/detectors/closing-cliche.js.map +1 -0
- package/dist/detectors/closing-exhortation.d.ts +18 -0
- package/dist/detectors/closing-exhortation.d.ts.map +1 -0
- package/dist/detectors/closing-exhortation.js +55 -0
- package/dist/detectors/closing-exhortation.js.map +1 -0
- package/dist/detectors/cold-open.d.ts +25 -0
- package/dist/detectors/cold-open.d.ts.map +1 -0
- package/dist/detectors/cold-open.js +121 -0
- package/dist/detectors/cold-open.js.map +1 -0
- package/dist/detectors/comparative-context.d.ts +21 -0
- package/dist/detectors/comparative-context.d.ts.map +1 -0
- package/dist/detectors/comparative-context.js +57 -0
- package/dist/detectors/comparative-context.js.map +1 -0
- package/dist/detectors/concrete-evidence-density.d.ts +3 -0
- package/dist/detectors/concrete-evidence-density.d.ts.map +1 -0
- package/dist/detectors/concrete-evidence-density.js +75 -0
- package/dist/detectors/concrete-evidence-density.js.map +1 -0
- package/dist/detectors/concrete-evidence.d.ts +14 -0
- package/dist/detectors/concrete-evidence.d.ts.map +1 -1
- package/dist/detectors/concrete-evidence.js +24 -0
- package/dist/detectors/concrete-evidence.js.map +1 -1
- package/dist/detectors/contrast-frame.d.ts +5 -0
- package/dist/detectors/contrast-frame.d.ts.map +1 -1
- package/dist/detectors/contrast-frame.js +53 -6
- package/dist/detectors/contrast-frame.js.map +1 -1
- package/dist/detectors/coordinate-adjective.d.ts +16 -0
- package/dist/detectors/coordinate-adjective.d.ts.map +1 -0
- package/dist/detectors/coordinate-adjective.js +36 -0
- package/dist/detectors/coordinate-adjective.js.map +1 -0
- package/dist/detectors/date-run.d.ts +15 -0
- package/dist/detectors/date-run.d.ts.map +1 -0
- package/dist/detectors/date-run.js +35 -0
- package/dist/detectors/date-run.js.map +1 -0
- package/dist/detectors/date-year.d.ts +5 -2
- package/dist/detectors/date-year.d.ts.map +1 -1
- package/dist/detectors/date-year.js +27 -11
- package/dist/detectors/date-year.js.map +1 -1
- package/dist/detectors/dateline.d.ts +16 -0
- package/dist/detectors/dateline.d.ts.map +1 -0
- package/dist/detectors/dateline.js +34 -0
- package/dist/detectors/dateline.js.map +1 -0
- package/dist/detectors/defined-term-form.d.ts +5 -2
- package/dist/detectors/defined-term-form.d.ts.map +1 -1
- package/dist/detectors/defined-term-form.js +18 -7
- package/dist/detectors/defined-term-form.js.map +1 -1
- package/dist/detectors/definition-scope-unit.d.ts +9 -0
- package/dist/detectors/definition-scope-unit.d.ts.map +1 -0
- package/dist/detectors/definition-scope-unit.js +67 -0
- package/dist/detectors/definition-scope-unit.js.map +1 -0
- package/dist/detectors/definition-use.d.ts.map +1 -1
- package/dist/detectors/definition-use.js +11 -3
- package/dist/detectors/definition-use.js.map +1 -1
- package/dist/detectors/division-label-separator.d.ts +8 -0
- package/dist/detectors/division-label-separator.d.ts.map +1 -0
- package/dist/detectors/division-label-separator.js +22 -0
- package/dist/detectors/division-label-separator.js.map +1 -0
- package/dist/detectors/document-shape.d.ts +6 -0
- package/dist/detectors/document-shape.d.ts.map +1 -1
- package/dist/detectors/document-shape.js +22 -1
- package/dist/detectors/document-shape.js.map +1 -1
- package/dist/detectors/doubled-punctuation.d.ts.map +1 -1
- package/dist/detectors/doubled-punctuation.js +16 -1
- package/dist/detectors/doubled-punctuation.js.map +1 -1
- package/dist/detectors/doubled-word.d.ts.map +1 -1
- package/dist/detectors/doubled-word.js +15 -2
- package/dist/detectors/doubled-word.js.map +1 -1
- package/dist/detectors/duplicate-heading.d.ts +4 -2
- package/dist/detectors/duplicate-heading.d.ts.map +1 -1
- package/dist/detectors/duplicate-heading.js +35 -11
- package/dist/detectors/duplicate-heading.js.map +1 -1
- package/dist/detectors/email-frame-words.d.ts +10 -0
- package/dist/detectors/email-frame-words.d.ts.map +1 -0
- package/dist/detectors/email-frame-words.js +34 -0
- package/dist/detectors/email-frame-words.js.map +1 -0
- package/dist/detectors/email-letter.d.ts +6 -7
- package/dist/detectors/email-letter.d.ts.map +1 -1
- package/dist/detectors/email-letter.js +24 -24
- package/dist/detectors/email-letter.js.map +1 -1
- package/dist/detectors/empty-intensifier.d.ts +11 -0
- package/dist/detectors/empty-intensifier.d.ts.map +1 -0
- package/dist/detectors/empty-intensifier.js +28 -0
- package/dist/detectors/empty-intensifier.js.map +1 -0
- package/dist/detectors/en-shape.d.ts.map +1 -1
- package/dist/detectors/en-shape.js +9 -5
- package/dist/detectors/en-shape.js.map +1 -1
- package/dist/detectors/example-baseline.d.ts +7 -0
- package/dist/detectors/example-baseline.d.ts.map +1 -0
- package/dist/detectors/example-baseline.js +21 -0
- package/dist/detectors/example-baseline.js.map +1 -0
- package/dist/detectors/figure-number-list.d.ts +24 -0
- package/dist/detectors/figure-number-list.d.ts.map +1 -0
- package/dist/detectors/figure-number-list.js +78 -0
- package/dist/detectors/figure-number-list.js.map +1 -0
- package/dist/detectors/figure-order.d.ts +10 -0
- package/dist/detectors/figure-order.d.ts.map +1 -1
- package/dist/detectors/figure-order.js +36 -2
- package/dist/detectors/figure-order.js.map +1 -1
- package/dist/detectors/fullwidth-alnum.d.ts.map +1 -1
- package/dist/detectors/fullwidth-alnum.js +45 -8
- package/dist/detectors/fullwidth-alnum.js.map +1 -1
- package/dist/detectors/grade-ladder.d.ts +3 -0
- package/dist/detectors/grade-ladder.d.ts.map +1 -0
- package/dist/detectors/grade-ladder.js +19 -0
- package/dist/detectors/grade-ladder.js.map +1 -0
- package/dist/detectors/gram-furniture.d.ts +23 -1
- package/dist/detectors/gram-furniture.d.ts.map +1 -1
- package/dist/detectors/gram-furniture.js +79 -0
- package/dist/detectors/gram-furniture.js.map +1 -1
- package/dist/detectors/gram-openers.d.ts +16 -0
- package/dist/detectors/gram-openers.d.ts.map +1 -1
- package/dist/detectors/gram-openers.js +52 -0
- package/dist/detectors/gram-openers.js.map +1 -1
- package/dist/detectors/gram-predicate.d.ts.map +1 -1
- package/dist/detectors/gram-predicate.js +40 -7
- package/dist/detectors/gram-predicate.js.map +1 -1
- package/dist/detectors/gram-repetition.d.ts +3 -0
- package/dist/detectors/gram-repetition.d.ts.map +1 -0
- package/dist/detectors/gram-repetition.js +158 -0
- package/dist/detectors/gram-repetition.js.map +1 -0
- package/dist/detectors/heading-case.d.ts +7 -0
- package/dist/detectors/heading-case.d.ts.map +1 -1
- package/dist/detectors/heading-case.js +10 -2
- package/dist/detectors/heading-case.js.map +1 -1
- package/dist/detectors/heading-end-mark.d.ts.map +1 -1
- package/dist/detectors/heading-end-mark.js +9 -3
- package/dist/detectors/heading-end-mark.js.map +1 -1
- package/dist/detectors/heading-level-skip.d.ts +6 -0
- package/dist/detectors/heading-level-skip.d.ts.map +1 -1
- package/dist/detectors/heading-level-skip.js +24 -1
- package/dist/detectors/heading-level-skip.js.map +1 -1
- package/dist/detectors/heading-numbering.d.ts.map +1 -1
- package/dist/detectors/heading-numbering.js +4 -3
- package/dist/detectors/heading-numbering.js.map +1 -1
- package/dist/detectors/humble-for-others.d.ts +4 -0
- package/dist/detectors/humble-for-others.d.ts.map +1 -0
- package/dist/detectors/humble-for-others.js +53 -0
- package/dist/detectors/humble-for-others.js.map +1 -0
- package/dist/detectors/hyphen-copied-text.d.ts +3 -0
- package/dist/detectors/hyphen-copied-text.d.ts.map +1 -0
- package/dist/detectors/hyphen-copied-text.js +49 -0
- package/dist/detectors/hyphen-copied-text.js.map +1 -0
- package/dist/detectors/kanji-name-edge.d.ts +46 -0
- package/dist/detectors/kanji-name-edge.d.ts.map +1 -0
- package/dist/detectors/kanji-name-edge.js +94 -0
- package/dist/detectors/kanji-name-edge.js.map +1 -0
- package/dist/detectors/kanji-run-pieces.d.ts +30 -0
- package/dist/detectors/kanji-run-pieces.d.ts.map +1 -0
- package/dist/detectors/kanji-run-pieces.js +58 -0
- package/dist/detectors/kanji-run-pieces.js.map +1 -0
- package/dist/detectors/kutoten-consistency.d.ts.map +1 -1
- package/dist/detectors/kutoten-consistency.js +31 -6
- package/dist/detectors/kutoten-consistency.js.map +1 -1
- package/dist/detectors/lead-in-dash.d.ts +12 -0
- package/dist/detectors/lead-in-dash.d.ts.map +1 -0
- package/dist/detectors/lead-in-dash.js +50 -0
- package/dist/detectors/lead-in-dash.js.map +1 -0
- package/dist/detectors/letter-joined-name.d.ts +2 -0
- package/dist/detectors/letter-joined-name.d.ts.map +1 -1
- package/dist/detectors/letter-joined-name.js +8 -0
- package/dist/detectors/letter-joined-name.js.map +1 -1
- package/dist/detectors/lexicon.d.ts.map +1 -1
- package/dist/detectors/lexicon.js +19 -5
- package/dist/detectors/lexicon.js.map +1 -1
- package/dist/detectors/licence-notice.d.ts +9 -0
- package/dist/detectors/licence-notice.d.ts.map +1 -0
- package/dist/detectors/licence-notice.js +23 -0
- package/dist/detectors/licence-notice.js.map +1 -0
- package/dist/detectors/link-label.d.ts +3 -0
- package/dist/detectors/link-label.d.ts.map +1 -0
- package/dist/detectors/link-label.js +15 -0
- package/dist/detectors/link-label.js.map +1 -0
- package/dist/detectors/link-shape.d.ts +4 -1
- package/dist/detectors/link-shape.d.ts.map +1 -1
- package/dist/detectors/link-shape.js +7 -3
- package/dist/detectors/link-shape.js.map +1 -1
- package/dist/detectors/list-comma-aside.d.ts +14 -0
- package/dist/detectors/list-comma-aside.d.ts.map +1 -0
- package/dist/detectors/list-comma-aside.js +49 -0
- package/dist/detectors/list-comma-aside.js.map +1 -0
- package/dist/detectors/list-item.d.ts +14 -0
- package/dist/detectors/list-item.d.ts.map +1 -1
- package/dist/detectors/list-item.js +30 -1
- package/dist/detectors/list-item.js.map +1 -1
- package/dist/detectors/list-items.d.ts +1 -1
- package/dist/detectors/list-items.d.ts.map +1 -1
- package/dist/detectors/list-items.js +2 -0
- package/dist/detectors/list-items.js.map +1 -1
- package/dist/detectors/list-joint.d.ts +18 -0
- package/dist/detectors/list-joint.d.ts.map +1 -0
- package/dist/detectors/list-joint.js +42 -0
- package/dist/detectors/list-joint.js.map +1 -0
- package/dist/detectors/list-layout.d.ts +14 -0
- package/dist/detectors/list-layout.d.ts.map +1 -0
- package/dist/detectors/list-layout.js +29 -0
- package/dist/detectors/list-layout.js.map +1 -0
- package/dist/detectors/list-lead-in.d.ts +6 -1
- package/dist/detectors/list-lead-in.d.ts.map +1 -1
- package/dist/detectors/list-lead-in.js +69 -4
- package/dist/detectors/list-lead-in.js.map +1 -1
- package/dist/detectors/list-parallel.d.ts +6 -0
- package/dist/detectors/list-parallel.d.ts.map +1 -1
- package/dist/detectors/list-parallel.js +155 -21
- package/dist/detectors/list-parallel.js.map +1 -1
- package/dist/detectors/list-run.d.ts +13 -0
- package/dist/detectors/list-run.d.ts.map +1 -0
- package/dist/detectors/list-run.js +80 -0
- package/dist/detectors/list-run.js.map +1 -0
- package/dist/detectors/list-sentence.d.ts +13 -0
- package/dist/detectors/list-sentence.d.ts.map +1 -1
- package/dist/detectors/list-sentence.js +1 -0
- package/dist/detectors/list-sentence.js.map +1 -1
- package/dist/detectors/mark-shape.d.ts +4 -1
- package/dist/detectors/mark-shape.d.ts.map +1 -1
- package/dist/detectors/mark-shape.js +28 -7
- package/dist/detectors/mark-shape.js.map +1 -1
- package/dist/detectors/markdown-slip.d.ts.map +1 -1
- package/dist/detectors/markdown-slip.js +24 -10
- package/dist/detectors/markdown-slip.js.map +1 -1
- package/dist/detectors/missing-final-period.d.ts +2 -1
- package/dist/detectors/missing-final-period.d.ts.map +1 -1
- package/dist/detectors/missing-final-period.js +28 -3
- package/dist/detectors/missing-final-period.js.map +1 -1
- package/dist/detectors/name-list-sentence.d.ts +3 -0
- package/dist/detectors/name-list-sentence.d.ts.map +1 -0
- package/dist/detectors/name-list-sentence.js +26 -0
- package/dist/detectors/name-list-sentence.js.map +1 -0
- package/dist/detectors/name-run.d.ts +2 -0
- package/dist/detectors/name-run.d.ts.map +1 -1
- package/dist/detectors/name-run.js +1 -1
- package/dist/detectors/name-run.js.map +1 -1
- package/dist/detectors/name-variant-reference-list.d.ts +14 -0
- package/dist/detectors/name-variant-reference-list.d.ts.map +1 -0
- package/dist/detectors/name-variant-reference-list.js +21 -0
- package/dist/detectors/name-variant-reference-list.js.map +1 -0
- package/dist/detectors/name-variant-two-things.d.ts +18 -0
- package/dist/detectors/name-variant-two-things.d.ts.map +1 -0
- package/dist/detectors/name-variant-two-things.js +84 -0
- package/dist/detectors/name-variant-two-things.js.map +1 -0
- package/dist/detectors/name-variant.d.ts.map +1 -1
- package/dist/detectors/name-variant.js +18 -18
- package/dist/detectors/name-variant.js.map +1 -1
- package/dist/detectors/next-word.d.ts +4 -1
- package/dist/detectors/next-word.d.ts.map +1 -1
- package/dist/detectors/next-word.js +26 -9
- package/dist/detectors/next-word.js.map +1 -1
- package/dist/detectors/number-style.d.ts.map +1 -1
- package/dist/detectors/number-style.js +16 -1
- package/dist/detectors/number-style.js.map +1 -1
- package/dist/detectors/numbering-readings.d.ts +8 -0
- package/dist/detectors/numbering-readings.d.ts.map +1 -0
- package/dist/detectors/numbering-readings.js +17 -0
- package/dist/detectors/numbering-readings.js.map +1 -0
- package/dist/detectors/numeral-opener.d.ts +5 -2
- package/dist/detectors/numeral-opener.d.ts.map +1 -1
- package/dist/detectors/numeral-opener.js +30 -4
- package/dist/detectors/numeral-opener.js.map +1 -1
- package/dist/detectors/open-end-names.d.ts.map +1 -1
- package/dist/detectors/open-end-names.js +23 -2
- package/dist/detectors/open-end-names.js.map +1 -1
- package/dist/detectors/open-end-scope.d.ts +2 -0
- package/dist/detectors/open-end-scope.d.ts.map +1 -1
- package/dist/detectors/open-end-scope.js +22 -1
- package/dist/detectors/open-end-scope.js.map +1 -1
- package/dist/detectors/opener-phrase.d.ts +6 -0
- package/dist/detectors/opener-phrase.d.ts.map +1 -0
- package/dist/detectors/opener-phrase.js +15 -0
- package/dist/detectors/opener-phrase.js.map +1 -0
- package/dist/detectors/opener-tail.d.ts +7 -0
- package/dist/detectors/opener-tail.d.ts.map +1 -0
- package/dist/detectors/opener-tail.js +18 -0
- package/dist/detectors/opener-tail.js.map +1 -0
- package/dist/detectors/organisation-run.d.ts +8 -1
- package/dist/detectors/organisation-run.d.ts.map +1 -1
- package/dist/detectors/organisation-run.js +29 -4
- package/dist/detectors/organisation-run.js.map +1 -1
- package/dist/detectors/orthographic-variant-open.d.ts +35 -0
- package/dist/detectors/orthographic-variant-open.d.ts.map +1 -0
- package/dist/detectors/orthographic-variant-open.js +79 -0
- package/dist/detectors/orthographic-variant-open.js.map +1 -0
- package/dist/detectors/orthographic-variant.d.ts.map +1 -1
- package/dist/detectors/orthographic-variant.js +85 -118
- package/dist/detectors/orthographic-variant.js.map +1 -1
- package/dist/detectors/orthography.d.ts.map +1 -1
- package/dist/detectors/orthography.js +5 -0
- package/dist/detectors/orthography.js.map +1 -1
- package/dist/detectors/over-general-claim.d.ts +11 -0
- package/dist/detectors/over-general-claim.d.ts.map +1 -0
- package/dist/detectors/over-general-claim.js +115 -0
- package/dist/detectors/over-general-claim.js.map +1 -0
- package/dist/detectors/oxford-comma.d.ts.map +1 -1
- package/dist/detectors/oxford-comma.js +80 -27
- package/dist/detectors/oxford-comma.js.map +1 -1
- package/dist/detectors/paragraph-run.d.ts +2 -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/particle-run-names.d.ts +8 -0
- package/dist/detectors/particle-run-names.d.ts.map +1 -0
- package/dist/detectors/particle-run-names.js +17 -0
- package/dist/detectors/particle-run-names.js.map +1 -0
- package/dist/detectors/phrase-match.d.ts +6 -1
- package/dist/detectors/phrase-match.d.ts.map +1 -1
- package/dist/detectors/phrase-match.js +5 -0
- package/dist/detectors/phrase-match.js.map +1 -1
- package/dist/detectors/placeholder-text.d.ts +1 -1
- package/dist/detectors/placeholder-text.d.ts.map +1 -1
- package/dist/detectors/placeholder-text.js +57 -1
- package/dist/detectors/placeholder-text.js.map +1 -1
- package/dist/detectors/proper-noun-density.d.ts +13 -0
- package/dist/detectors/proper-noun-density.d.ts.map +1 -0
- package/dist/detectors/proper-noun-density.js +97 -0
- package/dist/detectors/proper-noun-density.js.map +1 -0
- package/dist/detectors/q-fragment-answer.d.ts +15 -0
- package/dist/detectors/q-fragment-answer.d.ts.map +1 -0
- package/dist/detectors/q-fragment-answer.js +51 -0
- package/dist/detectors/q-fragment-answer.js.map +1 -0
- package/dist/detectors/quotation-paragraph.d.ts +10 -0
- package/dist/detectors/quotation-paragraph.d.ts.map +1 -0
- package/dist/detectors/quotation-paragraph.js +22 -0
- package/dist/detectors/quotation-paragraph.js.map +1 -0
- package/dist/detectors/quoted-excerpt.d.ts +13 -0
- package/dist/detectors/quoted-excerpt.d.ts.map +1 -0
- package/dist/detectors/quoted-excerpt.js +53 -0
- package/dist/detectors/quoted-excerpt.js.map +1 -0
- package/dist/detectors/quoted-sentences.d.ts +6 -0
- package/dist/detectors/quoted-sentences.d.ts.map +1 -0
- package/dist/detectors/quoted-sentences.js +61 -0
- package/dist/detectors/quoted-sentences.js.map +1 -0
- package/dist/detectors/quoted-wording.d.ts +9 -0
- package/dist/detectors/quoted-wording.d.ts.map +1 -0
- package/dist/detectors/quoted-wording.js +18 -0
- package/dist/detectors/quoted-wording.js.map +1 -0
- package/dist/detectors/reference-entry.d.ts +7 -0
- package/dist/detectors/reference-entry.d.ts.map +1 -0
- package/dist/detectors/reference-entry.js +35 -0
- package/dist/detectors/reference-entry.js.map +1 -0
- package/dist/detectors/register-neutral-shape.d.ts +7 -0
- package/dist/detectors/register-neutral-shape.d.ts.map +1 -0
- package/dist/detectors/register-neutral-shape.js +54 -0
- package/dist/detectors/register-neutral-shape.js.map +1 -0
- package/dist/detectors/register-set-apart.d.ts +24 -0
- package/dist/detectors/register-set-apart.d.ts.map +1 -0
- package/dist/detectors/register-set-apart.js +102 -0
- package/dist/detectors/register-set-apart.js.map +1 -0
- package/dist/detectors/register-voice.d.ts +14 -0
- package/dist/detectors/register-voice.d.ts.map +1 -0
- package/dist/detectors/register-voice.js +47 -0
- package/dist/detectors/register-voice.js.map +1 -0
- package/dist/detectors/register.d.ts +5 -0
- package/dist/detectors/register.d.ts.map +1 -1
- package/dist/detectors/register.js +13 -0
- package/dist/detectors/register.js.map +1 -1
- package/dist/detectors/registry/bold-emphasis.d.ts +3 -0
- package/dist/detectors/registry/bold-emphasis.d.ts.map +1 -0
- package/dist/detectors/registry/bold-emphasis.js +3 -0
- package/dist/detectors/registry/bold-emphasis.js.map +1 -0
- package/dist/detectors/registry/closing-cliche.d.ts +3 -0
- package/dist/detectors/registry/closing-cliche.d.ts.map +1 -0
- package/dist/detectors/registry/closing-cliche.js +3 -0
- package/dist/detectors/registry/closing-cliche.js.map +1 -0
- package/dist/detectors/registry/closing-exhortation.d.ts +3 -0
- package/dist/detectors/registry/closing-exhortation.d.ts.map +1 -0
- package/dist/detectors/registry/closing-exhortation.js +3 -0
- package/dist/detectors/registry/closing-exhortation.js.map +1 -0
- package/dist/detectors/registry/cold-open.d.ts +3 -0
- package/dist/detectors/registry/cold-open.d.ts.map +1 -0
- package/dist/detectors/registry/cold-open.js +3 -0
- package/dist/detectors/registry/cold-open.js.map +1 -0
- package/dist/detectors/registry/colon-lead-in.js +1 -1
- package/dist/detectors/registry/colon-lead-in.js.map +1 -1
- package/dist/detectors/registry/concrete-evidence.js +1 -1
- package/dist/detectors/registry/concrete-evidence.js.map +1 -1
- package/dist/detectors/registry/empty-intensifier.d.ts +3 -0
- package/dist/detectors/registry/empty-intensifier.d.ts.map +1 -0
- package/dist/detectors/registry/empty-intensifier.js +3 -0
- package/dist/detectors/registry/empty-intensifier.js.map +1 -0
- package/dist/detectors/registry/humble-for-others.d.ts +3 -0
- package/dist/detectors/registry/humble-for-others.d.ts.map +1 -0
- package/dist/detectors/registry/humble-for-others.js +3 -0
- package/dist/detectors/registry/humble-for-others.js.map +1 -0
- package/dist/detectors/registry/ngram-repetition.js +1 -1
- package/dist/detectors/registry/ngram-repetition.js.map +1 -1
- package/dist/detectors/registry/over-general-claim.d.ts +3 -0
- package/dist/detectors/registry/over-general-claim.d.ts.map +1 -0
- package/dist/detectors/registry/over-general-claim.js +3 -0
- package/dist/detectors/registry/over-general-claim.js.map +1 -0
- package/dist/detectors/registry/proper-noun-density.js +1 -1
- package/dist/detectors/registry/proper-noun-density.js.map +1 -1
- package/dist/detectors/registry/q-fragment-answer.d.ts +3 -0
- package/dist/detectors/registry/q-fragment-answer.d.ts.map +1 -0
- package/dist/detectors/registry/q-fragment-answer.js +3 -0
- package/dist/detectors/registry/q-fragment-answer.js.map +1 -0
- package/dist/detectors/registry/topic-predicate-distance.js +1 -1
- package/dist/detectors/registry/topic-predicate-distance.js.map +1 -1
- package/dist/detectors/registry/unprompted-denial.d.ts +3 -0
- package/dist/detectors/registry/unprompted-denial.d.ts.map +1 -0
- package/dist/detectors/registry/unprompted-denial.js +3 -0
- package/dist/detectors/registry/unprompted-denial.js.map +1 -0
- package/dist/detectors/registry/unused-definition.d.ts.map +1 -1
- package/dist/detectors/registry/unused-definition.js +2 -2
- package/dist/detectors/registry/unused-definition.js.map +1 -1
- package/dist/detectors/registry/weasel-word.d.ts +3 -0
- package/dist/detectors/registry/weasel-word.d.ts.map +1 -0
- package/dist/detectors/registry/weasel-word.js +3 -0
- package/dist/detectors/registry/weasel-word.js.map +1 -0
- package/dist/detectors/relative-dates.d.ts.map +1 -1
- package/dist/detectors/relative-dates.js +1 -0
- package/dist/detectors/relative-dates.js.map +1 -1
- package/dist/detectors/relative-pronoun-mix.d.ts.map +1 -1
- package/dist/detectors/relative-pronoun-mix.js +9 -2
- package/dist/detectors/relative-pronoun-mix.js.map +1 -1
- package/dist/detectors/reported-speech.d.ts +14 -0
- package/dist/detectors/reported-speech.d.ts.map +1 -0
- package/dist/detectors/reported-speech.js +36 -0
- package/dist/detectors/reported-speech.js.map +1 -0
- package/dist/detectors/request-owner.d.ts +7 -1
- package/dist/detectors/request-owner.d.ts.map +1 -1
- package/dist/detectors/request-owner.js +45 -2
- package/dist/detectors/request-owner.js.map +1 -1
- package/dist/detectors/revision-date.d.ts +30 -0
- package/dist/detectors/revision-date.d.ts.map +1 -0
- package/dist/detectors/revision-date.js +55 -0
- package/dist/detectors/revision-date.js.map +1 -0
- package/dist/detectors/sentence-counts.d.ts +7 -2
- package/dist/detectors/sentence-counts.d.ts.map +1 -1
- package/dist/detectors/sentence-counts.js +31 -7
- package/dist/detectors/sentence-counts.js.map +1 -1
- package/dist/detectors/sentence-ending.d.ts +13 -1
- package/dist/detectors/sentence-ending.d.ts.map +1 -1
- package/dist/detectors/sentence-ending.js +55 -10
- 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 +40 -4
- package/dist/detectors/sentence-length.js.map +1 -1
- package/dist/detectors/sentence-load.d.ts +8 -4
- package/dist/detectors/sentence-load.d.ts.map +1 -1
- package/dist/detectors/sentence-load.js +9 -7
- package/dist/detectors/sentence-load.js.map +1 -1
- package/dist/detectors/sentence-parts.d.ts +9 -0
- package/dist/detectors/sentence-parts.d.ts.map +1 -0
- package/dist/detectors/sentence-parts.js +62 -0
- package/dist/detectors/sentence-parts.js.map +1 -0
- package/dist/detectors/sentence-title.d.ts +19 -0
- package/dist/detectors/sentence-title.d.ts.map +1 -0
- package/dist/detectors/sentence-title.js +53 -0
- package/dist/detectors/sentence-title.js.map +1 -0
- package/dist/detectors/signals.d.ts +4 -2
- package/dist/detectors/signals.d.ts.map +1 -1
- package/dist/detectors/signals.js +30 -175
- package/dist/detectors/signals.js.map +1 -1
- package/dist/detectors/spreadsheet-grid.d.ts +3 -0
- package/dist/detectors/spreadsheet-grid.d.ts.map +1 -0
- package/dist/detectors/spreadsheet-grid.js +16 -0
- package/dist/detectors/spreadsheet-grid.js.map +1 -0
- package/dist/detectors/structure-tree.d.ts.map +1 -1
- package/dist/detectors/structure-tree.js +13 -18
- package/dist/detectors/structure-tree.js.map +1 -1
- package/dist/detectors/structure.d.ts +9 -1
- package/dist/detectors/structure.d.ts.map +1 -1
- package/dist/detectors/structure.js +32 -13
- package/dist/detectors/structure.js.map +1 -1
- package/dist/detectors/superlative-clause.d.ts.map +1 -1
- package/dist/detectors/superlative-clause.js +19 -2
- package/dist/detectors/superlative-clause.js.map +1 -1
- package/dist/detectors/superlative-context.d.ts +35 -0
- package/dist/detectors/superlative-context.d.ts.map +1 -0
- package/dist/detectors/superlative-context.js +71 -0
- package/dist/detectors/superlative-context.js.map +1 -0
- package/dist/detectors/superlative-phrase.d.ts +14 -0
- package/dist/detectors/superlative-phrase.d.ts.map +1 -0
- package/dist/detectors/superlative-phrase.js +52 -0
- package/dist/detectors/superlative-phrase.js.map +1 -0
- package/dist/detectors/superlative-scope.d.ts +7 -2
- package/dist/detectors/superlative-scope.d.ts.map +1 -1
- package/dist/detectors/superlative-scope.js +35 -7
- package/dist/detectors/superlative-scope.js.map +1 -1
- package/dist/detectors/team.d.ts +0 -1
- package/dist/detectors/team.d.ts.map +1 -1
- package/dist/detectors/team.js +0 -46
- package/dist/detectors/team.js.map +1 -1
- package/dist/detectors/titled-code-citation.d.ts +12 -0
- package/dist/detectors/titled-code-citation.d.ts.map +1 -0
- package/dist/detectors/titled-code-citation.js +11 -0
- package/dist/detectors/titled-code-citation.js.map +1 -0
- package/dist/detectors/titled-run.d.ts +10 -1
- package/dist/detectors/titled-run.d.ts.map +1 -1
- package/dist/detectors/titled-run.js +21 -4
- package/dist/detectors/titled-run.js.map +1 -1
- package/dist/detectors/token-shape.d.ts.map +1 -1
- package/dist/detectors/token-shape.js +36 -12
- package/dist/detectors/token-shape.js.map +1 -1
- package/dist/detectors/topic-predicate-distance.d.ts +4 -0
- package/dist/detectors/topic-predicate-distance.d.ts.map +1 -0
- package/dist/detectors/topic-predicate-distance.js +22 -0
- package/dist/detectors/topic-predicate-distance.js.map +1 -0
- package/dist/detectors/typewritten.d.ts +3 -0
- package/dist/detectors/typewritten.d.ts.map +1 -0
- package/dist/detectors/typewritten.js +6 -0
- package/dist/detectors/typewritten.js.map +1 -0
- package/dist/detectors/undefined-term.d.ts +7 -1
- package/dist/detectors/undefined-term.d.ts.map +1 -1
- package/dist/detectors/undefined-term.js +34 -11
- package/dist/detectors/undefined-term.js.map +1 -1
- package/dist/detectors/unfilled-placeholder.d.ts +4 -1
- package/dist/detectors/unfilled-placeholder.d.ts.map +1 -1
- package/dist/detectors/unfilled-placeholder.js +8 -3
- package/dist/detectors/unfilled-placeholder.js.map +1 -1
- package/dist/detectors/unknown-word-context.d.ts +28 -0
- package/dist/detectors/unknown-word-context.d.ts.map +1 -0
- package/dist/detectors/unknown-word-context.js +89 -0
- package/dist/detectors/unknown-word-context.js.map +1 -0
- package/dist/detectors/unknown-word.d.ts.map +1 -1
- package/dist/detectors/unknown-word.js +16 -11
- package/dist/detectors/unknown-word.js.map +1 -1
- package/dist/detectors/unprompted-denial.d.ts +25 -0
- package/dist/detectors/unprompted-denial.d.ts.map +1 -0
- package/dist/detectors/unprompted-denial.js +100 -0
- package/dist/detectors/unprompted-denial.js.map +1 -0
- package/dist/detectors/unused-definition-kept.d.ts +12 -0
- package/dist/detectors/unused-definition-kept.d.ts.map +1 -0
- package/dist/detectors/unused-definition-kept.js +61 -0
- package/dist/detectors/unused-definition-kept.js.map +1 -0
- package/dist/detectors/weasel-word.d.ts +3 -0
- package/dist/detectors/weasel-word.d.ts.map +1 -0
- package/dist/detectors/weasel-word.js +22 -0
- package/dist/detectors/weasel-word.js.map +1 -0
- package/dist/document-sections.d.ts.map +1 -1
- package/dist/document-sections.js +3 -1
- package/dist/document-sections.js.map +1 -1
- package/dist/document.d.ts.map +1 -1
- package/dist/document.js +10 -5
- package/dist/document.js.map +1 -1
- package/dist/field-label-heading.d.ts +8 -0
- package/dist/field-label-heading.d.ts.map +1 -0
- package/dist/field-label-heading.js +32 -0
- package/dist/field-label-heading.js.map +1 -0
- package/dist/fix-plan/all-signs.d.ts +17 -0
- package/dist/fix-plan/all-signs.d.ts.map +1 -0
- package/dist/fix-plan/all-signs.js +26 -0
- package/dist/fix-plan/all-signs.js.map +1 -0
- package/dist/fix-plan/plan.d.ts +31 -0
- package/dist/fix-plan/plan.d.ts.map +1 -1
- package/dist/fix-plan/plan.js +23 -3
- package/dist/fix-plan/plan.js.map +1 -1
- package/dist/fix-plan/render.d.ts.map +1 -1
- package/dist/fix-plan/render.js +31 -2
- package/dist/fix-plan/render.js.map +1 -1
- package/dist/fix-plan/risen.d.ts +10 -0
- package/dist/fix-plan/risen.d.ts.map +1 -0
- package/dist/fix-plan/risen.js +7 -0
- package/dist/fix-plan/risen.js.map +1 -0
- package/dist/fix-plan/text.d.ts +15 -0
- package/dist/fix-plan/text.d.ts.map +1 -1
- package/dist/fix-plan/text.js +38 -2
- package/dist/fix-plan/text.js.map +1 -1
- package/dist/furigana.d.ts +2 -2
- package/dist/furigana.d.ts.map +1 -1
- package/dist/furigana.js +9 -5
- package/dist/furigana.js.map +1 -1
- package/dist/genre-load.d.ts.map +1 -1
- package/dist/genre-load.js +3 -2
- package/dist/genre-load.js.map +1 -1
- package/dist/heading-numbering.d.ts +9 -2
- package/dist/heading-numbering.d.ts.map +1 -1
- package/dist/heading-numbering.js +55 -11
- package/dist/heading-numbering.js.map +1 -1
- package/dist/honorific-group.d.ts +8 -0
- package/dist/honorific-group.d.ts.map +1 -0
- package/dist/honorific-group.js +15 -0
- package/dist/honorific-group.js.map +1 -0
- package/dist/html/html-elements.d.ts +1 -0
- package/dist/html/html-elements.d.ts.map +1 -1
- package/dist/html/html-elements.js +1 -1
- package/dist/html/html-elements.js.map +1 -1
- package/dist/html/html-footnote-marks.d.ts.map +1 -1
- package/dist/html/html-footnote-marks.js +10 -4
- package/dist/html/html-footnote-marks.js.map +1 -1
- package/dist/html/html-heading-links.d.ts +2 -5
- package/dist/html/html-heading-links.d.ts.map +1 -1
- package/dist/html/html-heading-links.js +19 -2
- package/dist/html/html-heading-links.js.map +1 -1
- package/dist/html/html-links.d.ts +5 -0
- package/dist/html/html-links.d.ts.map +1 -0
- package/dist/html/html-links.js +59 -0
- package/dist/html/html-links.js.map +1 -0
- package/dist/html/html-markdown.d.ts.map +1 -1
- package/dist/html/html-markdown.js +30 -35
- package/dist/html/html-markdown.js.map +1 -1
- package/dist/html/html-section-number.d.ts +5 -0
- package/dist/html/html-section-number.d.ts.map +1 -0
- package/dist/html/html-section-number.js +19 -0
- package/dist/html/html-section-number.js.map +1 -0
- package/dist/html/html-site-chrome.d.ts.map +1 -1
- package/dist/html/html-site-chrome.js +7 -2
- package/dist/html/html-site-chrome.js.map +1 -1
- package/dist/html/html-tables.d.ts +1 -1
- package/dist/html/html-tables.d.ts.map +1 -1
- package/dist/html/html-tables.js +24 -7
- package/dist/html/html-tables.js.map +1 -1
- package/dist/html/html-widgets.d.ts +7 -0
- package/dist/html/html-widgets.d.ts.map +1 -1
- package/dist/html/html-widgets.js +33 -2
- package/dist/html/html-widgets.js.map +1 -1
- package/dist/law-title.d.ts +7 -0
- package/dist/law-title.d.ts.map +1 -0
- package/dist/law-title.js +29 -0
- package/dist/law-title.js.map +1 -0
- package/dist/link-path.d.ts +10 -0
- package/dist/link-path.d.ts.map +1 -0
- package/dist/link-path.js +66 -0
- package/dist/link-path.js.map +1 -0
- package/dist/name-ending-run.d.ts +11 -0
- package/dist/name-ending-run.d.ts.map +1 -0
- package/dist/name-ending-run.js +37 -0
- package/dist/name-ending-run.js.map +1 -0
- package/dist/name-title-slip.d.ts +11 -0
- package/dist/name-title-slip.d.ts.map +1 -0
- package/dist/name-title-slip.js +51 -0
- package/dist/name-title-slip.js.map +1 -0
- package/dist/name-variant-shapes.d.ts +14 -0
- package/dist/name-variant-shapes.d.ts.map +1 -0
- package/dist/name-variant-shapes.js +43 -0
- package/dist/name-variant-shapes.js.map +1 -0
- package/dist/name-word-form.d.ts +14 -0
- package/dist/name-word-form.d.ts.map +1 -0
- package/dist/name-word-form.js +34 -0
- package/dist/name-word-form.js.map +1 -0
- package/dist/name-word-use.d.ts +5 -0
- package/dist/name-word-use.d.ts.map +1 -0
- package/dist/name-word-use.js +12 -0
- package/dist/name-word-use.js.map +1 -0
- package/dist/newsletter-issue.d.ts +12 -0
- package/dist/newsletter-issue.d.ts.map +1 -0
- package/dist/newsletter-issue.js +24 -0
- package/dist/newsletter-issue.js.map +1 -0
- package/dist/note-paragraphs.d.ts +8 -0
- package/dist/note-paragraphs.d.ts.map +1 -0
- package/dist/note-paragraphs.js +37 -0
- package/dist/note-paragraphs.js.map +1 -0
- package/dist/opening-passage.d.ts +8 -0
- package/dist/opening-passage.d.ts.map +1 -0
- package/dist/opening-passage.js +24 -0
- package/dist/opening-passage.js.map +1 -0
- package/dist/paragraph-runs.d.ts +8 -3
- package/dist/paragraph-runs.d.ts.map +1 -1
- package/dist/paragraph-runs.js +29 -3
- package/dist/paragraph-runs.js.map +1 -1
- package/dist/plugin.d.ts +9 -0
- package/dist/plugin.d.ts.map +1 -1
- package/dist/profile/parse.d.ts.map +1 -1
- package/dist/profile/parse.js +9 -0
- package/dist/profile/parse.js.map +1 -1
- package/dist/quote-gloss.d.ts +4 -0
- package/dist/quote-gloss.d.ts.map +1 -0
- package/dist/quote-gloss.js +7 -0
- package/dist/quote-gloss.js.map +1 -0
- package/dist/quoted-spelling.d.ts +17 -0
- package/dist/quoted-spelling.d.ts.map +1 -0
- package/dist/quoted-spelling.js +27 -0
- package/dist/quoted-spelling.js.map +1 -0
- package/dist/render/semantic.d.ts +1 -1
- package/dist/render/semantic.d.ts.map +1 -1
- package/dist/render/semantic.js +2 -1
- package/dist/render/semantic.js.map +1 -1
- package/dist/return-type.d.ts +2 -0
- package/dist/return-type.d.ts.map +1 -1
- package/dist/return-type.js +34 -15
- package/dist/return-type.js.map +1 -1
- package/dist/rule-of-three.d.ts +19 -0
- package/dist/rule-of-three.d.ts.map +1 -0
- package/dist/rule-of-three.js +33 -0
- package/dist/rule-of-three.js.map +1 -0
- package/dist/rule-offs.d.ts +6 -0
- package/dist/rule-offs.d.ts.map +1 -1
- package/dist/rule-offs.js +6 -0
- package/dist/rule-offs.js.map +1 -1
- package/dist/run-semantic.d.ts.map +1 -1
- package/dist/run-semantic.js +2 -2
- package/dist/run-semantic.js.map +1 -1
- package/dist/section-levels.d.ts +18 -0
- package/dist/section-levels.d.ts.map +1 -0
- package/dist/section-levels.js +80 -0
- package/dist/section-levels.js.map +1 -0
- package/dist/semantic.d.ts +2 -0
- package/dist/semantic.d.ts.map +1 -1
- package/dist/semantic.js +13 -0
- package/dist/semantic.js.map +1 -1
- package/dist/sentence-load.d.ts +2 -1
- package/dist/sentence-load.d.ts.map +1 -1
- package/dist/sentence-load.js +31 -3
- package/dist/sentence-load.js.map +1 -1
- package/dist/single-quoted-span.d.ts +8 -0
- package/dist/single-quoted-span.d.ts.map +1 -0
- package/dist/single-quoted-span.js +30 -0
- package/dist/single-quoted-span.js.map +1 -0
- package/dist/spelling-mention.d.ts +7 -0
- package/dist/spelling-mention.d.ts.map +1 -0
- package/dist/spelling-mention.js +24 -0
- package/dist/spelling-mention.js.map +1 -0
- package/dist/spelling.d.ts +11 -0
- package/dist/spelling.d.ts.map +1 -1
- package/dist/spelling.js +19 -5
- package/dist/spelling.js.map +1 -1
- package/dist/stage-directions.d.ts +12 -0
- package/dist/stage-directions.d.ts.map +1 -0
- package/dist/stage-directions.js +29 -0
- package/dist/stage-directions.js.map +1 -0
- package/dist/stray-space.d.ts.map +1 -1
- package/dist/stray-space.js +19 -4
- package/dist/stray-space.js.map +1 -1
- package/dist/structure/alternative-clause.d.ts +9 -0
- package/dist/structure/alternative-clause.d.ts.map +1 -0
- package/dist/structure/alternative-clause.js +43 -0
- package/dist/structure/alternative-clause.js.map +1 -0
- package/dist/structure/build.d.ts.map +1 -1
- package/dist/structure/build.js +7 -2
- package/dist/structure/build.js.map +1 -1
- package/dist/structure/change-rate.d.ts.map +1 -1
- package/dist/structure/change-rate.js +20 -1
- package/dist/structure/change-rate.js.map +1 -1
- package/dist/structure/cited-document-section.d.ts.map +1 -1
- package/dist/structure/cited-document-section.js +15 -1
- package/dist/structure/cited-document-section.js.map +1 -1
- package/dist/structure/cited-elsewhere.d.ts +4 -0
- package/dist/structure/cited-elsewhere.d.ts.map +1 -0
- package/dist/structure/cited-elsewhere.js +15 -0
- package/dist/structure/cited-elsewhere.js.map +1 -0
- package/dist/structure/definition-use.d.ts +7 -4
- package/dist/structure/definition-use.d.ts.map +1 -1
- package/dist/structure/definition-use.js +32 -6
- package/dist/structure/definition-use.js.map +1 -1
- package/dist/structure/issues.d.ts +4 -2
- package/dist/structure/issues.d.ts.map +1 -1
- package/dist/structure/issues.js +36 -7
- package/dist/structure/issues.js.map +1 -1
- package/dist/structure/joined-labels.d.ts +8 -0
- package/dist/structure/joined-labels.d.ts.map +1 -0
- package/dist/structure/joined-labels.js +19 -0
- package/dist/structure/joined-labels.js.map +1 -0
- package/dist/structure/numbering.d.ts +10 -1
- package/dist/structure/numbering.d.ts.map +1 -1
- package/dist/structure/numbering.js +13 -5
- package/dist/structure/numbering.js.map +1 -1
- package/dist/structure/restated-name.d.ts +7 -0
- package/dist/structure/restated-name.d.ts.map +1 -0
- package/dist/structure/restated-name.js +25 -0
- package/dist/structure/restated-name.js.map +1 -0
- package/dist/structure/summary-lines.d.ts +15 -0
- package/dist/structure/summary-lines.d.ts.map +1 -0
- package/dist/structure/summary-lines.js +19 -0
- package/dist/structure/summary-lines.js.map +1 -0
- package/dist/structure/title-lines.d.ts.map +1 -1
- package/dist/structure/title-lines.js +41 -8
- package/dist/structure/title-lines.js.map +1 -1
- package/dist/structure/unit-word.d.ts +6 -0
- package/dist/structure/unit-word.d.ts.map +1 -1
- package/dist/structure/unit-word.js +10 -0
- package/dist/structure/unit-word.js.map +1 -1
- package/dist/structure/wrapped-reference.d.ts +10 -0
- package/dist/structure/wrapped-reference.d.ts.map +1 -0
- package/dist/structure/wrapped-reference.js +17 -0
- package/dist/structure/wrapped-reference.js.map +1 -0
- package/dist/structure-shape/template-outline.d.ts +11 -0
- package/dist/structure-shape/template-outline.d.ts.map +1 -0
- package/dist/structure-shape/template-outline.js +25 -0
- package/dist/structure-shape/template-outline.js.map +1 -0
- package/dist/subheading-line.d.ts +4 -1
- package/dist/subheading-line.d.ts.map +1 -1
- package/dist/subheading-line.js +14 -2
- package/dist/subheading-line.js.map +1 -1
- package/dist/title-case-name.d.ts +12 -0
- package/dist/title-case-name.d.ts.map +1 -0
- package/dist/title-case-name.js +37 -0
- package/dist/title-case-name.js.map +1 -0
- package/dist/topic-clause.d.ts +6 -1
- package/dist/topic-clause.d.ts.map +1 -1
- package/dist/topic-clause.js +91 -3
- package/dist/topic-clause.js.map +1 -1
- package/dist/voice-parts.d.ts +12 -0
- package/dist/voice-parts.d.ts.map +1 -0
- package/dist/voice-parts.js +8 -0
- package/dist/voice-parts.js.map +1 -0
- package/dist/word-use.d.ts +51 -0
- package/dist/word-use.d.ts.map +1 -0
- package/dist/word-use.js +151 -0
- package/dist/word-use.js.map +1 -0
- package/genres.yaml +4 -0
- package/package.json +4 -3
- package/profiles/play.yaml +14 -0
- package/profiles/verse.yaml +14 -0
- package/rules/acronym-expansion-conflict.yaml +2 -2
- package/rules/adversative-ga-repeat.yaml +3 -3
- package/rules/agreement-slip.yaml +20 -7
- package/rules/ai-generated-composite.yaml +11 -3
- package/rules/ai-structure.yaml +7 -6
- package/rules/ai-tell.yaml +4 -4
- package/rules/all-caps-shouting.yaml +2 -2
- package/rules/announced-count-mismatch.yaml +2 -2
- package/rules/article-sound.yaml +2 -2
- package/rules/bold-emphasis.yaml +114 -0
- package/rules/bold-label-list.yaml +38 -5
- package/rules/bracket-nesting.yaml +2 -2
- package/rules/bracket-width-consistency.yaml +11 -11
- package/rules/citation-reference-mismatch.yaml +2 -2
- package/rules/clause-chain.yaml +2 -0
- package/rules/closing-cliche.yaml +4 -5
- package/rules/closing-exhortation.yaml +74 -0
- package/rules/cold-open.yaml +95 -0
- package/rules/colloquial-opener.yaml +2 -2
- package/rules/colon-lead-in.yaml +68 -10
- package/rules/comparative-without-baseline.yaml +2 -2
- package/rules/concrete-evidence-density.yaml +3 -2
- package/rules/contrast-framing.yaml +16 -13
- package/rules/dangling-reference.yaml +2 -2
- package/rules/date-weekday-mismatch.yaml +2 -2
- package/rules/date-without-year.yaml +5 -5
- package/rules/defined-name-repeated.yaml +2 -2
- package/rules/defined-term-form.yaml +2 -2
- package/rules/demonstrative-opener-run.yaml +4 -2
- package/rules/doubled-punctuation.yaml +2 -2
- package/rules/doubled-word.yaml +2 -2
- package/rules/duplicate-definition.yaml +2 -2
- package/rules/duplicate-heading.yaml +5 -2
- package/rules/email-greeting-closing.yaml +2 -2
- package/rules/email-stock-courtesy.yaml +62 -0
- package/rules/empty-intensifier.yaml +3 -3
- package/rules/figure-reference-order.yaml +2 -2
- package/rules/fullwidth-alnum-consistency.yaml +2 -2
- package/rules/generic-opening.yaml +63 -0
- package/rules/heading-end-punctuation-mix.yaml +2 -2
- package/rules/heading-level-skip.yaml +2 -2
- package/rules/heading-numbering-mix.yaml +20 -20
- package/rules/humble-for-others.yaml +4 -3
- package/rules/hyphen-as-dash.yaml +2 -2
- package/rules/kutoten-consistency.yaml +4 -4
- package/rules/latin-spacing.yaml +3 -2
- package/rules/link-text-url-mismatch.yaml +4 -4
- package/rules/list-item-form-mix.yaml +21 -6
- package/rules/max-kanji-continuous.yaml +36 -5
- package/rules/max-paragraph-length.yaml +2 -0
- package/rules/max-sentence-length.yaml +4 -2
- package/rules/max-ten.yaml +1 -0
- package/rules/missing-final-period.yaml +2 -2
- package/rules/name-variant.yaml +5 -2
- package/rules/ngram-repetition.yaml +2 -2
- package/rules/no-doubled-joshi.yaml +2 -2
- package/rules/no-em-dash.yaml +2 -2
- package/rules/no-mixed-desumasu.yaml +16 -3
- package/rules/nominalization.yaml +8 -2
- package/rules/number-style-consistency.yaml +2 -2
- package/rules/numbering-gap.yaml +2 -2
- package/rules/numeral-sentence-start.yaml +2 -2
- package/rules/one-sentence-paragraph-run.yaml +3 -2
- package/rules/orthographic-variant.yaml +2 -2
- package/rules/over-general-claim.yaml +73 -0
- package/rules/oxford-comma-consistency.yaml +15 -3
- package/rules/proper-noun-density.yaml +14 -7
- package/rules/q-fragment-answer.yaml +69 -0
- package/rules/relative-date-mismatch.yaml +2 -2
- package/rules/repeated-sentence-ending.yaml +2 -0
- package/rules/request-without-deadline.yaml +2 -2
- package/rules/requirement-smell.yaml +2 -2
- package/rules/return-type-mismatch.yaml +2 -2
- package/rules/rule-of-three.yaml +3 -3
- package/rules/section-length-uniformity.yaml +2 -2
- package/rules/sentence-initial-conjunction-run.yaml +2 -2
- package/rules/sentence-rhythm.yaml +7 -4
- package/rules/stray-space.yaml +2 -2
- package/rules/taigen-dome-in-prose.yaml +2 -2
- package/rules/tari-unpaired.yaml +2 -2
- package/rules/teki-overuse.yaml +2 -2
- package/rules/title-case-consistency.yaml +4 -4
- package/rules/title-length.yaml +9 -2
- package/rules/topic-predicate-distance.yaml +5 -2
- package/rules/undefined-acronym.yaml +10 -2
- package/rules/undefined-term.yaml +2 -2
- package/rules/unfilled-placeholder.yaml +4 -4
- package/rules/unknown-word.yaml +2 -2
- package/rules/unprompted-denial.yaml +88 -0
- package/rules/unqualified-superlative.yaml +8 -2
- package/rules/unused-definition.yaml +2 -2
- package/rules/use-before-definition.yaml +2 -2
- package/rules/weasel-word.yaml +4 -3
- package/rules/which-that-consistency.yaml +2 -2
- package/rules/wordy-phrase.yaml +2 -2
- package/skills/chaff/SKILL.md +45 -8
- package/src/acronym-expansion.ts +57 -0
- package/src/acronym-expansions.ts +11 -1
- package/src/ai-score/human-shares.ts +85 -16
- package/src/ai-score/of-document.ts +5 -2
- package/src/alternative-words.ts +20 -0
- package/src/article-h-style.ts +16 -0
- package/src/body-section.ts +11 -2
- package/src/bracket-annotation.ts +57 -0
- package/src/capitals-with-small.ts +16 -0
- package/src/checks.ts +32 -1
- package/src/cli-args.ts +1 -1
- package/src/cli-text.ts +4 -0
- package/src/commands/fix-plan.ts +72 -5
- package/src/commands/test.ts +18 -2
- package/src/compare/misopened-quotes.ts +26 -0
- package/src/compare/outcome.ts +11 -2
- package/src/compare/render.ts +20 -7
- package/src/compare/respelled.ts +68 -0
- package/src/compare/text-atoms.ts +9 -2
- package/src/compare/text.ts +12 -3
- package/src/contact-entry.ts +19 -0
- package/src/contraction-words.ts +11 -0
- package/src/derived/relative-dates.ts +32 -1
- package/src/detectors/abnf-grammar.ts +79 -0
- package/src/detectors/acronym-context.ts +61 -1
- package/src/detectors/acronym-expansion.ts +57 -4
- package/src/detectors/acronym-gloss.ts +157 -0
- package/src/detectors/acronym-known.ts +11 -3
- package/src/detectors/acronym-name.ts +22 -3
- package/src/detectors/acronym-series.ts +27 -0
- package/src/detectors/adversative-ga.ts +26 -0
- package/src/detectors/agreement-slip.ts +33 -4
- package/src/detectors/ai-phrasing.ts +25 -20
- package/src/detectors/ai-structure.ts +23 -6
- package/src/detectors/alnum-number.ts +16 -0
- package/src/detectors/asker-voice.ts +24 -0
- package/src/detectors/bare-comparative.ts +103 -13
- package/src/detectors/blank-structure.ts +9 -0
- package/src/detectors/bold-emphasis-form.ts +58 -0
- package/src/detectors/bold-emphasis.ts +44 -0
- package/src/detectors/bold-label.ts +3 -0
- package/src/detectors/broken-link.ts +13 -4
- package/src/detectors/caps-caption.ts +24 -2
- package/src/detectors/case-citation.ts +70 -0
- package/src/detectors/char-shape.ts +240 -33
- package/src/detectors/chat-log-line.ts +17 -0
- package/src/detectors/citation-entry.ts +22 -7
- package/src/detectors/citation-marks.ts +97 -15
- package/src/detectors/citation-note.ts +78 -0
- package/src/detectors/citation-string.ts +36 -0
- package/src/detectors/citation-style.ts +6 -1
- package/src/detectors/clause-shape.ts +27 -2
- package/src/detectors/closing-cliche.ts +74 -0
- package/src/detectors/closing-exhortation.ts +74 -0
- package/src/detectors/cold-open.ts +145 -0
- package/src/detectors/comparative-context.ts +74 -0
- package/src/detectors/concrete-evidence-density.ts +99 -0
- package/src/detectors/concrete-evidence.ts +40 -0
- package/src/detectors/contrast-frame.ts +65 -7
- package/src/detectors/coordinate-adjective.ts +43 -0
- package/src/detectors/date-run.ts +39 -0
- package/src/detectors/date-year.ts +44 -10
- package/src/detectors/dateline.ts +48 -0
- package/src/detectors/defined-term-form.ts +24 -7
- package/src/detectors/definition-scope-unit.ts +90 -0
- package/src/detectors/definition-use.ts +18 -5
- package/src/detectors/division-label-separator.ts +25 -0
- package/src/detectors/document-shape.ts +24 -1
- package/src/detectors/doubled-punctuation.ts +19 -1
- package/src/detectors/doubled-word.ts +21 -2
- package/src/detectors/duplicate-heading.ts +44 -15
- package/src/detectors/email-frame-words.ts +39 -0
- package/src/detectors/email-letter.ts +26 -23
- package/src/detectors/empty-intensifier.ts +36 -0
- package/src/detectors/en-shape.ts +11 -5
- package/src/detectors/example-baseline.ts +31 -0
- package/src/detectors/figure-number-list.ts +101 -0
- package/src/detectors/figure-order.ts +43 -2
- package/src/detectors/fullwidth-alnum.ts +59 -9
- package/src/detectors/grade-ladder.ts +23 -0
- package/src/detectors/gram-furniture.ts +96 -1
- package/src/detectors/gram-openers.ts +71 -0
- package/src/detectors/gram-predicate.ts +49 -6
- package/src/detectors/gram-repetition.ts +199 -0
- package/src/detectors/heading-case.ts +11 -2
- package/src/detectors/heading-end-mark.ts +12 -4
- package/src/detectors/heading-level-skip.ts +31 -1
- package/src/detectors/heading-numbering.ts +12 -3
- package/src/detectors/humble-for-others.ts +63 -0
- package/src/detectors/hyphen-copied-text.ts +65 -0
- package/src/detectors/kanji-name-edge.ts +110 -0
- package/src/detectors/kanji-run-pieces.ts +86 -0
- package/src/detectors/kutoten-consistency.ts +36 -6
- package/src/detectors/lead-in-dash.ts +54 -0
- package/src/detectors/letter-joined-name.ts +14 -0
- package/src/detectors/lexicon.ts +27 -5
- package/src/detectors/licence-notice.ts +30 -0
- package/src/detectors/link-label.ts +17 -0
- package/src/detectors/link-shape.ts +7 -3
- package/src/detectors/list-comma-aside.ts +58 -0
- package/src/detectors/list-item.ts +37 -1
- package/src/detectors/list-items.ts +4 -1
- package/src/detectors/list-joint.ts +44 -0
- package/src/detectors/list-layout.ts +39 -0
- package/src/detectors/list-lead-in.ts +78 -3
- package/src/detectors/list-parallel.ts +175 -20
- package/src/detectors/list-run.ts +86 -0
- package/src/detectors/list-sentence.ts +13 -0
- package/src/detectors/mark-shape.ts +35 -8
- package/src/detectors/markdown-slip.ts +20 -3
- package/src/detectors/missing-final-period.ts +42 -5
- package/src/detectors/name-list-sentence.ts +28 -0
- package/src/detectors/name-run.ts +2 -1
- package/src/detectors/name-variant-reference-list.ts +34 -0
- package/src/detectors/name-variant-two-things.ts +136 -0
- package/src/detectors/name-variant.ts +18 -22
- package/src/detectors/next-word.ts +38 -9
- package/src/detectors/number-style.ts +17 -1
- package/src/detectors/numbering-readings.ts +22 -0
- package/src/detectors/numeral-opener.ts +37 -5
- package/src/detectors/open-end-names.ts +23 -2
- package/src/detectors/open-end-scope.ts +32 -2
- package/src/detectors/opener-phrase.ts +15 -0
- package/src/detectors/opener-tail.ts +19 -0
- package/src/detectors/organisation-run.ts +29 -4
- package/src/detectors/orthographic-variant-open.ts +119 -0
- package/src/detectors/orthographic-variant.ts +120 -179
- package/src/detectors/orthography.ts +4 -0
- package/src/detectors/over-general-claim.ts +145 -0
- package/src/detectors/oxford-comma.ts +85 -28
- package/src/detectors/paragraph-run.ts +11 -2
- package/src/detectors/particle-run-names.ts +17 -0
- package/src/detectors/phrase-match.ts +6 -0
- package/src/detectors/placeholder-text.ts +62 -1
- package/src/detectors/proper-noun-density.ts +109 -0
- package/src/detectors/q-fragment-answer.ts +64 -0
- package/src/detectors/quotation-paragraph.ts +28 -0
- package/src/detectors/quoted-excerpt.ts +68 -0
- package/src/detectors/quoted-sentences.ts +62 -0
- package/src/detectors/quoted-wording.ts +28 -0
- package/src/detectors/reference-entry.ts +42 -0
- package/src/detectors/register-neutral-shape.ts +66 -0
- package/src/detectors/register-set-apart.ts +124 -0
- package/src/detectors/register-voice.ts +63 -0
- package/src/detectors/register.ts +15 -0
- package/src/detectors/registry/bold-emphasis.ts +4 -0
- package/src/detectors/registry/closing-cliche.ts +4 -0
- package/src/detectors/registry/closing-exhortation.ts +4 -0
- package/src/detectors/registry/cold-open.ts +4 -0
- package/src/detectors/registry/colon-lead-in.ts +1 -1
- package/src/detectors/registry/concrete-evidence.ts +1 -1
- package/src/detectors/registry/empty-intensifier.ts +4 -0
- package/src/detectors/registry/humble-for-others.ts +4 -0
- package/src/detectors/registry/ngram-repetition.ts +1 -1
- package/src/detectors/registry/over-general-claim.ts +4 -0
- package/src/detectors/registry/proper-noun-density.ts +1 -1
- package/src/detectors/registry/q-fragment-answer.ts +4 -0
- package/src/detectors/registry/topic-predicate-distance.ts +1 -1
- package/src/detectors/registry/unprompted-denial.ts +4 -0
- package/src/detectors/registry/unused-definition.ts +2 -2
- package/src/detectors/registry/weasel-word.ts +4 -0
- package/src/detectors/relative-dates.ts +1 -0
- package/src/detectors/relative-pronoun-mix.ts +12 -2
- package/src/detectors/reported-speech.ts +37 -0
- package/src/detectors/request-owner.ts +62 -2
- package/src/detectors/revision-date.ts +80 -0
- package/src/detectors/sentence-counts.ts +35 -8
- package/src/detectors/sentence-ending.ts +87 -13
- package/src/detectors/sentence-length.ts +50 -6
- package/src/detectors/sentence-load.ts +9 -8
- package/src/detectors/sentence-parts.ts +70 -0
- package/src/detectors/sentence-title.ts +70 -0
- package/src/detectors/signals.ts +34 -207
- package/src/detectors/spreadsheet-grid.ts +20 -0
- package/src/detectors/structure-tree.ts +16 -18
- package/src/detectors/structure.ts +35 -15
- package/src/detectors/superlative-clause.ts +21 -2
- package/src/detectors/superlative-context.ts +99 -0
- package/src/detectors/superlative-phrase.ts +57 -0
- package/src/detectors/superlative-scope.ts +43 -10
- package/src/detectors/team.ts +1 -50
- package/src/detectors/titled-code-citation.ts +19 -0
- package/src/detectors/titled-run.ts +31 -5
- package/src/detectors/token-shape.ts +42 -15
- package/src/detectors/topic-predicate-distance.ts +25 -0
- package/src/detectors/typewritten.ts +7 -0
- package/src/detectors/undefined-term.ts +45 -9
- package/src/detectors/unfilled-placeholder.ts +8 -3
- package/src/detectors/unknown-word-context.ts +112 -0
- package/src/detectors/unknown-word.ts +19 -12
- package/src/detectors/unprompted-denial.ts +133 -0
- package/src/detectors/unused-definition-kept.ts +80 -0
- package/src/detectors/weasel-word.ts +24 -0
- package/src/document-sections.ts +3 -1
- package/src/document.ts +17 -6
- package/src/field-label-heading.ts +41 -0
- package/src/fix-plan/all-signs.ts +35 -0
- package/src/fix-plan/plan.ts +50 -3
- package/src/fix-plan/render.ts +41 -3
- package/src/fix-plan/risen.ts +13 -0
- package/src/fix-plan/text.ts +56 -2
- package/src/furigana.ts +9 -5
- package/src/genre-load.ts +3 -2
- package/src/heading-numbering.ts +67 -13
- package/src/honorific-group.ts +22 -0
- package/src/html/html-elements.ts +1 -1
- package/src/html/html-footnote-marks.ts +12 -4
- package/src/html/html-heading-links.ts +25 -2
- package/src/html/html-links.ts +70 -0
- package/src/html/html-markdown.ts +42 -36
- package/src/html/html-section-number.ts +20 -0
- package/src/html/html-site-chrome.ts +9 -2
- package/src/html/html-tables.ts +29 -7
- package/src/html/html-widgets.ts +48 -1
- package/src/law-title.ts +38 -0
- package/src/link-path.ts +70 -0
- package/src/name-ending-run.ts +49 -0
- package/src/name-title-slip.ts +59 -0
- package/src/name-variant-shapes.ts +58 -0
- package/src/name-word-form.ts +42 -0
- package/src/name-word-use.ts +17 -0
- package/src/newsletter-issue.ts +38 -0
- package/src/note-paragraphs.ts +48 -0
- package/src/opening-passage.ts +31 -0
- package/src/paragraph-runs.ts +38 -4
- package/src/plugin.ts +6 -0
- package/src/profile/parse.ts +11 -0
- package/src/quote-gloss.ts +11 -0
- package/src/quoted-spelling.ts +48 -0
- package/src/render/semantic.ts +2 -2
- package/src/return-type.ts +38 -16
- package/src/rule-of-three.ts +50 -0
- package/src/rule-offs.ts +10 -0
- package/src/run-semantic.ts +2 -2
- package/src/section-levels.ts +98 -0
- package/src/semantic.ts +14 -0
- package/src/sentence-load.ts +38 -4
- package/src/single-quoted-span.ts +40 -0
- package/src/spelling-mention.ts +30 -0
- package/src/spelling.ts +37 -7
- package/src/stage-directions.ts +39 -0
- package/src/stray-space.ts +24 -5
- package/src/structure/alternative-clause.ts +46 -0
- package/src/structure/build.ts +13 -2
- package/src/structure/change-rate.ts +21 -1
- package/src/structure/cited-document-section.ts +16 -1
- package/src/structure/cited-elsewhere.ts +23 -0
- package/src/structure/definition-use.ts +42 -7
- package/src/structure/issues.ts +42 -7
- package/src/structure/joined-labels.ts +24 -0
- package/src/structure/numbering.ts +23 -4
- package/src/structure/restated-name.ts +28 -0
- package/src/structure/summary-lines.ts +26 -0
- package/src/structure/title-lines.ts +40 -2
- package/src/structure/unit-word.ts +12 -0
- package/src/structure/wrapped-reference.ts +25 -0
- package/src/structure-shape/template-outline.ts +34 -0
- package/src/subheading-line.ts +17 -2
- package/src/title-case-name.ts +55 -0
- package/src/topic-clause.ts +115 -5
- package/src/voice-parts.ts +11 -0
- package/src/word-use.ts +213 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
id: unprompted-denial
|
|
2
|
+
layer: L2
|
|
3
|
+
status: stable
|
|
4
|
+
how_to_find: unprompted-denial
|
|
5
|
+
word_list: unprompted-denial
|
|
6
|
+
# 対比の枠(contrast-framing が数える文)は、打ち消しの隣に言い直しがあるので数えない。
|
|
7
|
+
extra_word_lists: [contrast-frame, contrast-lead, contrast-turn]
|
|
8
|
+
uses: [pos]
|
|
9
|
+
severity: info
|
|
10
|
+
|
|
11
|
+
name:
|
|
12
|
+
ja: 誰も言っていない前提の打ち消しが多い
|
|
13
|
+
en: Too many denials of a premise nobody stated
|
|
14
|
+
|
|
15
|
+
why:
|
|
16
|
+
ja: 「〜の話ではありません」「〜の材料になりません」で終わる文は、読み手が持っていない思い込みを打ち消します。言いたいこと(何であるか)は書かれないまま残ります。1 つ 2 つなら論の運びですが、重なると生成文によくある書き方に見えます。
|
|
17
|
+
en: '"This isn''t about tooling." "That''s not the point." Such a sentence knocks down a belief the reader never held, and what the thing is goes unsaid. One or two move an argument along; piled up, they read like generated text.'
|
|
18
|
+
|
|
19
|
+
message:
|
|
20
|
+
ja: 「{matched}」など、誰も言っていない前提を打ち消して終わる文が {share}% あります({limit}% まで)
|
|
21
|
+
en: '"{matched}" and other denials of a premise nobody stated: {share}% of sentences (limit {limit}%)'
|
|
22
|
+
|
|
23
|
+
how_to_fix:
|
|
24
|
+
ja: 打ち消しをやめて、それが何であるかを直接書いてください(「パラメータは、モデルの中にある重みの数です」)。
|
|
25
|
+
en: Drop the denial and say what the thing is ("Parameters are the number of weights inside the model.").
|
|
26
|
+
|
|
27
|
+
# 文書の文のうち、前提を打ち消して終わる文の割合(%)。そういう文が三つ以上ある文書だけを測る。
|
|
28
|
+
levels: { strict: 2, normal: 3, relaxed: 5 }
|
|
29
|
+
|
|
30
|
+
use_for: [technical/readme, blog, business, legal, docs, academic, literature, speech]
|
|
31
|
+
off_for:
|
|
32
|
+
legal: "Legal drafting repeats its terms and its sentence heads on purpose, puts the actor in the passive (shall be deemed), and joins long noun compounds (個人情報取扱事業者). This rule would only flag the form."
|
|
33
|
+
docs: "A help page repeats its heading in its first line (To upload a file, ...) and states no claims to back up."
|
|
34
|
+
literature: "Length, rhythm, repetition and register are the author's choices in literature, and dialogue mixes styles. Only what one work can hold itself to runs: consistent spacing and commas, and numbering without gaps."
|
|
35
|
+
speech: "A speech opens with greetings and closes with thanks: that is its form, not padding."
|
|
36
|
+
|
|
37
|
+
group: ai-tells
|
|
38
|
+
summary:
|
|
39
|
+
ja: 「〜の話ではありません」のように、誰も言っていない前提を打ち消して終わる文
|
|
40
|
+
en: Sentences that deny a premise nobody stated ("This isn't about tooling.")
|
|
41
|
+
example:
|
|
42
|
+
ja:
|
|
43
|
+
pad: true
|
|
44
|
+
before: |
|
|
45
|
+
パラメータは、学習の設定の話ではありません。数字が大きいことは、賢さの保証になりません。ここで言いたいのは、道具選びの話ではありません。
|
|
46
|
+
after: |
|
|
47
|
+
パラメータは、モデルの中にある重みの数です。数字が大きいモデルほど、計算に時間がかかります。
|
|
48
|
+
en:
|
|
49
|
+
pad: true
|
|
50
|
+
before: |
|
|
51
|
+
This isn't about tooling. That's not the point of the review. It's not a question of budget either.
|
|
52
|
+
after: |
|
|
53
|
+
The review found two steps that nobody owned. We gave each one an owner.
|
|
54
|
+
|
|
55
|
+
not_flagged:
|
|
56
|
+
ja: 一つ二つの打ち消し、理由を添えた打ち消し(「〜のため、対象ではありません」)、前の文の問いや「〜と思うかもしれません」に答える打ち消し、「だけではない」「すべきではない」「簡単ではない」、言い直しが隣にある対比の枠(contrast-framing が数えます)は指しません。短い文書は測りません。
|
|
57
|
+
en: One or two denials, a denial with its reason ("because ..."), a denial answering the previous sentence's question or "You might think ...", a negated fact ("It's not ready."), and a denial answered by its restatement (contrast-framing counts those) are not reported. Short documents are not measured.
|
|
58
|
+
level_meaning:
|
|
59
|
+
ja: 前提を打ち消して終わる文が {limit}% まで
|
|
60
|
+
en: up to {limit}% of sentences deny a premise nobody stated
|
|
61
|
+
rewrite:
|
|
62
|
+
depth: light
|
|
63
|
+
ja:
|
|
64
|
+
direction: 打ち消しを消し、それが何であるかを普通の文で書いてください。打ち消す相手が誰かの実際の誤解なら、その誤解を書いたうえで一度だけ打ち消してください。
|
|
65
|
+
pairs:
|
|
66
|
+
- before: パラメータは、学習時の設定の話ではありません。
|
|
67
|
+
after: パラメータは、モデルの中にある重みの数です。
|
|
68
|
+
- before: 全員が正解する問題は、モデルを分ける材料になりません。
|
|
69
|
+
after: モデルを分けるのは、正解した人数が割れる問題です。
|
|
70
|
+
keep:
|
|
71
|
+
- 言いたいこと(それが何であるか)
|
|
72
|
+
- 誰かが実際に言ったことへの反論
|
|
73
|
+
avoid:
|
|
74
|
+
- 打ち消しを「〜というより」に替えて、同じ打ち消しを残す
|
|
75
|
+
- 書き手が言っていない主張を足す
|
|
76
|
+
en:
|
|
77
|
+
direction: Delete the denial and say what the thing is in a plain sentence. If the denied belief is one someone actually holds, name it and answer it once.
|
|
78
|
+
pairs:
|
|
79
|
+
- before: This isn't about tooling.
|
|
80
|
+
after: This is about who reviews each change.
|
|
81
|
+
- before: That's not the point.
|
|
82
|
+
after: The point is that the test runs on every commit.
|
|
83
|
+
keep:
|
|
84
|
+
- what the thing is
|
|
85
|
+
- an answer to something someone actually said
|
|
86
|
+
avoid:
|
|
87
|
+
- swapping the denial for "less X than Y", which keeps it
|
|
88
|
+
- adding a claim the writer did not make
|
|
@@ -24,6 +24,12 @@ how_to_fix:
|
|
|
24
24
|
en: Name the comparison. "The fastest of the three options we tried."
|
|
25
25
|
|
|
26
26
|
levels: { strict: 1, normal: 2, relaxed: 4 }
|
|
27
|
+
# An English tech blog states its thesis once: "The best way to X is Y" is the one bare claim in the post. Measured on the
|
|
28
|
+
# judged chaff-corpus, a limit of one brings back judged-correct findings only in English blog/tech; in Japanese blog/tech
|
|
29
|
+
# and in every other genre it brings back false ones.
|
|
30
|
+
by_genre:
|
|
31
|
+
blog/tech:
|
|
32
|
+
en: { strict: 1, normal: 1, relaxed: 2 }
|
|
27
33
|
|
|
28
34
|
use_for: [business, blog, legal, docs, academic, literature, speech]
|
|
29
35
|
off_for:
|
|
@@ -46,8 +52,8 @@ example:
|
|
|
46
52
|
after: Our new product processes orders a fifth faster than the previous model.
|
|
47
53
|
|
|
48
54
|
not_flagged:
|
|
49
|
-
ja: 「当社比」「〜の中で」「〜のほうが」のように、比べる相手や範囲が同じ文にあれば指しません。「SES
|
|
50
|
-
en: A superlative with its comparison or scope in the same sentence ("in our range", "than last year", "the fastest in the industry") is not reported, nor is one limited by a clause ("the best we have measured"), nor one inside quotation marks, which are someone else's words.
|
|
55
|
+
ja: 「当社比」「〜の中で」「〜のほうが」のように、比べる相手や範囲が同じ文にあれば指しません。「SES との最大の違い」のように、最上級のすぐ前に相手があるときも同じです。「国内最大」「業界最速」のように名詞がじかに付いた最上級と、「日本で最も」のように名前と「で」が前にある最上級は、範囲を言っているので指しません。「バグを検出できる唯一のルール」のように、動詞で終わる節が最上級のすぐ前にあって範囲を決めているときも同じです。「」や引用符で引いた言葉の中の最上級は、書き手の主張ではないので指しません。「最大化する」のように接尾辞が付いて別の語になったものも指しません。「芭蕉の最も有名な句」のように名前と「の」がすぐ前にある最上級、「最高裁判所」「最も近い駅」のような決まった言い方、「最大5億ドル」のように数のある文の最上級も指しません。「世界で唯一の」のように場や分野の名詞と「で」が前にある最上級、「俺にとって最高の日」のように誰にとってなのかが同じ節にある最上級、「最高の規律が求められる」「最高の栄誉が与えられるべき」のように求めるもの・あるべき姿として述べた最上級、「最も重要なことは」のように話の順を示す言い方、問いの文(?で終わる文)の最上級も指しません。
|
|
56
|
+
en: A superlative with its comparison or scope in the same sentence ("in our range", "than last year", "the fastest in the industry") is not reported, nor is one limited by a clause ("the best we have measured"), nor one inside quotation marks, which are someone else's words, nor one inside a set phrase ("even the best", "in the best case", "make the most of", "the most recent", "the most common"), nor one in a question. A superlative that is sought or chosen rather than claimed ("to achieve the best results", "before deciding the best way", "start with the most important tasks") is not reported, nor one whose predicate points at a member of a set ("the best plan is the one you keep"), nor one whose noun names a part of a whole ("the most important part", "the most important role"), nor one whose set follows its noun ("the best thing about this event", "the most common form of debunking", "the most important tool for creating the culture").
|
|
51
57
|
level_meaning:
|
|
52
58
|
ja: 比べる相手のない最上級が {limit} 箇所あれば指摘
|
|
53
59
|
en: reported once there are {limit} such claims
|
|
@@ -48,8 +48,8 @@ example:
|
|
|
48
48
|
"Service" means the booking website we run. Users may use the Service free of charge.
|
|
49
49
|
|
|
50
50
|
not_flagged:
|
|
51
|
-
ja: 定義の書き方(「X」とは、以下「X」という、規約やポリシーの以下「X」といいます)で書いた語だけを見ます。複数形と所有の形(Services、Seller's)と、見出しの中の語も使用に数えます。英語の動名詞と目的語の句(Exercising your options)は、動詞のほかの形で書いた所(exercise your options)も使用に数えます。同じ語の二つ目の定義は duplicate-definition
|
|
52
|
-
en: Only terms defined in a recognised form ("X" means, (the "X")) are checked. Plurals and possessives (Services, Seller's) count as uses, and so does the term in a heading. A phrase of a gerund and its object (Exercising your options) is also used where its verb is written in another form (exercise your options). A second definition of the same term is duplicate-definition's to report.
|
|
51
|
+
ja: 定義の書き方(「X」とは、以下「X」という、規約やポリシーの以下「X」といいます)で書いた語だけを見ます。複数形と所有の形(Services、Seller's)と、見出しの中の語も使用に数えます。英語の動名詞と目的語の句(Exercising your options)は、動詞のほかの形で書いた所(exercise your options)も使用に数えます。同じ語の二つ目の定義は duplicate-definition が言います。法典の一つの条だけの文書で、自分の入っている編・章(「For the purpose of this subchapter」)のために定義した語は、文書にその編・章の見出しが無ければ見ません。その編・章のほかの条が使います。
|
|
52
|
+
en: Only terms defined in a recognised form ("X" means, (the "X")) are checked. Plurals and possessives (Services, Seller's) count as uses, and so does the term in a heading. A phrase of a gerund and its object (Exercising your options) is also used where its verb is written in another form (exercise your options). A second definition of the same term is duplicate-definition's to report. A term defined for a unit of a code the document sits in ("For the purpose of this subchapter—") is not checked when the document has no heading for that unit, because the unit's other sections use it.
|
|
53
53
|
rewrite:
|
|
54
54
|
depth: light
|
|
55
55
|
ja:
|
|
@@ -50,8 +50,8 @@ example:
|
|
|
50
50
|
This agreement is between Harbour Ltd (the "Seller") and Hill Ltd (the "Buyer"). The Seller ships within five days.
|
|
51
51
|
|
|
52
52
|
not_flagged:
|
|
53
|
-
ja: 定義の条(「X」とは…をいう)で定義した語は、前で使っても言いません。定義の条は文書の頭にも終わりにも置く書き方があるためです。規約やポリシーの丁寧な形(以下「X」といいます)も、法令の形と同じに読みます。見出しの行(章・節の行、条の前の「(買主の義務)」のような見出し)の語と、漢字で終わる語にさらに漢字が続く長い語(「監査委員会」の「監査委員」)と、定義の括弧の前の長い名前をそのまま書いた所(「…作成の手引き(以下「手引き」という。)」より前の「…作成の手引き」)は、使った所に数えません。最初の一か所だけを指します。別の語を定義する括弧の前の名前の中(This Services Agreement (this "Agreement") の Services、本サービス利用契約(以下「本契約」という。)の本サービス)も、使った所に数えません。目次・索引の行(目次の見出しの下の項目、一行に詰めた目次、定義した語と条の番地の一覧)と、条の番号の後ろの題(Section 1.1 Closing.)と、番号と語の終わりに条の番地の括弧を添えただけの札((1)文化芸術推進基本計画(第7条関係))と、語を含むもっと長い名前(定義の括弧の前の名前を前で写した株式会社みなと、もっと長い定義した語、Navistar Financial Corporation
|
|
54
|
-
en: Terms defined in a definitions clause ("X" means ...) are not checked, since a definitions clause may come first or last. A heading line (a chapter or section line, or the caption above an article) does not count as a use, nor does a longer word that runs on in kanji past a term ending in kanji, nor an earlier copy of the long name written just before the definition's bracket. The polite Japanese form (以下「X」といいます) is read like the statute form. Only the first early use is pointed at. A word inside the name written right before another term's defining bracket (Services in This Services Agreement (this "Agreement")) is not a use either. Nor are contents and index lines (the items under a contents heading, a table of contents or a list of defined terms and section numbers packed on one line), a caption after a section number (Section 1.1 Closing.), a label of a number and the term ending in a bracketed section reference ((a) Seller (Section 2)), or a longer name that holds the term, such as an earlier copy of the name before the bracket (Board of Directors before our Board of Directors ("Board")), a longer defined term, a capitalised name ending in it (Navistar Financial Corporation). The document naming itself (this Agreement before (this "Agreement")) and a use followed by the long name in brackets are clear to the reader and not pointed at.
|
|
53
|
+
ja: 定義の条(「X」とは…をいう)で定義した語は、前で使っても言いません。定義の条は文書の頭にも終わりにも置く書き方があるためです。規約やポリシーの丁寧な形(以下「X」といいます)も、法令の形と同じに読みます。見出しの行(章・節の行、条の前の「(買主の義務)」のような見出し)の語と、漢字で終わる語にさらに漢字が続く長い語(「監査委員会」の「監査委員」)と、定義の括弧の前の長い名前をそのまま書いた所(「…作成の手引き(以下「手引き」という。)」より前の「…作成の手引き」)は、使った所に数えません。最初の一か所だけを指します。別の語を定義する括弧の前の名前の中(This Services Agreement (this "Agreement") の Services、本サービス利用契約(以下「本契約」という。)の本サービス)も、使った所に数えません。目次・索引の行(目次の見出しの下の項目、一行に詰めた目次、定義した語と条の番地の一覧)と、条の番号の後ろの題(Section 1.1 Closing.)と、番号と語の終わりに条の番地の括弧を添えただけの札((1)文化芸術推進基本計画(第7条関係))と、語を含むもっと長い名前(定義の括弧の前の名前を前で写した株式会社みなと、もっと長い定義した語、Navistar Financial Corporation)も数えません。文書自身の名前と定義した語に同じ頭を付けた所(この就業規則(以下「規則」)より前の「この規則」)と、すぐ後ろの括弧に定義の長い名前を書き添えた所は、読み手に分かるので言いません。要約の節(「要旨」「裁判要旨」「Summary」のような見出しの下)で、定義がその節の外にある語と、番号と題だけの項目の行((2)本件仮換地の指定等)は、本文を縮めたり名前を付けたりした所なので数えません。番地や法令の名前に続けて語の意味の出どころを書いた所(69条の3所定の小規模宅地等)も数えません。
|
|
54
|
+
en: Terms defined in a definitions clause ("X" means ...) are not checked, since a definitions clause may come first or last. A heading line (a chapter or section line, or the caption above an article) does not count as a use, nor does a longer word that runs on in kanji past a term ending in kanji, nor an earlier copy of the long name written just before the definition's bracket. The polite Japanese form (以下「X」といいます) is read like the statute form. Only the first early use is pointed at. A word inside the name written right before another term's defining bracket (Services in This Services Agreement (this "Agreement")) is not a use either. Nor are contents and index lines (the items under a contents heading, a table of contents or a list of defined terms and section numbers packed on one line), a caption after a section number (Section 1.1 Closing.), a label of a number and the term ending in a bracketed section reference ((a) Seller (Section 2)), or a longer name that holds the term, such as an earlier copy of the name before the bracket (Board of Directors before our Board of Directors ("Board")), a longer defined term, a capitalised name ending in it (Navistar Financial Corporation). The document naming itself (this Agreement before (this "Agreement")) and a use followed by the long name in brackets are clear to the reader and not pointed at. A use in a summary section (under a heading such as Summary, Syllabus or 裁判要旨) of a term defined outside it, and a numbered line that only names the section below ((2) Interim Land Designation) summarise or name the body, so they are not uses either.
|
|
55
55
|
rewrite:
|
|
56
56
|
depth: structure
|
|
57
57
|
ja:
|
package/rules/weasel-word.yaml
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
id: weasel-word
|
|
2
2
|
layer: L2
|
|
3
3
|
status: stable
|
|
4
|
-
how_to_find:
|
|
4
|
+
how_to_find: weasel-word
|
|
5
5
|
word_list: weasel-word
|
|
6
|
+
extra_word_lists: [telling-cue]
|
|
6
7
|
requires: [pos]
|
|
7
8
|
languages: [ja, en]
|
|
8
9
|
severity: info
|
|
@@ -48,8 +49,8 @@ example:
|
|
|
48
49
|
A 2023 Stanford study of 1,600 staff found remote work raised output by 4%.
|
|
49
50
|
|
|
50
51
|
not_flagged:
|
|
51
|
-
ja:
|
|
52
|
-
en: Only the phrases on chaff's list are checked. A citation right after the phrase does not silence it, since the sentence can name the study itself. In Japanese, 研究によると and 専門家によると, which often follow their source, are checked only as ある・最近の・多くの forms, と言われる only as と言われている (not よく言われる, which mostly talks about the saying itself), and 一般的に alone is not checked.
|
|
52
|
+
ja: 一覧にある言い回しだけを見ます。すぐ後ろに出典が書いてあっても指摘します(文の中で研究の名前を言えるため)。日本語では、前に出典が来やすい「研究によると」「専門家によると」は「ある」「最近の」「多くの」が付いた形だけを、「と言われる」は「と言われている」だけを見ます(「よく言われる話」のように言い回しを話題にするものは見ません)。「一般的に」だけでは指しません。その場で相手から言われた言葉を引用して伝える形(「申し込んだら、「…」と言われています」「業者から「…」と言われている」)も、言った人がいるので指しません。
|
|
53
|
+
en: Only the phrases on chaff's list are checked. A citation right after the phrase does not silence it, since the sentence can name the study itself. In Japanese, 研究によると and 専門家によると, which often follow their source, are checked only as ある・最近の・多くの forms, と言われる only as と言われている (not よく言われる, which mostly talks about the saying itself), and 一般的に alone is not checked. Nor is a quotation reported as told on an occasion or by a named sayer (申し込んだら、「…」と言われています, 業者から「…」と言われている), since someone did say it.
|
|
53
54
|
level_meaning:
|
|
54
55
|
ja: 当てはまる言い回しが {limit} 箇所あれば指摘
|
|
55
56
|
en: reported once there are {limit}
|
|
@@ -43,8 +43,8 @@ example:
|
|
|
43
43
|
The job that builds the site runs nightly. The script that checks links runs hourly. The task that sends mail runs daily. The file that stores the keys is encrypted.
|
|
44
44
|
|
|
45
45
|
not_flagged:
|
|
46
|
-
ja: 読点のある非限定の節(the rule, which we added,)、前置詞の後ろの which(in which)、that の後ろに主語が来る節(the report that we wrote、the fact that it works)、多いほうが 3
|
|
47
|
-
en: 'A non-restrictive clause set off by a comma ("the rule, which we added,"), "which" after a preposition ("in which"), a "that" followed by its own subject ("the report that we wrote", "the fact that it works"), a document where the usual form appears fewer than 3 times, and one where the fewer form passes the level (used on purpose) are not reported.'
|
|
46
|
+
ja: 読点のある非限定の節(the rule, which we added,)、前置詞の後ろの which(in which)、that の後ろに主語が来る節(the report that we wrote、the fact that it works)、多いほうが 3 箇所に満たない文書、少ないほうが水準の数を超える文書(使い分けている)は指しません。引用符の中(一重の引用符 '…' で文をまたぐ引用も)と、ブロック引用の段落(> の段落、[T]he のような角括弧の書き替えで始まる段落、文を閉じない段落の後ろで小文字の語から続く段落)は、引いた文の言葉なので数えません。
|
|
47
|
+
en: 'A non-restrictive clause set off by a comma ("the rule, which we added,"), "which" after a preposition ("in which"), a "that" followed by its own subject ("the report that we wrote", "the fact that it works"), a document where the usual form appears fewer than 3 times, and one where the fewer form passes the level (used on purpose) are not reported. Text inside quotation marks (single ones too, ‘…’, even over several sentences) and block quotations (a > paragraph, a paragraph opening with a bracketed alteration such as [T]he, or one that goes on in lowercase after a paragraph left without a full stop) keep the quoted text''s wording and are not counted.'
|
|
48
48
|
level_meaning:
|
|
49
49
|
ja: 少ないほうの書き方が {limit} 箇所以下のとき指摘
|
|
50
50
|
en: reported when the fewer form appears {limit} times or fewer
|
package/rules/wordy-phrase.yaml
CHANGED
|
@@ -49,8 +49,8 @@ example:
|
|
|
49
49
|
To save time, we met online. Because the room was booked, we stayed home.
|
|
50
50
|
|
|
51
51
|
not_flagged:
|
|
52
|
-
ja: 一覧にある言い回しだけを見ます。契約や法令がわざと使う言い方(with regard to、prior to、in accordance with)は一覧に入れていません。日本語では、人の書いた文章でもふつうの「することができる」と、名詞として要る「必要性」は入れていません。翻訳調(を可能にする)は translationese-density が、「〜を行う」は nominalization が見ます。
|
|
53
|
-
en: Only the phrases on chaff's list are checked. Phrases that contracts and statutes use on purpose ("with regard to", "prior to", "in accordance with") are not on it. In Japanese, することができる, ordinary in human writing, and 必要性, which a noun phrase may need, are left out; translationese (を可能にする) is translationese-density's and 〜を行う is nominalization's.
|
|
52
|
+
ja: 一覧にある言い回しだけを見ます。契約や法令がわざと使う言い方(with regard to、prior to、in accordance with)と、決まりの及ぶ範囲を言う at all times(pets must be on a leash at all times)は一覧に入れていません。日本語では、人の書いた文章でもふつうの「することができる」と、名詞として要る「必要性」は入れていません。翻訳調(を可能にする)は translationese-density が、「〜を行う」は nominalization が見ます。
|
|
53
|
+
en: Only the phrases on chaff's list are checked. Phrases that contracts and statutes use on purpose ("with regard to", "prior to", "in accordance with") are not on it, nor is "at all times", which states the scope of a rule ("pets must be on a leash at all times"). In Japanese, することができる, ordinary in human writing, and 必要性, which a noun phrase may need, are left out; translationese (を可能にする) is translationese-density's and 〜を行う is nominalization's.
|
|
54
54
|
level_meaning:
|
|
55
55
|
ja: 回りくどい言い回しを含む文が {limit} 文あれば指摘
|
|
56
56
|
en: reported once {limit} sentences hold one
|
package/skills/chaff/SKILL.md
CHANGED
|
@@ -61,7 +61,8 @@ documents of the genre; it does not say who wrote the text.
|
|
|
61
61
|
## Checks that read meaning
|
|
62
62
|
|
|
63
63
|
A few checks need a reader: does the proposal state its risks, does the conclusion only restate the body, does a
|
|
64
|
-
number claiming an effect have a source
|
|
64
|
+
number claiming an effect have a source, does the opening start from a generic problem instead of who did what
|
|
65
|
+
(`generic-opening`). chaff never runs a model in a plain check. `npx chaffjs test <file|dir>`
|
|
65
66
|
narrows the candidates by machine and sends only those passages to an AI (Anthropic or OpenAI, set by
|
|
66
67
|
`ai_backend` in `chaff.yaml`; it needs an API key). Run it with `--dry-run` first: it shows what would be sent and
|
|
67
68
|
calls nothing. Ask the person before a real run; the passages leave the machine.
|
|
@@ -117,8 +118,9 @@ tell which is right, leave both and ask.
|
|
|
117
118
|
A file's front matter `genre:` (or `type:`) sets that one file, when neither `genre:` nor a matching `by_path`
|
|
118
119
|
entry does. Strongest first: `--genre` for one run, then `by_path`, `genre:`, front matter, the path, the content,
|
|
119
120
|
and `blog/tech`. `rules:` wins over the genre's preset.
|
|
120
|
-
- `profile:` names a bundled kind of document with fixed conventions
|
|
121
|
-
|
|
121
|
+
- `profile:` names a bundled kind of document with fixed conventions: `statute`, `listing`, `property-sale`,
|
|
122
|
+
`verse` (a Japanese poem: each line ends a sentence) or `play` (a Japanese play: stage directions in () are split
|
|
123
|
+
from the spoken line). Leave it out: the genre or the content chooses it, and the first line of `npx chaffjs tree` shows the choice. `none` stops the choice.
|
|
122
124
|
- `names:` lists the team's names (organisations, products), each read as one name. `include:` adds files besides
|
|
123
125
|
Markdown when a folder is checked (`include: ["*.yaml"]`).
|
|
124
126
|
|
|
@@ -175,7 +177,11 @@ Use this section when asked to make a text sound less generated: 「AIっぽさ
|
|
|
175
177
|
書き直して」, "make this sound human", "this reads like AI wrote it".
|
|
176
178
|
|
|
177
179
|
chaff marks the shapes common in generated text (group "Signs of generated text" in `npx chaffjs rules`: `ai-tell`,
|
|
178
|
-
`contrast-framing`, `stock-transition`, `announcing-opener`, `colon-lead-in` (
|
|
180
|
+
`contrast-framing`, `stock-transition`, `announcing-opener`, `colon-lead-in`, `over-general-claim` (English only),
|
|
181
|
+
`q-fragment-answer` (English only), `assistant-residue`, `email-stock-courtesy` (English emails: stacked "I hope this email finds
|
|
182
|
+
you well"-type courtesies), `closing-exhortation` (a closing that cheers the reader on: 「ぜひ〜してみてください」,
|
|
183
|
+
"You've got this"), `cold-open` (an opening that piles a bare wish, a quoted echo of the previous sentence and a teaser),
|
|
184
|
+
`unprompted-denial` (sentences that deny a premise nobody stated: 「〜の話ではありません」, "This isn't about tooling."), and the signals
|
|
179
185
|
`ai-generated-composite` reads, among others). Most of them do not run in `technical/spec` or in the legal, docs, literature and
|
|
180
186
|
speech genres; `assistant-residue` (words left from a pasted chat reply) runs in almost every genre. `npx chaffjs rules --json`
|
|
181
187
|
says per rule and genre. None of them says the text was generated. chaff never rewrites; the rewriting is yours.
|
|
@@ -200,6 +206,33 @@ says. Apply each rule's direction at its spots. Where a fix needs a specific the
|
|
|
200
206
|
ask. Save the result under the name the plan gives, run its check commands, and report the mode and the checks'
|
|
201
207
|
output. The mode steps below say the rest.
|
|
202
208
|
|
|
209
|
+
**When the request is to remove all of it** (「AI臭さを全部消して」「AIっぽさを完全になくして」, "remove every AI tell"),
|
|
210
|
+
run the plan with `--all-ai-signs` and loop until it says stop:
|
|
211
|
+
|
|
212
|
+
1. `npx chaffjs fix-plan <file> --all-ai-signs --json` (with the genre's `--genre`). It runs every AI-likeness rule,
|
|
213
|
+
also those the genre turns off or leaves out, and adds `aiScore` (the `ai-score` level and its signs), `aiRules`
|
|
214
|
+
(the AI-likeness rules with findings) and `stop` (when to stop). `npx chaffjs facts <file> --json` is the inventory
|
|
215
|
+
of facts to keep.
|
|
216
|
+
2. Rewrite in the mode the plan recommends (Full for a blog post or an essay, or when `ai-generated-composite` fires).
|
|
217
|
+
Fix every spot of every rule in `rules`, by its direction: the AI-likeness ones and the others, so the rewrite
|
|
218
|
+
leaves nothing worse.
|
|
219
|
+
3. Check the tells only a reader can see. `npx chaffjs test <rewritten> --checks ai-tells --dry-run` lists the
|
|
220
|
+
questions and the passages each would be asked about: invented specifics, an abstract opening, a denial of what
|
|
221
|
+
nobody said, a moral at the end, a benefits list that mirrors the problems, a claim restated, inflated significance,
|
|
222
|
+
generic content, a request recast as the reader's benefit, the same thing renamed. Run it without `--dry-run` only
|
|
223
|
+
with an API key and the person's yes (the passages leave the machine). Otherwise read the passages yourself against
|
|
224
|
+
each question. A specific that looks invented (in the original or in your draft) is a question for the writer:
|
|
225
|
+
keep it marked, 「[105cm]くらい」 / "[on a five-hour flight]", and ask them to confirm or cut it; never replace it
|
|
226
|
+
with another invented one. Reread your own draft for wording that changes a claim; `compare` sees facts, not claims.
|
|
227
|
+
4. Run the plan's checks: `npx chaffjs fix-plan <rewritten> --all-ai-signs --before <file> --json` and
|
|
228
|
+
`npx chaffjs compare <file> <rewritten>` (`--distinct --allow-dropped heading --allow-added heading` after a Full
|
|
229
|
+
rewrite).
|
|
230
|
+
5. Repeat from 2 until every line of `stop` holds: `aiRules` is empty; `aiScore.level` is `low`, or the document is too
|
|
231
|
+
short to score; `since.risen` is empty (no rule has more findings than in the original); `compare` passes; none of
|
|
232
|
+
the ai-tells questions fits. Three passes at most. List what is left after the third with the reason (a placeholder
|
|
233
|
+
only the writer can fill, a word that is right in context).
|
|
234
|
+
6. Report a table from chaff's output, before and after: `aiRules`, the score, `since.risen`, `compare`.
|
|
235
|
+
|
|
203
236
|
Pick one of three modes and say which.
|
|
204
237
|
|
|
205
238
|
| Mode | Changes | Pick it when |
|
|
@@ -228,7 +261,7 @@ repeats the body. The writer usually wants the structure changed, not only the s
|
|
|
228
261
|
**Bold** (section by section, outline kept):
|
|
229
262
|
|
|
230
263
|
1. Run chaff and note the document-level signals: the `ai-generated-composite` inputs,
|
|
231
|
-
`bold-density`, `contrast-framing`, `stock-transition`, `sentence-rhythm`.
|
|
264
|
+
`bold-density`, `bold-emphasis`, `contrast-framing`, `stock-transition`, `sentence-rhythm`.
|
|
232
265
|
2. Rewrite each section toward a human voice: less bold; one-line paragraphs and punchlines folded back into
|
|
233
266
|
paragraphs; no "X ではありません。Y です" / "It's not X. It's Y" frames; lists turned back into sentences where the
|
|
234
267
|
items connect; fewer em dashes; no announcing openers. Each paragraph carries one claim, joined to the last by a
|
|
@@ -236,7 +269,9 @@ repeats the body. The writer usually wants the structure changed, not only the s
|
|
|
236
269
|
3. Run chaff again and report the same signals before and after, from chaff's output.
|
|
237
270
|
4. Run `npx chaffjs compare <old> <new>` (exit 1 on a dropped or added fact; `--json` to act on it). Restore every
|
|
238
271
|
dropped fact; for one that is not a fact (a number inside a metaphor, the heading of a section you cut), say why it
|
|
239
|
-
stays out. `--allow-dropped <kind>` excludes a kind you cut on purpose. Never leave an added fact.
|
|
272
|
+
stays out. `--allow-dropped <kind>` excludes a kind you cut on purpose. Never leave an added fact. A name listed as
|
|
273
|
+
respelled (a change of case, or one letter, from a spelling written once to one written at least twice) is not a failure; check
|
|
274
|
+
that the new spelling is the right one.
|
|
240
275
|
|
|
241
276
|
**Full** (全面書き直し, from scratch):
|
|
242
277
|
|
|
@@ -251,6 +286,8 @@ repeats the body. The writer usually wants the structure changed, not only the s
|
|
|
251
286
|
- merge thin sections and split overloaded ones, so a section is a real unit, not one heading per paragraph;
|
|
252
287
|
- cut sections that only restate, the closing まとめ / "Conclusion" included;
|
|
253
288
|
- drop a heading that wraps a single paragraph;
|
|
289
|
+
- in a proposal or report, name sections after their content rather than the textbook outline (Summary, Current
|
|
290
|
+
Situation, Proposed Solution, Expected Benefits, Costs, Risks and Mitigation): `ai-structure` counts that outline;
|
|
254
291
|
- turn a list-of-points section into a narrative with one through-line;
|
|
255
292
|
- no symmetric three-point sections unless the content really has three parts;
|
|
256
293
|
- move the writer's concrete experience to where it carries the argument;
|
|
@@ -292,7 +329,7 @@ repeats the body. The writer usually wants the structure changed, not only the s
|
|
|
292
329
|
once.
|
|
293
330
|
6. **Stop** when all of these hold, or after two full passes, whichever comes first:
|
|
294
331
|
- `ai-generated-composite` does not fire;
|
|
295
|
-
- the density rules (`bold-density`, `
|
|
332
|
+
- the density rules (`bold-density`, `bold-emphasis`, `stock-transition`, `colon-lead-in`) and the share of contrast frames (`contrast-framing`) are under their limits;
|
|
296
333
|
- `chaff outline <old> <new>` shows the new structure score under the plan's limit, with no ✗ left on the measures
|
|
297
334
|
the plan listed as targets;
|
|
298
335
|
- `compare` is clean, or every exclusion has a stated reason.
|
|
@@ -317,7 +354,7 @@ In every mode:
|
|
|
317
354
|
- Never add facts, people, numbers or causes the original does not have.
|
|
318
355
|
- Keep a domain term a word rule trips when it is right in context.
|
|
319
356
|
- Prefer a direct statement over a negated contrast. Say who does what.
|
|
320
|
-
- Never loop just to silence a warning; two passes at most, and list what is left with the reason.
|
|
357
|
+
- Never loop just to silence a warning; two passes at most (three with `--all-ai-signs`), and list what is left with the reason.
|
|
321
358
|
- Per genre: in a tech article, replace metaphors ("静かに壊れる", "silently fails") with what happens and keep steps
|
|
322
359
|
and commands as lists; in a business document, put the conclusion and who does what first and keep tables and
|
|
323
360
|
figures; in an essay, fold punchlines back in and replace big words ("真理", "new possibilities") with the scene.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// The words an acronym is spelled from, beside it in brackets: Communication Access Realtime Translation (CART), VADER (Valence
|
|
2
|
+
// Aware Dictionary and sEntiment Reasoner). The expansion is the name the acronym stands for and keeps the name's spelling, and
|
|
3
|
+
// its picked-out capitals (sEntiment) are the acronym's letters, not another spelling of the word. Pure.
|
|
4
|
+
|
|
5
|
+
import type { Span } from "./plugin.ts";
|
|
6
|
+
|
|
7
|
+
const BRACKET = /\(([^()]*)\)/gu;
|
|
8
|
+
const LATIN_WORD = /\p{Script=Latin}[\p{Script=Latin}\d]*(?:-[\p{Script=Latin}\d]+)*/gu;
|
|
9
|
+
const ACRONYM = /^\p{Lu}{2,10}$/u;
|
|
10
|
+
/** The word before an expansion in brackets: an acronym in any case (VADER, axle), letters only. */
|
|
11
|
+
const ACRONYM_ANY_CASE = /^\p{L}{2,10}$/u;
|
|
12
|
+
const CAPITAL = /\p{Lu}/gu;
|
|
13
|
+
/** Small words an expansion may hold besides the words that give letters (Valence Aware Dictionary and sEntiment Reasoner). */
|
|
14
|
+
const MAX_EXTRA_WORDS = 3;
|
|
15
|
+
|
|
16
|
+
type Word = { readonly text: string; readonly start: number; readonly end: number };
|
|
17
|
+
|
|
18
|
+
const wordsIn = (text: string, offset: number): Word[] =>
|
|
19
|
+
[...text.matchAll(LATIN_WORD)].map((match) => ({ text: match[0], start: offset + match.index, end: offset + match.index + match[0].length }));
|
|
20
|
+
|
|
21
|
+
const capitalsOf = (words: readonly Word[]): string => words.map((word) => (word.text.match(CAPITAL) ?? []).join("")).join("");
|
|
22
|
+
|
|
23
|
+
const sortedLetters = (letters: string): string => [...letters.toUpperCase()].toSorted((left, right) => left.localeCompare(right)).join("");
|
|
24
|
+
|
|
25
|
+
const spells = (words: readonly Word[], acronym: string): boolean => sortedLetters(capitalsOf(words)) === sortedLetters(acronym);
|
|
26
|
+
|
|
27
|
+
const spanOf = (words: readonly Word[]): Span[] => {
|
|
28
|
+
const [first, last] = [words[0], words.at(-1)];
|
|
29
|
+
return first === undefined || last === undefined ? [] : [{ start: first.start, end: last.end }];
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** The words right before an acronym in brackets whose capitals spell it: the shortest such run ending at the bracket. */
|
|
33
|
+
const expansionBefore = (text: string, open: number, acronym: string): Span[] => {
|
|
34
|
+
const before = wordsIn(text.slice(0, open), 0);
|
|
35
|
+
const tail = text.slice(before.at(-1)?.end ?? 0, open);
|
|
36
|
+
if (before.length === 0 || tail.trim() !== "") return [];
|
|
37
|
+
const longest = Math.min(before.length, acronym.length + MAX_EXTRA_WORDS);
|
|
38
|
+
const length = Array.from({ length: longest }, (_, extra) => extra + 1).find((size) => spells(before.slice(-size), acronym));
|
|
39
|
+
return length === undefined ? [] : spanOf(before.slice(-length));
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** The words in brackets right after an acronym whose capitals spell it (VADER (Valence Aware … Reasoner), axle (… eXperience ELicitation)). */
|
|
43
|
+
const expansionInside = (text: string, open: number, content: string): Span[] => {
|
|
44
|
+
const acronym = text.slice(0, open).trimEnd().split(/\s/u).at(-1) ?? "";
|
|
45
|
+
const inside = wordsIn(content, open + 1);
|
|
46
|
+
if (!ACRONYM_ANY_CASE.test(acronym) || inside.length < 2 || !spells(inside, acronym)) return [];
|
|
47
|
+
return spanOf(inside);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** Where the expansions of the acronyms in text lie, both ways round: the expansion before the acronym in brackets, or in brackets after it. */
|
|
51
|
+
export const acronymExpansionSpans = (text: string): Span[] =>
|
|
52
|
+
[...text.matchAll(BRACKET)].flatMap((match) => {
|
|
53
|
+
const content = match[1] ?? "";
|
|
54
|
+
const trimmed = content.trim();
|
|
55
|
+
if (ACRONYM.test(trimmed)) return expansionBefore(text, match.index, trimmed);
|
|
56
|
+
return expansionInside(text, match.index, content);
|
|
57
|
+
});
|
|
@@ -62,6 +62,16 @@ const isNameAfter = (name: string, acronym: string): boolean => {
|
|
|
62
62
|
return namesAcronym(name, acronym);
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
+
/** ハイフンかスラッシュで前の英数字につないだ略語(BY-NC-SA の SA、IEEE-SA の SA)。 */
|
|
66
|
+
const JOINED_BEFORE = /[\p{Script=Latin}\p{N}][-‐‑/]$/u;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* 略語のあとの括弧の中が、その略語の名前か。符号の中につないだ略語(CC BY-NC-SA(表示-非営利-継承))の括弧は、ふつう符号全体の
|
|
70
|
+
* 名前なので、頭文字がその略語と揃う英字の名前(IEEE-SA (Standards Association))だけを、その略語の展開と読む。
|
|
71
|
+
*/
|
|
72
|
+
const namesAcronymAfter = (before: string, name: string, acronym: string): boolean =>
|
|
73
|
+
JOINED_BEFORE.test(before) ? !HAS_KANA_OR_KANJI.test(name) && isNameAfter(name, acronym) : isNameAfter(name, acronym);
|
|
74
|
+
|
|
65
75
|
/** 文の中の略語の展開。両方の形を、文書の中の位置の順に。 */
|
|
66
76
|
export const expansionsIn = (body: ExpansionText): Expansion[] => {
|
|
67
77
|
const nameFirst = [...body.text.matchAll(NAME_FIRST)].flatMap((match) => {
|
|
@@ -72,7 +82,7 @@ export const expansionsIn = (body: ExpansionText): Expansion[] => {
|
|
|
72
82
|
const acronymFirst = [...body.text.matchAll(ACRONYM_FIRST)].flatMap((match) => {
|
|
73
83
|
const acronym = match.groups?.["acronym"] ?? "";
|
|
74
84
|
const name = (match.groups?.["name"] ?? "").trim();
|
|
75
|
-
return
|
|
85
|
+
return namesAcronymAfter(body.text.slice(0, match.index), name, acronym) ? [{ acronym, name, offset: body.start + match.index }] : [];
|
|
76
86
|
});
|
|
77
87
|
return [...nameFirst, ...acronymFirst].toSorted((left, right) => left.offset - right.offset);
|
|
78
88
|
};
|
|
@@ -43,15 +43,25 @@ export const HUMAN_SHARES: HumanShares = {
|
|
|
43
43
|
speech: { documents: 7, fired: 0 },
|
|
44
44
|
technical: { documents: 49, fired: 2 },
|
|
45
45
|
},
|
|
46
|
+
"bold-emphasis": {
|
|
47
|
+
academic: { documents: 10, fired: 0 },
|
|
48
|
+
blog: { documents: 23, fired: 0 },
|
|
49
|
+
business: { documents: 78, fired: 0 },
|
|
50
|
+
docs: { documents: 21, fired: 0 },
|
|
51
|
+
legal: { documents: 28, fired: 0 },
|
|
52
|
+
literature: { documents: 4, fired: 0 },
|
|
53
|
+
speech: { documents: 7, fired: 0 },
|
|
54
|
+
technical: { documents: 26, fired: 0 },
|
|
55
|
+
},
|
|
46
56
|
"bold-label-list": {
|
|
47
|
-
academic: { documents:
|
|
48
|
-
blog: { documents:
|
|
49
|
-
business: { documents:
|
|
50
|
-
docs: { documents:
|
|
51
|
-
legal: { documents:
|
|
57
|
+
academic: { documents: 10, fired: 0 },
|
|
58
|
+
blog: { documents: 23, fired: 0 },
|
|
59
|
+
business: { documents: 78, fired: 4 },
|
|
60
|
+
docs: { documents: 21, fired: 1 },
|
|
61
|
+
legal: { documents: 28, fired: 1 },
|
|
52
62
|
literature: { documents: 4, fired: 0 },
|
|
53
|
-
speech: { documents:
|
|
54
|
-
technical: { documents:
|
|
63
|
+
speech: { documents: 7, fired: 0 },
|
|
64
|
+
technical: { documents: 26, fired: 2 },
|
|
55
65
|
},
|
|
56
66
|
"chat-citation-residue": {
|
|
57
67
|
academic: { documents: 10, fired: 0 },
|
|
@@ -71,15 +81,35 @@ export const HUMAN_SHARES: HumanShares = {
|
|
|
71
81
|
literature: { documents: 13, fired: 0 },
|
|
72
82
|
speech: { documents: 7, fired: 0 },
|
|
73
83
|
},
|
|
84
|
+
"closing-exhortation": {
|
|
85
|
+
academic: { documents: 10, fired: 0 },
|
|
86
|
+
blog: { documents: 23, fired: 0 },
|
|
87
|
+
business: { documents: 80, fired: 0 },
|
|
88
|
+
docs: { documents: 21, fired: 0 },
|
|
89
|
+
legal: { documents: 35, fired: 0 },
|
|
90
|
+
literature: { documents: 13, fired: 0 },
|
|
91
|
+
speech: { documents: 7, fired: 0 },
|
|
92
|
+
technical: { documents: 26, fired: 0 },
|
|
93
|
+
},
|
|
94
|
+
"cold-open": {
|
|
95
|
+
academic: { documents: 10, fired: 0 },
|
|
96
|
+
blog: { documents: 23, fired: 0 },
|
|
97
|
+
business: { documents: 80, fired: 0 },
|
|
98
|
+
docs: { documents: 21, fired: 0 },
|
|
99
|
+
legal: { documents: 35, fired: 0 },
|
|
100
|
+
literature: { documents: 13, fired: 0 },
|
|
101
|
+
speech: { documents: 7, fired: 0 },
|
|
102
|
+
technical: { documents: 26, fired: 0 },
|
|
103
|
+
},
|
|
74
104
|
"colon-lead-in": {
|
|
75
|
-
academic: { documents:
|
|
76
|
-
blog: { documents:
|
|
77
|
-
business: { documents:
|
|
78
|
-
docs: { documents:
|
|
79
|
-
legal: { documents:
|
|
80
|
-
literature: { documents:
|
|
81
|
-
speech: { documents:
|
|
82
|
-
technical: { documents:
|
|
105
|
+
academic: { documents: 10, fired: 0 },
|
|
106
|
+
blog: { documents: 23, fired: 0 },
|
|
107
|
+
business: { documents: 80, fired: 3 },
|
|
108
|
+
docs: { documents: 21, fired: 0 },
|
|
109
|
+
legal: { documents: 35, fired: 0 },
|
|
110
|
+
literature: { documents: 13, fired: 0 },
|
|
111
|
+
speech: { documents: 7, fired: 0 },
|
|
112
|
+
technical: { documents: 26, fired: 3 },
|
|
83
113
|
},
|
|
84
114
|
"contrast-framing": {
|
|
85
115
|
academic: { documents: 10, fired: 0 },
|
|
@@ -91,6 +121,16 @@ export const HUMAN_SHARES: HumanShares = {
|
|
|
91
121
|
speech: { documents: 7, fired: 0 },
|
|
92
122
|
technical: { documents: 26, fired: 0 },
|
|
93
123
|
},
|
|
124
|
+
"email-stock-courtesy": {
|
|
125
|
+
academic: { documents: 5, fired: 0 },
|
|
126
|
+
blog: { documents: 9, fired: 0 },
|
|
127
|
+
business: { documents: 41, fired: 1 },
|
|
128
|
+
docs: { documents: 11, fired: 0 },
|
|
129
|
+
legal: { documents: 14, fired: 0 },
|
|
130
|
+
literature: { documents: 9, fired: 0 },
|
|
131
|
+
speech: { documents: 3, fired: 0 },
|
|
132
|
+
technical: { documents: 13, fired: 0 },
|
|
133
|
+
},
|
|
94
134
|
"emoji-density": {
|
|
95
135
|
academic: { documents: 10, fired: 0 },
|
|
96
136
|
blog: { documents: 23, fired: 0 },
|
|
@@ -130,6 +170,15 @@ export const HUMAN_SHARES: HumanShares = {
|
|
|
130
170
|
speech: { documents: 7, fired: 0 },
|
|
131
171
|
technical: { documents: 49, fired: 0 },
|
|
132
172
|
},
|
|
173
|
+
"over-general-claim": {
|
|
174
|
+
academic: { documents: 5, fired: 0 },
|
|
175
|
+
blog: { documents: 9, fired: 0 },
|
|
176
|
+
business: { documents: 41, fired: 0 },
|
|
177
|
+
docs: { documents: 11, fired: 0 },
|
|
178
|
+
legal: { documents: 14, fired: 0 },
|
|
179
|
+
literature: { documents: 9, fired: 0 },
|
|
180
|
+
speech: { documents: 3, fired: 0 },
|
|
181
|
+
},
|
|
133
182
|
"padded-intro": {
|
|
134
183
|
academic: { documents: 10, fired: 0 },
|
|
135
184
|
blog: { documents: 23, fired: 0 },
|
|
@@ -147,9 +196,19 @@ export const HUMAN_SHARES: HumanShares = {
|
|
|
147
196
|
literature: { documents: 13, fired: 1 },
|
|
148
197
|
speech: { documents: 7, fired: 0 },
|
|
149
198
|
},
|
|
199
|
+
"q-fragment-answer": {
|
|
200
|
+
academic: { documents: 5, fired: 0 },
|
|
201
|
+
blog: { documents: 9, fired: 0 },
|
|
202
|
+
business: { documents: 41, fired: 0 },
|
|
203
|
+
docs: { documents: 11, fired: 0 },
|
|
204
|
+
legal: { documents: 14, fired: 0 },
|
|
205
|
+
literature: { documents: 9, fired: 3 },
|
|
206
|
+
speech: { documents: 3, fired: 0 },
|
|
207
|
+
},
|
|
150
208
|
"rule-of-three": {
|
|
151
209
|
academic: { documents: 10, fired: 0 },
|
|
152
210
|
blog: { documents: 23, fired: 0 },
|
|
211
|
+
business: { documents: 80, fired: 0 },
|
|
153
212
|
docs: { documents: 21, fired: 0 },
|
|
154
213
|
legal: { documents: 35, fired: 0 },
|
|
155
214
|
literature: { documents: 13, fired: 0 },
|
|
@@ -167,7 +226,7 @@ export const HUMAN_SHARES: HumanShares = {
|
|
|
167
226
|
},
|
|
168
227
|
"sentence-rhythm": {
|
|
169
228
|
academic: { documents: 10, fired: 0 },
|
|
170
|
-
blog: { documents: 23, fired:
|
|
229
|
+
blog: { documents: 23, fired: 1 },
|
|
171
230
|
docs: { documents: 21, fired: 0 },
|
|
172
231
|
legal: { documents: 35, fired: 0 },
|
|
173
232
|
literature: { documents: 13, fired: 1 },
|
|
@@ -204,4 +263,14 @@ export const HUMAN_SHARES: HumanShares = {
|
|
|
204
263
|
speech: { documents: 7, fired: 0 },
|
|
205
264
|
technical: { documents: 49, fired: 0 },
|
|
206
265
|
},
|
|
266
|
+
"unprompted-denial": {
|
|
267
|
+
academic: { documents: 10, fired: 0 },
|
|
268
|
+
blog: { documents: 23, fired: 0 },
|
|
269
|
+
business: { documents: 80, fired: 0 },
|
|
270
|
+
docs: { documents: 21, fired: 0 },
|
|
271
|
+
legal: { documents: 35, fired: 1 },
|
|
272
|
+
literature: { documents: 13, fired: 0 },
|
|
273
|
+
speech: { documents: 7, fired: 0 },
|
|
274
|
+
technical: { documents: 26, fired: 0 },
|
|
275
|
+
},
|
|
207
276
|
};
|
|
@@ -14,10 +14,13 @@ const STRUCTURE_RULE = "ai-structure";
|
|
|
14
14
|
/** The genre group a genre's human shares are measured under: business for business/report. */
|
|
15
15
|
export const genreGroupOf = (genre: string): string => genre.split("/")[0] ?? genre;
|
|
16
16
|
|
|
17
|
-
/**
|
|
17
|
+
/** Business runs ai-structure for its textbook outline, but the structure baseline is articles, not business documents. */
|
|
18
|
+
const NOT_ARTICLES = "business";
|
|
19
|
+
|
|
20
|
+
/** The structure baseline is human articles: it is compared only in the article genres ai-structure runs in. */
|
|
18
21
|
const structureApplies = (rules: readonly RuleDefinition[], genre: string): boolean => {
|
|
19
22
|
const rule = rules.find((entry) => entry.id === STRUCTURE_RULE);
|
|
20
|
-
return rule !== undefined && standingIn(rule, genre, presetLevels(genre)).kind === "on";
|
|
23
|
+
return rule !== undefined && genreGroupOf(genre) !== NOT_ARTICLES && standingIn(rule, genre, presetLevels(genre)).kind === "on";
|
|
21
24
|
};
|
|
22
25
|
|
|
23
26
|
type SignalResult = { readonly runs: SignalRun[]; readonly compositeFired: string[] };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Token } from "./plugin.ts";
|
|
2
|
+
|
|
3
|
+
/** The particle that offers alternatives (連続的か断続的か): the words it joins are the options of one choice. */
|
|
4
|
+
const ALTERNATIVE = "か";
|
|
5
|
+
|
|
6
|
+
const isSkippable = (token: Token): boolean => token.pos === "NOUN" || token.pos === "PROPN" || token.surface === "、" || token.surface.trim() === "";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Of the counted tokens (by index into tokens), those that are a later option of a choice (連続的か断続的か、一時的): an earlier
|
|
10
|
+
* counted token is followed by か, and only nouns, a 、 or spaces stand between that か and this one. The options of one choice
|
|
11
|
+
* are one point the sentence makes, so only the first of them counts.
|
|
12
|
+
*/
|
|
13
|
+
export const laterAlternatives = (tokens: readonly Token[], counted: readonly number[]): ReadonlySet<number> =>
|
|
14
|
+
new Set(
|
|
15
|
+
counted.filter((at, k) => {
|
|
16
|
+
const previous = counted[k - 1];
|
|
17
|
+
if (previous === undefined || tokens[previous + 1]?.surface !== ALTERNATIVE) return false;
|
|
18
|
+
return tokens.slice(previous + 2, at).every(isSkippable);
|
|
19
|
+
}),
|
|
20
|
+
);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// "an" before a sounded h (an hospital, an hereditament) is the usage of older English, and some writers keep it still.
|
|
2
|
+
// A document that writes it on purpose writes it more than once, and more often than "a" before such a word: there it is
|
|
3
|
+
// the document's style, and chaff takes no side on style. Once, or against a document that mostly writes "a", it is a slip.
|
|
4
|
+
// Pure.
|
|
5
|
+
|
|
6
|
+
/** One article before a word that starts with a sounded h: whether the article is "an". */
|
|
7
|
+
export type HArticle = { readonly an: boolean };
|
|
8
|
+
|
|
9
|
+
/** Fewer uses of "an" than this are a slip, not a style. */
|
|
10
|
+
const MIN_STYLE_USES = 2;
|
|
11
|
+
|
|
12
|
+
/** Whether the document writes "an" before a sounded h as its style: at least twice, and more often than "a". */
|
|
13
|
+
export const writesAnBeforeH = (articles: readonly HArticle[]): boolean => {
|
|
14
|
+
const an = articles.filter((article) => article.an).length;
|
|
15
|
+
return an >= MIN_STYLE_USES && an > articles.length - an;
|
|
16
|
+
};
|