linguistic bug in chapter 17

102 views
Skip to first unread message

Jon Kiparsky

unread,
Nov 10, 2011, 2:00:53 AM11/10/11
to Land of Lisp
Since we're posting bugs, here's one. This is "just semantics" but of
course clarity is a matter of getting the words right, so "just
semantics" is maybe important. If so, the definition

(defun weld (subject object) ... )

is incorrect, since we're not talking about a subject at all. You
might use "object" and "indirect-object" or "object1" and "object2" or
you could reach into the bag of thematic roles and pull out, maybe
"patient" or "theme" or some such, or you could simply punt and say
"object1" and "object2" - depends on what aspects of the sentence
"weld the chain to the bucket" you want to highlight.
In no case, however, is the subject of the sentence either the chain
or the bucket.

Just sayin'...

Sequiturian

unread,
Nov 3, 2012, 4:08:44 PM11/3/12
to land-o...@googlegroups.com
It might look a little long to write it out as:

(defun weld (direct-object object-of-the-preposition-to) .... )

Especially, since it's tedious and boring to do such things in programming.

Just sayin', too...

Jon Kiparsky

unread,
Nov 4, 2012, 6:55:29 PM11/4/12
to land-o...@googlegroups.com
What about avoiding the parts of speech entirely?

(defun weld (this that) ... )

As in "weld this to that". I know, they use it in those nasty imperative languages, but it's a perfectly good construction.

Jochen Heller

unread,
Nov 27, 2019, 3:29:10 PM11/27/19
to Land of Lisp
Am Donnerstag, 10. November 2011 08:00:53 UTC+1 schrieb Jon Kiparsky:
the definition

(defun weld (subject object) ... )

is incorrect, since we're not talking about a subject at all.

Well ...

(game-action weld chain bucket attic
  (if (and (have 'bucket) (not *chain-welded*))
      (progn (setf *chain-welded* t)
         '(the chain is now securely welded to the bucket.))
      '(you do not have a bucket.) ))

That's where it ends:

`(the ,subject is now securely welded to the ,object.)
Reply all
Reply to author
Forward
0 new messages