Logo and Natural Language
Logo is well suited to explorations of natural language. This is because Logo's data structures - words and lists - closely parallel the words, phrases, and sentences that make up spoken and written language.
For example, if we type
print sentence "strawberry [ice cream]
strawberry ice cream
on the screen, having made a sentence out of the word "strawberry and the list of two words [ice cream].
print sentence [vanilla fudge] [ice cream]
vanilla fudge ice cream
In Exploring Language with Logo, Paul Goldenberg and Wally Feurzeig begin with some gossip;
output sentence who doeswhat
output pick [Sandy Dale Dana Chris]
output pick [cheats. [loves to walk.] [talks a mile a minute] yells.]
Pick reports an item randomly picked from the list that follows. Who reports a randomly chosen name of a person. Doeswhat reports a randomly selected verb phrase. Gossip puts the two together and reports a sentence.
The instruction print gossip might display
Chris loves to walk.
Dale talks a mile a minute.
What if we change doeswhat to be:
output pick [cheats. [loves to walk.] [talks a mile a minute] yells.[ Ford Mustang.]]
We could end up with a non-sentence like
Dale Ford Mustang.
So with this playful exercise we can learn something about nouns and verbs.