Random adjectives and spellcheck exercise

Find and copy the Torleif wordgame files we saw at the lecture. You can find the dictionary website here: http://www.dsn.dk/cgi-bin/ordbog/ronet.
  1. Modify the random word finder so that it finds adjectives between 5 and 15 letters instead of nouns.
  2. With inspiration from these files (i.e. copy/paste what you need!), write a program that asks the user for a word and looks it up in the dictionary. Print some error message if the word is spelled incorrectly and thus not found.

    Hint: use this URL when calling the dictionary website: myurl = "http://www.dsn.dk/cgi-bin/ordbog/ronet?M=1&P=%s" %(word) where word is the word you wish to look up. That will give you either some html with no matches or some html containing the first 10 words starting with word. Also: if you right-click on a webpage you can choose to 'view the source (code)'. That will allow you to see the actual html text that your program searches.

  3. Bonus question: enhance your program so it gives one of these three answers:

    1. "Word spelled correctly"
    2. "Word doesn't exist, did you mean X?"
    3. "No word begins with Y!"

    where X is some word in which the input word is a prefix, and Y is the input word.