Games::Word::Wordlist::SGB - Wordlist from the Stanford GraphBase.
use Games::Word::Wordlist::SGB; my $wl = Games::Word::Wordlist::SGB -> new; my $word = $wl -> random_word; print "We have a word." if $wl -> is_word ($word);
Games::Word::Wordlist, giving you a managable wordlist preloaded with the words from the Stanford GraphBase.
Games::Word::Wordlist::SGB defines just one method, the class method
new, which doesn't take any arguments.
Games::Word::Wordlist is subclassed, all its methods (except
new) are available.
The Stanford GraphBase is a set of freely available programs and data files, used by Donald E. Knuth to create examples for his Volume 4 of The Art of Computer Programming. The Stanford GraphBase contains a list of the 5757 most used 5-letter English words. This module contains this list.
The current sources of this module are found on github, git://github.com/Abigail/Games--Word--Wordlist--SGB.git.
Copyright (C) 2010 by Abigail, except the word list itself, which is in the public domain.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
To install this module, run, after unpacking the tar-ball, the following commands:
perl Makefile.PL make make test make install