Dear really-really-lazyweb,
Would someone please create a CPAN module that finds a wordlist on
the local computer in a cross-platform friendly manner, a la
File::HomeDir? For typical unix systems, that would be:
sub find_wordlist {
return '/usr/share/dict/words';
}
But it could be smarter and look for, say, /usr/share/dict/scrabble-
english first. For Windows, maybe it would look for MS Office or
OpenOffice files first.
For extra points, it could even parse those files if their not just
word + newline. For double extra points, it could download
additional dictionaries from the web (ispell, etc).
TIA,
Chris ;-)
References:
http://www.nntp.perl.org/group/perl.fwp/2007/12/msg4038.html
http://en.wikipedia.org/wiki/Words_(Unix)
http://packages.debian.org/sarge/all/scrabble/filelist
http://packages.ubuntu.com/dapper/virtual/wordlist
http://fmg-www.cs.ucla.edu/geoff/ispell-dictionaries.html
http://www.gutenberg.org/etext/3201
Paths:
/usr/dict/words
/usr/share/dict/*
/Applications/Firefox.app/Contents/MacOS/dictionaries/en-US.dic
/Library/Dictionaries/New\ Oxford\ American\ Dictionary.dict/
Contents/dict_body
/sw/share/aspell/*