Re: [Request] File::Wordlist
Chris Dolan wrote: 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. Lucky I wasn't drinking anything when I read this part, otherwise I would have snorted stuff all over the keyboard. Like, as if an MS Office dictionary is going to be remotely parseable by anything outside itself. Oh, and you forgot Lotus Notes .dic files :) David
Re: [Request] File::Wordlist
humm... seems like we could/should make a module request list? On 12/6/07, Chris Dolan [EMAIL PROTECTED] wrote: 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/* -- benh~
[Request] File::Wordlist
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/*