Update
This commit is contained in:
parent
3816e78230
commit
1ed9079ad4
50 changed files with 1892 additions and 1863 deletions
29
check.sh
Executable file
29
check.sh
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
# Checks for potential errors in articles.
|
||||
|
||||
echo "===== links not ending in .md:"
|
||||
grep -rno "\[[^]]*\]([^)]*\([^.)][^)][^)]\|[^)][^m)][^)]\|[^)][^)][^d)]\))" *.md
|
||||
|
||||
typos="("
|
||||
typos="${typos}pubic|noticabl|occassion|ocassion|occure|occurres|adress"
|
||||
typos="${typos}agressi|aggresi|aparrent|apparrent|concensu|definat|dissapoint|"
|
||||
typos="${typos}dissappoint|disasterous|lmoa|cathegor|comming|commited|comitted"
|
||||
typos="${typos}embarass|embarrasi|excede|harrass|harrase|fullfil|immitat|"
|
||||
typos="${typos}taht|lightening|milleni|milenni|miniscule|mispell|neccessar|"
|
||||
typos="${typos}necces|occasionaly|occurrance|occurence|passtime|posess|"
|
||||
typos="${typos}possese|preceed|priviledge|reccom|refered|succesful|sucessful|"
|
||||
typos="${typos}errorne|erorrne|superced|tommor|vaccu|wierd|wellfare|acknoleg"
|
||||
typos="${typos}aparrent|collegue|deppres"
|
||||
typos="${typos})"
|
||||
|
||||
echo "===== common typos:"
|
||||
grep -rnoEi $typos *.md
|
||||
|
||||
echo "===== bad first headings:"
|
||||
for f in *.md; do
|
||||
secondChar=`grep -m 1 "^#.*" $f | head -c 2 | tail -c 1`
|
||||
|
||||
if [ "$secondChar" = "#" ]; then
|
||||
echo $f
|
||||
fi
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue