Add new spellcheck utility

This commit is contained in:
Ben Edgington
2025-03-19 11:26:29 +00:00
parent a00f6267c5
commit b05041796f
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#!/bin/bash
# Update the spellings list with all the current "mis-spellings"
here=$(dirname "$0")
wordlist=$here/../../src/spellings.en.pws
newlist=$(mktemp)
$here/make_spellings_list.sh > $newlist
count=$(cat $newlist | wc -l)
# Add header line
echo "personal_ws-1.1 en $count utf-8" > $wordlist
cat $newlist >> $wordlist
rm $newlist

View File

@@ -14,6 +14,7 @@
"check": "node --input-type=module -e 'import { runChecks } from \"./bin/build/prebuild.mjs\"; runChecks()'",
"links": "bin/util/check_urls.sh src/book.md",
"spell": "bin/util/check_spellings_list.sh",
"spfix": "bin/util/update_spellings_list.sh",
"valid": "node -e 'require(\"./bin/util/validate\").validateHtml(\"public/index.html\")'",
"gramm": "bin/util/check_grammar.sh src/book.md",
"patch": "npx patch-package",