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.
- package/dist/rules/metrics/coleman-liau.js +1 -2
- package/dist/rules/metrics/flesch-kincaid.js +1 -2
- package/dist/rules/metrics/gunning-fog.js +1 -2
- package/package.json +2 -2
- package/dist/adapters/textlint/report.d.ts +0 -35
- package/dist/adapters/textlint/rule.d.ts +0 -11
- package/dist/adapters/textlint/units.d.ts +0 -14
- package/dist/cli.d.ts +0 -3
- package/dist/index.d.ts +0 -348
- package/dist/presets/everything.d.ts +0 -67
- package/dist/registries/academic-slop.d.ts +0 -6
- package/dist/registries/metrics.d.ts +0 -9
- package/dist/registries/narrative-slop.d.ts +0 -10
- package/dist/registries/orthography.d.ts +0 -11
- package/dist/registries/phrases.d.ts +0 -13
- package/dist/registries/semantic-thinness.d.ts +0 -4
- package/dist/registries/syntactic-patterns/authority.d.ts +0 -5
- package/dist/registries/syntactic-patterns/closers.d.ts +0 -7
- package/dist/registries/syntactic-patterns/contrast.d.ts +0 -6
- package/dist/registries/syntactic-patterns/generalization.d.ts +0 -5
- package/dist/registries/syntactic-patterns/lead-ins.d.ts +0 -9
- package/dist/registries/syntactic-patterns/llm-artifacts.d.ts +0 -4
- package/dist/registries/syntactic-patterns/repetition.d.ts +0 -9
- package/dist/registries/syntactic-patterns.d.ts +0 -27
- package/dist/registries/term-policy.d.ts +0 -11
- package/dist/registries/words.d.ts +0 -8
- package/dist/reporting/reports.d.ts +0 -16
- package/dist/reporting/types.d.ts +0 -43
- package/dist/rules/academic-slop/academic-boilerplate.d.ts +0 -3
- package/dist/rules/academic-slop/academic-formula-frames.d.ts +0 -3
- package/dist/rules/academic-slop/tortured-phrases.d.ts +0 -3
- package/dist/rules/metrics/avg-sentence-length.d.ts +0 -3
- package/dist/rules/metrics/coleman-liau.d.ts +0 -3
- package/dist/rules/metrics/flesch-kincaid.d.ts +0 -3
- package/dist/rules/metrics/gunning-fog.d.ts +0 -3
- package/dist/rules/metrics/paragraph-length.d.ts +0 -3
- package/dist/rules/metrics/word-repetition.d.ts +0 -3
- package/dist/rules/narrative-slop/body-action-density.d.ts +0 -3
- package/dist/rules/narrative-slop/emotion-telling.d.ts +0 -3
- package/dist/rules/narrative-slop/empty-beat.d.ts +0 -3
- package/dist/rules/narrative-slop/flat-action-cadence.d.ts +0 -3
- package/dist/rules/narrative-slop/low-information-beat-density.d.ts +0 -3
- package/dist/rules/narrative-slop/narrative-cliches.d.ts +0 -3
- package/dist/rules/narrative-slop/perception-verb-density.d.ts +0 -3
- package/dist/rules/orthography/artifact-placeholders.d.ts +0 -3
- package/dist/rules/orthography/colon-dramatic.d.ts +0 -3
- package/dist/rules/orthography/em-dashes.d.ts +0 -3
- package/dist/rules/orthography/exclamation-density.d.ts +0 -3
- package/dist/rules/orthography/fake-timestamps.d.ts +0 -3
- package/dist/rules/orthography/hidden-unicode-controls.d.ts +0 -3
- package/dist/rules/orthography/sentence-case.d.ts +0 -3
- package/dist/rules/orthography/smart-quotes.d.ts +0 -3
- package/dist/rules/phrases/cliches.d.ts +0 -3
- package/dist/rules/phrases/corporate-speak.d.ts +0 -3
- package/dist/rules/phrases/humble-bragger.d.ts +0 -3
- package/dist/rules/phrases/jargon-faker.d.ts +0 -3
- package/dist/rules/phrases/llm-disclaimer.d.ts +0 -3
- package/dist/rules/phrases/prohibited-phrases.d.ts +0 -3
- package/dist/rules/phrases/redundancy.d.ts +0 -3
- package/dist/rules/phrases/skunked-terms.d.ts +0 -3
- package/dist/rules/phrases/uncomparables.d.ts +0 -3
- package/dist/rules/phrases/wordiness.d.ts +0 -3
- package/dist/rules/private/textlint-rule-builders.d.ts +0 -21
- package/dist/rules/semantic-thinness/private/concrete-guards.d.ts +0 -4
- package/dist/rules/semantic-thinness/private/pattern-data-a.d.ts +0 -3
- package/dist/rules/semantic-thinness/private/pattern-data-b.d.ts +0 -3
- package/dist/rules/semantic-thinness/private/pattern-data-c.d.ts +0 -3
- package/dist/rules/semantic-thinness/private/pattern-data-d.d.ts +0 -3
- package/dist/rules/semantic-thinness/private/pattern-data-e.d.ts +0 -3
- package/dist/rules/semantic-thinness/private/pattern-data.d.ts +0 -2
- package/dist/rules/semantic-thinness/private/pattern-matcher.d.ts +0 -39
- package/dist/rules/semantic-thinness/semantic-thinness.d.ts +0 -3
- package/dist/rules/syntactic-patterns/authority/authority-padding.d.ts +0 -3
- package/dist/rules/syntactic-patterns/authority/uncited-authority.d.ts +0 -3
- package/dist/rules/syntactic-patterns/closers/affirmation-closers.d.ts +0 -3
- package/dist/rules/syntactic-patterns/closers/boilerplate-conclusion.d.ts +0 -3
- package/dist/rules/syntactic-patterns/closers/false-question.d.ts +0 -3
- package/dist/rules/syntactic-patterns/closers/summative-closer.d.ts +0 -3
- package/dist/rules/syntactic-patterns/contrast/blame-reframe.d.ts +0 -3
- package/dist/rules/syntactic-patterns/contrast/contrastive-aphorism.d.ts +0 -3
- package/dist/rules/syntactic-patterns/contrast/negation-reframe.d.ts +0 -3
- package/dist/rules/syntactic-patterns/contrast/private/abstract-pair-gates.d.ts +0 -2
- package/dist/rules/syntactic-patterns/contrast/private/block-negation-reframe.d.ts +0 -7
- package/dist/rules/syntactic-patterns/contrast/private/inline-contrast-connector.d.ts +0 -3
- package/dist/rules/syntactic-patterns/contrast/private/inline-not-because-reframe.d.ts +0 -9
- package/dist/rules/syntactic-patterns/contrast/private/inline-short-negation.d.ts +0 -6
- package/dist/rules/syntactic-patterns/contrast/private/meaning-reframe.d.ts +0 -4
- package/dist/rules/syntactic-patterns/contrast/private/negation-context-gates.d.ts +0 -7
- package/dist/rules/syntactic-patterns/contrast/private/negation-reframe-matcher.d.ts +0 -7
- package/dist/rules/syntactic-patterns/contrast/private/negation-reframe-parts.d.ts +0 -30
- package/dist/rules/syntactic-patterns/contrast/private/negative-slop-frames.d.ts +0 -4
- package/dist/rules/syntactic-patterns/contrast/private/same-sentence-contrast.d.ts +0 -2
- package/dist/rules/syntactic-patterns/contrast/private/single-sentence-aphorism.d.ts +0 -2
- package/dist/rules/syntactic-patterns/generalization/softening-language.d.ts +0 -3
- package/dist/rules/syntactic-patterns/generalization/universalizing-claims.d.ts +0 -3
- package/dist/rules/syntactic-patterns/lead-ins/boilerplate-framing.d.ts +0 -3
- package/dist/rules/syntactic-patterns/lead-ins/formal-transition-density.d.ts +0 -3
- package/dist/rules/syntactic-patterns/lead-ins/generic-signposting.d.ts +0 -3
- package/dist/rules/syntactic-patterns/lead-ins/lesson-framing.d.ts +0 -3
- package/dist/rules/syntactic-patterns/lead-ins/llm-openers.d.ts +0 -3
- package/dist/rules/syntactic-patterns/lead-ins/observer-guidance.d.ts +0 -3
- package/dist/rules/syntactic-patterns/lead-ins/private/discourse-evaluation.d.ts +0 -2
- package/dist/rules/syntactic-patterns/llm-artifacts/response-wrapper.d.ts +0 -3
- package/dist/rules/syntactic-patterns/repetition/demonstrative-emphasis.d.ts +0 -3
- package/dist/rules/syntactic-patterns/repetition/empty-emphasis.d.ts +0 -3
- package/dist/rules/syntactic-patterns/repetition/fragment-stacking.d.ts +0 -3
- package/dist/rules/syntactic-patterns/repetition/repeated-predicate-end.d.ts +0 -3
- package/dist/rules/syntactic-patterns/repetition/repeated-sentence-starts.d.ts +0 -3
- package/dist/rules/syntactic-patterns/repetition/triple-repeat.d.ts +0 -3
- package/dist/rules/term-policy/recommended-terms.d.ts +0 -8
- package/dist/rules/term-policy/required-terms.d.ts +0 -6
- package/dist/rules/types.d.ts +0 -37
- package/dist/rules/words/hedge-stacking.d.ts +0 -3
- package/dist/rules/words/llm-vocabulary-density.d.ts +0 -3
- package/dist/rules/words/llm-vocabulary.d.ts +0 -3
- package/dist/rules/words/private/vocabulary-context.d.ts +0 -4
- package/dist/rules/words/prohibited-words.d.ts +0 -3
- package/dist/rules/words/simplicity.d.ts +0 -3
- package/dist/shared/matchers/concrete-evidence.d.ts +0 -7
- package/dist/shared/matchers/phrases.d.ts +0 -20
- package/dist/shared/matchers/prose-patterns.d.ts +0 -15
- package/dist/shared/text/document.d.ts +0 -9
- package/dist/shared/text/normalize.d.ts +0 -3
- package/dist/shared/text/quotes.d.ts +0 -3
- package/dist/shared/text/sections.d.ts +0 -18
- package/dist/shared/text/sentences.d.ts +0 -7
- package/dist/shared/text/tokens.d.ts +0 -8
- package/dist/shared/text/traverse.d.ts +0 -8
- package/dist/shared/text/whitespace.d.ts +0 -4
|
@@ -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
|
package/dist/rules/types.d.ts
DELETED
|
@@ -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,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,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,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,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
|