Modeling Language

In this project, you will create a program capable of creating more complicated language than the Gossip project.

    • nouns (things)
    • verbs (actions)
    • adjectives (thing describers)
    • adverbs (action describers)
    • determiners (identifiers—tells you which thing)
    • prepositions (relationship indicators)
  1. Click here to load a starter project. Then save it.

    It contains six reporters that each report a random word from a list of words in that category.

  2. Try out each block to see what it does. Then change these lists however you like to include your own nouns, verbs, etc.
  3. Create a reporter called simple sentence that reports a simple sentence using the random determiner, random noun, and random verb blocks.
    simple sentence reporting 'a boy jumps'
  4. More complicated sentences can be built up from multiple phrases. Create these phrase reporters:
    1. green noun phrase reporter block should join words from two categories to make phrases like "the sandwich" or "a giraffe," or from three categories to create phrases like "the little boy," "a green giraffe," or "our old sandwich."
    2. green prepositional phrase reporter block should combine a preposition with a noun phrase to create phrases like "near the little boy" or "over a wise pizza."
    3. Using noun phrase to define prepositional phrase is a good example of abstraction. If you later change noun phrase to include people's names, prepositional phrase will still work.
    4. green verb phrase reporter block should report either just a verb like "jumps" or join a verb and an adverb to create combinations like "jumps sadly," "naps quickly," or "thinks sleepily."
  5. These phrases will be grammatically correct, but they won't necessarily make sense. For example, noun phrase might generate "a tired pizza."
  6. Then, make a reporter complicated sentence that combines a noun phrase, a verb phrase, and a prepositional phrase. complicated sentence reporting 'my silly elephant in front of your tired elephant sits down quickly'
  1. Occasionally, include people's names instead of a noun phrase. So, instead of something like "my silly elephant," the program could sometimes use "Jamie" or other names.
  2. Noun phrases don't always have to have one adjective. They can have none, or two, or more. Add some variety.