slopless 0.2.13 → 0.2.14

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.
Files changed (129) hide show
  1. package/dist/rules/metrics/coleman-liau.js +1 -2
  2. package/dist/rules/metrics/flesch-kincaid.js +1 -2
  3. package/dist/rules/metrics/gunning-fog.js +1 -2
  4. package/package.json +2 -2
  5. package/dist/adapters/textlint/report.d.ts +0 -35
  6. package/dist/adapters/textlint/rule.d.ts +0 -11
  7. package/dist/adapters/textlint/units.d.ts +0 -14
  8. package/dist/cli.d.ts +0 -3
  9. package/dist/index.d.ts +0 -348
  10. package/dist/presets/everything.d.ts +0 -67
  11. package/dist/registries/academic-slop.d.ts +0 -6
  12. package/dist/registries/metrics.d.ts +0 -9
  13. package/dist/registries/narrative-slop.d.ts +0 -10
  14. package/dist/registries/orthography.d.ts +0 -11
  15. package/dist/registries/phrases.d.ts +0 -13
  16. package/dist/registries/semantic-thinness.d.ts +0 -4
  17. package/dist/registries/syntactic-patterns/authority.d.ts +0 -5
  18. package/dist/registries/syntactic-patterns/closers.d.ts +0 -7
  19. package/dist/registries/syntactic-patterns/contrast.d.ts +0 -6
  20. package/dist/registries/syntactic-patterns/generalization.d.ts +0 -5
  21. package/dist/registries/syntactic-patterns/lead-ins.d.ts +0 -9
  22. package/dist/registries/syntactic-patterns/llm-artifacts.d.ts +0 -4
  23. package/dist/registries/syntactic-patterns/repetition.d.ts +0 -9
  24. package/dist/registries/syntactic-patterns.d.ts +0 -27
  25. package/dist/registries/term-policy.d.ts +0 -11
  26. package/dist/registries/words.d.ts +0 -8
  27. package/dist/reporting/reports.d.ts +0 -16
  28. package/dist/reporting/types.d.ts +0 -43
  29. package/dist/rules/academic-slop/academic-boilerplate.d.ts +0 -3
  30. package/dist/rules/academic-slop/academic-formula-frames.d.ts +0 -3
  31. package/dist/rules/academic-slop/tortured-phrases.d.ts +0 -3
  32. package/dist/rules/metrics/avg-sentence-length.d.ts +0 -3
  33. package/dist/rules/metrics/coleman-liau.d.ts +0 -3
  34. package/dist/rules/metrics/flesch-kincaid.d.ts +0 -3
  35. package/dist/rules/metrics/gunning-fog.d.ts +0 -3
  36. package/dist/rules/metrics/paragraph-length.d.ts +0 -3
  37. package/dist/rules/metrics/word-repetition.d.ts +0 -3
  38. package/dist/rules/narrative-slop/body-action-density.d.ts +0 -3
  39. package/dist/rules/narrative-slop/emotion-telling.d.ts +0 -3
  40. package/dist/rules/narrative-slop/empty-beat.d.ts +0 -3
  41. package/dist/rules/narrative-slop/flat-action-cadence.d.ts +0 -3
  42. package/dist/rules/narrative-slop/low-information-beat-density.d.ts +0 -3
  43. package/dist/rules/narrative-slop/narrative-cliches.d.ts +0 -3
  44. package/dist/rules/narrative-slop/perception-verb-density.d.ts +0 -3
  45. package/dist/rules/orthography/artifact-placeholders.d.ts +0 -3
  46. package/dist/rules/orthography/colon-dramatic.d.ts +0 -3
  47. package/dist/rules/orthography/em-dashes.d.ts +0 -3
  48. package/dist/rules/orthography/exclamation-density.d.ts +0 -3
  49. package/dist/rules/orthography/fake-timestamps.d.ts +0 -3
  50. package/dist/rules/orthography/hidden-unicode-controls.d.ts +0 -3
  51. package/dist/rules/orthography/sentence-case.d.ts +0 -3
  52. package/dist/rules/orthography/smart-quotes.d.ts +0 -3
  53. package/dist/rules/phrases/cliches.d.ts +0 -3
  54. package/dist/rules/phrases/corporate-speak.d.ts +0 -3
  55. package/dist/rules/phrases/humble-bragger.d.ts +0 -3
  56. package/dist/rules/phrases/jargon-faker.d.ts +0 -3
  57. package/dist/rules/phrases/llm-disclaimer.d.ts +0 -3
  58. package/dist/rules/phrases/prohibited-phrases.d.ts +0 -3
  59. package/dist/rules/phrases/redundancy.d.ts +0 -3
  60. package/dist/rules/phrases/skunked-terms.d.ts +0 -3
  61. package/dist/rules/phrases/uncomparables.d.ts +0 -3
  62. package/dist/rules/phrases/wordiness.d.ts +0 -3
  63. package/dist/rules/private/textlint-rule-builders.d.ts +0 -21
  64. package/dist/rules/semantic-thinness/private/concrete-guards.d.ts +0 -4
  65. package/dist/rules/semantic-thinness/private/pattern-data-a.d.ts +0 -3
  66. package/dist/rules/semantic-thinness/private/pattern-data-b.d.ts +0 -3
  67. package/dist/rules/semantic-thinness/private/pattern-data-c.d.ts +0 -3
  68. package/dist/rules/semantic-thinness/private/pattern-data-d.d.ts +0 -3
  69. package/dist/rules/semantic-thinness/private/pattern-data-e.d.ts +0 -3
  70. package/dist/rules/semantic-thinness/private/pattern-data.d.ts +0 -2
  71. package/dist/rules/semantic-thinness/private/pattern-matcher.d.ts +0 -39
  72. package/dist/rules/semantic-thinness/semantic-thinness.d.ts +0 -3
  73. package/dist/rules/syntactic-patterns/authority/authority-padding.d.ts +0 -3
  74. package/dist/rules/syntactic-patterns/authority/uncited-authority.d.ts +0 -3
  75. package/dist/rules/syntactic-patterns/closers/affirmation-closers.d.ts +0 -3
  76. package/dist/rules/syntactic-patterns/closers/boilerplate-conclusion.d.ts +0 -3
  77. package/dist/rules/syntactic-patterns/closers/false-question.d.ts +0 -3
  78. package/dist/rules/syntactic-patterns/closers/summative-closer.d.ts +0 -3
  79. package/dist/rules/syntactic-patterns/contrast/blame-reframe.d.ts +0 -3
  80. package/dist/rules/syntactic-patterns/contrast/contrastive-aphorism.d.ts +0 -3
  81. package/dist/rules/syntactic-patterns/contrast/negation-reframe.d.ts +0 -3
  82. package/dist/rules/syntactic-patterns/contrast/private/abstract-pair-gates.d.ts +0 -2
  83. package/dist/rules/syntactic-patterns/contrast/private/block-negation-reframe.d.ts +0 -7
  84. package/dist/rules/syntactic-patterns/contrast/private/inline-contrast-connector.d.ts +0 -3
  85. package/dist/rules/syntactic-patterns/contrast/private/inline-not-because-reframe.d.ts +0 -9
  86. package/dist/rules/syntactic-patterns/contrast/private/inline-short-negation.d.ts +0 -6
  87. package/dist/rules/syntactic-patterns/contrast/private/meaning-reframe.d.ts +0 -4
  88. package/dist/rules/syntactic-patterns/contrast/private/negation-context-gates.d.ts +0 -7
  89. package/dist/rules/syntactic-patterns/contrast/private/negation-reframe-matcher.d.ts +0 -7
  90. package/dist/rules/syntactic-patterns/contrast/private/negation-reframe-parts.d.ts +0 -30
  91. package/dist/rules/syntactic-patterns/contrast/private/negative-slop-frames.d.ts +0 -4
  92. package/dist/rules/syntactic-patterns/contrast/private/same-sentence-contrast.d.ts +0 -2
  93. package/dist/rules/syntactic-patterns/contrast/private/single-sentence-aphorism.d.ts +0 -2
  94. package/dist/rules/syntactic-patterns/generalization/softening-language.d.ts +0 -3
  95. package/dist/rules/syntactic-patterns/generalization/universalizing-claims.d.ts +0 -3
  96. package/dist/rules/syntactic-patterns/lead-ins/boilerplate-framing.d.ts +0 -3
  97. package/dist/rules/syntactic-patterns/lead-ins/formal-transition-density.d.ts +0 -3
  98. package/dist/rules/syntactic-patterns/lead-ins/generic-signposting.d.ts +0 -3
  99. package/dist/rules/syntactic-patterns/lead-ins/lesson-framing.d.ts +0 -3
  100. package/dist/rules/syntactic-patterns/lead-ins/llm-openers.d.ts +0 -3
  101. package/dist/rules/syntactic-patterns/lead-ins/observer-guidance.d.ts +0 -3
  102. package/dist/rules/syntactic-patterns/lead-ins/private/discourse-evaluation.d.ts +0 -2
  103. package/dist/rules/syntactic-patterns/llm-artifacts/response-wrapper.d.ts +0 -3
  104. package/dist/rules/syntactic-patterns/repetition/demonstrative-emphasis.d.ts +0 -3
  105. package/dist/rules/syntactic-patterns/repetition/empty-emphasis.d.ts +0 -3
  106. package/dist/rules/syntactic-patterns/repetition/fragment-stacking.d.ts +0 -3
  107. package/dist/rules/syntactic-patterns/repetition/repeated-predicate-end.d.ts +0 -3
  108. package/dist/rules/syntactic-patterns/repetition/repeated-sentence-starts.d.ts +0 -3
  109. package/dist/rules/syntactic-patterns/repetition/triple-repeat.d.ts +0 -3
  110. package/dist/rules/term-policy/recommended-terms.d.ts +0 -8
  111. package/dist/rules/term-policy/required-terms.d.ts +0 -6
  112. package/dist/rules/types.d.ts +0 -37
  113. package/dist/rules/words/hedge-stacking.d.ts +0 -3
  114. package/dist/rules/words/llm-vocabulary-density.d.ts +0 -3
  115. package/dist/rules/words/llm-vocabulary.d.ts +0 -3
  116. package/dist/rules/words/private/vocabulary-context.d.ts +0 -4
  117. package/dist/rules/words/prohibited-words.d.ts +0 -3
  118. package/dist/rules/words/simplicity.d.ts +0 -3
  119. package/dist/shared/matchers/concrete-evidence.d.ts +0 -7
  120. package/dist/shared/matchers/phrases.d.ts +0 -20
  121. package/dist/shared/matchers/prose-patterns.d.ts +0 -15
  122. package/dist/shared/text/document.d.ts +0 -9
  123. package/dist/shared/text/normalize.d.ts +0 -3
  124. package/dist/shared/text/quotes.d.ts +0 -3
  125. package/dist/shared/text/sections.d.ts +0 -18
  126. package/dist/shared/text/sentences.d.ts +0 -7
  127. package/dist/shared/text/tokens.d.ts +0 -8
  128. package/dist/shared/text/traverse.d.ts +0 -8
  129. package/dist/shared/text/whitespace.d.ts +0 -4
@@ -1,3 +0,0 @@
1
- declare const rule: import("@textlint/types").TextlintRuleModule<Record<string, never>>;
2
- export default rule;
3
- //# sourceMappingURL=universalizing-claims.d.ts.map
@@ -1,3 +0,0 @@
1
- declare const rule: import("@textlint/types").TextlintRuleModule<Record<string, never>>;
2
- export default rule;
3
- //# sourceMappingURL=boilerplate-framing.d.ts.map
@@ -1,3 +0,0 @@
1
- declare const rule: import("@textlint/types").TextlintRuleModule<Record<string, never>>;
2
- export default rule;
3
- //# sourceMappingURL=formal-transition-density.d.ts.map
@@ -1,3 +0,0 @@
1
- declare const rule: import("@textlint/types").TextlintRuleModule<Record<string, never>>;
2
- export default rule;
3
- //# sourceMappingURL=generic-signposting.d.ts.map
@@ -1,3 +0,0 @@
1
- declare const rule: import("@textlint/types").TextlintRuleModule<Record<string, never>>;
2
- export default rule;
3
- //# sourceMappingURL=lesson-framing.d.ts.map
@@ -1,3 +0,0 @@
1
- declare const rule: import("@textlint/types").TextlintRuleModule<Record<string, never>>;
2
- export default rule;
3
- //# sourceMappingURL=llm-openers.d.ts.map
@@ -1,3 +0,0 @@
1
- declare const rule: import("@textlint/types").TextlintRuleModule<Record<string, never>>;
2
- export default rule;
3
- //# sourceMappingURL=observer-guidance.d.ts.map
@@ -1,2 +0,0 @@
1
- export declare function matchDiscourseEvaluationFrame(words: readonly string[]): string | undefined;
2
- //# sourceMappingURL=discourse-evaluation.d.ts.map
@@ -1,3 +0,0 @@
1
- declare const rule: import("@textlint/types").TextlintRuleModule<Record<string, never>>;
2
- export default rule;
3
- //# sourceMappingURL=response-wrapper.d.ts.map
@@ -1,3 +0,0 @@
1
- declare const rule: import("@textlint/types").TextlintRuleModule<Record<string, never>>;
2
- export default rule;
3
- //# sourceMappingURL=demonstrative-emphasis.d.ts.map
@@ -1,3 +0,0 @@
1
- declare const rule: import("@textlint/types").TextlintRuleModule<Record<string, never>>;
2
- export default rule;
3
- //# sourceMappingURL=empty-emphasis.d.ts.map
@@ -1,3 +0,0 @@
1
- declare const rule: import("@textlint/types").TextlintRuleModule<Record<string, never>>;
2
- export default rule;
3
- //# sourceMappingURL=fragment-stacking.d.ts.map
@@ -1,3 +0,0 @@
1
- declare const rule: import("@textlint/types").TextlintRuleModule<Record<string, never>>;
2
- export default rule;
3
- //# sourceMappingURL=repeated-predicate-end.d.ts.map
@@ -1,3 +0,0 @@
1
- declare const rule: import("@textlint/types").TextlintRuleModule<Record<string, never>>;
2
- export default rule;
3
- //# sourceMappingURL=repeated-sentence-starts.d.ts.map
@@ -1,3 +0,0 @@
1
- declare const rule: import("@textlint/types").TextlintRuleModule<Record<string, never>>;
2
- export default rule;
3
- //# sourceMappingURL=triple-repeat.d.ts.map
@@ -1,8 +0,0 @@
1
- type RecommendedTermsOptions = {
2
- readonly allowInflections?: boolean;
3
- readonly minCount?: number;
4
- readonly terms?: readonly string[];
5
- };
6
- declare const rule: import("@textlint/types").TextlintRuleModule<RecommendedTermsOptions>;
7
- export default rule;
8
- //# sourceMappingURL=recommended-terms.d.ts.map
@@ -1,6 +0,0 @@
1
- type RequiredTermsOptions = {
2
- readonly terms?: readonly string[];
3
- };
4
- declare const rule: import("@textlint/types").TextlintRuleModule<RequiredTermsOptions>;
5
- export default rule;
6
- //# sourceMappingURL=required-terms.d.ts.map
@@ -1,37 +0,0 @@
1
- import type { AnyTxtNode } from "@textlint/ast-node-types";
2
- export type RuleFamilyId = "academic-slop" | "markdown-layout" | "metrics" | "narrative-slop" | "orthography" | "phrases" | "semantic-thinness" | "syntactic-patterns" | "term-policy" | "words";
3
- export type RuleId = `${RuleFamilyId}:${string}`;
4
- export type TextUnitKind = "document" | "heading" | "paragraph" | "sentence" | "text";
5
- export type SourceRange = {
6
- readonly end: number;
7
- readonly start: number;
8
- };
9
- export type TextUnit = {
10
- readonly id: string;
11
- readonly kind: TextUnitKind;
12
- readonly node: AnyTxtNode;
13
- readonly normalizedText: string;
14
- readonly range: SourceRange;
15
- readonly sourceRangeFor: (range: SourceRange) => SourceRange;
16
- readonly text: string;
17
- };
18
- export type RuleInput<Options = unknown> = {
19
- readonly options: Options | undefined;
20
- readonly ruleId: RuleId;
21
- readonly units: readonly TextUnit[];
22
- };
23
- export type RuleDetection<Group extends string = string> = {
24
- readonly data?: Readonly<Record<string, boolean | number | string>>;
25
- readonly evidence: string;
26
- readonly group?: Group;
27
- readonly label: string;
28
- readonly range: SourceRange;
29
- readonly ruleId: RuleId;
30
- readonly unitId: string;
31
- };
32
- export type RuleDetector<Options = unknown> = {
33
- readonly detect: (input: RuleInput<Options>) => readonly RuleDetection[];
34
- readonly family: RuleFamilyId;
35
- readonly id: RuleId;
36
- };
37
- //# sourceMappingURL=types.d.ts.map
@@ -1,3 +0,0 @@
1
- declare const rule: import("@textlint/types").TextlintRuleModule<Record<string, never>>;
2
- export default rule;
3
- //# sourceMappingURL=hedge-stacking.d.ts.map
@@ -1,3 +0,0 @@
1
- declare const rule: import("@textlint/types").TextlintRuleModule<Record<string, never>>;
2
- export default rule;
3
- //# sourceMappingURL=llm-vocabulary-density.d.ts.map
@@ -1,3 +0,0 @@
1
- declare const rule: import("@textlint/types").TextlintRuleModule<Record<string, never>>;
2
- export default rule;
3
- //# sourceMappingURL=llm-vocabulary.d.ts.map
@@ -1,4 +0,0 @@
1
- import { type PhraseMatch } from "../../../shared/matchers/phrases.js";
2
- export declare function isVocabularyContextAllowed(text: string, phrase: string): boolean;
3
- export declare function findVocabularyMatches(text: string, phrases: readonly string[]): PhraseMatch[];
4
- //# sourceMappingURL=vocabulary-context.d.ts.map
@@ -1,3 +0,0 @@
1
- declare const rule: import("@textlint/types").TextlintRuleModule<Record<string, never>>;
2
- export default rule;
3
- //# sourceMappingURL=prohibited-words.d.ts.map
@@ -1,3 +0,0 @@
1
- declare const rule: import("@textlint/types").TextlintRuleModule<Record<string, never>>;
2
- export default rule;
3
- //# sourceMappingURL=simplicity.d.ts.map
@@ -1,7 +0,0 @@
1
- export declare function hasConcreteTechnicalToken(text: string): boolean;
2
- export declare function hasConcreteCorrectionEvidence(text: string): boolean;
3
- export declare function hasConcreteAuthorityEvidence(text: string): boolean;
4
- export declare function hasConcreteImplementationSummary(text: string): boolean;
5
- export declare function hasConcreteCausalSummary(text: string): boolean;
6
- export declare function hasConcreteInventorySubjects(sentences: readonly string[]): boolean;
7
- //# sourceMappingURL=concrete-evidence.d.ts.map
@@ -1,20 +0,0 @@
1
- export type PhraseMatch = {
2
- readonly end: number;
3
- readonly phrase: string;
4
- readonly start: number;
5
- readonly text: string;
6
- };
7
- export type TokenTemplatePattern = {
8
- readonly id: string;
9
- readonly slots: Readonly<Record<string, readonly string[]>>;
10
- readonly templates: readonly string[];
11
- };
12
- export type TokenTemplateMatch = PhraseMatch & {
13
- readonly patternId: string;
14
- readonly template: string;
15
- };
16
- export declare function findPhraseMatches(text: string, phrases: readonly string[]): PhraseMatch[];
17
- export declare function findUnquotedPhraseMatches(text: string, phrases: readonly string[]): PhraseMatch[];
18
- export declare function findTokenTemplateMatches(text: string, patterns: readonly TokenTemplatePattern[]): TokenTemplateMatch[];
19
- export declare function findUnquotedTokenTemplateMatches(text: string, patterns: readonly TokenTemplatePattern[]): TokenTemplateMatch[];
20
- //# sourceMappingURL=phrases.d.ts.map
@@ -1,15 +0,0 @@
1
- export type SentenceMatch = {
2
- readonly kind: string;
3
- readonly signal: string;
4
- };
5
- export declare function cleanSentence(sentence: string, prefixes?: readonly string[]): string;
6
- export declare function stripLeadingPrefixes(text: string, prefixes: readonly string[]): string;
7
- export declare function stripQuotedSegments(text: string): string;
8
- export declare function tokens(text: string): readonly string[];
9
- export declare function containsAny(text: string, patterns: readonly string[]): string | undefined;
10
- export declare function startsWithAnyText(text: string, patterns: readonly string[]): string | undefined;
11
- export declare function textStartsWithPattern(text: string, pattern: string): boolean;
12
- export declare function tokensContainInOrder(sourceTokens: readonly string[], groups: readonly (readonly string[])[]): boolean;
13
- export declare function trimTerminalPunctuation(text: string): string;
14
- export declare function startsWithWords(sourceTokens: readonly string[], expected: readonly string[]): boolean;
15
- //# sourceMappingURL=prose-patterns.d.ts.map
@@ -1,9 +0,0 @@
1
- import type { TxtDocumentNode } from "@textlint/ast-node-types";
2
- export type DocumentMetrics = {
3
- readonly sentenceCount: number;
4
- readonly text: string;
5
- readonly wordCount: number;
6
- };
7
- export declare function documentText(document: TxtDocumentNode): string;
8
- export declare function documentMetrics(document: TxtDocumentNode): DocumentMetrics;
9
- //# sourceMappingURL=document.d.ts.map
@@ -1,3 +0,0 @@
1
- export declare function normalizeForMatch(text: string): string;
2
- export declare function normalizeWhitespace(text: string): string;
3
- //# sourceMappingURL=normalize.d.ts.map
@@ -1,3 +0,0 @@
1
- export declare function isMostlyQuoted(text: string): boolean;
2
- export declare function stripOuterQuotes(text: string): string;
3
- //# sourceMappingURL=quotes.d.ts.map
@@ -1,18 +0,0 @@
1
- import type { TxtDocumentNode, TxtParagraphNode } from "@textlint/ast-node-types";
2
- import { type SplitSentence } from "./sentences.js";
3
- import { type SourceText } from "./traverse.js";
4
- export type SectionSentence = {
5
- readonly paragraph: TxtParagraphNode;
6
- readonly sentence: SplitSentence;
7
- readonly source: SourceText;
8
- };
9
- export type SectionParagraph = {
10
- readonly paragraph: TxtParagraphNode;
11
- readonly source: SourceText;
12
- readonly text: string;
13
- };
14
- export declare function allParagraphSentences(document: TxtDocumentNode): SectionSentence[];
15
- export declare function allParagraphs(document: TxtDocumentNode): SectionParagraph[];
16
- export declare function sectionFirstSentences(document: TxtDocumentNode): SectionSentence[];
17
- export declare function sectionLastSentences(document: TxtDocumentNode): SectionSentence[];
18
- //# sourceMappingURL=sections.d.ts.map
@@ -1,7 +0,0 @@
1
- export type SplitSentence = {
2
- readonly end: number;
3
- readonly start: number;
4
- readonly text: string;
5
- };
6
- export declare function splitSentences(text: string): SplitSentence[];
7
- //# sourceMappingURL=sentences.d.ts.map
@@ -1,8 +0,0 @@
1
- export type Token = {
2
- readonly end: number;
3
- readonly normalized: string;
4
- readonly start: number;
5
- readonly text: string;
6
- };
7
- export declare function wordTokens(text: string): Token[];
8
- //# sourceMappingURL=tokens.d.ts.map
@@ -1,8 +0,0 @@
1
- import type { TxtParentNode } from "@textlint/ast-node-types";
2
- export type SourceText = {
3
- readonly originalEndFor: (end: number) => number;
4
- readonly originalStartFor: (start: number) => number;
5
- readonly text: string;
6
- };
7
- export declare function sourceText(node: TxtParentNode): SourceText;
8
- //# sourceMappingURL=traverse.d.ts.map
@@ -1,4 +0,0 @@
1
- export declare function isWhitespace(value: string | undefined): boolean;
2
- export declare function splitWhitespace(text: string): string[];
3
- export declare function countWhitespaceSeparatedWords(text: string): number;
4
- //# sourceMappingURL=whitespace.d.ts.map