Large free block of english non-pronoun text

Posted by Tom on Stack Overflow See other posts from Stack Overflow or by Tom
Published on 2010-04-11T17:44:56Z Indexed on 2010/04/11 17:53 UTC
Read the original article Hit count: 167

Filed under:
|
|

As part of teaching myself python I've written a script which allows a user to play hangman. At the moment, the hangman word to be guessed is simply entered manually at the start of the script's code.

I want instead for the script to choose randomly from a large list of english words. This I know how to do - my problem is finding that list of words to work from in the first place.

Does anyone know of a source on the net for, say, 1000 common english words where they can be downloaded as a block of text or something similar that I can work with?

(My initial thought was grabbing a chunk of a novel from project gutenburg [this project is only for my own amusement and won't be available anywhere else so copyright etc doesn't matter hugely to me btw], but anything like that is likely to contain too many names or non-standard words that wouldn't be suitable for hangman. I need text that only has words legal for use in scrabble, basically).

It's a slightly odd question for here I suppose, but actually I thought the answer might be of use not just to me but anyone else working on a project for a wordgame or similar that needs a large seed list of words to work from.

Many thanks for any links or suggestions :)

© Stack Overflow or respective owner

Related posts about text

Related posts about seed