Skip to content

Commit 5111425

Browse files
committed
Use 2 dict files -
one for words, jargon, programs, methods, classes, etc. one for code that looks like words track more words
1 parent 6f85528 commit 5111425

File tree

5 files changed

+187
-2
lines changed

5 files changed

+187
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ assets/cache
1818
.sass-cache/
1919
html/css/style.css.map
2020
html/links.txt
21+
xt/aspell.pws

xt/aspell.t

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,19 @@ if $proc.exitcode {
3232
exit;
3333
}
3434

35+
# generate a combined words file
36+
my $dict = open "xt/aspell.pws", :w;
37+
$dict.say('personal_ws-1.1 en 0 utf-8');
38+
$dict.say("xt/words.pws".IO.slurp.chomp);
39+
$dict.say("xt/code.pws".IO.slurp.chomp);
40+
$dict.close;
41+
3542
for @files -> $file {
3643
my $pod2text = run('perl6', 'bin/p6doc', $file, :out);
3744

3845
my $fixer = run('awk', 'BEGIN {print "!"} {print "^" $0}', :in($pod2text.out), :out);
3946

40-
my $proc = run(<aspell -a --ignore-case --extra-dicts=./xt/words.pws>, :in($fixer.out), :out);
47+
my $proc = run(<aspell -a --ignore-case --extra-dicts=./xt/aspell.pws>, :in($fixer.out), :out);
4148

4249
$proc.out.get; # dump first line.
4350
my $count;

xt/code.pws

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
abcd
2+
aeiou
3+
anotherrole
4+
aref
5+
bettercalculations
6+
bettercalculator
7+
birthdaycongrats
8+
bitrary
9+
calc
10+
childclass
11+
digifier
12+
digitmatcher
13+
doit
14+
dostuff
15+
dxvo
16+
eoh
17+
eoi
18+
fairycake
19+
fbtb
20+
findnodes
21+
firstname
22+
frobnicate
23+
gargravarr
24+
geekcook
25+
havestaticattr
26+
headn
27+
hhh
28+
hola
29+
howd
30+
ieq
31+
isdst
32+
kbar
33+
keyvaluepairs
34+
keyvaluepairsactions
35+
lastname
36+
libfoo
37+
listofstuff
38+
loggedversion
39+
makequestionable
40+
manymanymany
41+
mday
42+
modulename
43+
mult
44+
myapp
45+
myclass
46+
mymodule
47+
obai
48+
ohai
49+
onceuponatime
50+
origlist
51+
outahere
52+
parentclass
53+
prettylist
54+
quietlevel
55+
ret
56+
shortname
57+
someclass
58+
sourcecode
59+
sref
60+
su
61+
testactions
62+
testee
63+
testfile
64+
testgrammar
65+
totalperspective
66+
tvalue
67+
txt
68+
wday
69+
welp
70+
withoutlinenumber
71+
xaf
72+
xyz
73+
yday
74+
za
75+
äöüß

xt/doc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
frobnicate

0 commit comments

Comments
 (0)