Skip to content

Commit d3ed36d

Browse files
committed
WIP - Spellcheck the Markdown files.
Using GNU Aspell. Next we need to create a dictionary of 'our allowed words' from the text file.
1 parent 17bd30d commit d3ed36d

File tree

2 files changed

+102
-0
lines changed

2 files changed

+102
-0
lines changed

check-spelling.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
errors=0
4+
path="tests/spelling/"
5+
mkdir -p $path
6+
misspelled="$path"misspelled-words.txt
7+
if [ -f $misspelled ] ; then
8+
rm $misspelled
9+
fi
10+
for file in $(find . -name "*.md");
11+
do
12+
echo "$file" >> "$path"misspelled-words-temp.txt
13+
aspell list --lang=en --encoding=utf-8 --personal=./.aspell.en.pws < "$file" | sort -u >> "$path"misspelled-words-temp.txt
14+
if [ "$(wc -l <"$path"misspelled-words-temp.txt)" -ge 2 ]
15+
then
16+
echo >> "$path"misspelled-words-temp.txt
17+
cat "$path"misspelled-words-temp.txt
18+
cat "$path"misspelled-words-temp.txt >> "$path"misspelled-words.txt
19+
errors=1
20+
fi
21+
:> "$path"misspelled-words-temp.txt
22+
done
23+
if [ -f "$path"misspelled-words-temp.txt ] ; then
24+
rm "$path"misspelled-words-temp.txt
25+
fi
26+
if [ "$errors" -ge 1 ]
27+
then
28+
exit 1
29+
else
30+
exit 0
31+
fi

tests/spelling/misspelled-words.txt

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
./docs/reseller-hosting/dns.md
2+
DNS
3+
4+
./docs/networking/win10v6.md
5+
ICMPv
6+
IPv
7+
ProtoTypeICMPv
8+
cirru
9+
img
10+
msc
11+
png
12+
wf
13+
14+
./docs/contact.md
15+
ISP's
16+
NOC
17+
18+
./docs/index.md
19+
DNS
20+
OPcache
21+
cPanel
22+
cpanel
23+
opcache
24+
php
25+
26+
./docs/cpanel-hosting/hosts-file.md
27+
AAAA
28+
DNS
29+
IPv
30+
Notepa
31+
RunAsAdmin
32+
StartMenu
33+
cirru
34+
cmd
35+
exe
36+
hostsfile
37+
img
38+
png
39+
sys
40+
41+
./docs/cpanel-hosting/php-opcache.md
42+
AppDynamics
43+
OPcache
44+
PHPs
45+
Uncheck
46+
bytecode
47+
cPanel
48+
cirru
49+
htaccess
50+
opcache
51+
php
52+
precompiled
53+
runtime
54+
zend
55+
56+
./docs/cpanel-hosting/index.md
57+
cPanel
58+
59+
./docs/cpanel-hosting/email-settings.md
60+
IMAP
61+
SMTP
62+
SettingsMenu
63+
accountMenu
64+
accountPOP
65+
cPanel
66+
cirru
67+
hl
68+
img
69+
png
70+
startmenu
71+

0 commit comments

Comments
 (0)