This is a quasi word generator function written in java. the word returned will be selected from a list of words.