I have at various times referred to Eugene McDonnell's "Jacob's Ladder"
essay (http://www.jsoftware.com/jwiki/Doc/Articles/Play204), but
I have not been able to play with the code, because it requires
word lists, which I did not have.

So, today, I went out and found a source of word lists:
http://wordlist.sourceforge.net/ and I downloaded some,
which I unpacked in my j602-user directory.  (This is was the
0.4 MB zip file representing content extracted from the ispell
word list.)

I then rearranged the data in the files to match the
'T' convention used in that essay:

p=: jpath '~user/'
pi=: p,'ispell-enwl-3.1.20/'
nms=: pi,L:0-.&'README'{."1]1!:0 pi,'*'
mrg=: {:@$@> <@:>/.  ]
raw=: ;mrg@:(<;._2)L:0 -.&CR L:0<@(1!:1) nms
(,@,.&LF 1!:2 p<@,'T',":@{:@$)&> raw

This creates a bunch of files with names like T8 and T9
in my user directory which, I believe, should be
suitable for generating the 'T' arrays needed for that
essay.

Perhaps these lists could be read in using
something like:
   T8=: ~. ];._2 tolower 1!:1<jpath '~user/T8'

or perhaps the tolower should be omitted,
(This would depend on whether you cared
that words like 'Monday' were capitalized.)
or perhaps you should use some more systematic
approach.

Anyways, if anyone wanted to play around with that
Jacob's Ladder code, and needed word lists, here's
a way of getting them.

FYI,

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to