Skip to content

Commit

Permalink
sixth work session, move casePolice to last because some bug (JulianC…
Browse files Browse the repository at this point in the history
…ataldo/retext-case-police#4), comment some because not working
  • Loading branch information
trueberryless committed Jan 7, 2025
1 parent 3719756 commit 709c6e6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/starlight-spell-checker/libs/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getValidationData } from "./remark";

import retextAssuming from "retext-assuming";
import retextCasePolice from "retext-case-police";
import retextCliches from "retext-cliches";
// import retextCliches from "retext-cliches";
import retextContractions from "retext-contractions";
import retextDiacritics from "retext-diacritics";
import retextEquality from "retext-equality";
Expand Down Expand Up @@ -71,14 +71,13 @@ export async function validateTexts(

let retextProcessor = retext()
.use(retextAssuming)
.use(retextCasePolice)
.use(retextCliches)
// .use(retextCliches)
.use(retextContractions)
.use(retextDiacritics)
.use(retextEquality)
.use(retextIndefiniteArticle)
.use(retextIntensify)
.use(retextOveruse)
// .use(retextOveruse)
.use(retextPassive)
.use(retextProfanities)
.use(retextReadability)
Expand All @@ -89,7 +88,8 @@ export async function validateTexts(
dictionary,
})
.use(retextUsage)
.use(retextQuotes);
.use(retextQuotes)
.use(retextCasePolice);

try {
const file = await retextProcessor.process(content);
Expand Down
1 change: 1 addition & 0 deletions packages/starlight-spell-checker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"mdast": "^3.0.0",
"mdast-util-mdx-jsx": "^3.1.3",
"mdast-util-to-string": "^4.0.0",
"no-cliches": "^0.3.6",
"rehype-stringify": "^10.0.1",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.1",
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 709c6e6

Please sign in to comment.