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
|
@@ -1,18 +1,32 @@
|
|
|
1
|
-
import type { Detector, DocumentProfile, Finding, ProseDocument, Sentence, Span, Token } from "../plugin.ts";
|
|
1
|
+
import type { Detector, DetectorOptions, DocumentProfile, Finding, ProseDocument, Sentence, Span, Token } from "../plugin.ts";
|
|
2
2
|
import { compacted } from "./gram-place.ts";
|
|
3
3
|
import { leadingCounter, trailingPrefix } from "./counter-edge.ts";
|
|
4
4
|
import { trailingAddressee, type AddresseeSuffix } from "./addressee-edge.ts";
|
|
5
5
|
import { leadingPrefix, trailingTitle, type AddresseeWords } from "./addressee-title-edge.ts";
|
|
6
|
+
import {
|
|
7
|
+
followsForm,
|
|
8
|
+
followsUnit,
|
|
9
|
+
holdsName,
|
|
10
|
+
isListItem,
|
|
11
|
+
leadingDate,
|
|
12
|
+
leadingOrdinal,
|
|
13
|
+
leadingReference,
|
|
14
|
+
trailingConjunction,
|
|
15
|
+
type Edge,
|
|
16
|
+
} from "./kanji-name-edge.ts";
|
|
17
|
+
import { isNameList } from "./name-list-sentence.ts";
|
|
6
18
|
import { maskAddresses } from "../address-chain.ts";
|
|
7
19
|
import { isAddressRun } from "./place-run.ts";
|
|
8
20
|
import { isOneName } from "./name-run.ts";
|
|
9
|
-
import { isOrganisationRun, type OrganisationWords } from "./organisation-run.ts";
|
|
10
|
-
import { endsInTitle, isTitlePosition, isTitledName, type TitleWords } from "./titled-run.ts";
|
|
21
|
+
import { isOrganisationHead, isOrganisationRun, type OrganisationWords } from "./organisation-run.ts";
|
|
22
|
+
import { endsInTitle, inStatuteTitle, isTitlePosition, isTitledName, repeatedRuns, titleBody, type TitleWords } from "./titled-run.ts";
|
|
11
23
|
import { proseText } from "../measure.ts";
|
|
12
24
|
import { parallelDotCount } from "./middle-dot.ts";
|
|
13
25
|
import { maskSpans } from "../mask.ts";
|
|
14
26
|
import { quotedSpans } from "../quoted-span.ts";
|
|
15
27
|
import { nameSpans } from "../team-names.ts";
|
|
28
|
+
import { isIn } from "../lexicon-genres.ts";
|
|
29
|
+
import { isTitledPerson, standaloneNames, unknownPieces } from "./kanji-run-pieces.ts";
|
|
16
30
|
|
|
17
31
|
/**
|
|
18
32
|
* 文字の並びを見る検出。漢字の連なりが住所か名前かだけは、形態素解析の固有名詞と数で決める。
|
|
@@ -24,6 +38,7 @@ const KANJI_RUN = /[一-鿿]+/gu;
|
|
|
24
38
|
* 漢字の連なりと、その文書全体の座標での範囲。quoted は括弧の中身がまるごとこの連なりであること。
|
|
25
39
|
* placed は、題の名前の置き方(括弧を閉じる、補いの括弧が続く、文がこれだけ)をしていること。
|
|
26
40
|
* after は、連なりが文の頭にあるときの、その後ろの文字(宛名の行の、空白と「殿」)。頭になければ undefined。
|
|
41
|
+
* before は、文の頭から連なりの前までの文字(空白を挟んだ法人格)。
|
|
27
42
|
*/
|
|
28
43
|
type KanjiRun = {
|
|
29
44
|
readonly text: string;
|
|
@@ -31,12 +46,23 @@ type KanjiRun = {
|
|
|
31
46
|
readonly quoted: boolean;
|
|
32
47
|
readonly placed: boolean;
|
|
33
48
|
readonly after: string | undefined;
|
|
49
|
+
readonly before: string;
|
|
50
|
+
/** 連なりの後ろから文の終わりまでの文字(中黒の後ろへ続く名前の「・適応小委員会」)。 */
|
|
51
|
+
readonly next: string;
|
|
52
|
+
/** 文がこの連なりだけ(用語集の見出し語の行)。 */
|
|
53
|
+
readonly alone: boolean;
|
|
54
|
+
/** 名前の並び(区長、副区長、…選挙管理委員会事務局長)の、「、」で区切った 1 項目がこの連なりだけ。 */
|
|
55
|
+
readonly listItem: boolean;
|
|
56
|
+
/** 連なりを中に含む括弧(ENCLOSING_MARKS)の中身の、文書全体の座標での範囲。 */
|
|
57
|
+
readonly brackets: readonly Span[];
|
|
34
58
|
};
|
|
35
59
|
|
|
36
60
|
const SPACE = /\s/gu;
|
|
37
61
|
|
|
38
|
-
/**
|
|
39
|
-
const NAME_MARKS = { "「": "」", "『": "』", "【": "】" };
|
|
62
|
+
/** 名前を囲む括弧。鉤括弧と、見出しや分類の名前を囲む隅付き括弧(【浪速区役所公募型比較見積】)と、欄の名前を囲む角括弧([当事者系審判請求人])。 */
|
|
63
|
+
const NAME_MARKS = { "「": "」", "『": "』", "【": "】", "[": "]" };
|
|
64
|
+
/** 法令の題(〜に関する法律)を囲む括弧。題の中の連なりは、題の一部。 */
|
|
65
|
+
const ENCLOSING_MARKS = { "「": "」", "『": "』", "(": ")", "(": ")" };
|
|
40
66
|
|
|
41
67
|
/**
|
|
42
68
|
* 同じ連なりが文に二度出ても、それぞれの位置で読む。proseText は空白を詰めたり除いたりするだけなので、
|
|
@@ -46,20 +72,53 @@ const NAME_MARKS = { "「": "」", "『": "』", "【": "】" };
|
|
|
46
72
|
const maskedProse = (prose: string, profile: DocumentProfile | undefined, names: readonly string[]): string =>
|
|
47
73
|
maskSpans(maskAddresses(prose, profile), nameSpans(prose, names));
|
|
48
74
|
|
|
49
|
-
/**
|
|
75
|
+
/**
|
|
76
|
+
* 鉤括弧と隅付き括弧の中身が、この範囲(文の先頭からの位置)と、漢字も平仮名も無い語(ページ、センター)だけか。
|
|
77
|
+
* 括弧でくくった名前は、書き手が 1 つの名前として示したもの(「登録業者情報検索入力ページ」)。
|
|
78
|
+
*/
|
|
50
79
|
const fillsQuote = (sentence: Sentence, start: number, end: number): boolean =>
|
|
51
|
-
quotedSpans(sentence.text, NAME_MARKS).some((span) =>
|
|
80
|
+
quotedSpans(sentence.text, NAME_MARKS).some((span) => holdsName(sentence.text, span, start, end));
|
|
52
81
|
|
|
53
82
|
const runsOf = (sentence: Sentence, profile: DocumentProfile | undefined, names: readonly string[]): KanjiRun[] => {
|
|
54
83
|
const prose = proseText(sentence);
|
|
55
84
|
const printed = compacted(sentence.text, "char").offsets;
|
|
85
|
+
const nameList = isNameList(prose);
|
|
56
86
|
return [...maskedProse(prose, profile, names).matchAll(KANJI_RUN)].map((match) => {
|
|
57
87
|
const before = prose.slice(0, match.index).replace(SPACE, "").length;
|
|
58
88
|
const [start, last] = [printed[before], printed[before + match[0].length - 1]];
|
|
59
|
-
if (start === undefined || last === undefined)
|
|
89
|
+
if (start === undefined || last === undefined)
|
|
90
|
+
return {
|
|
91
|
+
text: match[0],
|
|
92
|
+
span: undefined,
|
|
93
|
+
quoted: false,
|
|
94
|
+
placed: false,
|
|
95
|
+
after: undefined,
|
|
96
|
+
before: "",
|
|
97
|
+
next: "",
|
|
98
|
+
alone: false,
|
|
99
|
+
listItem: false,
|
|
100
|
+
brackets: [],
|
|
101
|
+
};
|
|
60
102
|
const span = { start: sentence.span.start + start, end: sentence.span.start + last + 1 };
|
|
61
103
|
const after = sentence.text.slice(0, start).trim() === "" ? sentence.text.slice(last + 1) : undefined;
|
|
62
|
-
|
|
104
|
+
const quoted = fillsQuote(sentence, start, last + 1);
|
|
105
|
+
const alone = sentence.text.slice(0, start).trim() === "" && sentence.text.slice(last + 1).trim() === "";
|
|
106
|
+
const listItem = nameList && isListItem(sentence.text, start, last + 1);
|
|
107
|
+
const brackets = quotedSpans(sentence.text, ENCLOSING_MARKS)
|
|
108
|
+
.filter((bracket) => bracket.start <= start && last < bracket.end)
|
|
109
|
+
.map((bracket) => ({ start: sentence.span.start + bracket.start, end: sentence.span.start + bracket.end }));
|
|
110
|
+
return {
|
|
111
|
+
text: match[0],
|
|
112
|
+
span,
|
|
113
|
+
quoted,
|
|
114
|
+
placed: isTitlePosition(sentence.text, start, last + 1),
|
|
115
|
+
after,
|
|
116
|
+
before: sentence.text.slice(0, start),
|
|
117
|
+
next: sentence.text.slice(last + 1),
|
|
118
|
+
alone,
|
|
119
|
+
listItem,
|
|
120
|
+
brackets,
|
|
121
|
+
};
|
|
63
122
|
});
|
|
64
123
|
};
|
|
65
124
|
|
|
@@ -68,12 +127,20 @@ type NameWords = {
|
|
|
68
127
|
readonly topUnits: ReadonlySet<string>;
|
|
69
128
|
readonly organisation: OrganisationWords;
|
|
70
129
|
readonly title: TitleWords;
|
|
130
|
+
/** 法令・制度・給付の名前を閉じる語(施行令、制度、交付金)。置き方を問わず名前を閉じる。 */
|
|
131
|
+
readonly fixedName: TitleWords;
|
|
71
132
|
/** 数の後ろで日付・時刻の位置を言う単位(月)。連なりの頭にあれば、数に付いた助数詞。 */
|
|
72
133
|
readonly positional: readonly string[];
|
|
73
134
|
/** 宛先の名前に付く語(宛、御中)。連なりの尻にあれば、名前の後ろに付いた語。 */
|
|
74
135
|
readonly addressee: readonly string[];
|
|
75
136
|
/** 宛名の並びの、組織の名前の前の「各」と後ろの役職(各…学校長、…協会会長)。 */
|
|
76
137
|
readonly addressees: AddresseeWords;
|
|
138
|
+
/** 前に書いたものを指す語(上記、当該)。連なりの頭にあれば、後ろの語に付いた指示の語。 */
|
|
139
|
+
readonly references: readonly string[];
|
|
140
|
+
/** 並べた物の後ろに付く語(等)。連なりの尻にあれば、名前の後ろに付いた語。 */
|
|
141
|
+
readonly listSuffixes: readonly string[];
|
|
142
|
+
/** 連なりを閉じる、読み手が一つの語と知っている長い語(内閣総理大臣、許可事業者)。その前で連なりを割る。 */
|
|
143
|
+
readonly knownWords: ReadonlySet<string>;
|
|
77
144
|
};
|
|
78
145
|
|
|
79
146
|
type Tail = AddresseeSuffix;
|
|
@@ -84,6 +151,16 @@ type RunContext = {
|
|
|
84
151
|
readonly names: readonly string[];
|
|
85
152
|
readonly words: NameWords;
|
|
86
153
|
readonly titled: readonly string[];
|
|
154
|
+
/** 文書の文の中に二度以上出る連なり(repeatedRuns)。題を閉じる語で終われば、書き手が名前として使い回している。 */
|
|
155
|
+
readonly repeated: ReadonlySet<string>;
|
|
156
|
+
/** 文書がほかで単独の連なりとして使う組織の名前(standaloneNames: 安全保障理事会)と法令の名前とその名の元の語(statuteTerms)。 */
|
|
157
|
+
readonly terms: ReadonlySet<string>;
|
|
158
|
+
/** 文書のどこかで、括弧の中身がまるごとその連なりである名前(「署名用電子証明書確認画面」)。 */
|
|
159
|
+
readonly presented: ReadonlySet<string>;
|
|
160
|
+
/** 見出し語の行(文がその連なりだけ)を数えない文書か(用語集)。 */
|
|
161
|
+
readonly headwords: boolean;
|
|
162
|
+
/** 知っている語の語数の上限: 知っている語の字数の上限(一字一語のときの語数)。 */
|
|
163
|
+
readonly maxKnownWords: number;
|
|
87
164
|
};
|
|
88
165
|
|
|
89
166
|
const coveringOf = (tokens: readonly Token[], span: Span): number[] =>
|
|
@@ -93,18 +170,33 @@ const coveringOf = (tokens: readonly Token[], span: Span): number[] =>
|
|
|
93
170
|
* 漢字の連なりが住所(東京都港区新橋二丁目)か 1 つの名前(日本銀行)か 1 つの組織の名前(国立研究開発法人産業技術総合研究所)か。
|
|
94
171
|
* 形態素解析の地名・人名・組織名と数、組織の語彙で決める。
|
|
95
172
|
*/
|
|
96
|
-
const isPlaceName = (tokens: readonly Token[], span: Span, words: NameWords): boolean => {
|
|
173
|
+
const isPlaceName = (tokens: readonly Token[], span: Span, words: NameWords, formBefore: boolean): boolean => {
|
|
97
174
|
const covering = coveringOf(tokens, span);
|
|
98
|
-
return isAddressRun(tokens, covering, words.topUnits) || isOneName(tokens, covering) || isOrganisationRun(tokens, covering, words.organisation);
|
|
175
|
+
return isAddressRun(tokens, covering, words.topUnits) || isOneName(tokens, covering) || isOrganisationRun(tokens, covering, words.organisation, formBefore);
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
/** 連なりのすぐ後ろの、中黒で続く語の並び(・適応小委員会、・学位授与機構)。 */
|
|
179
|
+
const DOTTED_TAIL = /^(?:・[一-鿿ァ-ヶー]+)+/u;
|
|
180
|
+
|
|
181
|
+
/** 連なりの後ろ(next)が中黒で続き、最後の語が組織の語で閉じるか(社会保障審議会企業年金・個人年金部会の「・個人年金部会」)。 */
|
|
182
|
+
const closesAfterDot = (next: string, units: readonly string[]): boolean => {
|
|
183
|
+
const last = DOTTED_TAIL.exec(next)?.[0].split("・").at(-1);
|
|
184
|
+
return last !== undefined && units.some((unit) => last.endsWith(unit));
|
|
99
185
|
};
|
|
100
186
|
|
|
101
|
-
/**
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
187
|
+
/** 中黒の後ろで閉じる組織の名前の前半(独立行政法人大学改革支援・学位授与機構の「独立行政法人大学改革支援」)。 */
|
|
188
|
+
const isDottedName = (tokens: readonly Token[], span: Span, run: KanjiRun, organisation: OrganisationWords, formBefore: boolean): boolean =>
|
|
189
|
+
closesAfterDot(run.next, organisation.units) && isOrganisationHead(tokens, coveringOf(tokens, span), organisation, formBefore);
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* 題の名前か。法令・制度・給付の名前(住民基本台帳法施行令)はそれを閉じる語で終わるだけで名前。題を閉じる語
|
|
193
|
+
* (大阪市鶴見区役所公募型比較見積実施要綱、自衛隊高級幹部会同)は、ここか文書のほかの所で題として置かれているか、文書が同じ連なりを繰り返している。
|
|
194
|
+
*/
|
|
195
|
+
const isTitle = (tokens: readonly Token[], span: Span, text: string, placed: boolean, context: RunContext): boolean => {
|
|
196
|
+
const run = coveringOf(tokens, span).flatMap((index) => tokens.slice(index, index + 1));
|
|
197
|
+
if (endsInTitle(run, context.words.fixedName)) return true;
|
|
198
|
+
return endsInTitle(run, context.words.title) && (placed || isTitledName(text, context.titled) || context.repeated.has(text));
|
|
199
|
+
};
|
|
108
200
|
|
|
109
201
|
/** 宛名の行(各国公私立高等専門学校長、…協会会長 殿): 連なりが行の頭にあり、後ろは空白と宛先に付く語だけ。 */
|
|
110
202
|
const isAddresseeLine = (run: KanjiRun, words: NameWords): boolean => {
|
|
@@ -112,11 +204,19 @@ const isAddresseeLine = (run: KanjiRun, words: NameWords): boolean => {
|
|
|
112
204
|
return after !== undefined && (after === "" || words.addressee.includes(after));
|
|
113
205
|
};
|
|
114
206
|
|
|
207
|
+
/** 宛名の行か、名前の並びの 1 項目。どちらも役職を付けた名前を 1 つずつ並べたもので、尻の役職は名前の外。 */
|
|
208
|
+
const isNamedEntry = (run: KanjiRun, words: NameWords): boolean => run.listItem || isAddresseeLine(run, words);
|
|
209
|
+
|
|
115
210
|
/** 尻の外す語: 数に付く接頭の語か宛先に付く語と、宛名の行ならその前の役職(日本博物館協会会長殿の「会長殿」)。 */
|
|
116
211
|
const tailOf = (tokens: readonly Token[], run: KanjiRun, span: Span, words: NameWords): Tail | undefined => {
|
|
117
212
|
const prefix = trailingPrefix(tokens, span.end, run.text);
|
|
118
|
-
const suffix =
|
|
119
|
-
|
|
213
|
+
const suffix =
|
|
214
|
+
prefix === undefined
|
|
215
|
+
? (trailingConjunction(tokens, span.start, span.end, run.text) ??
|
|
216
|
+
trailingAddressee(tokens, span.end, run.text, words.addressee) ??
|
|
217
|
+
trailingAddressee(tokens, span.end, run.text, words.listSuffixes))
|
|
218
|
+
: { surface: prefix.surface, start: prefix.span.start };
|
|
219
|
+
const title = isNamedEntry(run, words) ? trailingTitle(run.text.slice(0, run.text.length - (suffix?.surface.length ?? 0)), words.addressees) : undefined;
|
|
120
220
|
if (title === undefined) return suffix;
|
|
121
221
|
return { surface: title + (suffix?.surface ?? ""), start: (suffix?.start ?? span.end) - title.length };
|
|
122
222
|
};
|
|
@@ -124,13 +224,24 @@ const tailOf = (tokens: readonly Token[], run: KanjiRun, span: Span, words: Name
|
|
|
124
224
|
/** 外す語を外した残り。頭の「各」は、宛名の行でなければ、残りが名前と決まったときだけ外す(呼び出し側が戻す)。 */
|
|
125
225
|
type Measured = { readonly rest: Span; readonly text: string; readonly keptHead: string };
|
|
126
226
|
|
|
227
|
+
/** 頭の外す語: 数に付いた助数詞、宛名の「各」、前に書いたものを指す語(上記)か代の序数か漢数字の日付の順に、最初に当たったもの。prefix は「各」のとき。 */
|
|
228
|
+
const headOf = (tokens: readonly Token[], run: KanjiRun, span: Span, name: string, words: NameWords): { head?: Edge; prefix?: Token } => {
|
|
229
|
+
const counter = leadingCounter(tokens, span.start, run.text, words.positional);
|
|
230
|
+
if (counter !== undefined) return { head: counter };
|
|
231
|
+
const prefix = leadingPrefix(tokens, span.start, name, words.addressees);
|
|
232
|
+
if (prefix !== undefined) return { head: prefix, prefix };
|
|
233
|
+
const reference =
|
|
234
|
+
leadingReference(tokens, span.start, name, words.references) ??
|
|
235
|
+
leadingOrdinal(tokens, span.start, name) ??
|
|
236
|
+
leadingDate(tokens, span.start, name, run.before);
|
|
237
|
+
return reference === undefined ? {} : { head: reference };
|
|
238
|
+
};
|
|
239
|
+
|
|
127
240
|
const measuredOf = (tokens: readonly Token[], run: KanjiRun, span: Span, words: NameWords): Measured => {
|
|
128
241
|
const tail = tailOf(tokens, run, span, words);
|
|
129
242
|
const name = run.text.slice(0, run.text.length - (tail?.surface.length ?? 0));
|
|
130
|
-
const
|
|
131
|
-
const
|
|
132
|
-
const head = counter ?? prefix;
|
|
133
|
-
const keptHead = prefix !== undefined && !isAddresseeLine(run, words) ? prefix.surface : "";
|
|
243
|
+
const { head, prefix } = headOf(tokens, run, span, name, words);
|
|
244
|
+
const keptHead = prefix !== undefined && !isNamedEntry(run, words) ? prefix.surface : "";
|
|
134
245
|
return { rest: { start: head?.span.end ?? span.start, end: tail?.start ?? span.end }, text: name.slice(head?.surface.length ?? 0), keptHead };
|
|
135
246
|
};
|
|
136
247
|
|
|
@@ -140,10 +251,43 @@ const measuredOf = (tokens: readonly Token[], run: KanjiRun, span: Span, words:
|
|
|
140
251
|
* 住所か名前かは、それを外した残りで決める(1日日本銀行の「日本銀行」)。品詞が無ければ判定しない。
|
|
141
252
|
*/
|
|
142
253
|
const measuredRun = (tokens: readonly Token[] | undefined, run: KanjiRun, context: RunContext): string => {
|
|
143
|
-
if (run.quoted) return "";
|
|
254
|
+
if (run.quoted || (context.headwords && run.alone)) return "";
|
|
144
255
|
if (tokens === undefined || run.span === undefined) return run.text;
|
|
145
256
|
const { rest, text, keptHead } = measuredOf(tokens, run, run.span, context.words);
|
|
146
|
-
|
|
257
|
+
if (context.presented.has(text) || inStatuteTitle(tokens, run.brackets, context.words.fixedName)) return "";
|
|
258
|
+
const organisation = context.words.organisation;
|
|
259
|
+
const formBefore = rest.start === run.span.start && (followsForm(run.before, organisation.forms) || followsUnit(run.before, organisation.units));
|
|
260
|
+
if (isPlaceName(tokens, rest, context.words, formBefore) || isTitle(tokens, rest, text, run.placed, context)) return "";
|
|
261
|
+
if (rest.end === run.span.end && isDottedName(tokens, rest, run, organisation, formBefore)) return "";
|
|
262
|
+
return longestUnknown(tokens, rest, keptHead, context);
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
/** 語の、範囲(span)の中の字。連なりの頭や尻で外した語にまたがる語は、範囲の中だけ。 */
|
|
266
|
+
const surfaceWithin = (token: Token, span: Span): string =>
|
|
267
|
+
token.surface.slice(Math.max(0, span.start - token.span.start), Math.max(0, span.end - token.span.start));
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* 連なりの、知っている語(文書がほかで単独で使う組織の名前と法令の名前、連なりを閉じる決まった語、職名の前後の人の名前)を外した残りのうち、最も長いもの。
|
|
271
|
+
* 安全保障理事会常任理事国は(安全保障理事会を単独で使う文書なら)「常任理事国」、日本国内閣総理大臣は「日本国」を数える。
|
|
272
|
+
* 名前に普通の語が続く連なり(日本弁護士連合会臨時総会決議)は、名前がその文書で単独で使われていなければ、まるごと数える。
|
|
273
|
+
*/
|
|
274
|
+
const longestUnknown = (tokens: readonly Token[], rest: Span, keptHead: string, context: RunContext): string => {
|
|
275
|
+
const runTokens = coveringOf(tokens, rest).flatMap((index) => tokens.slice(index, index + 1));
|
|
276
|
+
const words = runTokens.map((token) => surfaceWithin(token, rest));
|
|
277
|
+
const whole = words.join("");
|
|
278
|
+
// A run as long as the text holds no known word; reading it word by word would take a pass per word.
|
|
279
|
+
if (![...context.terms, ...context.words.knownWords].some((known) => whole.includes(known))) return keptHead + whole;
|
|
280
|
+
const isKnown = (start: number, end: number): boolean => {
|
|
281
|
+
const piece = words.slice(start, end).join("");
|
|
282
|
+
return (
|
|
283
|
+
context.terms.has(piece) ||
|
|
284
|
+
(end === words.length && context.words.knownWords.has(piece)) ||
|
|
285
|
+
isTitledPerson(runTokens, words, { start, end }, context.words.knownWords, context.maxKnownWords)
|
|
286
|
+
);
|
|
287
|
+
};
|
|
288
|
+
return unknownPieces(words, context.maxKnownWords, isKnown)
|
|
289
|
+
.map((piece) => (piece.first ? keptHead + piece.text : piece.text))
|
|
290
|
+
.reduce((longest, piece) => (piece.length > longest.length ? piece : longest), "");
|
|
147
291
|
};
|
|
148
292
|
|
|
149
293
|
const longestKanji = (sentence: Sentence, context: RunContext): string =>
|
|
@@ -151,20 +295,51 @@ const longestKanji = (sentence: Sentence, context: RunContext): string =>
|
|
|
151
295
|
.map((run) => measuredRun(sentence.tokens, run, context))
|
|
152
296
|
.reduce((longest, run) => (run.length > longest.length ? run : longest), "");
|
|
153
297
|
|
|
298
|
+
/** 見出しの中の漢字の連なり。 */
|
|
299
|
+
const headingRuns = (doc: ProseDocument): string[] =>
|
|
300
|
+
(doc.markup?.headings ?? []).flatMap((heading) => [...heading.text.matchAll(KANJI_RUN)].map((match) => match[0]));
|
|
301
|
+
|
|
302
|
+
/** 文書の文の中の漢字の連なりと、その文の語。 */
|
|
303
|
+
type DocumentRun = { readonly run: KanjiRun; readonly tokens: readonly Token[] | undefined };
|
|
304
|
+
|
|
305
|
+
const documentRuns = (doc: ProseDocument, profile: DocumentProfile | undefined, names: readonly string[]): DocumentRun[] =>
|
|
306
|
+
doc.sentences.flatMap((sentence) => runsOf(sentence, profile, names).map((run) => ({ run, tokens: sentence.tokens })));
|
|
307
|
+
|
|
154
308
|
/**
|
|
155
309
|
* 文書の中で題として置かれた漢字の連なり: 題の置き方をした文の中の連なりと、見出しの中の連なり。
|
|
156
310
|
* 同じ名前を文の中で使えば(認定職業訓練実施奨励金の支給額)、それも題の名前と読む。
|
|
157
311
|
*/
|
|
158
|
-
const titledNames = (doc: ProseDocument,
|
|
159
|
-
...
|
|
160
|
-
...(doc
|
|
312
|
+
const titledNames = (doc: ProseDocument, runs: readonly DocumentRun[]): string[] => [
|
|
313
|
+
...runs.flatMap(({ run }) => (run.placed ? [run.text] : [])),
|
|
314
|
+
...headingRuns(doc),
|
|
161
315
|
];
|
|
162
316
|
|
|
317
|
+
/** 割る手がかりにする、文書が単独で使う名前の最短の字数。短い名前(事務局、理事会)は普通の語の一部にもなる。 */
|
|
318
|
+
const MIN_TERM_LENGTH = 6;
|
|
319
|
+
|
|
163
320
|
/**
|
|
164
|
-
*
|
|
165
|
-
*
|
|
321
|
+
* 文書が単独の連なりとして使う法令・制度の名前(政治資金規正法)と、その名前の元の語(愛玩動物看護師法の「愛玩動物看護師」)のうち、
|
|
322
|
+
* 字数が MIN_TERM_LENGTH から上限(max)までのもの。法令が名に取った語は、読み手がその法令の名前から知っている語。
|
|
166
323
|
*/
|
|
167
|
-
|
|
324
|
+
const statuteTerms = (runs: readonly DocumentRun[], fixedName: TitleWords, max: number): string[] =>
|
|
325
|
+
runs.flatMap(({ run, tokens }) => {
|
|
326
|
+
if (tokens === undefined || run.span === undefined) return [];
|
|
327
|
+
const body = titleBody(
|
|
328
|
+
coveringOf(tokens, run.span).flatMap((index) => tokens.slice(index, index + 1)),
|
|
329
|
+
fixedName,
|
|
330
|
+
);
|
|
331
|
+
const terms = body === undefined ? [] : [run.text, body];
|
|
332
|
+
return terms.filter((term) => [...term].length >= MIN_TERM_LENGTH && [...term].length <= max);
|
|
333
|
+
});
|
|
334
|
+
|
|
335
|
+
/** 文書の genre が、rule の headword_genres(見出し語の行を数えない genre: 用語集)にあるか。 */
|
|
336
|
+
const isHeadwordGenre = (options: DetectorOptions): boolean => {
|
|
337
|
+
const genres = options.settings?.["headword_genres"];
|
|
338
|
+
const genre = options.genre;
|
|
339
|
+
return genre !== undefined && Array.isArray(genres) && genres.some((target: string) => isIn(genre, target));
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
const nameWordsOf = (doc: ProseDocument): NameWords => {
|
|
168
343
|
const patterns = (id: string): string[] => (doc.lexicons[id] ?? []).map((entry) => entry.pattern);
|
|
169
344
|
const organisation: OrganisationWords = {
|
|
170
345
|
forms: patterns("organisation-form"),
|
|
@@ -175,12 +350,44 @@ export const kanjiRun: Detector = (doc, options): Finding[] => {
|
|
|
175
350
|
topUnits: new Set(patterns("prefecture-unit")),
|
|
176
351
|
organisation,
|
|
177
352
|
title: { endings: patterns("title-ending") },
|
|
353
|
+
fixedName: { endings: patterns("fixed-name-ending") },
|
|
178
354
|
positional: patterns("calendar-unit"),
|
|
179
355
|
addressee: patterns("addressee-suffix"),
|
|
180
356
|
addressees: { prefixes: patterns("addressee-prefix"), titles: patterns("addressee-title"), endings: organisation.units, forms: organisation.closingForms },
|
|
357
|
+
references: patterns("reference-prefix"),
|
|
358
|
+
listSuffixes: patterns("list-suffix"),
|
|
359
|
+
knownWords: new Set(patterns("kanji-known-word")),
|
|
181
360
|
};
|
|
361
|
+
return words;
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
const contextOf = (doc: ProseDocument, options: DetectorOptions): RunContext => {
|
|
365
|
+
const words = nameWordsOf(doc);
|
|
182
366
|
const names = doc.names ?? [];
|
|
183
|
-
const
|
|
367
|
+
const runs = documentRuns(doc, doc.profile, names);
|
|
368
|
+
const inSentences = runs.map(({ run }) => run.text);
|
|
369
|
+
return {
|
|
370
|
+
profile: doc.profile,
|
|
371
|
+
names,
|
|
372
|
+
words,
|
|
373
|
+
titled: titledNames(doc, runs),
|
|
374
|
+
repeated: repeatedRuns(inSentences),
|
|
375
|
+
terms: new Set([
|
|
376
|
+
...standaloneNames([...inSentences, ...headingRuns(doc)], MIN_TERM_LENGTH, options.limit, words.organisation.units),
|
|
377
|
+
...statuteTerms(runs, words.fixedName, options.limit),
|
|
378
|
+
]),
|
|
379
|
+
presented: new Set(runs.flatMap(({ run }) => (run.quoted ? [run.text] : []))),
|
|
380
|
+
headwords: isHeadwordGenre(options),
|
|
381
|
+
maxKnownWords: Math.max(options.limit, ...[...words.knownWords].map((word) => [...word].length)),
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* 漢字が続くと、どこで語が切れるのか読み手が探すことになる。
|
|
387
|
+
* 「情報処理推進機構認定試験」は 12 字。ひらがなを 1 つ挟むだけで読める。
|
|
388
|
+
*/
|
|
389
|
+
export const kanjiRun: Detector = (doc, options): Finding[] => {
|
|
390
|
+
const context = contextOf(doc, options);
|
|
184
391
|
return doc.sentences
|
|
185
392
|
.map((sentence) => ({ sentence, run: longestKanji(sentence, context) }))
|
|
186
393
|
.filter(({ run }) => run.length > options.limit)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// A line of a pasted chat log ("<jinxer-wm> FIRING: PHPFPMTooBusy: Not enough idle PHP-FPM workers"): the speaker's nick in
|
|
2
|
+
// angle brackets, then what the speaker (often an alert bot) said. The words are the speaker's, not the writer's. Pure.
|
|
3
|
+
|
|
4
|
+
type Span = { readonly start: number; readonly end: number };
|
|
5
|
+
|
|
6
|
+
const LIST_MARK = String.raw`(?:[-*+][ \t]+)?`;
|
|
7
|
+
const TIME = String.raw`(?:\[?\d{1,2}:\d{2}(?::\d{2})?\]?[ \t]+)?`;
|
|
8
|
+
const NICK = String.raw`<[A-Za-z_\x5B-\x60{|}][\w\x5B-\x60{|}-]{0,31}>`;
|
|
9
|
+
/**
|
|
10
|
+
* An IRC-style nick in angle brackets at the start of a line, after an optional list mark and time ("- [21:00] <bot> …"),
|
|
11
|
+
* then a space and the message. The nick has no space, so an HTML tag with attributes (<a href="…">) is not one.
|
|
12
|
+
*/
|
|
13
|
+
const CHAT_LINE = new RegExp(String.raw`^[ \t]*${LIST_MARK}${TIME}${NICK}[ \t]+\S.*`, "gmu");
|
|
14
|
+
|
|
15
|
+
/** The lines of the source that are a pasted chat log's messages. */
|
|
16
|
+
export const chatLogSpans = (source: string): Span[] =>
|
|
17
|
+
[...source.matchAll(CHAT_LINE)].map((match) => ({ start: match.index, end: match.index + match[0].length }));
|
|
@@ -21,12 +21,14 @@ export type CitationSlip =
|
|
|
21
21
|
| { readonly variant: "missing"; readonly offset: number; readonly citation: string; readonly key: string }
|
|
22
22
|
| { readonly variant: "uncited"; readonly offset: number; readonly key: string };
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
/** An entry's key, and the other keys a citation may name it by (a two-word surname cited by its second word). */
|
|
25
|
+
type Keyed = { readonly key: string; readonly start: number; readonly aliases?: readonly string[] };
|
|
25
26
|
|
|
26
27
|
/** One kind of citation and its entries, and whether an entry's key is what a citation's key names. */
|
|
27
28
|
type Side = {
|
|
28
29
|
readonly entries: readonly Keyed[];
|
|
29
|
-
|
|
30
|
+
/** unsure: keys that may be no author at all, reported only when they name an entry, never as missing. */
|
|
31
|
+
readonly citations: readonly { readonly mark: CitationMark; readonly keys: readonly string[]; readonly unsure?: readonly string[] }[];
|
|
30
32
|
readonly names: (entryKey: string, citedKey: string) => boolean;
|
|
31
33
|
};
|
|
32
34
|
|
|
@@ -35,6 +37,16 @@ const LATIN = /[a-z]/u;
|
|
|
35
37
|
|
|
36
38
|
const keyOf = (cited: AuthorYear): string => `${cited.year} ${cited.author}`;
|
|
37
39
|
|
|
40
|
+
/** An author-year entry keyed by its first author, and also by each later word of a name of several (Mostafazadeh Davani). */
|
|
41
|
+
const authorYearKeyed = (entry: ReferenceEntry): Keyed[] => {
|
|
42
|
+
if (entry.authorYear === undefined) return [];
|
|
43
|
+
const { year } = entry.authorYear;
|
|
44
|
+
const aliases = (entry.otherNames ?? []).map((name) => keyOf({ year, author: name }));
|
|
45
|
+
return [{ key: keyOf(entry.authorYear), start: entry.start, ...(aliases.length === 0 ? {} : { aliases }) }];
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const keysOf = (entry: Keyed): readonly string[] => [entry.key, ...(entry.aliases ?? [])];
|
|
49
|
+
|
|
38
50
|
/** A cited Japanese surname this long or longer may be the head of an entry's full name; a shorter one (林) must match whole. */
|
|
39
51
|
const MIN_PREFIX_SURNAME = 2;
|
|
40
52
|
|
|
@@ -64,21 +76,24 @@ const numberedSide = (entries: readonly ReferenceEntry[], marks: readonly Citati
|
|
|
64
76
|
});
|
|
65
77
|
|
|
66
78
|
const authorYearSide = (entries: readonly ReferenceEntry[], marks: readonly CitationMark[]): Side => {
|
|
67
|
-
const keyed = entries.flatMap(
|
|
79
|
+
const keyed = entries.flatMap(authorYearKeyed);
|
|
68
80
|
return {
|
|
69
81
|
entries: keyed,
|
|
70
|
-
citations: marks
|
|
71
|
-
|
|
82
|
+
citations: marks
|
|
83
|
+
.filter((mark) => mark.style === "author-year")
|
|
84
|
+
.map((mark) => ({ mark, keys: mark.authorYears.map(keyOf), unsure: mark.authorYears.filter((cited) => cited.severalWords === true).map(keyOf) })),
|
|
85
|
+
names: namesEntryAmong(keyed.flatMap(keysOf)),
|
|
72
86
|
};
|
|
73
87
|
};
|
|
74
88
|
|
|
75
89
|
export const sideSlips = (side: Side): CitationSlip[] => {
|
|
76
90
|
if (side.entries.length < MIN_ENTRIES || side.citations.length === 0) return [];
|
|
77
91
|
const citedKeys = [...new Set(side.citations.flatMap((citation) => citation.keys))];
|
|
78
|
-
const
|
|
92
|
+
const namesOne = (entry: Keyed, citedKey: string): boolean => keysOf(entry).some((entryKey) => side.names(entryKey, citedKey));
|
|
93
|
+
const isCited = (entry: Keyed): boolean => citedKeys.some((key) => namesOne(entry, key));
|
|
79
94
|
const missing = side.citations.flatMap((citation) =>
|
|
80
95
|
citation.keys
|
|
81
|
-
.filter((key) => !side.entries.some((entry) =>
|
|
96
|
+
.filter((key) => !(citation.unsure ?? []).includes(key) && !side.entries.some((entry) => namesOne(entry, key)))
|
|
82
97
|
.map((key): CitationSlip => ({ variant: "missing", offset: citation.mark.start, citation: citation.mark.written, key })),
|
|
83
98
|
);
|
|
84
99
|
const uncitedEntries = side.entries.filter((entry) => !isCited(entry));
|