UBC Theses and Dissertations

UBC Theses Logo

UBC Theses and Dissertations

A case-driven parser Taylor, Brock H. 1975

Your browser doesn't seem to have a PDF viewer, please download the PDF to view this item.

Notice for Google Chrome users:
If you are having trouble viewing or searching the PDF with Google Chrome, please download it here instead.

Item Metadata

Download

Media
831-UBC_1975_A6_7 T39_5.pdf [ 7.42MB ]
Metadata
JSON: 831-1.0051780.json
JSON-LD: 831-1.0051780-ld.json
RDF/XML (Pretty): 831-1.0051780-rdf.xml
RDF/JSON: 831-1.0051780-rdf.json
Turtle: 831-1.0051780-turtle.txt
N-Triples: 831-1.0051780-rdf-ntriples.txt
Original Record: 831-1.0051780-source.json
Full Text
831-1.0051780-fulltext.txt
Citation
831-1.0051780.ris

Full Text

A CASE-DRIVEN PARSER by Brock H. Taylor fi.Sc, Univer s i ty of B r i t i s h Columbia, 1973 A THESIS SUBMITTED IN PARTIAL FULFILMENT OF THE REQUIREMENTS FOR THE DEGREE OF MASTER OF SCIENCE i n the Department . ' • o f COMPUTER SCIENCE We accept t h i s thes i s as conforming to the required standard. The Univers i ty of B r i t i s h Columbia May 1975 In presenting th is thes is in pa r t i a l fu l f i lment of the requirements for an advanced degree at the Un ivers i ty of B r i t i s h Columbia, I agree that the L ibrary shal l make i t f r ee ly ava i l ab le for reference and study. I fur ther agree that permission for extensive copying of th is thes is for scho la r ly purposes may be granted by the Head of my Department or by h is representat ives . It is understood that copying or pub l i ca t ion of th is thes is fo r f inanc ia l gain sha l l not be allowed without my wri t ten permission. Department of The Univers i ty of B r i t i s h Columbia Vancouver 8, Canada ABSTRACT A pars e r f o r E n g l i s h sentences using case and an augmented t r a n s i t i o n network i s d e s c r i b e d . The i n t e r a c t i o n between syntax, semantics, and case i s examined with s p e c i a l emphasis on t h e i r r o l e i n t h i s p a r t i c u l a r system. The t h e s i s concludes with a r e - a f f i r m a t i o n of the i n s e p a r a b i l i t y of syntax and semantics, and with c a u t i o u s optimism f o r the f u t u r e c f case i n computational l i n g u i s t i c s . i i TABLE OF CONTENTS CHAPTER 1 1 SECTION 1.1: Introduction 1 SECTION 1.2: A Brief Look at Some Relevant Case Systems 2 SECTION 1.3: A top-level description .6 CH APT ER 2 : CAS ES 9 SECTION 2.1: List of Cases 11 SECTION 2.2: Determination of Case 18 SECTION 2.3: Verb Specific Cases ......................21 SECTION 2.4: The Structure Returned ...................23 CHAPTER 3: THE DICTIONARY .....25 SECTION 3.1: Verb Definitions ........26 CHAPTER 4: AN EXHAUSTIVE EXAMPLE 32 CHAPTER 5: SOME DETAILS 45 SECTION 5.1 Anaphoric references ......................45 SECTION 5.2 Particles 49 SECTION 5.3 Ergative Verbs .......51 SECTION 5.4 Some Obvious Extensions 52 CHAPTER 6: CONCLUSION 53 BIBLIOGRAPHY .57 APPENDIX I: Some Examples............. .............59 APPENDIX II: Some Non-examples .....74 APPENDIX III: A Description of Hhat the System Returns ....75 APPENDIX IV: The Dictionary 77 APPENDIX V: The Code ......................................95 The Case Analysis Code ..96 The ATN Grammar .............................. 129 Some Auxiliary Routines ...................... 137 The ATN Parser ............................... 138 TABLE OF FIGURES i i i FIGURE 1: An Example From Schank *J FIGURE 2: The D i c t i o n a r y Entry f o r the Verb " t o o r d e r " ....28 FIGURE 3: An ATN Parse of Sentence (4.1) 33 FIGURE 4: I n c o r r e c t I n i t i a l S t r u c t u r e f o r Sentence (4 .1) ..37 FIGURE 5: The S t r u c t u r e f o r "the man beside the window" ...40 FIGURE 6: Co r r e c t I n i t i a l S t r u c t u r e f c r Sentence (4 .1) ....42 FIGURE 7: The F i n a l S t r u c t u r e f o r Sentence (4 .1) ..........44 Each man has a way to betray the revolution This i s mine 1 CHAPTER 1 I fought i n the old revo lut ion on the side cf the ghcst and the king Cf course I was very ycung and I thought that we « e r e winning I c an ' t pretend I s t i l l f e e l very much l i k e s inc ing as they carry the bodies away - L . Cchen SECTION U\: Introduction The work described in t h i s paper was l a rge ly inspired by Roger Schank's [11] work with Conceptual Dependency Netwcrks, although i t i s not intended tc be an implementation of h i s ideas . I t i s a parser which uses the notion of case in i t s breakdown of a sentence, and which label s sentence parts with case names i n the structure that i t re turns . The system is written i n LISP and i t runs at the Univers i ty of B r i t i s h Columbia on an IBM 370-168 under the MTS operating system. Case i s a much more i n t u i t i v e approach tc language than transformational grammars are. It not only demands the in tegra t ion of semantics into the parser, but i t makes i t obvious that t h i s i s where the semantics belong. Case at least p a r t i a l l y un i f i e s these long separated components of language. 2 SECTION _1.2: A B r i e f look a t Some Relevant Case Svstems Si n c e F i l l m o r e [6] wrote h i s paper "The Case f o r Case" i n 1968 there has been a str o n g movement i n computational l i n g u i s t i c s towards a case a n a l y s i s cf the E n g l i s h language. Very b r i e f l y , F i l l m o r e i n t r o d u c e d a n o t i o n of deep case i n w i i c h a simple sentence i s composed of a verb with c e r t a i n p r o p e r t i e s such as tense, a s p e c t , e t c . , and a s e t of noun phrases l a b e l l e d with case names. F i l l m o r e dees net give an exhaustive l i s t of the deep cases i n E n g l i s h , but he does l i s t a few cases t h a t he views as e s s e n t i a l . They are: AGESTIVE, DATIVE, INSTRUMENTAL, FACTITIVE, LOCATIVE, OBJECTIVE, and E. ESE. FACT IV E. Verbs are c l a s s i f i e d by t h e i r case environments, that i s , by the set of cases they a c c e p t . In 1972 Celce-Murcia [3] proposed a case system of f i v e cases: CASUAL-ACTANT, THEME, LOCUS, SOURCE,-and GOAL. Simmons [13] has w r i t t e n a system based on Celce-Murcia *s theory. He c l a s s i f i e s a l l . v e r b s i n t o what he c a l l "paradigms" according to the way the f i v e cases may be arranged with the verb i n the s u r f a c e s t r u c t u r e . He g i v e s the example of the verb "to break". I t belongs to the " e r g a t i v e " paradigm which a l l o w s f c u r case p a t t e r n s i n the s u r f a c e s t r u c t u r e i n the a c t i v e v o i c e : 3 (1.1) John broke the window with the hammer., (1.2) John broke the window. (1.3) The hammer broke the window. (1.4) The window broke. They can a l l be generated from the s t r u c t u r e : break: CASUAL-ACTAST1: John THEME: window CASUAL-ACTAHT2: hammer with the a p p r o p r i a t e d e l e t i o n s and re-arrangements allowed e r g a t i v e verbs. I f enough verbs can be so c l a s s i f i e d , t h i s p r o v i d e s a simple, yet appa r e n t l y powerful mechanism f o r gene r a t i n g language, using t h i s scheme f o r p a r s i n g , however, leads t o the u s u a l problems case systems have. In sentence (1.4) what i s the CASUAL-ACTADT1, the AGIST i n my terminology? What i s the CASUAL-ACT ANT 2, my INSTRUMENT case? The system may be a b l e to t e l l from c o n t e x t , or to make an i n t e l l i g e n t gu€ss. I do not mean t o imply t h a t these are problems p a r t i c u l a r to Simmon's work. They are not. His paradigm i d e a i s very u s e f u l i n t h a t i t l i m i t s t o four the number of p o s s i b l e arrangements of these three cases f o r e r g a t i v e verbs. The b a s i c problem with u s i n g only f i v e cases i s that i n f o r m a t i o n which i s f a i r l y r e a d i l y a v a i l a b l e i n the s u r f a c e s t r u c t u r e tends t o become obscured, i f net l o s t . In sentence (1.1) , f c r i n s t a n c e , we can i n f e r a l o t o f i n f o r m a t i o n net e x p l i c i t i n the sentence. For i n s t a n c e , we guess that John 4 performed some act which caused the hammer to s t r i k e , and thus t o break through the pane of g l a s s i n the window. Ke probably h e l d the hammer i n h i s hand and s t r u c k the window with i t s metal head, but he could have thrown i t through the window; he could have s t r u c k the window s i l l or frame thus causing the pane to break, e t c . I t i s t h i s more ge n e r a l p i c t u r e that Schank t r i e s to b u i l d up with h i s c o n c e p t u a l dependancy nets.. Schank employs f o u r t e e n v e r b a l p r i m i t i v e s , or ACTs, and a t l e a s t f c u r cases (OBJECTIVE, RECIPIENT, DIRECTIVE, and INSTBOBEETAI) to b u i l d up a s t r u c t u r e of p r i m i t i v e s which captures the "meaning" cf the sentence. I say " a t l e a s t f o u r c a s e s " because other cases such as AGENT are i m p l i c i t i n h i s s t r u c t u r e s . (1.5) John grew the p l a n t s with f e r t i l i z e r . For i n s t a n c e , from sentence (1.5) he b u i l d s the s t r u c t u r e i n f i g u r e 1. +- > p l a n t s ground past John < > t r a n s < o b j e c t |c f e r t i l i z e r < •- | p I I | l i n t e n t I i | i |e i n I t p l a n t s < -> grow +- < t a g Figure 1 - An Example from Shank No t i c e t h a t " f e r t i l i z e r " appears to be i n the. instrument case i n the s u r f a c e s t r u c t u r e , but i t i s i n f a c t the o b j e c t i v e 5 case o f the ACT " t r a n s " . Schank's s t r u c t u r e s capture mere of the meaning of the sentences than F i l l m o r e ' s deep s t r u c t u r e do. C u r r e n t l y at HIT K a r t i n [9] i s b u i l d i n g a case system f o r the HAPL p r o j e c t . He has proposed a s e t of some t h i r t y c a s es. 6 SECTION 1.3: A T o p - l e v e l D e s c r i p t i o n The b a s i c o b j e c t i v e i n t h i s t h e s i s was to e x p l o r e the use of case i n a system which parsed E n g l i s h sentences i n t o a s t r u c t u r e l i k e Schank's conceptual dependancy networks. A loose and incomplete s e t of v e r b a l p r i m a t i v e s were used i n s t e a d of Schank's f o u r t e e n p r i m a t i v e ACTs because they seemed l o r e i n t u i t i v e . Verbs l i k e "buy", " s e l l " , " g i v e " , " t a k e " , " s t e a l " , e t c . , are represented by " t r a n s " ; verbs l i k e "go", "come", "run", and " l e a v e " by "move"; and so cn. An important f e a t u r e of case which Simmons does net acknowledge i s t h a t F i l l m o r e ' s "case frames" can be used to s e l e c t , from the m u l t i p l e meanings of a verb, i t s intended meaning i n the sentence. The p r o c e d u r a l d e f i n i t i o n cf a verb i n my d i c t i o n a r y c o n s i s t s of a l i s t of case frames which d i s t i n g u i s h verb meanings. (1.6) John s t o l e the jewel. (1.7) John s t o l e i n t o the b u i l d i n g . For i n s t a n c e the two meanings o f the verb "to s t e a l " i n sentences (1.6) and (1.7) are d i s t i n g u i s h e d by the two case frames f o r the verb. The case frame f o r the meaning used i n (1.6) demands a PATIENT, while the one f o r (1.7) r e q u i r e s a l o c a t i v e phrase with an a d v e r b i a l p r e p o s i t i o n . T h i s notion i s used i n a s i m i l a r way by Schank. (1.8) He s t o l e . 7 Sentence (1.8) i s ambiguous t o my system s i n c e the case frames f o r the verb cannot t e l l which meaning i s i n t e n d e d . The system must r e s o r t t o c o n t e x t , as you and I do, to r e s o l v e the ambiguity. T h i s mechanism has not been programmed, sc c u r r e n t l y the system w i l l r e t u r n the f i r s t meaning i t succeeds on, which, a f t e r s e v e r a l f a i l u r e s t o f i n d a p a t i e n t c r a l o c a t i v e phrase, w i l l be " t c t h i e v e " . The r e s t of t h i s chapter w i l l be devoted tc a simple d e s c r i p t i o n of the c o n t r o l s t r u c t u r e i n which these case frames operate., The system takes the sentence and t r i e s to f i t i t i n t o one of the frames, t h a t i s , i t t r i e s to f i n d which meaning i s being used i n the sentence by l o o k i n g a t the sentence s t r u c t u r e , i t s p a r t s , and t h e i r semantic c a t e g o r i e s . I f i t gees through a l l of the meanings without f i n d i n g one t h a t . f i t s the sentence, i t weakens i t s t e s t s on the semantic c a t e g o r i e s , and then t r i e s a l l of the meanings a g a i n . (1.9) The t u r n i p played a wild dance cn the v i o l i n . In sentence (1 . 9 ) , f o r i n s t a n c e , the system w i l l a t f i r s t f a i l t o f i n d an agent because a l l of the case frames f o r " t c play" demand an animate, i f not human, agent. These t e s t s w i l l be weakened, however so t h a t on the second, or t h i r d time through the l i s t o f case frames a meaning w i l l be s e l e c t e d . T h i s p r c c e s s of going through the case frames again with weaker t e s t s i s r e f e r e d to as the t o p - l e v e l back-up, although i t i s not r e a l l y back-up i n the usual sense, s i n c e d e c i s i o n p o i n t s are not 8 stac k e d and backed-up through on f a i l u r e . T h i s was done f o r a s p e c i f i c reason. Since the case frames are t r i e d i n o r d e r , the o r d e r i n g can be used to help disambiguate the verb. In d e f i n i n g the second case frame f o r a verb, f o r i n s t a n c e , i t i s o f t e n u s e f u l to use the f a c t t h at the f i r s t case frame has f a i l e d . I f the system backs up i n t o t h i s second frame with a weaker t e s t , however, i t may not be true that the f i r s t case frame would f a i l on the weaker t e s t . Another reason f o r not backing up i n the usual sense, i s f o r e f f i c i e n c y . Since the case frames are t r i e d i n order, o b v i o u s l y the most commmon verb usages should be put f i r s t i n the l i s t . I f a l l of the meanings f a i l beacuse the t e s t s are t e c seve r e , one s t i l l wants t o t r y the most common meanings f i r s t with the weaker t e s t s . Once the system has succeeded on a p a r t i c u l a r meaning of the verb i t w i l l proceed t c look a t the r e s t o f the sentence net a l r e a d y looked a f t e r by the framing process. Here a genuine back-up mechanism i s employed. I f the system t h i n k s i t has the c o r r e c t case f o r a p a r t i c u l a r sentence p a r t , i t stacks a form to put the corresponding s u b - s t r u c t u r e i n t o the main s t r u c t u r e cf the parse. I f the r e s t of the sentence i s handled c o r r e c t l y , when the stack i s unwound a t the end, a l l of the forms so stac k e d are EVALed, and these s u b - s t r u c t u r e s are put i n . I f , on the o ther hand, the system f a i l s l a t e r on i n the parse, i t w i l l back up to t h i s d e c i s i o n p o i n t and lock f o r another waj to handle t h i s p a r t i c u l a r sentence p a r t . 9 CHAPTER 2 They w i l l never ever reach the icocn at least not the one that they're a f t e r I t i s f l o a t i n g broken on the open sea and i t c a r r i e s nc survivors -1. Cchen CASES The question of how many cases we need to describe Engl i sh i s a contentious one. As mentioned above, F i l lmore i s vague cn the i s sue , whereas Celce-Murcia claims that f ive cases w i l l do. The purpose of t h i s work i s to capture as much of the meaning cf a sentence as i s poss ib le , and to make i t e x p l i c i t i n a formal s t ruc ture . Case, then, i s an explanation of the semantic funct ion of a sentence part , so a f a i r l y large number of cases have been used, one for each of these "semantic funct ions" . We are not adamant about our set of cases. The system i s f l e x i b l e and structured enough, that the addi t ion or delet ion of cases i s a simple operat ion. The system was o r i g i n a l l y designed with Mart in ' s th i r ty-odd cases as i t s basis . There are current ly twenty-fcur general cases implemented, plus numerous verb-spec i f i c cases. Some cf Mart in ' s cases have been dropped completely, some have simply not been implemented yet , and several have been added. The fol lowing l i s t of these twenty-four cases should be 10 f a i r l y s e l f - e x p l a n a t o r y . S i t h each case i s a s e t cf examples (mostly from Leonard Cohen, i f they seem strange) with the case i n q u e s t i o n u n d e r l i n e d . Those cases which are f l a g g e d by c e r t a i n p r e p o s i t i o n s have these p r e p o s i t i o n s l i s t e d . 11 SECTION 2.1: L i s t of Cases Agent The man i n white says he has no f r i e n d s . The t r e e s are burning i n your promised l a n d . I got wiped out by s e v e r a l c h a r i s m a t i c holjj men. Love c a l l s you by your name. P a t i e n t He t r a i n e d a hundred women j u s t to k i l l an unborn c h i l d . You can read t h e i r address by the moon. I am punished by your s o l i t a r y t r u t h . I washed mv e v e l i d s i n the r a i n . L o c a t i o n A s c a l p e l blade l a y beside mv s i l v e r sp_oon. Your l e t t e r s a l l say th a t you are beside me now. I s l e e p beneath the golden h i l l . In c i t v and i n f o r e s t our st e p s w i l l always rhyme, I have l a i n by. t h i s window long enough. Flagged by a t , i n , on, by, near, bes i d e , b e f o r e , beneath, upon. 12 Time I l o v e ycu i n the or n i JJCJ . I f by chance I wake a t n i g h t and ask you who I am. I suppose that he f r o z e when the wind took your c l o t h e s . We a l l should study e t i q u e t t e before we study magic. She f e l l i n l o v e f o r us i n J 9 6 J . Flagged by a t , i n , on, by, near, d u r i n g , b e f o r e , a f t e r , when, while, around. R e c i p i e n t She s a i d t h a t you gave i t to her. They brought me t h e i r comfort. Flagged by t c . Source We w i l l come from the shadows. . Thanks f o r the t r o u b l e you took from her eyes. Taking from h i s w a l l e t an o l d scheduel of t r a i n s , h e ' l l say, " I t o l d ycu when I came I was a s t r a n g e r . " Flagged by from. D e s t i n a t i o n I w i l l l e t you take me home. Into t h i s furnace I ask you now to venture. She l e a d s you to the t i v e r . Take me to the slaughterhouse. Flagged by t o , i n t o , onto, toward, towards. Duration You have l i v e d f o r years f o r nothing. He w i l l s l e e p f o r one nicjht with the woman he plans to abandon. They played t h e i r game i n two hours. Flagged by f o r , i n . Instrument She touched your p e r f e c t body with her mind. Cover up your face with scajj, new ycu're Santa C l a u s e . The i n f a n t with h i s cord i s hauled i n l i k e a k i t e . Flagged by with. Manner They l e f t i n a hurry. I walk with my mouth shut i n t o the d r i f t i n g world. I choose the rooms t h a t I l i v e i n with c a r e . I am e a t i n g a j u i c y peach by lajjglisht. Flagged by i n , with, by. Path We s t a r t e d up_ the mountain, through the graves the wind i s blowing. I journeyed down a hundred stej>s. , We poured across the border. Flagged by by, about, a l o n g , up, down, around, a c r o s s . Method. I dc not intend to save you any work by keeping s i l e n t . Some men find strength bv going their lonely ways. Who would have fore t o l d that the heart grows old from touching others. Flagged by by, from. £g£§£ted-§ffect I am only whispering to my tomahawk sc the image i t s e l f w i l l reduce ycu tc scorn. They blamed M i t c h e l l so the Jjeoj-le «culd net Flagged by so. Quantity What i s grey and comes by, the guart? We produce o i l by the ba r r e l and s e l l i t by the CUD Flagged by by. Exchange I bought i t with a nickle and I sold i t for a dime. He wants to trade the game he plays for s h e l t e r . Xou could not trade them for ££iesthood. They are waiting to see a signal that some k i l l e r w i l l be l i g h t i n g for pay. Flagged by with, f o r . / 15 i S i ^ r y I fought every man f o r her u n t i l the night was ever. I s i n g t h i s to the c r i c k e t s , I s i n g t h i s f o r the army. I f o r g o t to pray f o r the a n g e l s , and so the angels f o r g o t to pray f o r us. Flagged by f o r , t o , b e f o r e . Co-agent I went with the one who found me. I l i v e d with a c h i l d of snow. Nancy wore green s t o c k i n g s , and she s l e p t with everyone. Oh, come with me my l i t t l e one. Flagged by with. D e s c r i p t i v e (A case of the Noun) Suzanne takes you down to her p l a c e near the r i v e r . The woman i n blue i s asking f o r revenge. The hand of your beggar i s burdened down with money. Flagged by o f , from, at, i n , on, with, by, near, beside, b e f o r e , a f t e r , along, up, down, around, a c r o s s , under. T o r i c I t i s time we began t o laugh about i t a l l again. L e t s not t a l k of love or c h a i n s . Sometimes I f i n d I get t o t h i n k i n g cf the j a s t . Flagged by o f , about, Cause I t r a i n e d so I got j e t . Flagged by sc. Purjaose You who b u i l d these a l t e r s to s a c r i f i c e these c h i l d r e n , you oust not do i t any more. You were t r a n i n g with m i r r o r s to make 221iiself £§rfact. I l i t a t h i n green candle t o Jake you j e a l o u s of me. Flagged by t o . Enable He robbed the bank so he and h i s wife c o u l d have separate h o l i d a y s . I had to k i c k you down the s t a i r s so I could savour unemployment once again. We have t o put her away sc we can get back tc the var. Flagged by so. L i k e He sank beneath your wisdom l i k e a stcne. L i k e a b i r d on a wire, l i k e a drunk i j a j i d n i g h t c h o i r , I have t r i e d i n my way to be f r e e . The sun pours down l i k e honey cn our lady cf the morning. Flagged by l i k e . 17 With The room j u s t f i l l e d up with moscjuitos. He locked himself i n a l i b r a r y s h e l f with the d e t a i l s of our honey-mccn. Flagged by with. 18 SECTION 2.2: Determination c f Case With most of the cases above i s l i s t e d the p r e p o s i t i o n s t h a t f l a g each case. T h i s i s a gross o v e r - s i m p l i f i c a t i o n cf the r e l a t i o n s h i p between verbs, p r e p o s i t i o n s , and cases. A p r e p o s i t i o n which f l a g s one case f o r cne verb mas very well f l a g another case f o r a d i f f e r e n t verb. (2.1) I walked about the room. (2.2) I t a l k e d about the room. For verbs of movement l i k e "walk", "about" f l a g s the path case as i n (2 . 1 ) , but f o r verbs of ccmmunicaticn l i k e " t a l k " , i t u s u a l l y f l a g s the t o p i c case as i n (2.2). Martin notes t h i s and proposes f o r each verb meaning to l i s t a l l of the cases f l a g g e d by each p r e p o s i t i o n . Since there i s a great deal of u n i f o r m i t y a c r o s s verbs i n t h i s regard, however, i t much mere e f f i c i e n t to s e t up a master t a b l e f o r a l l verbs i n the system, then f o r each verb, to l i s t o nly the i r r e g u l a r i t i e s . (2.3) The scandal was whispered about the room. Sentence (2„3) i l l u s t r a t e s t h a t "about" can f l a g the path case f o r a communication verb, so we dc net want tc r u l e cut the path case, we j u s t want t o p i c to be t r i e d f i r s t . In (2.3) the t o p i c s l o t w i l l a l r e a d y be f i l l e d by "the s c a n d a l " , so t o p i c w i l l be r e j e c t e d , and the path case w i l l be t r i e d next. T h i s f o r e g r o u n d i n g of cases i s s p e c i f i e d by the person who 19 writes the d i c t i o n a r y . He may specify that for the verbs t a lk , laugh, whisper, e t c . , the occurrence of the prepos i t ion "about" should t r igger the topic case before the path case. There i s another obvious way cf determining case names for prepos i t iona l and noun phrases. Consider the sentences: (2.4) Fred bought the car for Mary. (2.5) Fred bought the car for one d o l l a r . The prepos i t ion " f o r " f lags many cases. In (2.4) i t f lags the benef ic iary case, and in (2.5) i t f lags the exchange case, associated with each case i s a test which a phrase must pass to be accepted as that case. In the benef ic iary case the test i s : (BUST-BE ABIBATE) i n d i c a t i n g that the beneficiary has to be animate, while the tes t for the exchange case i s : to (NOT (SH0ULD-BE HUMAN ABSTRACT) ) i n d i c a t i n g that one usual ly dones not exchange something f c r a person or something abstract . These tests cor rec t ly sort out the cases in sentences (2.4) and (2.5) . In general tests on cases are very d i f f i c u l t to design adequately. What te s t would be appropriate for the topic case? What could not be t a l k e d , laughed, or c r ied about? Perhaps some complex verb and context dependant test could be concccted, but 20 one has not been designed for t h i s system. The test for the top ic case i s therefore T. One must therefore be care fu l when invoking the top ic case because i t w i l l always succeed. The exchange case i s almost as bad, Anything can be exchanged for something. The weak test (HOT (SHOULD-BE HUMAN ABSTRACT) ) i s put i n which w i l l at f i r s t f a i l i f a human or an abstract noun i s the candidate, but w i l l pass i f nothing else seems tc f i t e i ther . This simple tes t runs into problems with ce r t a in sentences. (2.6) I paid a fortune for my mother's release. (2.7) I paid a fortune for my mother. (2.8) I paid a fortune for the p r c s i t i t u t e . I t w i l l i n i t i a l l y force the exchange case tc re ject " f c r my mother's re lease" i n (2.6) because i t i s abstract , tut l a ter cn i t w i l l accept i t s ince a l l of the other cases flagged by " f o r " w i l l a lso re jec t i t . Sentence (2.7) i s ambiguous, tut "mother" i s almost ce r t a in ly in the benef ic iary role here, sc again the tes t works c o r r e c t l y by re jec t ing the exchange case. Sentence (2.8) i s also ambiguous, but our in te rpre ta t ion would usua l l j be that " p r o s t i t u t e " i s being used i n the exchange case here. The system w i l l , however, assign i t the benef ic iary case as i t did i n (2 .7) . Much work must be done on case tests i f t h i s paradigm i s to be useful . 21 SECTION 2.3: V e r b - s g e c i f i c Cases The cases l i s t e d i n SECTION 2.1 are general cases, almost a l l of which can be associated with any verb. Many verbs, however also have s p e c i a l cases. The verb "to be" i s a prime example. In t h i s system "to be" has eight meanings. l e t * s look at a few of them. The t h i r d meaning of " t c be" i s "to have the property ..„", as in sentence (2.9). (2.9) The house i s red. I f you look at the entry for "to be" i n the dictionary in APPENDIX IV you w i l l sea that t h i s meaning i s picked up by the form: ((ADJ-LIST T) AD J CBL (AGENT T) AG OEL) The function ADJ-LIST looks for an adjective phrase. Sc an adjective phrase i s considered to be a s p e c i a l case cf the verb "to be". The s i x t h meaning of " t c be" i s "to be from . . .", as in sentence (2.10). (2.10) The lady i s from Ouagadougou. This special case i s looked for by the function CLAUSE, which takes as arguments a l i s t of prepositions to look for, a test 22 t h a t the p r e p o s i t i o n a l phrase must pass, and a name f o r the case i t i s l o c k i n g f o r . In t h i s case the form i s : (CLAUSE • (FROM) • (MUST-BE COUNTRY CITY TOWN CO NT IS EST LOCATION) •LOCATION) * In o t h e r words: Look f o r a phrase s t a r t i n g with "from" which i s a l o c a t i o n o f some kind. (The t h i r d argument i s needed f o r the back-up mechanism. I t i s p o s s i b l e t o t u r n the MUST-BE t e s t s c f f f c r only c e r t a i n c a s e s . T h i s i s u s e f u l when you are happy with the a c t i o n c f a l l of the t e s t s but those a s s o c i a t e d with a c e r t a i n case cr two.) My n o t i o n of case i s r a t h e r g e n e r a l , i n which an important f u n c t i o n of a case i s t o d i s t i n g u i s h betwen verb meanings. In the f o l l o w i n g chapter we w i l l look c a r e f u l l y at j u s t how cases are employed to do t h i s . * Note t h a t (MUST-BE LOCATION) w i l l s u f f i c e as the t e s t here, s i n c e COUNTRY, CITY, e t c . , a l l have the a t t r i b u t e LOCATION. The other c a t e g o r i e s are put i n s i n c e they occur most o f t e n i n t h i s s t r u c t u r e , and w i l l thus speed up the sea r c h . "He ccmes from the West.", would a l s o be handled s i n c e "West" would also have the a t t r i b u t e LOCATION. 23 SECTION 2.4: The S t r u c t u r e Returned APPENDIX I I I g i v e s a formal d e s c r i p t i o n of the s t r u c t u r e s r e t u r n e d by the system. T h i s s e c t i o n w i l l give a more i n f o r m a l and i n t u i t i v e d e s c r i p t i o n . APPENDIX I g i v e s l o t s of examples c f these s t r u c t u r e s . The b a s i c idea was to r e t u r n a s t r u c t u r e which coulc be EVALed by LISP f o r f u r t h e r p r o c e s s i n g . The t o p - l e v e l f u n c t i o n was to be "<==>" which would be an FIXER s i n c e i t can take a v a r i a b l e number of arguments. The f i r s t argument to <==> i s the agent or s u b j e c t of the verb. The "or s u b j e c t " i s necessary i n cases l i k e sentence (2 ,11) because some verb p r i m i t i v e s , HAVE-PROP i n t h i s c ase, allow <==> to take sentences as a f i r s t argument. (2.11) That I came i s s i l l y . The second argument t c <==> i s the tense cf the v e r t . The t h i r d argument i s the p r e d i c a t e . T h i s i s always a l i s t b e ginning with the verb symbol »•<—". The i d e a again was that t h i s would be a form t o be EVALed. The f i r s t argument f o < — i s a v e r b - p r i m i t i v e . The second and t h i r d arguments are o p t i o n a l f o r some verbs, and not f o r o t h e r s . The second i s an a d v e r b i a l phrase s t r u c t u r e beginning with "<-ADV-". For i n s t a n c e , go q u i c k l y . 24 Would have the s t r u c t u r e : ( < — MOVE (<-ADV- QUICKLY)) I f the verb takes a p a t i e n t i n the sentence, t h i s p a t i e n t f o l l o w s the a d v e r b i a l phrase i f i t i s t h e r e , otherwise i t f o l l o w s the verb p r i m i t i v e . The r e s t o f the arguments to <==> are the cases c f the verb, and any t o p - l e v e l a d v e r b i a l phrases, l i k e " w e l l " i n sentence (2. 12) . (2.12) He played the.piano w e l l . T h e i r order i s not considered important i n the they j u s t appear i n a l i s t at the same l e v e l as <--. The cases are l i s t s beginning with an atom <-CASE-were CASE i s r e p l a c e d by any of the cases' but AGENT, PATIENT, cr DESCRIPTIVE. These t h r e e cases are t r e a t e d s p e c i a l l y . As mentioned above, the agent i s the f i r s t argument of <==>, and the p a t i e n t i s the l a s t argument of <—. The DESCRIPTIVE case i s a s p e c i a l case which i s used to handle a l l c f the p r e p o s i t i o n a l phrases which modify nouns. T h i s case, t h e r e f o r e , i s embedded i n the noun^phrase s t r u c t u r e . T h i s i s made more e x p l i c i t i n CHAPTER 4. s t r u c t u r e , so the verb symbol of the form 25 CHAPTER 3 Thanks for the trouble ycu took from her eyes I thought i t was there for coed sc I never t r i e d - L . Cchen THE DICTIONARY Each word i n the d ic t ionary i s set up as fe l lows: (WORD 11 P1 12 V2 . , . . In Pn) where WORD i s the word in quest ion, and each pair (I i P i ) , i>0 i s an ind ica tor and a property which are to be put on the property l i s t of WORD.1 For each word, one of the ind ica tor s should be a part of speech. The property under t h i s ind ica tor i s information fcr the morphology rout ines . For a noun, for ins tance , the property under N indicates how the p lura l of the noun i s formed; fcr verbs, the property under v indicates how the f i r s t - p e r s o n s ingular and past tenses are formed; e tc . On the property l i s t of ncuns i s a l i s t of the noun 's 1 For a deta i led descr ip t ion of just what propert ies gc with what word types see APPENDIX IV. 26 p r o p e r t i e s under N-PROP, i t s s u p e r s e t under SUPERSET, and so on. For verbs one puts a p r o c e d u r a l d e f i n i t i o n o f the verb under V-HEAN. To understand j u s t how the system works i t i s necessary t o see how these p r o c e d u r a l d e f i n i t i o n s work. 27 SECTION 3 . 1 : Verb D e f i n i t i o n s The verb i s t r e a t e d as the f o c a l p o i n t o f the sentence. A verb can have many meanings. The system d i s c o v e r s which meaning i s intended by l o o k i n g a t the r e s t of the sentence. In so doing, i t b u i l d s a s t r u c t u r e r e p r e s e n t i n g a parse cf the sentence. H i t h each verb, then, i s a s s o c i a t e d a set cf cases cf the verb, some o b l i g a t o r y , some o p t i o n a l , and some c o n d i t i o n a l l y o p t i o n a l . These cases are embedded i n a form cn the property l i s t of the verb. Ample examples of v e r b a l d e f i n i t i o n s can be found i n APPENDIX IV, but a c a r e f u l lock a t ene i n d e t a i l i s necessary f o r an understanding of the system. In CEAPTIB 1 a long example i s given showing j u s t how these d e f i n i t i o n s work i n p a r s i n g a sentence. Consider the verb " t o order." I t s d i c t i o n a r y e n t r y i s as f e l l o w s : 28 (ORDER V S-ED PREP-CASE ((WITH WITH)) V-MEAN (IF ( (AGENT (MOST-BE HUMAN)) AG (OPT (GETR PASSIVE) "SOMEONE) (PATIENT (MOST-BE ANIMATE)) PA OBL (TO-COMP (GETS PA)) TOC OBL) (BOILDQ («<==>" ? "•" ( « < — " ORDER "•")) AG TNS TCC) ( (AGENT (MUST-BE HUMAN) ) AG (OPT (GETR PASSIVE) * SOMEONE) (PATIENT (AND (MUST-BE THING) (NOT (MUST-BE HUMAN))) PA OBL) (BUILDQ («<==>" ? "•" ("<--« GREER ?) ) AG TNS PA))) F i g u r e 2 - The D i c t i o n a r y Entry f o r the Verb " t c order" Under the i n d i c a t o r V-MEAN you w i l l see a form beginning (IF ( (AGENT . . . IF i s a f u n c t i o n which takes an even, but otherwise v a r i a b l e , number of arguments, each p a i r r e p r e s e n t i n g a meaning of the verb. The f i r s t element o f each p a i r i s a set c f cases to be looked f o r , and the second i s the s t r u c t u r e to be b u i l t i f they are found. I t i s i n the f i r s t element of the p a i r t h a t the complexity l i e s . Let us look at i t mere c l o s e l y . The l i s t of cases i s , i n f a c t , a l i s t o f t r i p l e s . The f i r s t element i s a form to be EVALed, I t i s u s u a l l y l e c k i n g f o r 29 a case, but any form i s admissible. The second element of the t r i p l e i s an atom: a regis t e r name. If the f i r s t form EVALs to a non-Nil value, the value i s put into t h i s r e g i s t e r . In cur example, for instance, the f i r s t t r i p l e i s : (AGENT (MOST-BE HUMAN) ) AG (GPT (GETS PASSIVE) 'SOMEONE)) The function of the f i r s t form i s to f i n d the agent cf the sentence. If i t succeeds, t h i s agent i s put into register AG, The t h i r d element of the t r i p l e says what to do on f a i l u r e . If i t i s the atom "OBL", then t h i s indicates that the case was obligatory, so i f i t was not found, then IF should f a i l on t h i s meaning of the verb. If the atom i s "OPT", then the case i s optional, sc the regis t e r i s left.empty, and II continues with t h i s meaning. The t h i r d p o s s i b i l i t y i s that t h i s third element i s a form, in which case i t i s EVALed. If i t returns "OEL" cr "OPT", then the re s u l t i s as described abcve. I f i t returns anything el s e , then that i s put into the re g i s t e r , and IF continues with t h i s meaning of the verb. Let us look at "to order" again. The t h i r d element cf the f i r s t t r i p l e i s (OPT (GETB PASSIVE) 'SOMEONE) OPT i s a very simple function which, i f i t s f i r s t argument i s non-NIL, returns i t s second argument. Otherwise i t returns "OBL". 30 (GETS PASSIVE) i s t rue i f the sentence i s i n the passive v o i c e . So the f i r s t t r i p l e can be read as f o l l o w s : Look f o r an agent which must be huitan. I f ycu f i n d one, put i t i n r e g i s t e r AG. Otherwise, i f the sentence i s p a s s i v e , make SOMEONE the agent. Otherwise f a i l . The second t r i p l e i s more simple. It merely s a y s : If ycu f i n d an animate p a t i e n t , then put i t i n r e g i s t e r PA, e l s e f a i l . The t h i r d t r i p l e i s e q u a l l y simple, but i t i s not l o o k i n g f o r a case, but a to-complement.* I f these three elements are found i n the sentence, then the system w i l l look no f u r t h e r , but assume t h a t i t has found the c o r r e c t meaning cf the verb. I t w i l l EVAL the second form of the p a i r : i n t h i s case: (BDILBQ ("<= = >» ? • ("<—" ORDER +)) AG TNS TOC) which b u i l d s the b a s i c s t r u c t u r e f o r the sentence. BOILDQ takes a v a r i a b l e number of arguments. The f i r s t i s a kind o f template with s l o t s i n i t . The r e s t c f the arguments f i l l the s l o t s . The " + " denotes a s l o t which i s f i l l e d by the con t e n t s cf a r e g i s t e r . The "?" Is f i l l e d by the a p p l i c a t i o n c f the f u n c t i o n NOON-POT to the contents of a r e g i s t e r . 1 An example of a to-complement i s : "Fred took the book t o anger Mary." 31 F i n a l l y , the »«#" i n d i c a t e s t h a t a form i s t o te EVALed, and the r e s u l t p u t . i n t o the s l o t . The s l c t s are f i l l e d i n crder ty the second, t h i r d , e t c , arguments. So i n t h i s c ase: (SOON-POT (GETB AG)) i s put i n f c r the ?, (GETR TNS) i n place of the f i r s t +. (GETB TOC) f o r the second +. Where GETR r e t u r n s the contents of a r e g i s t e r . 32 CHAPTER H Yen who b u i l d the a l t e r s now to s a c r i f i c e these c h i l d r e n ycu must net do i t any more A scheme i s not a v i s i o n and you never have been tempted by a demon or a god -1. Cohen AN EXHAUSTIVE EXABPIE Programming d e t a i l s t c not belong i n a t h e s i s of t h i s k i n d . A l l of the code i s i n APPENDIX V f o r these i n t e r e s t e d . In the f o l l o w i n g example, then, f u n c t i o n names and e x c e s s i v e d e t a i l s w i l l be, on the whole, l e f t out. A d e t a i l e d account of the b a s i c a l g o r i t h m and c o n t r o l s t r u c t u r e w i l l be given. We w i l l look at a simple sentence. More complex s t r u c t u r e s such as r e l a t i v e and subordinate c l a u s e s are t r e a t e d i n much the same way as t h e i r parent sentences. Consider the sentence: (4. 1) The man beside the window played the pianc f c r -Mary. The f i r s t step i n the process i s a p a r t i a l parse using an augmented t r a n s i t i o n network (ATN) as d e s c r i b e d by Wcocs[15], " P a r t i a l " i s used because the parser i s purely s y n t a c t i c . The s t r u c t u r a l d e s c r i p t i o n u s u a l l y a s s o c i a t e d with a parse i s incomplete. That i s , no d e c i s i o n s are made about what m o d i f i e s 33 what, what meaning of the verb i s being used, e t c . The b a s i c i d e a behind the ATS i s to f i n d the verb; but while i t i s dcing t h i s , i t might as w e l l chop the sentence up i n t c i t s p a r t s . There are problems with j u s t how t h i s chopping should be dene, but with most sentences i t i s s t r a i g h t forward, A look at the sample parses i n APPENDIX I w i l l give more examples c f t h i s n o t i o n . The ATN parse r e t u r n e d w i l l look l i k e t h i s : NP NIL DET THE N MAN NUMBER SG PP NIL BESIDE NP NIL DET THE N WINDOW NUMBER SG VP NIL TNS PAST VOICE ACTIVE V PLAY NP NIL DET THE N PIANO NUMBER SG PP NIL FOR NP N i l NPR MARY Fi g u r e 3 - An ATN Parse of Sentence (4.1) ATNs have been found t o be a u s e f u l formalism f o r pr o c e d u r a l d e f i n i t i o n s of grammars, but have been c r i t i c i z e d f c r t h e i r slowness. Because t h i s ATN r e t u r n s such a simple 34 s t r u c t u r e , however, i t i s very f a s t , and consumes l i t t l e c f the t o t a l time to process a sentence. I t i s on t h i s p r e l i m i n a r y parse t h a t the program works. F i r s t , the main verb i s found, and a f u n c t i o n i s invoked which c o n t r o l s the t o p - l e v e l back-up. T h i s f u n c t i o n I V A L S the form on the property l i s t of the verb under the i n d i c a t o r V—MEAN. This form f o r PLAY i s a very long one, so r a t h e r than r e p r o d u c i n g i t here, you are r e f e r e d t c the e n t r y f c r PLAY i n the d i c t i o n a r y which i s l i s t e d i n APPENDIX IV. The form i n q u e s t i o n i s a c a l l t o I F, whose mechanism has been b r i e f l y d e s c r i b e d i n SECTION 3.1. In t h i s case IF has e i g h t arguments, i n d i c a t i n g t h a t t h e r e are f o u r meanings to the verb PLAY i n the system. The f i r s t meaning i s " t o play a musical instrument." The f i r s t case looked f c r i s the AGENT. T h i s agent should be a musician, and must be human. T h i s search i s made by EVALing the f i r s t form i n the f i r s t t r i p l e of the f i r s t argument to I F : (AGENT (AND (SHOOLD-BE MUSICIAN) (EUST-BI EOMAN))) AGENT i s f a i r l y complex, but b a s i c a l l y i t looks for a component of the ATN parse ( i n f u t u r e c a l l e d the "p-parse", f o r p a r t i a l - p a r s e ) which i s i n an a p p r o p r i a t e p o s i t i o n to be an agent, and which passes the t e s t (the argument t c AGENT,) By • a p p r o p r i a t e p o s i t i o n 1 i s meant, f o r i n s t a n c e , t h a t i f the sentence i s i n the a c t i v e v o i c e , the agent i s i x c b a b l j the f i r s t noun phrase i n the sentence. 35 In this case, AGE NT immediately finds "the man" as the obvious candidate, and i t applies the test (AND (SHOULD-BE MUSICIAN) (MUST-BE HUMAN) ) Now, unless something special has been put on the property l i s t of MAN previously, the ( S H O U L D - B E MUSICIAN) part of the test wi l l f a i l . (There are two levels of tests in this system: SHOULD-BE tests and MUST-BE tests. This crude laechanism is very useful for forcing a verb l ike PLAY to lock hard fcr a musician tc play an instrument - - but fo accept any human i f i t fa i l s at f i r s t . This i s especially powerful for resolving anaphoric references.) So AGENT f a i l s . This invokes the third element of the AGENT t r i p l e : (OPT (GETfi EASSIVE) 'SOMEONE) This may be read as: AGENT is optional i f the sentence is in the passive voice, in which case put SOMEONE in as the agent. Otherwise AGENT is obligatory. So, since the sentence is net passive, AGENT is obligatory. Since the AGENT case was not found, this f i r s t meaning of PLAY f a i l s . So IF goes on to the next pair of arguments. This pair i s 36 designed t o p i c k up the meaning of PLAY as i n " t c play music." Note that the t e s t on AGENT i s j u s t l i k e the pre v i o u s one, so i t w i l l a l s o f a i l * So we go on the the t h i r d meaning of to PLAY: " t o play a s p o r t . " Here the t e s t on AGENT i s (AND (SHOULD-BE SPORTS-MAN) (MUST-BE HUMAN) ) Once ag a i n , p r o v i d i n g MAN does not have SPORTS-MAN cn i t s prop e r t y l i s t , t h i s meaning f a i l s . On to the f o u r t h , and l a s t , meaning. T h i s i s s o r t o i a c a t c h - a l l . I t i s j u s t " t o p l a y " as i n " t c e n t e r t a i n o n e s e l f . " Here the t e s t on AGENT i s (BUST-BE ANIMATE) "The man" passes t h i s t e s t . (Note that i n the d i c t i o n a r y MAN has the property ANIMATE under N-PSOP) Since AGENT i s the only case locked f o r , t h i s meaning i s taken to be the c o r r e c t one, and the f o l l o w i n g s t r u c t u r e i s b u i l t by the c a l l t o BUIIDQ: 37 H MAN NUMBER SG <-BEFINITE- THE PAST <— EO <-CAUSE-<==> N MAN NUMBER SG <-DEFINITE- THE PRESENT <-- HAVE-PROF ENTERTAINED Figure 4 - The Incorrect I n i t i a l Structure f c r Sentence (4. 1) So IF has completed i t s job. It has found what i t takes tc be the correct meaning of the verb. Now the rest cf the sentence must be handled. The second element of every top-level l i s t i n the p-parse i s a f l a g which i s i n i t i a l l y NIL, tut which i s turned on when that part of the sentence i s considered tc be corr e c t l y handled. In our example, so far only two parts are sc flagged: the f i r s t noun phrase: "the man", and the verb phrase. The function which takes care of the rest of the sentence simply goes down the p-parse checking these f l a g s . If i t finds one which i s NIL i t works on that part of the sentence u n t i l i t either succeeds, or f a i l s — causing back-up. In our example, then, the f i r s t phrase i t comes upcn needing work i s the prepositional phrase: "beside the window." There i s a structure i n the system which associates each preposition with the cases i t may f l a g , BESIDE flags the cases: LOCATION and DESCRIPTIVE. A l l of the cases but DESCRIPTIVE are cases cf the verb. DESCRIPTIVE i s a special case which i s used for preposition 38 o phrases which modify nouns. When the l i s t of cases a s s o c i a t e d with a p r e p o s i t i o n i s r e t r i e v e d , there i s a ques t i o n as to which case to t r y f i r s t . For t h i s t h e r e i s a foreg r o u n d i n g r o u t i n e . There are s e v e r a l c r i t e r i a f o r f o r e g r o u n d i n g : F i r s t o f a l l , on the property l i s t of each verb i s kept a r e c o r d of which p r e p o s i t i o n s f l a g g e d which cases i n the p r e v i o u s sentences. The cases a s s o c i a t e d with the p r e p o s i t i o n i n questi o n ( i f there are any) are foregrounded, so they w i l l be t r i e d f i r s t (the most re c e n t case f i r s t , etc.) Secondly, i f DESCRIPTIVE i s one of the cases i n the l i s t c f cases f o r t h i s p r e p o s i t i o n , and i f a ncun phrase or a p r e p o s i t i o n a l phrase immediately precedes the phrase in q u e s t i o n , and i f the noun i n t h a t noun phrase cr p r e p o s t i c n a l phrase i s not a proper noun, then DESCRIPTIVE i s put at the f r o n t o f the l i s t , so i t i s t r i e d f i r s t . T h i s seemingly obscure r u l e f o r foregrounding the DESCRIPTIVE case i s j u s t a h e u r i s t i c . I f the t e s t s a s s o c i a t e d with each case are good enough, i t makes no d i f f e r e n c e to the f i n a l outcome i f the foregrounding i s done or not. In some i n s t a n c e s , however, i f the DESCRIPTIVE case i s not t r i e d f i r s t , i t w i l l never be t r i e d . In cur example, f o r i n s t a n c e , i t i s the man who i s beside the window (DESCRIPTIVE c a s e ) ; he d i d not play the piano beside the window (LOCATION c a s e ) . But i t i s p e r f e c t l y f e a s i b l e f o r him to have played i t beside the window ( i f we know nothing about the l o c a t i o n of the plane.) Sc e i t h e r of the cases w i l l succeed. I t i s only the p o s i t i o n c f the p r e p o s i t i o n a l phrase t h a t i n d i c a t e s which case i s c o r r e c t . 39 C o n t i n u i n g with our example: the BESCBIETIVE case i s foregrounded, and so the d e s c r i p t i v e case f u n c t i o n , DESC, i s invoked with the phrase "beside the window" as i t s argument. Since the d e s c r i p t i v e case almost always i n v o l v e s a p r e p o s i t i o n a l phrase modifying the noun phrase or p r e p o s i t i o n a l phrase immediately before i t , DESC f i r s t checks to see i f " b e s i d e the window" i s a p o s s i b l e d e s c r i p t o r o f "the man." S i n c e we do not have a data base to check t c see i f there i s a man beside a window, our check must be a g e n e r a l one. Most nouns have a s i z e a s s o c i a t e d with them under the i n d i c a t o r OBJ-SIZE. T h i s i s a very crude breakdown of o b j e c t s i n t o eleven s i z e c a t e g o r i e s . "The world" i s s i z e 10 and "a p i n " i s s i z e 0. (As has been pointed out by an esteemed c o l l e a g u e , these s i z e s should be able t o be changed by c l a s s i f i e r s , a d j e c t i v e s , or modifying phrases. A toy elephant i s probably not the same s i z e as an elephant. T h i s f e a t u r e i s c u r r e n t l y not implemented.) The check f o r " b e s i d e " i s merely used to r u l e out t h i n g s l i k e "the p i n b e side Canada." A b s t r a c t nouns have nc s i z e i n f o r m a t i o n , so sentences l i k e "He had a thought beside the ocean" are not ambiguous. In any event, "beside the windcw" i s found tc be a l i k e l y m o d i f i e r of "the man", so DESC succeeds. S i n c e " b e s i d e " i s a l o c a t i v e type cf p r e p o s i t i o n , DESC r e t u r n s the s t r u c t u r e : (<-LOC- BESIDE (NP (N WINDOW (NUMBER SG) (<-DEFINATE- THE)))) A form i s stacked which w i l l put t h i s s t r u c t u r e i n t c the main sentence s t r u c t u r e i f the r e s t of the sentence can fce ao handled. J u s t where i t i s placed i s determined by IESC. Since the p r e p o s i t i o n a l phrase modifies "the man", i t w i l l be put i n as f o l l o w s : N HAN NUMBEB SG ODEFINITE- THE O L O O BESIDE N WINDOW N0MBEB SG ODEFINITE- THE F i g u r e 5 - The S t r u c t u r e f o r "the man beside the window" So the p r e p o s t i o n a l phrase " b e s i d e the window" i s f l a g g e d as completed, and the next unflagged phrase, "the piano", i s picked up. Here we run i n t o problems. Where does "the p i a n o " f i t i n t o the s t r u c t u r e ? What does i t modify? What i s i t s case? There are r e l a t i v e l y few ways a noun phrase can be used at t h i s p o i n t . I t c o u l d be an example of the TIME case, as i n " I came home t h i s morning.", but "piano" f a i l s the TIME-test., It could be a c l a s s i f i e r , but the phrase f o l l o w i n g i t would have to be a noun phrase f o r t h i s to be the case. So we have a f a i l u r e , Something has gone wrong. I F must have chosen the wrong meaning of the verb. So we back up. A l l the p a r t s of the sentence that are fl a g g e d as used are un-flagged, and we back up i n t o IF a g a i n . Here i t i s found that there are no meanings of the verb l e f t to t r y . One c f the meanings t h a t was r e j e c t e d e a r l i e r must have been the c o r r e c t one. So we f a i l out of IF and get back i n t o the t o p - l e v e l tack-up mechanism. There are two reasons we could have f a i l e d : 1) E i t h e r we d i d not look f a r enough back i n cut attempt to r e s o l v e an anaphoric r e f e r e n c e . or 2) Our t e s t s were too severe. ( i e : the SECULE-EE t e s t s made us f a i l when they should not have.) The anaphoric p a r t of the system has not been e x p l a i n e d ye t , t h a t w i l l come l a t e r , but there were no pronouns i n the sentence, so the f i r s t reason can be r u l e d out. In order to weaken the t e s t s , a f l a g i s s e t to shut o f f the SHOULD-BE t e s t s . That i s , a l l SHOULD-BE t e s t s w i l l succeed i n f u t u r e . So we enter IF once again. file s t a r t as b e f o r e , but t h i s time the f i r s t i n v o c a t i o n cf AGENT w i l l succeed, because the t e s t (AND (SHOULD-BE MUSICIAN) (MUST-EE HUMAN)) succeeds. So the s t r u c t u r e i t r e t u r n s i s put i n the r e g i s t e r AG. Then IF takes us i n t o the second t r i p l e o f parameters. The form (PATIENT (MUST-BE MUSICAL-INSTBUMENT)) 0 42 i s EVALed. PATIENT i s very s i m i l a r to AGEST: i t looks i n the ap p r o p r i a t e place i n the sentence f o r the p a t i e n t c f the verb. I t then a p p l i e s i t s TEST to i t . In an a c t i v e sentence, such as our example, the ca n d i d a t e f o r PATIENT i s the f i r s t ncun phrase a f t e r the verb. "The piano" i s found. Since i t passes the t e s t (HOST-BE MUSICAL-INSTR UMENT) PATIENT r e t u r n s "the piano" as the p a t i e n t o f the sentence. So again IF t h i n k s i t has found the c o r r e c t meaning of the verb, and so i t EVALs the BOILDQ a s s o c i a t e d with that meaning, and the f o l l o w i n g s t r u c t u r e i s b u i l t : <==> N HAN NUMBER SG <-DEFINITE- THE PAST < — DO <-CAOSE-<==> N PIANO NUMBER SG <-DEFINITE- THE PAST < — EMIT NP N SOUND Fig u r e 6 - The C o r r e c t I n i t i a l S t r u c t u r e f o r Sentence (4.1) (An a s i d e : I do not intend t c defend the s t r u c t u r e s that my system r e t u r n s . They are vaguely l i k e the s t r u c t u r e s t h a t Schank's system r e t u r n s , as i l l u s t r a t e d i n Chapter 1, but are 43 more or l e s s a r b i t r a r y . I f the user dees r e t l i k e them they are easy to change.) Once again we must t r y to c l e a n up the unflagged parts of the sentence. The f i r s t one again i s "besi d e the window", and e x a c t l y the same t h i n g i s done t h a t was done before: i t i s decide d t h a t "beside the window" i s a l o c a t i v e d e s c r i p t o r of "the man", and t h i s d e c i s i o n i s stacked f o r l a t e r a c t i o n . The o n l y other part of the sentence t c be handled i s " f o r Mary." As with " b e s i d e " , the cases a s s o c i a t e d with " f o r " are ret u r n e d from the CASE-TABLE. They are: DURATION, BENEFICIARY, EXCHANGE, and IND-SUBJ. (IND-SUBJ has not been implemented yet.) Assuming t h a t t h e r e have been nc r e l e v a n t previous sentences, the foregrounding of cases w i l l have no e f f e c t cn t h i s o r d e r i n g . The DURATION case i s t r i e d f i r s t . DURATION i s a p a r t i c u l a r l y simple case. B a s i c a l l y i t checks tc see that the noun phrase i n the p r e p o s i t i o n a l phrase has the property TINE under the f l a g N-PROP. "Mary" f a i l s t h i s t e s t , sc DURATION i s r e j e c t e d as being the c o r r e c t case. The next case i s BENEFICIARY. The only t e s t f c r t h i s case i s t h a t the noun phrase be animate. "Rary" passed t h i s t e s t s i n c e i t has the SUPERSET WOMAN and WOMAN has the N-ERCP ANIMATE. So BENEFICIARY succeeds and r e t u r n s : (<-BENEFICIARY- (NPR MARY)) Un l i k e " b e s i d e the window", t h i s phrase i s a case of the verb. A l l cases of the verb (but AGENT and PATIENT) are considered to 44 ba e s s e n t i a l l y p a r a l l e l with r e s p e c t t c the verb, sc they are put i n t o the s t r u c t u r e a t the same l e v e l : t h a t o f the verb symbol "<—", and t h e i r order i s independent. So a form i s stacked to put the above s t r u c t u r e i n t o the isain sentence s t r u c t u r e i n the c o r r e c t l o c a t i o n . Next the p-parse i s checked f o r more unused phrases. None are found, so we are done. The two forms are put i n t o the s t r u c t u r e , and i t i s ret u r n e d as the "meaning" of the sentence: <==> N HAN NUMBER SG <-DEFINITE- THE <-LOC- BESIDE N WINDOW NUMBEB SG <-DEFINITl- THE PAST < — DO OCAUSE-< ==> N PIANO NUMBEB SG <-DEFINITE- THE PAST <-- EMIT NP N SOUND <-BENEFICIARY-NPR MABY F i g u r e 7 - The F i n a l S t r u c t u r e f o r Sentence (4.1) 45 CHAPTER 5 He gave you a german shepherd t c walk with a c e l l a r of l e a t h e r and n a i l s and he never once made you e x p l a i n or t a l k about a l l c f the l i t t l e d e t a i l s -L. Cchen SOME DETAILS SECTION 5.1 Anaphoric References Perhaps i t i s not the f u n c t i o n of a parser to r e s c l v e anaphoric r e f e r e n c e s , but t h i s system was c o n s t r u c t e d to be a f r o n t end to a l a r g e r system which would r e q u i r e r e f e r e n c e s to be r e s o l v e d , so a mechanism f o r r e s o l v i n g them was put i n . As has been s a i d b e f o r e , t h i s system i s not designed with any p a r t i c u l a r domain i n mind, so no data base i s kept. The r e s o l u t i o n of anaphoric r e f e r e n c e s , t h e r e f o r e , must depend s o l e l y on the p r e v i o u s sentences. The anaphoric r o u t i n e s w i l l have to be changed to work i n a l a r g e r system which maintains some kind of g l o b a l s t r u c t u r e d e s c r i b i n g what has gene cn so f a r and how i t f i t s i n t o the world knowledge that the system has. The anaphoric c a p a b i l i t i e s were put i n t o t h i s system because, i f 46 a r e f e r e n c e i s unre s o l v e d the system o f t e n cannot t e l l vhat case i t i s . They were a l s o put i n to i l l u s t r a t e how w e l l such a mechanism f i t s i n t o the case paradigm. Only the b a s i c i d e a of how anaphoric r e f e r e n c e s are r e s o l v e d w i l l be gi v e n here, along with examples i l l u s t r a t i n g the range o f the system's c a p a b i l i t i e s . When a pronoun i s found i n the sentence (in the case a n a l y s i s , not the ATN p a r s e ) , i t t r i g g e r s a c a l l t c the f u n c t i o n ANAPHORIC. ANAPHORIC takes f o u r arguments: 1. A l i s t of cases t o lock f o r . 2. A t e s t t h a t the r e f e r e n t must pass, 3. A number i n d i c a t i n g how f a r back i n the h i s t o r y t c l o c k . 4. The pronoun r e f e r e n c e d . The search i s breadth f i r s t , i n that the program t r i e s very hard to f i n d the r e f e r e n t i n the e a r l i e s t p o s s i b l e sentence. The t e s t i s an a r b i t r a r y form. SHCU1D-EE and MUST-EE elements of the t e s t are shut o f f on f a i l u r e as they are i n the r e s t c f the back-up procedure. (See Chapter 4) Say, f o r i n s t a n c e , t h a t the system i s given the sentence: (5.1) He played the piano. The c a l l t o AGENT would be the form: (AGENT (AND (SHOULD-BE MUSICIAN) (MUST-BE HUMAN))) Since the obvious candidate f o r the agent i s a pronoun. 47 ANAPHORIC would be invoked. I t s TEST would be: (AND (SHOUID-BE BUSICI&B) (BUST-EE HUMAN)) So ANAPHORIC would look back through the parses and p-parses c f the recent sentences which are kept as g l o b a l v a r i a b l e s , l o o k i n g f o r a noun phrase that w i l l pass t h i s t e s t . As i t becomes more and more desperate i t w i l l make the t e s t l e s s s t r i c t . S i n c e "'he1' i s the pronoun, ANAPHORIC i s smart enough to i n s i s t t h a t the r e f e r e n t be male and animate, Most^pronoun r e f e r e n c e s w i t h i n a sentence i t s e l f can a l s o be r e s o l v e d . For i n s t a n c e : went t o London so he c c u l d v i s i t the queen, took you up i n h i s a i r p l a n e . References t o events and p l a c e s can a l s o be handled: ( 5 . 4 ) It was u n f o r t u n a t e t h a t the c h i l d r e n were k i l l e d . ( 5 . 5 ) I went to France, Fred l i v e s t h e r e . The r e s o l u t i o n of l o c a t i o n a l r e f e r e n c e s ("here" and "there") i s a hard problem. By t r e a t i n g " t h e r e " as a pronoun whose r e f e r e n t must be a l o c a t i o n , " t h e r e " i s handled f a i r l y well by the system. "Here" i s a much more d i f f i c u l t problem, s i n c e i t s r e s o l u t i o n i s h i g h l y context dependant, and i s h a r d l y addressed at a l l . There i s s t i l l one problem with r e f e r e n c e s within a I ( 5 . 2 ) Fred ( 5 . 3 ) Jack 48 sentence, and that is that i f the referent cf a pronoun in the main clause i s in a subordinate clause, then i t w i l l net be resolved. For instance, in the sentence: (5 .6) While he walked home, Fred was mugged. "Fred" i s not even considered as simple extension to put this in subordinate clauses), but i t has More d i f f i cu l t problems are a candidate for "he". It is a (ANAPHORIC just has tc lock into just not been done yet. i l lustrated by sentence (5 . 7 ) . (5.7) Mary was aboard the Titanic when she sank. This sentence i s ambiguous: Mary could have sunk in a swimming pool while she was on the Titanic , but this i s probably not the intended meaning. If "to sink" i s defined with a test l ike (SHOULD-BE BOAT) then the system wi l l pick up "Ti tanic" correctly. Its f i r s t choice as a candidate is "Mary", however, so i f the test does not rule "Mary" out, the system wi l l choose her as i t s i n i t i a l guess. This perhaps i l lus trates a fundamental problem with the system's anaphoric routines. The f i r s t candidate found which passes the test is chosen, rather than a l l of the candidates being locked at , and the most l i k e l y accepted. 49 SECTION 5.2: Particles There are many verbs in English which, when used with a par t ic le , take on a very different meaning. (5.6) Pick a g i r l . (5.7) Pick up a g i r l . (5.8) Pick a g i r l up. (5.9) Pick out a g i r l . The policy with particles in this system is to create a new verb by tacking the particle onto the end of the inf in i t ive form of the verb. So (5.7) and (5.8) both become (5.10) Pick-up a g i r l . This conduction takes place in the ATN. Bach verb that takes one or more particles has a l i s t cf particles cn i t s property l i s t under the indicator PARTICLES. The vert "to look", for instance has (FOR AT LIKE).on i t s property l i s t . (Look can take other part icles : up, into , e tc . , but they are net currently handled by the system.) In the dictionary expl ic i t entries are made for the verbs LCCK-FCR, LOCK-AT, and LOOK-LIKE as well as LOOK. This usually works well, but i t sometimes leads to problems. Consider the sentence (5.11) John looked for Mary. This sentence i s ambiguous. "Mary" could be the patient cf the • 50 verb " l o o k - f c r " , or the p a t i e n t c o u l d be u n s p e c i f i e d , and " f o r Mary" be the b e n e f i c i a r y case, or even the exchange case. The problem i s that the ATS i s p u r e l y s y n t a c t i c , and i t i s not F a r t of t h e back-up mechanism, so the system w i l l always choose the " l o o k - f o r " meaning. Let me r e - i t e r a t e t h a t the system u s u a l l y works c o r r e c t l y on p a r t i c l e s , but i n a more competent system the d e c i s i o n about c o n j o i n i n g p a r t i c l e s to verbs w i l l have to be put o f f u n t i l the semantics are at work. 51 SECTION 5 . 3 : E r g a t i v e Verts There are problems with many c f the cases i n t h i s system. In p a r t i c u l a r , the agent case i s not p r o p e r l y d e f i n e d . (5.12) The door opened. (5.13) The key opened the door. (5.14) He opened the door with the key. (5.15) The key opened. I f AGENT were c a l l e d on sentence (5.12) i t would r e t u r n "the door" as the agent, whereas the agent i s a c t u a l l y u n s p e c i f i e d , and "the door" i s the p a t i e n t . S i m i l a r i l y , i t would choose "the key" as the agent i n (5.13) . There i s a whole set of verbs that behave l i k e open. They are d e s c r i b e d i n SECTION 1.2.' Simmons c a l l s them e r g a t i v e verbs. T h i s system handles them s p e c i a l l y . B a s i c a l l y , a r o u t i n e , ERGATIVE, was w r i t t e n which uses AGENT as a r o u t i n e f o r r e t u r n i n g the f i r s t noun phrase of the sentence. By checking t o see i f i t i s animate ERGATIVE can t a l l i f i t i s the agent as i n (5.14) or the p a t i e n t or instrument. I f i t i s the agent the sentence o f f e r s DC problems i n t h i s r e g a r d . I f i t i s not the agent, then the system can decide between the instrument case and the p a t i e n t by checking t c see i f there i s a p a t i e n t f o l l o w i n g the verb. Thus the system would i n t e r p r e t "the key" i n sentence (5.15) as the p a t i e n t . For more d e t a i l s look a t the d i c t i o n a r y e n t r y f o r "to open" or "to break" i n APPENDIX IV and the ERGATIVE r o u t i n e i n APPENDIX V. 52 SECTION 5.4: Some Obvious Extensions The purpose of t h i s thes i s was tc implement a f a i r l j large case system, and to explore the use of case and the i n t e r a c t i o n between case, syntax, and semantics. In the time a l l o t t e d for t h i s work, then, the main concentration was on cases. Thus some f a i r l y large gaps were l e f t i n parts of the system. It can cnly handle dec lara t ive sentences, for instance. This i s net because i t would be incapable of handling questions and imperatives, but jus t because there were other things that were mere cha l leng ing . Adding the a b i l i t y to parse these other types of sentences wculd b a s i c a l l y just involve extending the ATN tc transform them in to dec lara t ive sentences with the appropriate f lags ind ica t ing type, etc . There are lo t s of ATN•s around which do th i s f a i r l y w e l l . Harder questions which were not addressed are those of conjunct ion , e l l i p s e s , and negation. Again, there are some ATNs which do mediocre jobs in these areas, but I do net advocate pushing these d i f f i c u l t questions into that supposedly simple and fas t port ion of the system. I t i s possible that negation and conjuct ion could be put in to the ATN, and s t i l l have a fast system i f the ATN just kept them as separate e n t i t i e s i n i t s i n i t i a l parse. That i s , i f i t did not attempt to say what was being negated or conjoined, but l e f t these deci s ions to the rout ines using case and semantics. CHAPTER 6 Some women wait f o r Jesus some women wait f o r Cain so I hang upon my a l t e r and h e i s t my axe a g a i n -L. Cchen CONCLUSION A sentence parser i s a very s m a l l p a r t of what i s needed to have machine i n t e l l i g e n c e . Among a vast number o f other t h i n g s , the s t r u c t u r e s r e t u r n e d by a p a r s e r must be i n c o r p o r a t e d i n t o a g l o b a l s t r u c t u r e which r e p r e s e n t s at l e a s t the i n f o r m a t i o n conveyed i n the p r e v i o u s u t t e r a n c e s , and seme r e l e v a n t world knowledge. T h i s t h e s i s was not an attempt t c design cr b u i l d such a g l o b a l s t r u c t u r e , but thoughts i n t h i s d i r e c t i o n are c e r t a i n l y r e l e v a n t t o the e x t e n s i o n of t h i s type of system. A l s o r e l e v a n t i s the q u e s t i o n of the u s e f u l n e s s of case i n such a s t r u c t u r e . I t i s c l e a r t h a t we want more than a l i s t c f case parses i n a g l o b a l s t r u c t u r e . Schank i s almost c e r t a i n l y on the r i g h t t r a c k with h i s c o n c e p t u a l dependency networks. Much cf what we convey i n an u t t e r a n c e , or i n a s e r i e s of u t t e r a n c e s i s never a c t u a l l y s t a t e d . Much i s i m p l i e d or i n f e r r e d by the l i s t e n e r , and i f a computer i s to have any competence with language i t must be able to determine these i m p l i c a t i o n s and i n f e r e n c e s , and t o make them e x p l i c i t i n i t s g l o b a l s t r u c t u r e . Some attempt has 54 been made i n th i s system to make e x p l i c i t some of the unstated information i n the sentent i a l parses. What has been learned by the work on t h i s system? The most g l a r i n g message i s probably that using even the most simple syntac t i c parser before using semantics leads to problems. If I were to write t h i s system again, I would net use an ATN as a pre-parser . One of the problems that my use of the ATN causes i s i l l u s t r a t e d in SECTION 5.2, where the parser i s unable to undo an erroneous dec i s ion to c l a s s i f y a word as a p a r t i c l e , but more genera l ly , I do net bel ieve that one can decide s y n t a c t i c a l l y how to break a sentence up into the correct components for a semantic ana lys i s . This becomes more and more obvious as one pushes t h i s system in to more complex sentences invo lv ing nested r e l a t i v e and subordinate c lauses . I am not.sure that Schank*s fourteen ACTs form a good set of verbal p r i m i t i v e s : they were not i n t u i t i v e enough f c r me when I started t h i s p ro jec t , but my experience with t h i s system leads me to s trongly support his in tent , at l eas t , cf c a r e f u l l y laving down a small set of p r i m i t i v e s , and being very hesitant tc change the set l a t e r . No semantic pr imi t ives were set down at the outset of t h i s pro ject . New ones were merely created as they were needed. The set of cases was extended i n a s i m i l a r , though more contro l led manner. Future work with the current system w i l l probably be hampered by t h i s unstructured approach to these d i f f i c u l t problems. Ptolemaic astronomers have been seemed for the i r na iv i ty when they added ep icyc le s upon epicycles in t h e i r attempts to model the so lar system. We should therefore be very 55 s u s p i c i o u s of a n a t u r a l language system t h a t dees the same t h i n g with semantic p r i m i t i v e s and cases. We have seen t h a t t h e r e are some prcbiems with t h i s system, both l i n g u i s t i c and computational, but I f e e l t h a t i t has met a l l o f i t s o b j e c t i v e s . The system employs case tc handle a wide range of E n g l i s h sentences. I t has i l l u s t r a t e d problems with a c e r t a i n approach, and we have seen ways around these d i f f i c u l t i e s . F i n a l l y , t h i s system lends support to those of us who b e l i e v e t h a t case w i l l prove to be a u s e f u l t c c l i n machine understanding of language. 56 I t i s your world . . . It i s your f l e s h that I wear 57 2I2££&6fiAPHY 0 [1] Bach, Emmon. "Noun and Noun Phrases" U nivergals in L i n g u i s t i c Theory. Edi t ted by Bach and Harms. New York: H o l t , Rinehart, and Winston, 1968 [2] Bruce, Bertram. Case Systems for Natural language. Rutgers, New Jersey, ?974 ~ [3 ] Ce lce-Murc ia , M. "Paradigms for Sentence Recogni t ion" , in System Developement Corp, F i n a l Report Nc. ERT-15092/7907. [4] Chafe, Wallace L. leaning and the Structure cf language. Chicago: The Univer s i ty of Chicago Press,"1970 [5] Charniak, Eugene., To wards a Model of Ch i ld ren ' s Story Comprehension. Cambridge, Massachusetts: MIT 1972. PhD d i s se r t a t ion [6 ] F i l l m o r e , Char les , , "The Case for Case" finiyersals i n L i g u i s i t i c Theory. Edit ted by Each and Earms. New York: Holt , Rinehart , and Winston, 1968 [7] Jesperson, Otto. The Philosophy of Grammar. New York: W. W. Norton CoT, 1965T~(original~pubT 1924) [8] McCawley, James D. "The Bole cf Semantics i n a Grammar" HJJiJZSJJsals i n L i n g u i s t i c Theory. Edi t ted by Bach and Harms. New York: Hol t , Binehart , and Winston, 1968 [9] Mart in , William A. "Trans la t ion of English into MAPL Using Winograd's Syntax, State Trans i t ion Networks, and a Semantic Case Grammar" Automatic Programming Group Internal Memo 11, MIT Pro ject MAC, 1973 [10] Rosenbaum, Peter S. The Grammar for English Predicate Com£lement Construction Cambridge, Massach usetts:~MIT Press~1967 £ 1 1 ] Schank, Roger C. "Conceptual Eependancy: A Theory of Natural Language Understanding" Cognitive Psjchclogy 3 (1972) 552-631 [12] Schank, Roger C. " I d e n t i f i c a t i o n of Conceptualizations Underlying Natural Language" Computer Models cf Thought and. Language. Edi t ted by Schank and Colby. San Frans i sco : W. H. Freeman and Co. 1973 [13] Simmons, R. F. "Semantic Networks: Their Computation and Use for Understanding Engl i sh Sentences" Computer Models of Thought and Language. Edi t ted by Schank and Colby. San Fransisco: W . H . Freeman and Cc. 1973 58 [14] Winograd, Terry "A P r o c e d u r a l Model of Language Understanding" Computer Models of Thought and Language. E d i t t e d by Schank and Colby.. San I r a n s i s c o : W. E. Freeman and Co. 1973 [15] Woods, W. A. " T r a n s i t i o n Network Grammars f o r N a t u r a l Language A n a l y s i s " Communications cf the ACM V o l 13 (Oct. 1970) 591-606 59 APPENDIX I : Some Examples The f o l l o w i n g i s a sample run of the system. Each parse i s i n two p a r t s . F i r s t comes the ATN p a r t i a l parse. T h i s i s p r i n t e d out only to i l l u s t r a t e the n o t i o n of the p a r t i a l parse. A f t e r t h a t comes the f i n a l parse of the sentence. I t alwajs begins with the symbol <==>. * (LETS-GO) > HELLO. 100 ARE NOW IN C 0 N V1HS ATION AL MODE. > ANY LISP FORMS WILL BE EVALED IN THIS MODE. > YO 0 MA Y RE TORN TO LISP BY ENTERING A #. > IF Y00 ENTER A «9 AS A WORD IN A SENTENCE, TEAT SENTENCE > WILL BE ABORTED > > * THE MAN WITH THE WIFE WHO IS BIGGER THAN HE GOES * TO VIENNA WITH A WOMAN WHO IS SMALLER THAN E l . > PARSE: > > > > > > > > > > > > > > > > > > > > > > > > > > > > S VP NIL PP NIL WITH BEL NIL NP NIL V GO PP NIL TO THAN-PH NIL VP NIL TNS <-ADJ- NIL BIG COMP-SOP COMPARATIVE NP NIL DET THE N WIFE BELPBO WHO N MAN NUMBEB SG NP NIL PRC HE TNS . PRESENT VOICE ACTIVE DET THE VOICE ACTIVE V BE PRES ENT NOHBEB SG 60 > SP NIL > NPR VIENNA > PP NIL W IT B > NP NIL > DET A > N WOMAN > NUMBER SG > REL NIL > RELPRO WHO > VP NIL > TNS > PRESENT > VOICE ACTIVE > V BE > <-ADJ- NIL S M I L > COMP-SUP COMPARATIVE > THAN-PH NIL > SP SIL > PRO HE > BY HE I ASSUME YOU MEAN THE MAN > IS THAT CORRECT? * Y > <==> > S MAS > NUMBER SG > <-DEFINITE- THE > <-DESC- WITH > S WIFE > NUMBER SG > <-DEFISITE- THE > <==> > H WIFE > NUMBER SG > <-DEFINITE- THE > PRESENT > < — HAVE-PROP > BIG > <-COMPARED-TO-> N KAN > NUMBER SG > <-EEEINlTE- TEE > PRESENT > <-- MOVE > <-SOURCE- SOMEPLACE > <-DESTINATIOB-> NPR VIENNA > <-CO-AGENT-> N WOMAN > NUMBER SG > <-INDEFINITE- A > <==> > N WOMAN > NUMBER SG > <-INDEFINITE- A > PRESENT > < — HAVE-PROP > > > > > SMALL <-CGMPfiBEE-TC-N MAN NO ME IB SG <-DEFINITE- THE > > * FBED LOVED THE OLD WOMAN BEFORE HE CAME TO CANADA. > PARSE: > S > NP NIL > NPR FRED > VP NIL > TNS > PAST > VOICE ACTIVE > V LOVE > NP NIL > DET THE > N WOMAN > BOMBER SG > OADJ- OLD > BEFORE NIL > NP NIL > PRO H E > VP NIL > TNS > PAST > VOICE ACTIVE > V COME > PP NIL TO > NP NIL > NPR CANADA > BY HE I ASSUME YOU MEAN FBED > IS THAT CORRECT? * Y > <==> > NPR FRED > PAST > <-- HAVE-AFFECTION-FOR > <-ADV- KOCH > N WOMAN > NUMBER SG > OADJ- OLD > <-DEFINITE- THE > <-TIME- BEFORE > <==> > NPR FRED > PAST > < — MOVE > <-SOURCE- SOMEPLACE > <-DESTINATION-> NPR CANADA > > * THERE IS A SMALL PEN IN THAT BOX. 62 > PARSE: > S > <-ADV- NIL THERE > VP NIL > TNS > PRESENT > VOICE ACTIVE > V BE > NP NIL > DET A > N PEN > NUMBER SG , > <-ADJ- SMALL > PP NIL IN > NP NIL > DET THAT > N BOX > NUMBER SG > <==> > N PEN > NUMBER SG > <-ADJ- SMALL > <-IN DEFINITE- A > PRESENT > < — HAVE-LOC > IN > N BOX > NUMBER SG > <-DEFINITE- THAT > > * IT IS IDIOTIC THAT FRED WENT TO INDIA TC PLAY FOGIEAIL. > PARSE: > S > NP NIL > PRO IT > SUBJ > OBJ > NUMBER SG > VP NIL > TNS > PRESENT > VOICE ACTIVE > V BE > <-ADJ- NIL IDIOTIC > THAT-COHP NIL > <==> > NPR FRED > PAST > <-- MOVE > <-SOURCE- SOMEPLACE > <-DESTINATION-> NPR INDIA > <-PURPOSE-> <==> > KPR FRED 63 > PRESENT > <— FLAY > H FOOTBALL > BURBEB SG > <==> > <==> > NPB FBED > PAST > <— HOVE > <-SOUBCE- SOMEPLACE > <- DE S TI N AT 10 K-> NPR INDIA > <-PURPOSE-> <==> > NPB FRED > PRESENT > <— PLAY > N FOOTBALL > NUMBEB SG > PRESENT > <— HAVE-PROP > IDIOTIC > > * THE PIANO HAS PLAYED IS THE EMPTY HALL. > PARSE: > S > NP NIL > DET THE > N PIANO > NUMBER SG > VP NIL > TNS > PAST > VOICE PASSIVE > V PLAY > PP NIL IN > NP NIL > DET THE > N HALL > NUMBER SG > <-ADJ- EMPTY > <==> SOMEONE > PAST > <— DO > <-CAUSE-> <==> > N PIANO > NUMBER SG > <-DEFINITE- THE > PAST > <— EMIT > NP > N SOUND > <-LOC- IN > N HALL 6 4 > NUMBER SG > <-ADJ- EMPTY > <-DEFINITE- THE > > * THE MAN HITH THE BIG HANDS PLAYED THE EIANO * LIKE EEETHOVEN FOR MARY. > PARSE: > S > NP NIL > DET THE > N MAN > NUMBER SG > PP NIL WITH > NP NIL > DET THE > N HAND > NUMBER PL > <-ADJ- BIG > VP NIL > TNS > PAST > VOICE ACTIVE > V PLAY > NP NIL > DET THE > N PIANO > NUMBER SG > PP NIL LIKE > NP NIL > NPR BEETHOVEN > PP NIL FOR > NP NIL > NPR MARY > <==> > N MAN > ' NUMBER SG > <-DEFINITE- THE > <-DESC- WITH > N HAND > NUMBER PL > <-ADJ- BIG > <-DEFINITE- THE > PAST > < — DO > <-CAUSE-> <==> > N PIANC > NUMBER SG > < - D E F I » I T E - THE > PAST > <— EMIT > NP > N SOUND > OBENEFICIARY-> NPR MARY 65 > <-LIKE-> NPB BEETHOVEN > > * THE NAN IN THE HOUSE HAS HANDS. > PABSE: > S > NP NIL > DET THE > N MAN > NUMBEB SG > PP NIL IN > NP NIL > DET THE > N HOUSE > NUMBEB SG > VP NIL > TNS > PBESENT > VOICE ACTIVE > V HAVE > NP NIL > N HAND > NUMBEB PL > <==> > N MAN > NUMBEB SG > ODEFINITE- THE > <-LOC- IN > N HOUSE > NUMBEB SG > <-DEFINITE- THE > PBESENT > <-- POSSESS > N HAND > NUMBEB PL > > * FRED WENT TO INDIA WITH JACK. > PARSE: > S > NP NIL > NPR FRED > VP NIL > TNS > PAST > VOICE ACTIVE > V GO > PP NIL TO > NP NIL > NPR INDIA > PP NIL WITH > NP NIL > NPR JACK > <==> > NPR FRED 66 > PAST > <-- MOVE > <-SOURCE- SOMEPLACE > <-DESTINATION-> NPR INDIA > <-CO-AGENT-> NPR JACK > > * FRED PLAYED JACK FOOTBALL. > PARSE: > S > NP NIL > NPR FRED > VP NIL > TNS > PAST > VOICE ACTIVE > V PLAY > NP NIL > NPR JACK > NP NIL > N FOOTBALL > NUMBER SG > <==> > NPR FRED > PAST > < — PLAY > N FOOTBALL > NUMBER SG > <-CO-AGENT-> NPR JACK > > * FRED PLAYED FOOTBALL WITH JACK. > PARSE: > S > NP NIL > NPR FRED > VP NIL > TNS > PAST > VOICE ACTIVE > V PLAY > NP NIL > N FOOTBALL > NUMBER SG > PP NIL WITH > NP NIL > NPR JACK > <==> > NPR FRED > PAST > < — PLAY > N FOOTBALL > NUMBER SG 67 > <-CO-AGENT-> NPB JACK > > * THE HOUSE WITH THE PIANO IN IT WAS GIVEN TO F BE! EY BIS WIFE. > PABSE: > S > NP NIL > DET THE > N HOUSE > NUMBER SG > PP NIL HITH > NP NIL > DET THE > N PIANO > NUMBEB SG > PP NIL IN > NP NIL > PRO IT > SUBJ > OBJ > NUMBER SG > VP NIL > TNS > PAST > VOICE PASSIVE > V GIVE > PP NIL TO > NP NIL > NPR FRED > PP NIL BY > NP NIL > DET > POSSPBC HIS > N WIFE > NUMBER SG > BY HIS I ASSUME YOU MEAN FRED > IS THAT COBBECT? * Y > < = => > N WIFE > NUMBEB SG > <-POSS-BY- FRED > PAST > <-- TRANSFER > N HOUSE > NUMBER SG > <-DEFINITE- THE > <==> > N HOUSE > NUMBER SG > <-DEFINITE- THE > PRESENT > < — CONTAIN > N PIANO > KUKEEB SG <-DEFINITE- THE <-RECIPIENT~ NPR F BED <-SOURCE-N WIFE NUMBEB SG <-POSS-BY- FBED BEETHOVEN WROTE A PIANO SONATA IN VIENNA FOE FB EE, PARSE: S > NP NIL > NPR BEETHOVEN > VP NIL > TNS > PAST > VOICE ACTIVE > V WRITE > NP NIL > DET > DET A > N SONATA > NUMBER SG > OCLASS-> N PIANO > NUMBER SG > PP NIL IN > NP NIL > NPR VIENSA > PP NIL FOR > NP NIL > NPR FRED > <==> > NPR BEETHOVEN > PAST > < — COMPOSE > N SONATA > NUMBER SG > <-CIASS-> N PIANO > NUMBER SG > <-BENEFIC IAR I -> NPR FRED > <-LOC- IN > NPR VIENNA > > * HE WROTE A SYMPHONY FOR HIM IN MUNICH. > PARSE: > S > NP NIL > PRO HE > VP NIL > TNS > PAST 69 > VOICE ACTIVE > V WRITE > NP NIL > DET A > N SYMPHONY > NUMBEB SG > PP NIL FOR > NP NIL > PRO HIM > PP NIL IN > NP NIL > NPR MUNICH > BY HE I ASSUME YOU MEAN BEETHOVEN > IS THAT CORRECT? * y > BY HIM I ASSUME YOU MEAN FRED > IS THAT CORRECT? * Y > <==> > NPR BEETHOVEN > PAST > < — COMPOSE > N SYMPHONY > NUMBER SG > <-IN DEFINITE- A > <-LOC- IN > NPR MUNICH > OBENEFICIARY-> NPR FRED > > * THE BIG MAN IN THE RED HOUSE PLAYS THE PIANO WELL. > PARSE: > S > NP NIL > DET THE > N MAN > NUMBER SG > <-ADJ- BIG > PP NIL IN > NP NIL > DET THE > N HOUSE > NUMBER SG > <-ADJ- RED > VP NIL > TNS > PRESENT > VOICE ACTIVE > V PLAY > NP NIL > DET THE > N PIANO > NUMBER SG > <-ADV- NIL WELL > <==> 70 > N MAN > NUMBEB SG > <-ADJ- BIG > ODEFINITE- THE > <-L0C- IN > N HOUSE > NUMBEB SG > <-ADJ- BED > <-DEFINITE- THE > PBESENT > <— DO > <-CAUSE-> <—> > N PIANO > NUMBER SG > <- DEFINITE- THE > PBESENT > <-- EMIT > NP > N SOUND > > > <-ADV- WELL * THE MUSIC PLAYED LOUDLY FBOM THE SMALL ECCM. > P ABS E : > S > NP NIL > DET THE > N MUSIC > NUMBER SG > VP NIL > TNS > PAST > VOICE ACTIVE > V PLAY > <-ADV- NIL LOUD > PP NIL FROM > NP NIL > DET THE > N ROOM > NUMBER SG > <-ADJ- SMALL > <==> SOMEONE > PAST > <-- PLAY > N MUSIC > NUHBER SG > <-DEFINITE- THE > <-SOURCE-> N ROOM > NUHBER SG > <-ADJ- SMALL > ODEFINITE- THE > <-ADV- LOUD > > 71 * THE HAMMER BROKE THE WINDOW. > PARSE: > S > NP NIL > DET THE > N HAMMER > NUMBER SG > VP NIL > TNS > PAST > VOICE ACTIVE > V BREAK > NP NIL > DEI THE > N WINDOW > NUMBER SG > <==> SOMEONE > PAST > < — BREAK > N WINDOW > NUMBER SG > -(-DEFINITE- THE > <-INSTRUMENT > N HAMMER > NUMBER SG > <-DEFINITE- THE > > * THE DOOR OPENED. > PARSE: > S > NP NIL > DET THE > N DOOR > NUMBER SG > VP NIL > TNS > PAST > VOICE ACTIVE > V OPEN > <==> SOMEONE > PAST > < — OPEN > N DOOR > NUMBER SG > ODEFINITE- THE > > * THE KEY OPENED THE DOOR WITH EASE, > PARSE: > S > NP NIL > DET THE > N KEY > NUMBER SG > VP NIL 72 > TNS > PAST > VOICE ACTIVE > V OPEN > NP NIL > DET THE > N DOOfi > NUMBER SG > PP NIL WITH >. NP NIL > N EASE > NUMBER SG > <==> SOMEONE > PAST > < — OPEN > ' N DOOR > NUMBER SG > ODEFINITE- THE > OINSTRUM ENT > N KEY > NUMBER SG > <-DEFINITE- THE > <-MANNER- WITH > N EASE > NUMBER SG > > * I BROKE THE WINDOW WITH VENGENCE WITH A HAMMER. > PARSE: > S > NP NIL > PRO I > SUBJ > NUMBER SG > VP NIL > TNS > PAST > VOICE ACTIVE > V BREAK > NP NIL > DET THE > N WINDOW > NUMBER SG > PP NIL WITH > NP NIL > N VENGEN CE > NUMBER SG > PP NIL WITH > NP NIL > DET A > N HAMMER > NUMBER SG > WHAT IS YOUR NAME? * BROCK > <==> > NPR BROCK 73 > PAST > < — BBEAK \ > N WINDOW > NUMBER SG > <-DEFIKITE- THE > <-INSTRUM EiJT-> N HAMMER > SOMBER SG > <-INDEFIKITE- A > <-MANNER- WITH > N VENGENCE > NUMBER SG 74 APPENDIX I I : Some Non-examples In CHAPTER 2 many examples are given of phrases which f i t i n t o my s e t of cases. There are, however, many which do not. Here are a few of them. I know from her sm i l e t h a t t o n i g h t w i l l be f i n e . The~METHOD~case~"expects a sentence a f t e r "from". I l i s t e n a l l n i g h t f o r your s t e p on the s t a i r . LISTEN-EOR i s "not " d e f i n e d i n the system, although i t c o u l d be. Looking at the l a t e l a t e show through a S§lil£I§£i2uS stone. There~"is no DIRlcTION or MEDIUH case. I walked through the morning. T h i s i s ~ r i o t ~ r e a l l y ~ t h e PATH case, although t h a t i s what the system would c a l l i t . . . .Between the ocean and your open v e i n . . . . Between the hour and the age. . ,..,. Rusted from the elbow to the f i n g e r . The type of s t r u c t u r e i n these three examples i s not d e f i n e d to the system, I met a woman long ago. The TIME case w i l l not accept t h i s , I am t u r n i n g i n t o g o l d . TURN-INTcfis n o t ~ d e f i n e d . you h e l d onto me l i k e I was a c r u c i f i x . The LIKE case does not expect a sentence. He looked once behind h i s s h o u l d e r . T h i s i s another example"\>f~the n o n - e x i s t a n t DIRECTION case. She died without a whisper. The system does not know about "without". It i s a d i f f i c u l t word. 75 J k i l M f i J X I I I - A Formal D e s c r i p t i o n of What the System Returns. Symbols i n upper-case are t e r m i n a l symbols. Symbols i n lower case are non-terminal symbols. A v e r t i c a l bar, "I", means e i t h e r , but not both, can be taken. A symbol i n parenthesese, " ( • • • ) " » i s o p t i o n a l . A symbol i n sguare b r a c k e t s with an a s t e r i s k f o l l o w i n g i t , " [ . . . ] * " , may be repeated one or more times. s : < ZZ <==> subj tns pred cases (adjp) sub j • s | np j npc np : « = nh noun nmods nh N | NPR noun : • = MAN | WOMAB | FRED | DOG | TREF | . . nmods := (NUMBER nu) (det) (s) (adjp) (class) (guant) (desc) ( l o c a t i o n ) (poss) nu SG | PL det : = def \ i n d e f def <-DEFINATE- defdet defdet : = THE | THAT | THIS | . . . i n d e f <-INDEFINATE- i n d e f d e t i n d e f d e t : = A | AN | AKY | . . . adjp := [<-ADJ- adj (advp) (comp-sup) ]* adj : = BIG | SMALL | RED | HAPPY | . . . advp <-ADV- adv (advp) adv : = VERY | SUPBISINGLY | . . . comp-sup COMP-SUP cs cs : = COMPARATIVE | SUPERLATIVE c l a s s <-CLASS- cnp cnp : = nh noun quant := QUANT qp gp : = (intp) (ordp) i n t p INTEGER i n t i n t : ONE | TWO | THREE | . ordp ORDINAL ord (gp) ord : = FIRST | SECOND | THIRD | . . . desc := <-DESC- prep np prep , = WITH | OF | BESIDE | ON | IN | UPON | poss := <-POSS-BY- np npc : .ts SOMEPLACE | SOMEONE | . . . tns ; - PAST \ PRESENT | FUTURE | . pred : . = < — vp vp := vtp | v i p J vcp | v l vtp ; = vt (advp) np vt : = TRANSFER | PLAY | HEAR | INHABIT | SEASCH-FOR | EXAMINE | ORDER | . . . v i p : : = v i (advp). v i : := MOVE | DO | . . . vcp : vc adjmod vc : := HAVE-PROP | APPEAR | . . . adjmod : : = adjp | adjmodl | a d j adjmodl : ; = adj (comp-sup) (than-ph) than-ph : ; s; <-COMPARED-TO- np 76 v l lprep cases location time t t prep-time tprep noun-time stime wp duration dprep manner mprep destination dtprep dsn co-agent instrument exchange beneficiary recipient topic purpose path pathprep method guantity source expected-ef cause enable l i k e with HAVE-LOC lprep np ID | ON| EY | NEAR | BESIDE | BEFORE | UNDER location | time | duration | manner | destination | co-agent | instrument j exchange | beneficiary j rec i p i e n t | topic | purpose | path | method | guantity | source | expected-ef | cause | enable | l i k e | with <-LOC- lprep np <-TIHE- t t prep-time | noun-time f stime tprep np IS | AT | BY | ABOUT | NEAR | BEFORE j AFTER | DURING YESTERDAY | TODAY | TOMORROW | . . . wp s WHEN | WHILE | BEFORE | AFTER <-DURATION- dprep np IN | FOR <-MANNER- mprep np IN I WITH <-DESTINATION dtprep np TO | INTO | ONTO | TOWARD | TOWARDS np | SOMEPLACE CO-AGENT- np <-INSTRUMENT- np <-EXCHANGE- np <-BENEFICIARY- np <-RECIPIENT- np <-TOPIC- np <-PURPOSE- s <-PATH- pathprep np ACROSS j ABOUND | DOWN | UP | ALONG j ABOUT | <-M ETHOD- s <-QUANTITY- EY np <-SODRCE- (FROM) dsn <-EXPECTED-EFFICT- S <-CAUSE- s <-E NABLE- S <-LIKE- np <-WITH- np BY 77 APPENDIX i v : The Dictionary Below i s a copy of the dictionary currently used by the system. Chapters 3 and 4 b r i e f l y refer to certain parts cf word d e f i n i t i o n s , but i t i s appropriate to give a f u l l e r description of what appears in the d i c t i o n r y . Each dictionary entry i s of the form (WORD 11 P1 12 P2 . . . I i Pi) where P i i s a property which i s to be put on the property l i s t of WORD under the indicator I i . Different word types have d i f f e r e n t indicators on t h e i r property l i s t s . If a word f a l l s into more than one syntactic category i t may have the properties of a l l of the categories. Por instance "close" i s a verb and an adjective, thus i t would have the indicator V and the indicator ADJ. The only types of word whose dictionary entries w i l l be described i n f u l l here are the two complex.ones: nouns and verbs. I f these are understood, the lesser word types w i l l be easy to follow. Nouns have the following properties: N: This indicates that the WORD i s a noun. The property under N indicates how plura l s are formed. For instance: (BOY N S) (CLASS N ES) 78 (OX N IRR) (OXEN N (OX (NUMBER PL))) (FRED NPR NONE) (WATER N MASS) The e n t r y f o r "ox" i n d i c a t e s t h a t i t forms i t s p l u r a l i r r e g u l a r i l y . The p l u r a l form must be i n the d i c t i o n a r y as a separate word. NPR i s a s p e c i a l case of N i n d i c a t i n g that the noun i s a proper noun. NONE i n d i c a t e s t h a t t h e r e i s nc p l u r a l form o f the ncun. Mass nouns have the pro p e r t y MASS under N. N-PROP: Under t h i s i n d i c a t o r i s a l i s t of p r o p e r t i e s of the noun. (BOY N S N-PROP (YOUNG)) i n d i c a t e s t h a t a boy has the property YOUNG. SUPERSET: The noun's su p e r - s e t s are put i n a l i s t under t h i s i n d i c a t o r : (BOY N S N-PROP (YOUNG) SUPERSET (MAN)) (MAN N IRR N-PROP (MALE) SUPERSET (HUMAN)) (HUMAN N S N-PROP (ANIMATE) SUPERSET (ANIMAL)) the N-PROP and SUPERSET p r o p e r t i e s form a network whereby BOY, f o r i n s t a n c e , w i l l be found to be animate through the 79 above chain of SUPERSETS and N-PBOPS. To avoid a l e t of searching, redundant information i s often put i n : (BOY B S N-PBOP (HUMAN MALE YOUNG) SUPERSET (MAN HUMAN)) OBJ-SIZE: i s :the indicator whose property i s a number from 0 -1 0 giving a rough estimate of the size of an object. Some nouns such as JOY w i l l not have th i s property. NUM: This i s used i f a.noun can have more than one number. For instance, the noun "paper" i s defined as: (PAPER N S N-PROP (INFLAMABLE LITERATURE) SUPERSET (OBJECT) OBJ-SIZE 1 NUM (MASS)) The property under NUM indicates that paper can be a mass noun, as in "the room i s f u l l of paper." "Football" has NUM (MASS (SPORT GAME)) on i t s property l i s t i n d i c a t i n g that i f f o o t b a l l appears as a mass noun, i t only has the N-PBOPs SPOBT and GAME from the whole set on i t s property l i s t : N-PBOP (SPOBT GAME OBJECT) 80 This i s needed because the system only uses one set cf properties to cover a l l of i t s meanings. Verbs have the x following indicators: V: This i s the verb indicator. Its property indicates hew the f i r s t - p e r s o n singular and the past tense are formed. (KICK V S-ED) (GIVE V IBB) (GAVE V (GIVE (TNS PAST))) (GIVING V (GIVE (PART PREPART) ) ) (GIVES V (GIVE (TNS PRESENT) ) ) Irregular verbs have IRR as the property under V. A l l of the tenses of an i r r e g u l a r verb must be l i s t e d separately i n the dictionary, giving the i n f i n i t i v e form of the verb and the tense or whatever of the form i n question. PREP-CASE: This i s for the foregrounding routines. It i s a l i s t of l i s t s . Each s u b - l i s t s t a r t s with a prepostion, which i s followed by a variable number of cases. These cases are always t r i e d f i r s t and i n the order i n which they appear when the prepostion i s encountered i n the sentence with that verb. V-MEAN: The procedural d e f i n i t i o n of the verb i s the property cf 81 V-HEAN. CHAPTER 3 g i v e s a l l of the d e t a i l s . TO-COMP: I f the verb can take a to-complement, T i s under t h i s i n d i c a t o r . THAT^COMP: I f the verb can take a that-complement, T i s under t h i s i n d i c a t o r . PARTICLES: I f the verb takes one or more p a r t i c l e s , they are l i s t e d here. 5 6 7 IA DET «l 8 (APUUT PREP *) 9 (ACROSS PRCP • ) ' *• 10 (ADAGE N S OP.J-SIZE 3 NUM (MASS) N - PROP (MACHINE)) 11 (AFRICA NPR NONE N-PROP (LOCATION) SUPERSET (CONTINENT) OHJ-SIZE 9) 12 (AFTER P R E P * ) 13 (AIRPLANE N S OBJ-SIZE 4 NUM (MASS) N - P P O P (CCNVEYANCE MACHINE)) 1* (ALE N S N-PKOP (LIQUID ALCOHOLIC) SUPERSET (BEVERAGE) NUM (MASS)) 15 I A L L C U A N T I FIER *) 16 (ALONG PREP » ) • 17 (AH V (BE (TNS PRESENT) (PNCODE " I S C ' I I I 18 (AN DET *) 19 (AND CONJ «) 20 (ANGER N NCNE N-PROP I ABSTRACT)) 21 (ANIMAL N S SUPERSET (THING) CBJ-SIZE 3) 22 (ANNOY V 2 3 S - E O 2* PREP—CASE ((WITH INSTRUMENT)) 25 V-MEAN 26 (IF ((AGENT (MUST-BE ANIMATE)) 27 AG 28 (OPT (GETR PASSIVE) "SOMEONE) 29 (PATIENT (MUSI-BE ANIMATE)) 30 PA 31 OBL) 32 (BUILDQ (»<= = >» 7 (••<—« ANNOY ?)) AG TNS P A ) ) ) 33 (ANYONE CENPttO » N-PRCP (HUMAN)) 34 (APPLE N S N-PROP (EATABLE) OBJ-SIZE I SUPERSET (FRUIT)) 35 (ARE V (BE (TNS PRESENT))) 36 (ARM N S OBJ-SIZE 2) 37 (AROUND PREP *) 38 (AT PREP (AT ADJ) PARTICLE T) , 39 (AT PREP *) 40 I ATE V (EAT (TNS PAST))) 41 (AUSTRALIA NPR NONE N-PROP (LOCATION) SUPERSET (COUNTRY) OBJ-SIZE 8) 4 2 (AUSTRIA NPR NONE N-PROP (LOCATION) SUPERSET (COUNTRY) OBJ-SIZE 8) 43 (AUTOMOBILE N S CBJ-SIZE 3 NUM (MASS) N-PROP (CCNVEYANCE MACHINE)) 4 4 (BACH NPR 45 » 46 SUPERSET 4 7 (COMPOSER MAN) 48 N-PROP 4 9 (COMPOSER HUMAN MALE) 50 DEFAULT 51 ((PATIENT) (WRITE COMPOSE) (N MUSIC (••<—NUMBER—" SG))) 52 OBJ-SIZE 53 • 3) 54 (BAO ADJ IRR N NONE N-PROP (ABSTRACT) I 55 (BADLY ADV *) 56 (BE V 57 IRR 58 PREP-CASE ((WITH WITH)) 59 THAT-COMP 60 T 61 V-MEAN 62 ( I F ((THERE-IS) TH OBL (AGENT T) AG OBL (EE-LOCI) LCC OBL) 63 (BUILDQ ("<==>» ? ("<--« HAVE-LOC " • " ) ) AG TNS LOO 64 ((THERE-IS) TH OBL (AGENT T) AG OBL) 65 (BUILOQ ("<==>•• ? "•" ("<—" EXIST)) AG TNS) 66 ( ( A D J - L 1 S T T) AOJ OBL (AGENT T) AG OBL) 6T (eulLOQ (»<==>" ? «•» { " < - - - HAVE -PROP " • " ) ) AG TNS AOJ) 68 ((PATIENT (MUST-BE THING I) PA OBL (AGENT (NOT (EQ (CAR TESTEEI 'THAT-COMP))) AG OBL) 69 IBUJLOQ (»<==•>" 7 ( " < — " # 7 ) ) AG TI\S (BEI? (GETR AG)) PA) 70 I (COPULAR-ACV? (NOT (EO (CAR TESTEE) 'THAT-COMP))) ADV OBL (AGENT T)• AG OBL) 71 (BUILDU «"<==>" 7 ("<—" HAVE-LCC "•") ) AG TNS ADV) 72 ((CLAUSE '(FROM) '(MUST-BE COUNTRY CITY TOWN CONTINENT LCCATION) 'LOCATION) 73 LOC 74 00 L 75 (AGENT (HUST-BE HUMAN)) 76 AG 77 OOL) 78 (BUILDQ (»<==>•• 7 PAST (•'<—" INHABIT ?)) AG LOC) 79 ((BE-LOC) LCC CBL (AGENT (NCT (EO (CAR TESTEE) 'THAT-COMP))) AG GBL) 80 (BUILDO ("<==>*• ? ••»'• ("<—" HAVE-LOC ••••')> AG TNS LOC) 81 ((AGENT (NOT (EQ (CAR TESTEE) •THAT-COMP11) AG 08L) 82 (BUILDO !"< = = >" ? ('•< — •• EXIST)) AG TNS))) 83 (BEATRICE NPR * N-PROP (HUMAN FEMALE) SUPERSET (WOMAN) OBJ-SIZE 3) 84 IBEAUTY N NONE N-PRUP (ARS TRACT)) 85 (BEEF N MASS N-PRCP (FCOD AN(MAL) OHJ-SIZE I SUPERSET (FOOD)) 86 (BEER fl S U" PROP (LIQUID ALC0HCL1CI SUPERSET (LEVERAGE) NUM (MASS)) 87 (BEETHOVEN NPR 88 . » 89 SUPERSET 90 (COMPOSER MAN I 9 1 N-PROP 92 (COMPOSER HUMAN MALE) 93 DEFAULT 94 (IPATIENT) IWrtlll COMPOSE) IN MUSIC l''<-NUNUER-h SO))) 95 OBJ-SIZE 96 3) 97 (BEFORE PREP (BEFCRE ADV ADJ)) 98 (BEHIND PREP (HEMIND AOV ADJ)) 99 (eERKLEY NPR NONE N-PRUP (LOCATION) SUPERSET (CITY) OBJ-SIZE 61 100 IBESIOE PREP •) 101 (BEST AUJ (CCOD ISUPERLATIVE)I ADV IHFLL (SUPERLATIVE!)) 102 (BETIER AOJ (GOOD ICOMPARAIIVE)) ADV (WELL (COMPARATIVE))) 103 (BIG ADJ EK-EST) 10<i I BLUE AO J K-ST) 105 (BOAT U S UUJ-SIZE 3 NUM (MASS) N-PRDP (CONVEYANCE MACHINE)) 106 (BOOK N S N-PROP (LITERATURE) SUPERSET (UUJECTI OUJ-SIZE II 107 (BOX N ES N-PROP (CCNT AI NEK) OBJ-SIZC 2 SUPERSEI (OBJECT)) 108 (BRAHHS NPR . 109 • 110 SUPERSET 111 (COMPOSER HAN) 112 N-PROP 113 (CUHPOSER HUMAN MALE) 114 DEFAULT 115 ((PATIENT) IWRITE COMPOSE) IN MUSIC I"<-NUMDER-H SG))) 116 OBJ-SIZE 117 3) 118 I BREAD N S N-PROP (EATABLE) SUPERSET (FOOD) 08J-SIZE 1) 119 (BREAK V IRR PREP-CASE ((WITH INSTRUMENT)) TO-CC*P T V-MEAN (ERGATIVE 'CREAK)) 120 (BREAKING V (BREAK (PART PRESPART))) 121 (BREAKS V (BREAK (TNS PRESENT))) 122 (BROCK NPR « N-PROP (HUMAN MALE) SUPERSET (fAN) OBJ-SIZE 3) 123 (BROKE V (BREAK (TNS PAST))) 124 (BROKEN V (BREAK I PART PASTPART))) 125 (BOUGHT V (BUY (TNS PAST)(PART PASTPART))) 126 (EULL N S N-PROP (MALE BOVINE ANIMATE) SUPERSET (ANIMAL) OBJ-SIZE 3) 127 IBUSH N ES N-PROP (VEGETATION) OBJ-SIZE 3 SUPERSET (OBJECT)) 128 (BUT CONJ *) 129. (BUY V 130 IRR 131 PREP-CASE I(WITH EXCHANGE)) 132 TO-COMP 133 T 134 V-MEAN 135 (IF ((AGENT (MUST-BE HUMAN)) 136 AG 137 I OPT '(GETR PASSIVE) 'SOMEONE) 138 (PATIENT (NOT (SHOULO-BE HUMAN))) 139 PA 140 SOMETHING 141 ( PREP-CASE-LCOK '(EXCHANGE) •I IFOR)) •(SHOULO-BE MONEY)) 142 EX 143 MONEY 144 (OR (PREP—CASE-LOOK •I EXCHANGE I •(I FOR WITH)) '(SHOULD-BE HUCAN)) 145 (IND-OBJ (SHGULO-BE HUMAN ORGANIZATION))) 146 REC 147 IGETR AG) 148 (PREP-CASE-LCOK '(SOURCE) '((FROM)) MSHOULO-BE HUMAN ORGANIZATION)) 149 SOU 150 SOMEONE) 151 I8U1L0Q C < = 0 " 7 152 «•" 153 ' ("<--" TRANSFER 7) 154 ("<-R£CIPIENT-" 7) 155 ("<-SOURCE-" 7) 156 I ^ -EXCHANGE-" ?)> 157 AG 158 TNS 159 PA 160 REC 161 SOU 162 EX)) I 163 I BUYING V (BUY (PART PRESPART))) 164 . (BUYS V (BUY (TNS PRESENT))) 165 (BY PREP (BY AOV ACJ)) 166 (CABBAGE N S N-PRCP (EATABLE) SUPERSET (VEGETABLE) OBJ-SIZE I) 167 (CAKE N S N-PROP (FCOO) 06J-SIZE 1 SUPERSET ( F O C O ) 168 (CAME V (CUME (TNS PAST))) 169 (CAN MODAL *) 170 (CANADA NPR * N-PROP (PLACE COUNTRY LOCATION) CBJ-SIZE 8) 171 (CANDOR N NONE N-PROP (ABSTRACT)) 172 (CANDY N ES N-PROP (FOOO SWEET) OBJ-SIZE 0 SUPERSET (FOOD)) 173 I CAR N S OBJ-SIZE 3 NUM (MASS) N-PRCP (CONVEYANCE MACVINE)) 174 (CARROT N S N-PROP (ORANGE EATABLE) SUPERSET (VEGETABLE) OBJ-SIZE I) 175 (CAT N S N-PROP (ANIMATE) SUPERSET (AN I PAL) OBJ-SIZE 3) 176 (CHICKEN N S N-PRCP (ANIMATE) SUPERSET I AN I PAL) CUJ-SIZE 3) 177 (CHOCOLATE N S N-PROP (FOOO SWEET) CCJ-SIZE 0 SUPERSET (FOOO)) 178 (CIOER N S N-PROP (LICUID ALCOHOLIC) SUPERSET (BEVERAGE) NUM (MASS)) 179 (CLOSE ADJ R-ST V S-ED TO-COMP T V-MEAN (ERGATIVE 'CLOSE)) 180 (COFFEE N S N-PROP (LIUU10) SUPERSET (FEVERAGEI NUM (MASS)) 181 (COLOUR N S NUM (MASS)) . 182 (COME V ' 183 IRR 184 PREP-CASE 185 ((TO DESTINATION PURPOSE) (WITH WITH) (AT TIME RATE)) 186 V-MEAN 187 (IF ((AGENT (MUST-BE ANIMATE)) 188 AG 189 oeL 190 (PREP-CASE-LOOK •(OESTINATI ON) '((TO INTO ONTO TOWAROS TOWARD)) T) 191 DEST 192 HERE 193 (PREP-CASE-LOOK '(SOURCE) '((FKOM)I T) 194 SRC 195 (COND (IWHERE-IS INOUN-LIST-GFT IGETR A C ) ) ) ) 196 H 'SOMEPLACE))) 197 (BUILDQ ("<">" 7 (»< — •• MOVE) ("<-SOURCE-" 7) ("<-OEST INATICN-" 7)1 198 AG 199 TNS 200 SRC 201 OESTD) 202 (COMES V (COME (TNS PRESENT) (PNCODE " 3 S G " ) ) ) 2 0 3 (COMPOSER N S SUPERSET I MAN MUS IC -MAKEM ) N-PROP (HUMAN MUS 1 COMAKER) OBJ-SUE 3 ) 2 C i (COMPUTER N S OBJ-SIZE * MUM (MASS) N -PROP (MACHINE)) 205 (CONDUCTOR N S SUPERSET (MAN MUSIC-MAKER) N-PROP (HUMAN MUSIC-MAKER) OBJ-SIZE 3) 2 0 6 (CONIAIN V S-EO) 207 (CONTENTMENT N NONE N-PKOP (ABSTRACT)) 208 (CONTINENT N ES N-PROP (LOCATION PLACE) OBJ-SIZE 9) 209 (COUNTRY N ES N-PROP (LOCATION PLACE) OHJ-SIZE 8) 210 ICOULU MODAL *) 211 (COW N S N-PROP (ANIMATE) SUPERSET (ANIMAL) OBJ-SIZE 31 212 (CUP N S N-PROP (CONTAINER VESSEL) SUPERSET (UTENSIL) OBJ-SIZE 1) 213 (CYDNEY NPR « N—PROP (HUMAN FEMALE) SUPERSET (WCMAN) OISJ-SIZE 3) 21*. (DAY N S N-PROP (TIME) NUM (MASS 1 ) 215 (DENMARK NPR NONE N-PROP (LOCATION) SUPERSET (COUNTRY) OOJ-SIZE 8) 216 (DESPITE PRE P *) 217 (DID V (DO (TNS PAST))) 218 (DISCOMFORT N NONE N-PROP (ABSTRACT)I 219 (DISCONTENTMENT N NONE N-PROP (ABSTRACT)) 220 (DISLIKE TO-COMP 221 T 222 V 22 3 S-D 22* PREP-CASE 225 ((FOR CAUSE)1 226 V-MEAN 227 (IF ((AGENT (MUST-BE HUMAN)) AC OBL (OR (TO-COMP (GETR AG)) (PATIENT T)) PA OBL) 228 (BUI LOG (••< = = >" ? "•" (•<<—•• OISLIKE ? ) ) AG TNS .PA))) 229 (DISSATISFACTION N NONE N-PROP (ABSTRACT)) 230 (DO V IRR) 231 (DOG N S N-PROP (ANIMATE) SUPERSET (ANIMAL) OBJ-SIZE 3) 232 (DOING V ( 0 0 (TNS PRESENT) (PART PRE SPAR T ) ) ) 233 (DONE V (DO (TNS PAST) (PART PASTPART))) 23* (DOOR N S SUPERSET (OBJECT) OBJ-SIZE 3) 235 (DOWN PART * PREP *) 236 (DRANK V (DRINK (TNS PAST) ) I 237 (DRINK V 238 IRR 239 PREP-CASE ((WITH INSTRUMENT I I 2*0 V-MEAN .. 2*1 (IF ((AGENT (MUST-BE ANIMATE)I 2*2 AG 2*3 (OPT 1(GETR PASSIVE) 'SOMEONE! 2** (PATIENT (MUST-BE LIQUID)) 2*5 PA 2*6 (OPT 1(NOT (GETR PASSIVE)) •LIOUI 0! 2*7 (PREP-CASE-LOOK '(SOURCE) '((FROM)) T) 2*8 SOU 2*9 GLASS) 250 (BUILDQ ("< = =>" ? ("<—" TRANSFER ?) ("<-SOURCE-" ?) ("<-DESTI NAT I ON-" INTO ?)) 251 AG 252 . TNS 253 PA 25* SOU 255 AG))) 256 (DRINKING V (DRINK (PART PRESPART))) 257 (DRINKS V (DRINK (TNS PRESENT))) 258 I DRUNK V (DRINK (PART PASTPART)) N S N-PROP (HUMAN) SUPERSET (MAN WOMAN)) 259 (DURING PREP *) 260 (EACH QUANTIFIER *) 261 (EARLY AOV * ADV-PROP (TIME)) 262 (EAT V 263 IRR 26* PREP-CASE ((WITH INSTRUMENT)) 265 V-MEAN 266 (IF ((AGENT (MUST-BE ANIMATE)) 267 AG 268 ( OPT MGETR PASSIVE) • SOMEONE) 269 (PATIENT (SHOULD-BE FOOD)) 270 PA 271 (OPT •(NOT (GETR PASSIVE)) 'FOOD)) 272 (BUILDQ (•"<==>•• ? 273 "•" 27* ("<—" TRANSFER 7! 275 ( H<-SCURCE-" SOMEPLACE) 276 I"<-OESTINATlON-" INTO ?>> 277 AG 278 TNS 279 PA 280 AG))) 281 (EATEN V (EAT (PART PASTPART))) 282 (EATING V (EAT (PART PRESPART))) 283 (EATS V (EAT (TNS PRESENT) (PNCODE "3SG"))I 28* (EIGHT NUMBER «) 285 (EIGHTH OROINAL EIGHT ADV *) 286 (ELECTRIC ADJ *> 2B7 (EMPTY ADJ 288 " ER-EST 289 PREP-CASE ((WITH INSTRUMENT)) 290 V 291 ES-EO 292 V-MEAN 293 (IF 1 (AGENT (MUST-BE ANIMATED 29* AG 295 (OPT (GETR PASSIVE) 'SOMe-ONE) 296 (PATIENT (MUST-BE CONTAINER PLACE LOCATION)) 297 PA 298 OBL 299 (SEC-SUBJ (OR (GREATERP (SIZE IGETR PA)) (SIZE T E S I E O l l ) 300 SEC ( I )UILDQ ( C O N T E N T S - O F ••»••) P A D ( B U I L D Q ( " < « > » ? " » " ("< — " TRANSFER ») ( " < - S O U R C E - " ? ) ("•<-DEST I NA n (IN - " 0 1 ) AC TNS (COND l(EQ ' C O M T E N T S - O F ICAK (GETR S E C D I (GETR S E C I ) IT (NOUN-PUT S E G D ) PA (BUILDQ (OUT -OF 71 P A D ) ) (EMPTY V E S - E D ADJ ») (ENGLAND NPR NONE N - P R O P ( L O C A T I C N ) SUPERSET (COUNTRY) O B J - S I Z E 8 ) (EVERY QUANT IF I ER * ) (FAR AOV * ) ( F A S T ADV E R - E S T ) (FAT AOJ E R - E S T ) ( F I F T H ORDINAL F I V E ADV «) ( F I R S T ORDINAL ONE ADV * ) ( F I S H N ES N - P R O P ( A N I M A T E ) SUPERSET ( A N I M A L ) NUM ( M A S S ) O B J - S I Z E 2 ) ( F I V E NUMBER *) (FOOD N MASS N - P R C P ( E A T A B L E ) SUPERSET ( T H I N G ) C B J - S I Z E 1) ( F O O T B A L L N S N - P R O P (GAME SPORT O f l J E C I ) O B J - S I Z E 1 NUM (MASS (SPORT G A M E D ) (FOR PREP (FOR A D J ) P A R T I C L E T) (FORK N S SUPERSET ( U T E N S I L ) O B J - S I Z E 1) (FOUR NUMBER *) (FOURTH ORDINAL FOUR ADV * ) ( F R A N C E NPR NONE N -PROP ( L O C A T I O N ) SUPERSET (COUNTRY) O B J - S I Z E 8) (FRED NPR * N - P R O P (HUMAN MALE S PORTS -MAN) • D E F A U L T ( ( P A T I E N T ) ( P L A Y ) (N SPORT ( " < - N U M B E R - " S G ) ) ) S U P E R S E T (MAN) O B J - S I Z E 3) (FROM PREP * ) ( F R U I T N S N - P R O P ( V E G E T A T I O N FOOD) SUPERSET (FCOD) O B J - S I Z E 1) (FUNNY ADJ E R - E S T ) (FURTHER ADV (FAR ( C O M P A R A T I V E ) ) ! ( F U R T H E S T ADV (FAR ( S U P E R L A T I V E 1 D (GAME N S N - P R O P ( S P O R T ! ) (GAVE V ( G I V E (TNS P A S T ) ) ) (GERMANY NPR * N - P R O P ( P L A C E COUNTRY L O C A T I C N ) C B J - S I Z E 8 ) . (GERTRUDE NPR * N - P R O P (HUMAN F E M A L E ) S U P E R S E T (WOMAN) 0 8 J - S I Z E 31 ( G I V E V IRR F E A T U R E S (TRANS I N D O B J ) P A R T I C L E S (UP IN OUT) P R E P - C A S E ( (TO R E C I P I E N T ) (FROM S O U R C E ) ) V - M E A N (CONO ( (AND ( EQ • G I V E (CAOR ( S T A R T - L I S T ' V S E N T E N C E D ) ( C A S E ( ( A G E N T ( M U S T - B E A N I M A T E D AG (OPT (GETR P A S S I V E ) •SOMEONE) (OR ( P R E P - C A S E - L C O K ' ( R E C I P I E N T ) ' ( ( T O ) ) • I M U S T - B E A N I M A T E D I I N D - C B J ( M U S T - B E A N I M A T E D ) REC •SOMEONE I PAT I EN T (NOT I S H C U L D - B E A N I M A T E ) ) ) PA O B L ) ) (SETQ STRUCT ( B U I L O Q («<==>•« 7 114.11 ( " < — " TRANSFER 7) ( " • C - R E C I P I E N T - " 7 ) I " < - S O U R C E - " ? ) ) AG TNS PA REC A G ) ) I I A I L - E N D S ) ) S T R U C T ) ) ) ( G I V E - U P V IRR P R E P - C A S E ( ( T O R E C I P I E N T ) (FROM S O U R C E ) ) V - M E A N ( I F ( ( A G E N T ( M U S T - B E A N I M A T E D AG OBL ( P A T I E N T (NOT ( M U S T - U E A B S T R A C T ) ) ) PA OBL ( P R E P - C A S E - L O O K ' ( R E C I P I E N T ) ' ( ( T O D ' ( M U S T - B E A N I M A T E D REC •SOMEONE) ( B U I L D Q ("<==»>" 7 •11 a I »<--•• TRANSFER 7) ( " < - M A N N E R - " U N W I L L I N G L Y ) ( " < - S I ) U R C E - " ? ) ( " < - R E C I P I E N T - " 7 1 ) AG TNS PA AG K r. c. > ( ( A G E N T ( M U S T - B E A N I M A T E ) ) AG (JUL > ( P U I L O C ( " < = = >" ? " I " !'•< — " SURRENOER) ) AG I N S ) ) ) ( G I V E N V ( G I V E ( P A R I .PASTPART ) ) ) ( G I V E S V ( G I V E (TNS PRE SEN I ) IPNCODE »3SG")I> ( G L A S S N fcS N - P R O P (CONTAINER V E S S E L ) S U P E R S E T ( U T E N S I L ) O B J - S I Z E 1) ( G L E E N NONE N - P R C P ( A B S T R A C T ) ) (GO V IRR ' '• P R E P - C A S E ( ( T O OES TI NAT ION PURPOSE) (AT RATE T l ' M E M U I I H WITH) ) V - M E A N ( I F I ( A G E N T ( M U S T - B E A N I M A T E ) ) AG OBL ( P R E P - C A S E - L O O K ' ( D E S T I N A T I O N ) ' ( ( T O INTO ONTO TOWARDS TOWARD)) T ) DEST SOMEPLACE ( P R E P - C A S E - L C O K ' ( S O U R C E ) ' ( ( F R O M ) ) T l SRC (COND ( I W H E R E - I S ( N C U N - L I S T - G E T (GETR A G ) ) ) ) ( T ' S O M E P L A C E ) ) ) ( B U I L O Q ("< = «=>" ? " • " ( • • < — • ' MOVE) ( " < - S O U R C E - " ?) ( " < - B E ST I N AT I C N - " ? ) ) AG TNS SRC D E S T ) ) ) I GO PART * V IRR FEATURES ( I N T R A N S ) ) (GOES V (GO (TNS P R E S E N T ) (PNCODE " 3 S G " ) ) ) (GOING V (GO (PART P R E S P A R T ) ) ) (GONE V (GO P A S T P A R T ) ) (GOOD ADJ IRK N S N - P R O P ( A B S T R A C T THING) NUM. (CASS ( A B S T R A C T ) ) ) (GRAPE N S N - P R O P ( E A T A B L E ) O B J - S I Z E 0 SUPERSET ( F R U I T ) ) ( G R A P E F R U I T N S N - P R O P ( E A T A B L E ) O B J - S I Z E 1 SUPERSET ( F R U I T ) ) (GREEN AOJ E R - E S T ) (GUITAR N S N - P R O P ( M U S I C A L - I N S T R U M E N T ) O B J - S I Z E 2 NUM ( M A S S ) ) (HAD V (HAVE ITNS P A S T ) (PART P A S T P A R T ) ) ) ( H A L L N S N - P R O P ( B U I L D I N G P L A C E L O C A T I O N C O N T A I N E R ) SUPERSET ( B U I L D I N G THING) O B J - S I Z E 4 ) (HAMMER N S N - P R O P (TOOL INSTRUMENT) SUPERSET ( T C C L O B J E C T ) ) (HAND N S O B J - S I Z E 1) ( H A P P I N E S S N NONE N - P R O P I A B S T R A C T ) ) ( H A P P Y A D j E R - E S T ) (HAS V (HAVE (TNS P R E S E N T ) ) ) I HATE TO-COMP T V S - D ' P R E P - C A S E ( (FOR C A U S E ) ) V —MEAN U F ( (AGENT ( M U S T - B E HUMAN) I AG OBL (OR (TO -COMP (GETR A G ) ) ( P A T I E N T T)> PA O B L ) ( B U I L D Q ("< = = >•' 7 " • " ( " < — " U I S L I K E ( " < - A D V - " MUCH) ? ) ) AG TNS P A ) ) ) (HAVE V IRR V - M E A N ( I F ( ( A G E N T (AND (NOT ( M U S T - B E A B S T R A C T ) ) 1 S H C U L D - B E A N I M A T E ) ) ) AG CBL ( P A T I E N T T ) PA OBL) ( B U I L D O (••< = = >" 7 " • • ( " < — " P O S S E S S ? ) ) AG TNS P A ) ) ) ( H A V I N G V (HAVE (PART P R E S P A R T ) ) ) (HE PRO * PERSONAL T) •(HEAR V IRR P R E P - C A S E ( ( W I T H I N S T R U M E N T ) ) THAT -COMP T P R E P - C A S E ( ( O F T O P I C ) ) V - M E A N ( I F ( ( P A T I E N T ( M U S T - B E MUSIC M U S I C - M A K E R ) ) PA OBL (AGENT ( M U S T - B E A N I M A T E ) ) AG (OPT (GETR P A S S I V E ) " S O M E O N E ! ) ( B U I L D Q ( » < « > " 7 " + " (••< — •• HEAR 7 ) ) AG TNS P A ) ) ) (HEARD V (HEAR (TNS P A S T ) (PART P A S T P A R T ) ) ) ( H E L E N NPR * N - P R O P (HUMAN F E M A L E ) SUPERSET (WO^AN) O B J - S I Z E 3) (HELGA NPR * N - P R O P (HUMAN F E M A L E ) SUPERSET (WOMAN) O B J - S I Z E 3) (HER DET (HER I .POSSPROI) PRO (HER ( P O S S ! ( O B J ) (NUMBER S G ! ) PERSONAL T) (HERE ADV * A D V - P R O P ( L O C A T I O N ) ) ( H I M PRO * PERSONAL T ) ( H I S DET ( H I S ( P O S S P R O I ) PERSONAL T ) 1HIXON NPR NONE N - P R O P ( L O C A T I O N ) S U P E R S E T ( C I T Y ) O B J - S I Z E 6 ) (HOLLAND NPR NONE N - P R O P ( L O C A T I O N ) SUPERSET (COUNTRY I O U J - S I Z E 8) (HORSE N S N - P K O P ( A N I M A T E ) S U P E R S E T ( A N I M A L ! O L ' J - S I Z E 31 (HOUR N S N - P R O P ( U N I T T I M E ) ) (HOUSE N S N - P R O P ( P L A C E L O C A T I O N C O N T A I N E R ! SUPERSET ( B U I L D I N G THING) C U J - S I Z E 4 ) (HOW OOET *( (HUMAN N S S U P E R S E T ( A N I M A L ) N - P R C P (AM I MATE) O e j - S I Z E 3) (HUSBAND N S O B J - S I Z E 3 N - P R O P (HUMAN MALE) SUPERSET ( M A N ) ) ( I PRO ( I ( S U B J ) (NUMBER S G ! ) PERSONAL I ) I ID IOT N S N - P R O P ( A N ( M A T E ) O B J - S I Z E 3) ( I D I O T I C AUJ *) ( I N PREP ( I N ADV A D J ) P A R T I C L E T) ( I N D I A NPR NONE N - P R O P ( L O C A T I O N ) SUPERSET (COUNTRY) O B J - S I Z E B ) ( I NN SB ROOK NPR NONE N - P R O P ( L O C A T I O N ) SUPERSET ( C I T Y ) O B J - S I Z E (') 501 ( INTO PREP 1 INTO ACV) ) 502 I IS V (BE (TNS PRESENT) (PNCOOE " 3 S C " > > ) 50 3 ( I I PRO ( I T (SU11J) ( O B J ) (NUMBER S G ) ) ) 504 ( ( V E S NPR 5 0 5 * 506 SUPERSET 507 (COMPOSER MAN) 5 0 8 N - P R O P . 509 (COMPOSER HUMAN MALE) 510 DEFAULT 511 ( ( P A T I E N T ) (WRITE COMPOSE) (N MUSIC ( " < - N U H U E K - " SG ) ) ) 5 1 2 O B J - S I Z E 5 1 3 3) 514 ( J A C K NPR 5 1 5 * 5 1 6 N -PROP 5 1 7 (HUMAN MALE M U S I C I A N ) 518 SUPERSET 5 1 9 (MAN) 520 DEFAULT 521 ( ( P A T I E N T ( P L A Y ) (N M U S I C A L - I N S T R U M E N T ) ) ) 522 O B J - S I Z E 5 2 3 3) 5 2 4 ( J A G U A R N S N - P R O P ( A N I M A T E ) SUPERSET ( A N I M A L ) C B J - S I Z E 3) 5 2 5 ( J O A N NPR * N -PROP (HUMAN F E M A L E ) S U P E R S E T (WOMAN) O B J - S I Z E 3) 526 ( J C H N NPR * N - P R O P (HUMAN M A L E ) ) 527 ( J O Y N NONE N - P R O P ( A B S T R A C T ) ) 528 ( J U I C E N S N - P R O P ( L I Q U I D ) SUPERSET ( B E V E R A G E ) NUM ( M A S S ) ) 52 9 ( K E Y N S N - P R O P ( INSTRUMENT) SUPERSET ( O B J E C T ) C B J - S I Z E 1) 530 ( K N I F E N IRR O B J - S I Z E 1 SUPERSET ( U T E N S I L ) ) 5 3 1 ( L A K E N S N - P R O P (CONVEYOR WATER) S U P E R S E T (THING) O B J - S I Z E 6 NUM ( M A S S ) ) 532 ( L A R G E ADJ R - S T ) 5 3 3 ( L A S T ORDINAL LAST ADV * ) 534 ( L A T E ADV * A D V - P R O P ( T I M E ) ) 535 ( L E A S T * * ) 536 ( L E A V E V 5 3 7 IRR 538 P R E P - C A S E 539 ( ( T O P U R P O S E ) (AT RATE T I M E ) ( I N MANNER) (BY METHOD) (FCR DURA T (CN) (WITH WITH) 5 4 0 V - M E A N 5 4 1 ( I F ( ( A G E N T ( M U S T - B E A N I M A T E ) ) 542 AG 5 4 3 (OPT (GETR P A S S I V E ) ' S O M E - O N E ) 5 4 4 ( P A T I E N T ( M U S T - B E P L A C E B U I L D I N G L O C A T I O N ) ) 5 4 5 PA 5 4 6 (COND ( I W H E R E - I S (GETR A G ) ) ) 5 4 7 (T • S O M E P L A C E ) ) ) 5 4 8 ( B U I L D Q ("<==>" 7 "+" ( " < — " MOVE) ( " < - S C U R C E - " 3 ) ("< - D E S T I NAT I O N - • #11 549 AG 550 TNS 5 5 1 ( L E A V E - S O U (GETR P A ) ) 552 ( L E A V E - D E S T (GETR P A ) ) ) ) ) 5 5 3 ( L E A V E S V ( L E A V E (TNS P R E S E N T ) ) ) 554 ( L E A V I N G V ( L E A V E (PART P R E S P A R T ) ) ) 5 5 5 ( L E F T V ( L E A V E (TNS PAST) (PART P A S T P A R T ) ) ) 5 5 6 (LEMON N S N - P R O P ( E A T A B L E ) O B J - S I Z E 1 SUPERSET ( F R U I T ) ) 557 ( L E O P A R D N S N - P R O P ( A N I M A T E ) SUPERSET ( A N I M A L ) C B J - S I Z E 3 ) 558 ( L E T T E R N S N - P R O P ( L I T E R A T U R E ) O B J - S I Z E 1) 5 5 9 ( L E T T U C E N S N - P R O P ( E A T A B L E ) SUPERSET ( V E G E T A B L E ) O B J - S I Z E 1) 5 6 0 ( L I K E PREP 5 6 1 • * 562 P A R T I C L E T 5 6 3 TO-COMP 5 6 4 T 5 6 5 V 566 S - D 5 6 7 P R E P - C A S E 5 6 8 ( ( F O R C A U S E ) ) 5 6 9 V-MEA.'I 570 ( I F ( (AGENT ( M U S T - 8 E HUMAN)) AG OBL (OR (TO-COMP (GETR A G ) ) I PAT I ENT T) ) PA OBL) 571 ( B U I L D Q ("<==>" 7 "+" ( " < — " H A V E - A F F E C T ( G N - F O R ? ) ) AG TNS P A ) ) ) 572 ( L I O N N S N - P R O P ( A N I M A T E ) SUPERSET ( A N I M A L ) O B J - S I Z E 31 5 7 3 ( L I S T E N V 5 7 4 S - E O 5 7 5 P R E P - C A S E 576 ( (TO T O P ( C ) ) 577 V - M E A N 578 ( I F ( ( A G E N T ( M U S T - B E A N I M A T E ) ) 5 7 9 AG 580 (OPT (GETR P A S S I V E ) •SOMEONE) 581 ( T O P I C - L O O K ( M U S T - B E NOISE HUMAN M U S I C - M A K E R T H I N G ) ) 5 8 2 TOPIC 5 8 3 (OR (ANAPHORIC ' ( T O P I C P A T I E N T ) 5 8 4 • ( M U S T - B E NOISE HUMAN M U S I C - M A K E R THING) 58 5 (COND I I E Q A N A P H O R - C E P T H 0 ) ISETQ ANAPHOR-OEPTH 1)1 5 8 6 IT ANA P H O R - D E P T H ) ) 587 N I L ) 588 • C P T 1 ) 5 8 9 ( B U I L D Q I "< = = >" 7 " • " ( ' • < - - " L I S T E N ( " < - T O P I C - " # ) ) ) 5 9 0 AG 591 TNS 5 9 2 1 L I S T E N - T O P I C ? IGETH T O P I C ) ) ) ) ) 5 9 3 ( L I V E V 594 S - D 5 9 5 P R E P - C A S E 1 IWITH W I T H ) ) 596 • V - M E A N 5 9 7 ( I F ( (AGENT ( M U S T - B E A N I M A T E ) ) AG OBL I P R E P - C A S E - L O O K ' ( L O C A T I O N ) ' ( ( I N A T ) ) T) 598 ( U U 1 L 0 0 ("< = =>" 7 » f ("< — " INHABIT 7)1 AG TNS L ) 5 9 9 ( ( A G E N T ( M U S T - B E A N I M A T E ) ) 6 0 0 AG OBL I P R E P - C A S E - L O O K ' ( M E T H O D ) PA GBL ) ( B U I L D O ("<==>" ? • i + •• • ( ( O N ) ) M S H O U L D - t l E FOOD) ) ( " < — " E X I S T ) ( " ( - M E T H O D - , " I"<==>'1 ( » < — " TRANSFER 7) ( " ( - S O U R C E - " SOMEPLACE) ( " < - U E S r I NAT I O N - " INTO ? ) ) ) ) AG TNS AG TNS PA AC) ( (AGENT ( M U S T - B E A N I M A T E ) ) AG O B L I ( B U I L D O ("< = = >" ? ••••• ("< — " c X I S T I ) AG T N S ) ) ) (LONDON NPR NONE N - P R O P ( L O C A T I O N ) SUPERSET ( C I T Y ) O B J - S I Z E 6 ) (LOOK V S - E O P A R T I C L E S (FOR AT L I K E ) P R E P - C A S E ( ( W I T H I N S T R U M E N T ) ) V - M E A N ( I F ( ( A G E N T ( M U S T - B E A N I M A T E ) ) AG OBL ( A D J - L I S T T) AOJ OBL) ( B U I L O Q ("<==>" ? "+" ( " < — " APPEAR " + " ) ) AG TNS A D J ) ( ( A G E N T ( M U S T - B E A N I M A T E ) ) AG OBL ( P R E P - C A S E - L O O K ' ( D I R E C T I O N ) ' ( ( A C R O S S INTO OUT UP ONTO TOWARD TCWAROS ALONG DOWN AROUND U N D E R ) ) T) OIR OPT) ( B U I L D O (S ("<==>"> ( ? ) ( " • " ) ( ( - < - L O C K ) ) 9) ( P A T I E N T T ) ) PA OBL) MUCH) ? ) ) AG TNS P A D ) AG TNS (COND ( ( N U L L (GETR D I R D N I L ) (T (GETR D I R 1 ) ) ) ) ) t L C O K - A T V S - E D P R E P - C A S E ( ( W I T H I N S T R U M E N T ) ) V - M E A N ( I F ( ( A G E N T ( M U S T - B E A N I M A T E ) ) AG IOPT (GETR P A S S I V E I ' S C M E O N E ) ( P A T I E N T T) PA O B L ) ( B U I L U C ("<==>" ? • ( " < — " EXAMIHE ? ) ( " ( - I N S T R U M E N T - " IN EYE (NUMBER P L ) ( " < - P O S S - B Y - " ? ) ) ) ) AG TNS PA A G ) ) ) ( L O O K - F O R V S - E D P R E P - C A S E ( ( W I T H I N S T R U M E N T ) ) V - M E A N ( I F ( (AGENT (MUST-I3E A N I M A T E ) ) AG (OPT IGETR P A S S I V E ) 'SOMEONE) ( P A T I E N T T) PA OBL) ( B U I L D Q ("<==>» ? •• ( " < — " S E A R C H - F O R ? ) ) AG TNS P A ) ) ) ( L O O K - L I K E V S - E D V - M E A N ( I F ( ( A G E N T ( M U S T - B E A N I M A T E ) ) AG OBL ( P A T I E N T T) PA O B L ) ( B U I L D Q ("< = = >" 7 • ("< - - •• H A V E - A P P E A R A N C E - O F ? ) ) AG TNS P A D ) (LOUD AOJ E R - E S T ) ( L O V E TO-COMP T V S - O P R E P - C A S E ( I F O R C A U S E D V - M E A N ( I F ( (AGENT ( M U S T - B E HUMAN)) AG OBL (OR (TO-COMP (GETR A G D ( B U I L O Q ("<==>" ? I " < — " H A V E - A F F E C T I O N - F O R ( " < - A C V -I MAN N IRR 'SUPERSET ( A N I M A L ) N - P R O P ( A N I M A T E HUMAN MALE) O B J - S I Z E 3) (MARY NPR * N - P R O P (HUMAN F E M A L E ) SUPERSET (WOMAN) O B J - S I Z E 3) (MEAT N MASS N - P R O P (FOOD A N I M A L ) C B J - S I Z E 1 SUPERSET ( F O O D ) ) (MELBOURNE NPR NONE N - P R O P ( L O C A T I O N ) SUPERSET ( C I T Y ) O B J - S I Z E 6) I ME N N (MAN (NUMBER P L ) ) ) (MEXICO NPR NONE N - P R O P ( L O C A T I O N ) SUPERSET (COUNTRY) O B J - S I Z E 81 (MONtY N MASb U B J - S U t U l (MORE AOV * COMP * ) (MOST * * ) (MOST ADV *) (MUG N S N - P R O P (CONTAINER V E S S E L ) SUPERSET ( U T E N S I L ) O B J - S I Z E 1) (MUNIC NPR NONE N - P R O P ( L O C A T I O N ) SUPERSET ( C I T Y ) O B J - S I Z E 6 ) (MUNICH NPR NONE N - P R O P ( L O C A T I O N ) SUPERSET ( C I T Y ) O B J - S I Z E 6 ) (MUSHROOM N S N - P R O P ( E A T A B L E ) SUPERSET ( V E G E T A B L E ) O B J - S I Z E 1) (MUSIC N NONE S U P E R S E T (SOUND) N -PROP (MUSIC SOUND I ) (MY DET (MY ( P O S S P R O ) PERSONAL T) (NEAR PREP * I (NEW ADJ E R - E S T ) (NEWPAPER N S N - P R O P ( L I T E R A T U R E ) S U P E R S E T ( P A P E R ) O B J - S I Z E I ) (NEXT ORDINAL NEXT ADV * ) (NIGHT N S N - P R O P ( T I M E ) NUM ( M A S S ) ) ( N I N E NUMBER * ) ( N I N E T H ORDINAL N I N E ADV * ) (NO NEG * ) ( N O I S E N S ) (NONE NEG *) (NOT NEG * ) (NOTE N S N - P R O P ( L I T E R A T U R E ) O B J - S I Z E 1) (NOVEL N S N - P R O P ( L I T E R A T U R E ) SUPERSET (BOOK) C B J - S I Z E 1) ( O B J E C T N SI (OCEAN N S N - P R O P (CONVEYOR WATER) SUPERSET ( T H I N G ) O I 3 J - S I Z E <) NUM ( M A S S ! ) (CF PREP (OF A O J ) ) 70S (OLD A D J E R - E S T ) 7 0 2 (ON PREP (UN ADV A O J ) ) 7 0 3 I ONE NUMBER * PRO * ) 704 (ONION N S N - P R O P ( E A T A B L E ) SUPERSET ( V E G E T A B L E ) 0 8 J - S U E 1) 7 0 5 (ONTO PREP (ONTO A D V ) ) 706 (OPEN V S - E D TO-COMP T V - M E A N ( E R G A T I V E ' O P E N ) ) 707 (CR CONJ 4) 708 (ORANGE N S N - P R O P ( E A T A B L E ) C B J - S I Z E I S U P E R S E T ( F R U I T ) ) 7 0 9 (ORCHESTRA N S SUPERSET ( M U S I C - M A K E R O B J - S ( Z E 4) N - P R C P ( M U S I C - M A K E R ) ) 710 (ORDER V 711 S - E D 7 1 2 P R E P - C A S E I ( W I T H WITH) ) 7 1 3 V - M E A N 7 1 4 ( I F ( (AGENT ( M U S T - B E HUMAN)) 7 1 5 AG 7 1 6 (OPT (GETR P A S S I V E ) •SOMEONE) 7 1 7 ( P A T I E N T ( M U S T - B E A N I M A T E ) ) 7 1 8 PA 7 1 9 OBL 7 2 0 (TO -COMP (GETR P A ) ) 7 2 1 TOC 7 2 2 O B L ) 7 2 3 ( B U ( L D C ("<==>" ? ( " < — " ORDER " + " ) ) AG TNS TOC) 7 2 4 ( ( A G E N T ( M U S T - B E HUMAN! ) 7 2 5 AG 7 2 6 (OPT (GETR P A S S I V E ) •SOMEONE) 7 2 7 ( P A T I E N T (AND ( M U S T - B E TH(NG) (NOT ( M U S T - B E H U M A N ) ) ) ! 7 2 8 PA 7 2 9 OBL) 7 3 0 ( B U I L D Q ("< ==>" ? ••+" ("<—•• ORDER ? ) ) AG TNS P A ) ) ) 731 (OTTAWA NPR NONE N -PROP ( L O C A T I O N ) SUPERSET ( C I T Y ) O B J - S I Z E 6) 7 3 2 (OWN V 7 3 3 S - E O 7 3 4 V - M E A N 7 3 5 ( I F ( I A G E N I I AND (NUI ( M U S T - B E A B S T R A C T ) ! ( S H U U L U - B t A N I M A I t l l ) 7 3 6 AG 7 3 7 OBL 7 3 8 ( P A T I E N T T ) 7 3 9 PA 7 4 0 O B L ) 7 4 1 - ( B U I L D Q ("<= = >" 7 ("<—" P O S S E S S ? ) ) AG TNS P A ) ) ) 7 4 2 ( P A P E R N S N - P R O P ( T H I N F L A M A B L E L IGHT L I T E R A T U R E ) SUPERSET I O B J E C T ) O B J - S I Z E 1 NUM ( M A S S ) ) 7 4 3 ( P E A C H N ES N - P R O P ( E A T A B L E ) C B J - S I Z E 1 SUPERSET ( F R U I T ) ) 744 (PEANUT N S O B J - S I Z E 0) 7 4 5 ( P E A R N S N - P R O P ( E A T A B L E ) O B J - S I Z E 1 SUPERSET ( F R U I T ) ) 7 4 6 ( P E N N S N - P R O P ( W R I T I N G - I N S T R U M E N T 1 SUPERSET ( C e J E C T ) . O B J - S I Z E 1) 7 4 7 ( P E N C I L N S N - P R O P ( W R I T I N G - I N S T R U M E N T ! SUPERSET ( O B J E C T ! O B J - S I Z E 1) 7 4 8 ( P I A N O N S N - P R O P ( M U S I C A L - I N S T R U M E N T ) O B J - S I Z E 3 NUM ( M A S S ) ) 7 4 9 ( P I E N S N - P R O P (FOOD) O B J - S I Z E 1 S U P E R S E T ( F O O O ) 7 5 0 ( P I G N S N - P R O P ( A N I M A T E ! SUPERSET ( A N I M A L ) O B J - S I Z E 3) 751 ( P L A N E N S O B J - S I Z E 4 NUM (MASS) N - P R O P (CONVEYANCE M A C H I N E ) ) 7 5 2 ( P L A Y V 7 5 3 • S - E D 7 5 4 V - M E A N 7 5 5 ( I F ( (AGENT (AND ( S H O U L O - B E M U S I C I A N ) ( M U S T - B E HUMAN) ) ) 7 5 6 AG 7 5 7 (OPT (GETR P A S S I V E ) •SOMEONE) 7 5 8 ( P A T I E N T ( M U S T - B E M U S I C A L - I N S T R U M E N T ) ) 7 5 9 PA 7 6 0 ICOND H A N D (NOT F A I L - T E S T ) 1 DEFAULT ' P A T I E N T (NOUN-GET (GETR A G ) ) ) ) ) 7 6 1 (T ' O B L ) ) ) 7 6 2 (BUILOQ ("< ==>" 7 " + " ("<—" 0 0 ) ( " < - C A U S E - " (."<= = >" ? + ( " < — " EMIT 1NP IN S O U N D ) ) ) ) ) ) 7 6 3 AG 7 6 4 TNS 7 6 5 PA 7 6 6 TNS ) 7 6 7 ( ( A G E N T (AND ( S H O U L D - B E M U S I C I A N ) ( M U S T - B E H U M A N ) ) ) 768 AG 7 6 9 :OPT (GETR P A S S I V E ) 'SOMEONE) 7 7 0 ( P A T I E N T ( M U S T - B E M U S I C ) ) 7 7 1 PA 7 7 2 OBL ) 7 7 3 (BUILOO ("<==>" ? " + " (••<- -" P L A Y 7 )1 AG TNS P A ) 7 7 4 ( ( A G E N T (AND ( M U S T - B E HUMAN) ( S H 0 U L C - 8 E S P O R T S - M A N ) ) ) 7 7 5 AG 7 7 6 (OPT (GETR P A S S I V E ) 'SOMEONE) 777 ( I N D - C B J ( M U S T - B E HUMAN)) 7 7 8 C O - A 7 7 9 OPT 7 8 0 1 P A T I E N T ( M U S T - B E S P O R T ) ) 7 8 1 PA 7 8 2 (COND ( (NOT F A I L - T E S T ) (DEFAULT ' P A T I E N T (NOUN-GET (GETR A G ) ) ) ) 7 8 3 (T ' O B L ) ) ) 784 (BUILOO IS ("•< = = >") ( 7 ) I "*" ) ( ( " < — " P L A Y ? ) ) ») 7 8 5 AG 7 8 6 TNS 7 8 7 PA 7 8 8 - (PROG ( T E M P ) 7 8 9 (RETURN (CONO ( ( S E T Q TEMP (GETR C O - A l ) 7 9 0 ( L I S T ( L ( S T ' " < - C O - A G E N T - " I S O F T - N O U N - L I S T - G E T ( N P - B U I L O T E M P ) ) ! ) ) ) ) ) ) 791 ( (AGENT ( M U S T - B E AN [MATE) ) AG O B L ) 7 9 2 ( B U I L D Q ("<*=>" 7 793 "+" 7 9 4 ( " < - - " 0 0 ) 7 9 5 ( " < - C A U S E - " ("<==>" 7 ("<—" H A V E - P R O P E N T E R T A I N E D ) ) ) ) 7 9 6 AG 797 TNS 798 AG 799 TNS) 8 0 0 ( ( A G E N T ( M U S T - B E M U S ( O ) PA C B L ) BO 1 ( B U I L O O ("< = ->•• SOMEONE • [••<—'• PLAY ?) ) TNS P A ) ) ) B02 ( P L A Y N S N - P R O P ( L I T E R A T U R E ) SUPERSET (BOCK) O B J - S I Z E 1) 8 0 3 (PLUM N S N -PR IJP ( E A T A B L E ) O I I J - S I Z E I S U P E H S F I ( F R U I T ) ) H0<> (POP N S N - P R O P ( L I Q U I D ) SUPERSET ( B E V E R A G E ) NUM ( M A S S ) I 8 0 5 (PORTUGAL NPR NONE N -PROP ( L O C A T I O N ) SUPERSET (COUNTRY) O B J - S I Z E «) 806 ( P U S S E S S V B07 E S - E D B08 V - M E A N , -, 809 ( I F ( ( A G E N T (AND (NOT ( M U S T - B E A B S T R A C T ) ) ( S H O U L D - B E A N I M A T E ) ) ) 810 AG 311 OBL B12 ( P A T I E N T T ) 8 1 3 PA 814 O B L ) B15 ( B U I L D Q («<==>" ? " + » (•><—" P O S S E S S ? ) ) AG TNS P A ) 8 1 6 ( ( P A T ( E N T I AND ( S H O U L D - U E HUMAN) 1 M U S T - B E A N I M A T E ) ) ) PA OBL (AGENT T) AG D E V I L ) 8 1 7 ( B U I L D C ("< = = >" ? (••< — •• CONTRCL (N MIND ( " < - P C S S - B Y - " ? ) ) ) ) AG TNS P A ) ) ) 818 (POTATO N S N - P R O P ( E A T A B L E ) SUPERSET ( V E G E T A B L E ) O B J - S I Z E II 8 1 9 (POUND N S O B J - S I Z E 0 N -PROP ( Q U A N T I T Y ) ) 8 2 0 (PRAGUE NPR NONE N - P R O P (LOCATION) SUPERSET ! C ( T Y ) O B J - S I Z E 6 ) 821 ( O U I E T ADJ E R - E S T ) 8 2 2 ( Q U I L L N S N - P R O P ( A N I M A L - P A R T W R I T I N G - I N S T R U M E N T ) SUPERSET ( O B J E C T ) O B J - S I Z E 1) 8 2 3 ( R A D I S H N ES N - P R O P ( E A T A B L E ) SUPERSET ( V E G E T A B L E ) O B J - S I Z E I ) 824 (RAN V (RUN (TNS P A S T ) (PART P A S T P A R T ) ) ) 8 2 5 (RAY NPR * N - P K O P (HUMAN M A L E ) SUPERSET (MAN) O e j - S I Z E 3) 8 2 6 (RED AOJ E R - E S T ) B27 ( R I C H A R D NPR * N - P R O P (HUMAN MALE) S U P E R S E T (VAN) O B J - S I Z E 3) 828 ( R I V E R N S N - P R O P (CONVEYOR WATER) SUPERSET ( T H I N G ) O B J - S I Z E 5 NUM (MASS) ) 829 (ROAD N S N - P R O P (CONVEYOR) SUPERSET ( T H I N G ) O B J - S I Z E 5 NUM ( M A S S ) ) 830 (ROOF N S O B J - S I Z E 3) 8 3 1 (ROOM N S N - P R O P ( P L A C E L O C A T I O N CONTA(NER) SUPERSET ( B U I L D I N G TH(NG) O B J - S I Z E 4) 8 3 2 (ROOSTER N S N - P R C P ( M A L E A N I M A T E ) SUPERSET ( A N I M A L ) O B J - S I Z E 3) 8 3 3 (RUN V 8 3 4 IRR 8 3 5 P R E P - C A S E ( ( W I T H W I T H ) ) 8 3 6 F E A T U R E S 8 3 7 (TRANS I N T R A N S ) 8 3 8 P R E P - C A S E 8 3 9 ( ( B Y PATH METHOD)) 8 4 0 V - M E A N 8 4 1 ( I F ( ( A G E N T ( M U S T - B E A N I M A T E ) ) 842 AG 8 4 3 OBL 8 4 4 I P R E P - C A S E - L O O K ' ( D E S T I N A T I O N ) ' ( ( T O INTO ONTO TCWARD TOWARDS)) T ) 8 4 5 DEST 8 4 6 S O M E P L A C E 8 4 7 ( P R E P - C A S E - L O O K ' ( S O U R C E ) ' ( ( F R O M ) ) T ) 8 4 8 SRC 8 4 9 ( R U N - S O U R C E ? ) ) 8 5 0 ( B U I L D Q ("<==>" 7 8 5 1 •• + " 8 5 2 ( " < — " MOVE ( " < - A D V - " Q U I C K L Y ) ) 8 5 3 ' ( " < - M A N N E R - " BY (N FOOT (NUMBER P L ) ) ) 8 5 4 ( " < - S O U R C E - " ? ) 8 5 5 ( " < - D E S T I N A T I O N — " ? ) ) 8 5 6 AG 8 5 7 TNS 8 5 8 SOU 8 5 9 DEST) 8 6 0 ( ( A G E N T ( M U S T - B E M A C H I N E ) ) AG O B L ) 861 ( B U I L O O ("<==>" SOMEONE 8 6 2 " • " 8 6 3 ( " < — " DO) 8 6 4 1 " < - C A U S E - " ("<==>" 7 (3 ( » < - - " FUNCTION) 0 1 ) ) ) 8 6 5 TNS 8 6 6 AG 8 6 7 TNS 8 6 8 ( S T A R T - L I S T ' " < - A D V - " ( S T A R T - L I S T ' V P S E N T E N C E ) ) ) ) ) 8 6 9 (RUNNING V (KUN (PART P R E S P A R T ) ) ) 8 7 0 (RUNS V (RUN (TNS P R E S E N T ) (PNCOOE " 3 S G " ) ) ) 871 ( R U S S I A NPR NONE N - P R O P ( L O C A T I O N ) S U P E R S E T (COUNTRY) O B J - S I Z E 8 ) 8 7 2 ( S A D N E S S N NONE N - P R O P ( A B S T R A C T ) ) 8 7 3 ( S A L L Y NPR * N - P R O P (HUMAN F E M A L E ) SUPERSET (WOMAN) O B J - S I Z E 3) 8 7 4 ( S A L Z B U R G NPR NONE N - P R O P ( L O C A T I C N ) SUPERSET ( C I T Y ) C B J - S I Z E 6 ) 875 ( S A T I S F A C T I O N N NONE N - P R D P ( A B S T R A C T ) ) 8 7 6 (SCHOOL N S N - P R O P ( P L A C E L O C A T I O N SCHOOL) O B J - S I Z E 5 SUPERSET ( T H I N G ) ) 8 7 7 (SECOND ORDINAL TWO AOV *) 8 7 8 ( S E E V 8 7 9 IRR 8 8 0 P R E P - C A S E ( ( W I T H I N S T R U M E N T ) ) 881 V - M E A N 8 8 2 ( I F ( ( A G E N T ( M U S T - B E A N ( M A T E ) ) AG (OPT • (GETR P A S S I V E ) 'SOMEONE) ( P A T I E N T T) PA OBL) 8 8 3 ( B U I L D Q ("<==>" » " + " I •'<—•• SEE «) ) ( N C U N - P U T AG) TNS ( N O U N - P L T P A ) ) ) ) 884 ( S E L L V 8 8 5 IRR 8 8 6 TO-COMP 887 T 888 - V - M E A N 8 8 9 ( I F ( ( A G E N T ( M U S T - B E HUMAN)) 8 9 0 AG 891 (OPT ' ( G E T R P A S S I V E ) •SOMEONE) 8 9 2 ( P A T I E N T (NOT ( S H O U L O - B E H U M A N ) ) ) 8 9 3 PA 894 SOMETHING 8 9 5 ( P R E P - C A S E - L O O K ' ( E X C H A N G E ) ' ( ( F O R ) ) •( SHOULD-8F. -M0NF.Y ! ) 896 EX 897 MONEY 8 9 8 (OR ( 1 N 0 - C B J ( S H O U L O - B E HUMAN O R G A N I Z A T I O N ) ) 899 ( P R E P - C A S E - L O O K ' ( R E C ( P 1 E N I I ' ( ( 1 0 1 ) ' ( S H O U L D - B E HUMAN O R G A N I Z A T I O N ) ) ) 900 REC S O M E O N E ( P R E P - C A S E H E N ( G E T R A C ) ! I B U I I . D Q ("< = = > ( " ( — " T R A N S F E R ( " < - S O U R C E - " ?) ( " < - R E C I P I 1 - N T - " ? ) ( " ( - E X C H A N G E - " ? l I AG T N S P A B E N R E C E X ) ) ) V ( S E L L I P A R T P R E S P A R T ) ) I ( S E L L ( T N S P R E S E N T ) ) ) ( S E V E N NUMBER *) ( S E V E N T H O R D I N A L S E V E N A O V » ) ( S H A L L MODAL *) ( S H R U B N S N - P R O P ( V E G E T A T I O N ) O B J - S I Z E ( S I D E N S NUM ( M A S S ) ) ( S I L E N T A D J E R - E S T ) ( S I X NUMBER * ) ADV *) L O O K ' ( B E N E F I C I A R Y ) M ( F C R ) ) M S I i O U L D - B E HUMAN O R G A N I Z A T I O N ) ) I S E L L I N G ( S E L L S V 3 S U P E R S E T ( O B J E C T ) ) ( S I X T H O R D I N A L S I X ( S L O W ADV E R - E S T ) ( S M A L L A D J E R - E S T ) ( S O P R E P *) ( S O F T A D J E R - E S T ) ( S O L D V ( S E L L ( T N S P A S T I ( P A R T P A S T P A R T ) ) ) ( S O M E Q U A N T I F I E R « ) ( S O M E O N E GEN PRO * N - P R O P ( H U M A N ) ) ( S O N A T A N S S U P E R S E T ( M U S I C ) N - P R C P ( M U S I C ! ) ( S O O N ADV * A D V - P R O P ( T I M E ) ) ( S O U N D N S S U P E R S E T ( N O I S E ) N - P R O P ( N O I S E ) ) NPR N O N E N - P R O P ( L O C A T I O N ) S U P E R S E T ( C O U N T R Y ) O B J - S I Z E 8) N S S U P E R S E T ( U T E N S I L ) O B J - S I Z E I ) . N S O B J - S I Z E 3 ) . V I RR P R E P - C A S E ( ( W I T H W I T H ) ) T O - C O M P T V - M E A N ( I F ( ( A G E N T ( S H O U L D - B E A N I M A T E ) ) AG O B L ( P R E P - C A S E - L O O K ' ( D E S T I N A T I O N P A T H ) ' ( ( I N T O ( S P A I N ( S P O O N ( S T A C K ( S T E A L TO O N T C TOWARD T O W A R D S ) ( B Y A B O U T B E S I D E A L O N G UP DCWN AROUND A C R O S S ) ) ( M U S T - B E H U M A N ) ) ( S H O U L D - B E P L A C E L O C A T I O N ) ) ) M O V E ( " < - A D V - S T E A L T H I L Y ) ) +) AG T N S O E S T ) • ( AND ( N O T D E S T O B L ) ( B U I L D Q ("<—>" ? " + '* < " < - -( ( A G E N T ( M U S T - B E H U M A N ) ) AG I OPT ' ( G E T R P A S S I V E ) • S O M E O N E ) ( P A T I E N T ( N O T ( S H O U L D - B E HUMAN A B S T R A C T ) ) ) PA S O M E T H I N G (OR ( I N D - O B J ( S H O U L D - B E H U M A N ) ) I P R E P - C A S E - L O O K ' ( R E C I P I E N T ) R E C ( G E T R A G ) I P R E P - C A S E - L O O K ' ( S O U R C E ) ' ( ( F R O M ) ) ' ( S H G U L D - B E HUMAN O R G A N I Z A T I O N P L A C E ) ) SOU S O M E P L A C E ) ( B U I L D Q ("<= ( ( F O R ) ) M S H O U L C - B E HUMAN O R G A N I Z A T I O N ) ) ) ?! ?) N O T H I N G ) 1 ? ( . .<__. . T R A N S F E R ( " < - S C U R C E - " ?l ( " ( - R E C I P I E N T - " 1 " ( - E X C H A N G E - " A G T N S PA SOU R E C ) ) ) ( S T E A L I N G V ( S T E A L ( P A R T P R E S P A R T ) ) ) ( S T E A L S V ( S T E A L ( T N S P R E S E N T ) ) ) ( S T O L E V ( S T E A L ( T N S P A S T ) ) ) ( S T O L E N V ( S T E A L ( P A R T P A S T P A R T ) ) ) ( S T O R Y N E S N - P R O P ( L I T E R A T U R E ) S U P E R S E T ( B O O K ) C B J - S I Z E 1) I ST R A N G E ADJ E R - E S T ) ( S T U P I D A D J E R - E S T ) ( S U P P O R T N S O B J - S I Z E 3) ( S t ) P R I S I N G L Y ADV *) ( S Y M P H O N Y N S S U P E R S E T ( M U S I C ) N - P R O P ( M U S I C ) ) ( T A B L E N S O B J - S I Z E 31 ( T A K E V IRR F E A T U R E S ( T R A N S ) P R E P - C A S E ( ( T O R E C I P I E N T ) ( F R O M S O U R C E ) ( B Y M A N N E R ) ( W I T H I N S T R U M E N T ) ( I N T O D E S T I N A T I O N ) ) V - M E A N ( I F ( ( A G E N T ( M U S T - B E A N I M A T E D AG (OPT ( G E T R P A S S I V E ) ' S O M E O N E ) ( P A T I E N T T ) PA ODL ( P R E P - C A S E - L O O K • • ( R E C I P I E N T ) ' ( ( T O D ' ( M U S T - B E HUMAN) ) 1001 R E C 1 0 0 2 OBL 1 0 0 3 ( P R E P - C A S E - L O O K ' ( S O U R C E ) ' ( ( F R O M ) ) M M U S T - B E P L A C E L O C A T I O N I U M A N C O N T A I N E R ) ) 1004 SOU 1 0 0 5 (COMO ( I W H E R E - I S ( G E T R P A ) ) ) 1 0 0 6 ( T ' S O M E P L A C E ) ) ) 1007 ( B U I L O Q ("< = = >" ? " • " ("< — T R A N S F E R ?) ( " < - S O U R C E - " 7 ) I " < - R C CI PI EN T - " 7 1 ) 1 0 0 8 AG ' i 1 0 0 9 T N S 1 0 1 0 P A 1011 SOU 1012 R E C ) 1 0 1 3 ( ( A G E N T ( M U S T - O E A N I M A T E ) ) 1 0 1 4 AG 1 0 1 5 OB.L 1 0 1 6 ( P A T I E N T T ) 1 0 1 7 PA 1 0 1 8 OBL 1 0 1 9 ( P R E P - C A S E - L O O K ' ( S O U R C E ) ' ( ( F R O M ) ) M M U S T - B E HUMAN C O N T A I N E R P L A C E L O C A T I O N ) ) 1 0 2 0 SOU 1021 (COND ( I W H E R E - I S ( G E T R P A ) ) ) 1 0 2 2 (T • S O M E P L A C E ) ) 1 0 2 3 (NOT ( P R E P - C A S E - L O O K ' ( R E C I P I E N T ) ' ( ( T O ) ) M M U S T - B E HUMAN) ) ) 1 0 2 4 R E C 1 0 2 5 O B L ) 1 0 2 6 ( B U I L D Q ["< = = >" 7 " • " ( "< — •• T R A N S F E R 7) ( " < - S O U R C E - " ? ) ( " ( - R E C I P I E N T - " ? ) ) 1 0 2 7 A G 1 0 2 8 T N S 1 0 2 9 PA 1 0 3 0 S C U 1031 A G ) 1 0 3 2 ( ( A G E N T ( M U S T - B E A N I M A T E ) ) 1 0 3 3 AG 1 0 3 4 ( O P T ( G E T R P A S S I V E ) • S O M E O N E ) 1 0 3 5 ( P A T I E N T T ) 1 0 3 6 P A 1 0 3 7 O B L 1 0 3 8 ( P R E P - C A S E - L O O K ' ( D E S T I N A T I O N ) 1 0 3 9 ' ( ( T O TOWARD TOWARDS NEAR B E S I D E I N T O O N T O ) ) 1 0 4 0 M M U S T - B E P L A C E L O C A T I O N ) ) 1 0 4 1 D E S T 1 0 4 2 C B L 1 0 4 3 ( P R E P - C A S E - L O O K • ( S O U R C E ) ' ( ( F R O M ) ) T ) 1 0 4 4 SOU 1 0 4 5 (CONO ( ( W H E R E - I S ( G E T R P A ) ) ) 1 0 4 6 ( T ' S O M E P L A C E ) ) ) 1 0 4 7 ( B U I L O Q ("<==>" ? ( " < — " T R A N S F E R ?) ( " ( - S O U R C E - " ? ) ( " < - C E S T I NAT I O N - " ? ) ) 1 0 4 8 AG 1 0 4 9 T N S 1 0 5 0 PA 1 0 5 1 S C U 1 0 5 2 . D E S T ) ) ) 1 0 5 3 ( T A K E N V ( T A K E ( P A R T P A S T P A R T ) ) ) 1 0 5 4 ( T A K E S V ( T A K E ( T N S P R E S E N T ) ( P N C O O E " 3 S G " ) ) ) 1 0 5 5 ( T A K I N G V ( T A K E ( P A R T P R E S P A R T ) ) ) 1 0 5 6 ( T E A N S N - P R O P ( L I Q U I D ) S U P E R S E T ( B E V E R A G E ) NUM ( M A S S ) ) 1 0 5 7 ( T E N NUMBER *) 1 0 5 8 ( T E N T H O R D I N A L T E N ADV * ) 1 0 5 9 ( T E R R Y NPR * N - P R O P ( H U M A N M A L E ) S U P E R S E T (MAN) C B J - S I Z E 3 ) 1 0 6 0 ( T H A N * *) 1061 ( T H A T DET * PRO ( T H A T ( S U B J ) ( O B J ) ( N U M B E R S G ) ) ) 1 0 6 2 ( T H E D E T *) 1 0 6 3 ( T H E M PRO ( T H A T ( S U B J ) ( O B J ) I NUMBER P L ) ) ) 1 0 6 4 ( T H E R E AOV * A O V - P R C P ( L O C A T I O N ) I 1 0 6 5 ( T H E S E PRO ( T H I S ( S U 8 J ) ( O B J ) ( N U M B E R P L ) ) ) 1 0 6 6 ( T H I N G N S ) 1 0 6 7 ( T H I R D O R D I N A L T H R E E ADV *) 1 0 6 8 ( T H I S PRO ( T h I S ( S U B J ) ( O B J ) ( N U M B E R S G ) ) ) 1 0 6 9 ( T H O S E PRO ( T H A T ( S U B J ) ( O B J ) ( N U M B E R P L ) ) ) 1 0 7 0 ( T H R E E NUMBER *) 1071 ( T I G E R N S N - P R O P ( A N I M A T E ) S U P E R S E T ( A N I M A L ) O B J - S I Z E 3) 1 0 7 2 ( T O P R E P ( T O A D V ) ) 1 0 7 3 ( T O P R E P *> 1 0 7 4 ( T O D A Y ADV * A D V - P R O P ( T I M E ) ) 1 0 7 5 ( T O M NPR * N - P R O P ( H U M A N M A L E ) S U P E R S E T ( M A N ) O B J - S I Z E 3) 1 0 7 6 ( T O M A T O N ES N - P R O P ( E A T A B L E ) S U P E R S E T ( V E G E T A B L E ) O B J - S I Z E 1) 1 0 7 7 (TOMORROW ADV • A C V - P R O P ( T I M E ) ) 1 0 7 8 ( T O O K V ( T A K E ( T N S P A S T ) ) ) 1 0 7 9 ( T O O L N S S U P E R S E T ( O B J E C T ) O B J - S I Z E 1) 1 0 B 0 ( T O P N S NUM ( M A S S ) ) 1081 ( T O R O N T O NPR NONE N - P R O P ( L O C A T I O N ) S U P E R S E T ( C I T Y ) O B J - S I Z E 6 ) 1082 (TOWARD P R E P *) 1 0 8 3 (TOWAROS P R E P *) 1 0 8 4 ( T R A I N N S O B J - S I Z E 4 NUM ( M A S S ) N - P R O P ( C O N V E Y A N C E M A C H I N E ) ) 1 0 8 5 ( T R E E N S N - P R O P ( V E G E T A T I O N ) O B J - S I Z E 4 S U P E R S E T ( O B J E C T ) ) 1 0 B 6 ( T R O M B O N E N S N - P R O P ( M U S I C A L - I N S T R U M E N T ) O l U - S I Z E 2 NUM ( M A S S ) ) 1 0 8 7 ( T U R N I P N S N - P R O P ( E A T A B L E ) S U P E R S E T ( V E G E T A B L E ) O B J - S I Z E I) 1 0 8 8 (Tf iO NUMBER *) 1089 ( U B C N NONE N - P R O P ( U N I V E R S I T Y L O C A T I O N I O B J - S I Z E 5 S U P E R S E T ( U N I V E R S I T Y ) ) 1 0 9 0 ( U G L I N E S S N NONE N - P R O P ( A B S T R A C T ) ) 1091 ( U N C O V E R V S - E D ) 1092 ( U N D E R P R E P ( U N D E R AOV A O J I ) 1 0 9 3 ( U N D E R P R E P *) 1094 ( U N E A S I N E S S N NONE N - P R O P ( A B S T R A C T ) ) 1 0 9 5 IUNMAPKINtbS N NUNt N-PKUP ( A B S I R A C I I I 1096 ( U N I V E R S I Y N ES N - P R O P ( P L A C E L O C A T I O N S C H O O L ) O B J - S I Z E 5 S U P E R S E T ( S C H O O L ) ! ' 1 0 9 7 ( U P P A R T * ) 1098 ( U P P R E P * P A R T I C L E T ) 1 0 9 9 ( U P O N P R E P * I 1 1 0 0 ( U S A NPR NUNC N - P R U P ( L O C A T I O N ) S U P E H S E f ( C O U N T R Y ) O B J - S I Z E 0) 1101 ( U S S R NPR NUNE N - P R C P ( L O C A T I O N ) S U P E R S E T ( C O U N T R Y ) O B J - S I Z E 8) 1102 ( U T E N S I L N S S U P E R S E T ( T O O L ) O B J - S I Z f c I I 1 1 0 3 ( V A N C O U V E R NPR NONE N - P R O P ( L O C A T I O N ) S U P E R S E T ( C I T Y ) O B J - S I Z E 6) l i d I V E N G E N C E N NONE N - P R C P ( A B S T R A C T ) ) 1105 ( V E R Y AOV * l 1 1 0 6 ( V I E N N A NPR * N - P R O P ' ( P L A C E C O U N T R Y L I J C A I I O N ) O B J - S I Z E A) 1107 ( V I N C E NPR * N - P R C P ( H U M A N M A L E ) S .UPERSEI ( M A N ) O B J - S I Z E 3 ) 1108 ( V I N E N S N - P R O P ( V E G E T A T I O N ) O B J - S I Z E J S U P E R S E T ( O B J E C T ) ) 1 1 0 9 (WANT T O - C O M P 1 1 1 0 T 1111 T H A T - C O M P 1112 T 1 1 1 3 V 1 1 1 * S - E D 1 1 1 5 V - M E A N ' 1 1 1 6 ( I F ( ( A G E N T ( M U S T - B E A N I M A T E ) ) 1 1 1 7 AG 1 1 1 8 ( O P T ( G E T R P A S S I V E ) • S O M E O N E ) 1 1 1 9 ( P A T I E N T ( M U S T - B E T H I N G ) ) 1 1 2 0 PA 1121 O B L ) 1122 ( B U I L D Q (•'< = = >" S O M E O N E 1 1 2 3 F U T U R E 1 1 2 4 (•!<__•• T R A N S F E R 7) 1 1 2 5 ( " ( - S O U R C E - 1 1 *) 1 1 2 6 ( R E C I P I E N T 7) 1 1 2 7 1 " < - C A U S E - " ( » < = = > « ? F U T U R E ( " < — " H A V E - P R O P PL E A S E O ) ) ) ) 1 1 2 8 P A 1 1 2 9 ( C O N D ( ( N O U N - L I S T - G E T ( W H E R E - I S ( G E T R P A ) ) ) ) 1 1 3 0 ( T ' S O M E P L A C E ) ) 1 1 3 1 A G 1 1 3 2 A C ) 1 1 3 3 ( ( A G E N T I M U S T - B E A N I M A T E ) ) 1 1 3 4 AG 1 1 3 5 ( O P T ( G E T R P A S S I V E ) • S O M E O N E ) 1 1 3 6 ( T O - C O M P ( G E T R A G ) ) 1 1 3 7 PA 1 1 3 8 O B L ) 1 1 3 9 ( B U I L D Q ("<= = >" •• + " ( " < - C A U S E - " (••< = = >" ? F U T U R E (•'< — " H A V E - PROP P L E A S E D ) ) ) ) PA A G ) 1 1 4 0 ( ( A G E N T ( M U S T - B E A N I M A T E ) ) 1141 AG 1 1 4 2 ( O P T ( G E T R P A S S I V E ) • S O M E O N E ) 1 1 4 3 ( P A T I E N T ( M U S T - B E T H I N G ) ) 1 1 4 4 PA 1 1 4 5 OBL 1 1 4 6 ( T O - C O M P ( G E T R P A ) ) 1 1 4 7 T O C 1 1 4 8 O B L ) 1 1 4 9 ( B U I L D Q ("<==>" " + " ( " < - C A U S E - " ("<==>" ? F U T U R E ( " < — " H A V E - P R O P P L E A S E D ) ) ) ) 1 1 5 0 T C C 1 1 5 1 A G ) ) ) 1 1 5 2 (WAS V ( B E ( T N S P A S T ) ) ) 1 1 5 3 ( W E L L AOV I R R ) 1154 (WENT V (GO ( T N S P A S T ) ) ) 1 1 5 5 (WHAT Q D E T * ) 1 1 5 6 ( W H E R E Q D E T * A D J *) 1 1 5 7 ( W H I C H Q D E T * R E L P R O T ) 1 1 5 8 ( W H I L E P R E P *) 1 1 5 9 (WHO Q D E T * R E L P R O T ) 1 1 6 0 (WHY Q D E T *) 1161 ( W I F E N IRR O B J - S I Z E 3 N - P R O P ( F E M A L E H U M A N ) S U P E R S E T ( W O M A N ) ) 1162 ( W I L L MODAL *) 1 1 6 3 (WINDOW N S N - P R O P ( P L A C E L O C A T I O N ) S U P E R S E T ( O B J E C T ) O B J - S I Z E 2) 1 1 6 4 ( W I N E N S N - P R O P ( L I Q U I D A L C O H C L I C ) S U P E R S E T ( B E V E R A G E ) MUM ( M A S S ) ) 1 1 6 5 ( W I T N S ) 1 1 6 6 ( W I T H P R E P ( W I T H AOV A O J ) ) 1 1 6 7 (WOMAN N IRR S U P E R S E T ( A N I M A L ) N - P R C P ( A N I M A T E HUMAN F E M A L E ) O B J - S I Z E 3 ) 1 1 6 8 (WOMEN N (WOMAN (NUMBER P L ) ) ) 1 1 6 9 (WORLD N S N - P R O P ( P L A C E L O C A T I O N E A R T H ) S U P E R S E T ( P L A N E T O B J E C T ) O B J - S I Z E l'O) 1 1 7 0 (WORSE A D J ( B A D ( C O M P A R A T I V E ) ) ) 1171 (WORST A D J ( B A D ( S U P E R L A T I V E ) ) ) 1172 (WOULD MODAL *) 1 1 7 3 ( W R I T E T H A T - C O M P 1 1 7 4 T 1 1 7 5 T O - C O M P 1 1 7 6 T 1 1 7 7 P R E P - C A S E 1178 ( ( O F T O P I C M W I T H I N S T R U M E N T ) ) 1 1 7 9 V 1 1 8 0 IRR 1181 V - M E A N 1 1 8 2 I IF ( ( A G E N T (AND ( M U S T - B E HUMAN) ( S H O U L D - B E C O M P O S E R ) ) ) 1 1 8 3 AG 1184 (OPT ( G E T R P A S S I V E ) 1 S O M E O N E ) 1 1 8 5 ( P A T I E N T ( M U S T - B E M U S I C L I T E R A T U R E ) ) 1 1 8 6 PA 1 1 8 7 - (OR ( D E F A U L T ' P A T I E N T ' ( N O U N - G E T ( G E T R A G ) ) ) 1 1 8 8 ' ( N P N I L ( O E T A ) ( N L E T T E R ( N U M B E R S G ) ) ) ) 1 1 8 9 ( I N O - O B J ( M U S T - B E H U M A N ) ) 1 1 9 0 IND 1191 O P T ) 1 1 9 2 ( B U I L D Q (3 ("< = = >") ( ? ) (" + ") ( ( " < — " » ? ( ) II) 1 1 9 3 AG 1 1 9 4 INS 1 1 9 5 ( W R I T E 7 ( G E T R P A ) ) 1 1 9 6 PA 1 1 9 7 (WR I T E - I N D - O B J ( G E T R I N D ) ( G E T R P A D ) ) ) 1 1 9 8 ( W R I T E S V ( W R I T E ( T N S P R E S E N T ) ) ) 119.9 ( W R I T I N G V ( W R I T E ( I N S P R E S E N T ) ( P A R I P R E S P A R T ) ) ) ( W R I T T E N V ( W R I T E l l ' A R T P A S T P A R T ) ) I ( W R O T E V ( W R I T E ( T N S P A S T ) ) ) ( Y E A R N S N - P R O P ( T I M E ) S U P E R S E T ( T I M E ! ) ( Y E L L O W A O J E R - E S T ) ( Y E S T E R O A Y AUV * A D V - P R O P ( T I M E D ( Y C U PRO ( Y O U I S U B J ) ( O l i J I (NUMBER S C - P L ) ) ) ( Y O U N G AO J E R - E S T ) . - , ( Y O U R PRO ( Y O U (NUMBER S C - P L ) ( P O S S E S 1 V E ) ) P E R S O N A L T) ( Y O U T H N S N - P R O P (HUMAN T I M E ) S U P E R S E T ( T I M E MAN WOMAN) O B J - S I Z E 3 NUM ( M A S S ) ) ( " 1 8 0 5 " N NONE N - P R L P ( Y E A R T [ M £ ) I ( " 1 9 7 ' . " N NONE N - P R O P ( Y E A R T I M E ) ) ' ( " 3 2 7 0 " N S O B J - S I Z E 3 NUM I M A S S ) N - P R O P ( M A C H I N E ) ) N I L 95 APPENDIX V: The Code The code f o r t h i s system i s presented here i n f o u r p a r t s . The f i r s t i s the main p a r t of the system: the c a s e - a n a l y s i s code. The r o u t i n e s are i n a l p h a b e t i c o r d e r . The next part i s the ATN grammar. T h i s s t a r t s on page 129. The t h i r d p a r t i s on page 137, and i s j u s t a few a u x i l i a r y r o u t i n e s . F i n a l y i s l i s t e d the ATN pars e r which was w r i t t e n by Dr. Raymond R e i t e r at UBC., i l D E F U N ADJ-LISr N E X P R ( T E S I ) i; T H I S . I S A C A S E OF T H E V E R B " T O B E " . IT H A N D L E S : lb ; " H E IS B I G . " AND " H E IS S M A L L E R T H A T F R E D . " ( P R O G I T E S T E E K - S F T R E T ) ( S E T O K - S K E E P - S E N T) L O U P ( C O N D ( ( N U L L K - S ) (COND ( F T ( S E T Q F A I L - T E S T T F A I L - T E S T - L I S T ( A P P E N D ( L I S T ' A D . I - L I S T ) F A I L - T E S T - L 1 S T ) ) ) ) ( R E T U R N M I L ) ) ( ( A N D ( EO ( C A A R K - S ) 1 " < - A D . ) - " ) ( N O T ( C A O A R K - S ) ) ( S E T O T E S T E E (CAR K - S ) ) ( S E T O F T T ) ( E V A L T E S T ) ) ( F L A G - O N T E S T E E K E E P - S E N T T ) ( C O N O H A N D ( E Q ( C A A R ( S E T O K - S (CDR K - S ) ) ) • T H A N - P H ) ( E O ' C O M P A R A T I V E (CAOR ( S T A R T - L I S T ' C O M P - S U P T E S T E E ) ) ) ) ( D E L E T E ' ( C O M P - S U P C O M P A R A T I V E ) T E S T E E ) ( R P L A C O ( E N D - L I S T T E S T E E ) ( L I S T ( L I S T • " < - C O M P A R E D - T O - " ( N O U N - L I S T - G E T ( C O P Y ( S U P E R - N P - B U I L D ( C O P Y ( C A R K - S ) ) ) ) ) ) ) ) ( F L A G - O N ( C A R K - S ) K E E P - S E N T T ) ) ) ( R E T U R N ( C U D R T E S T E E ) I ) IT ( S E T Q K - S (CDR K - S ' ) ) (GO L O O P ) ) ' ) ) ) ( D E F U N A D J T Y P E N E X P R (Z> [ E Q ( G E T NEW-WORD • A D J ) Z)> ( D E F U N A D V - M O D ? ( P A R T T E S T K A S E ) ; T H I S WORKS OUT A O V E R R I A L M O D I F I C A T I O N S : ; " H E C A M E Y E S T E R D A Y . " " H E WENT T H E R E . " ( P R O G I T E M P ) ( C O N D ( ( A N D ( M E M B E R ' T I M E ( S E T Q T E M P ( G E T ( C A D D R P A R T I ' A D V - P R O P ) ) ) ( E V A L T E S T ) ) ( S E T Q F N M R P L A C D ( E N D - L I S T ( F I N D - L I S T S T R U C T •"<==>")) ( L I S T S T R C T ) ) MOD ( P H R A S C - N U U ' V P K E E P - S E N T ) ) ( L I S T • " < - I I M E - " (CADDR P A R T ) ) ) ( ( M E M B E R ' L O C A T I O N T E M P ) ( A D V - L O C PAR T T E S T K A S E ) I ( T ( S E T Q F N M R P L A C D ( E N D - L I S T ( F I N D - L I S T S T R U C T "•<= = >")> ( L I S T S T R C T ) ) MOD ( P H R A S E - N U M ' V P K E E P - S E N T ) ) ( C O N S ( C A R ( C O P Y P A R T I ) (CDDR P A R T ) ) ) ) ) ) ( D E F U N A D V - L O C ( P A R T T E S T K A S E ) T H I S R O U T I N E T R I E S TO R E S O L V E R E F E R E N C E S I N V O L V I N G " H E R E " AND " T H E R E " . ( P R O G ( T E M P AD R E T ) ( ( N O T (MEMBER 1 C A O O R P A R T ) ' ( T H E R E H E R E ) ) ) ( R E T U R N N I L ) ) ) ( ( Z E R O P ANA P H O R - O E P T H ) ( S E T Q AN A P H O R - D E P T H £ ) ' ) ) AD A N A P H O R - D E P T H I ( C O N D (COND ( S E T Q L O O P (CONO ( ( A N D ( N O T ( N U L L ' K A S E ) ) ( S E T Q T E M P (C AS E - A N A P HOR K A S E P A R T T E S T ) ) ) ( F L A G - O N P A R T K E E P - S E N T ( S E T Q R E T ( L I S T ( M A K E - A R R O W K A S E ) ( N O U N - L I S T - G E T T E M P ) ) ) ) ( S E T - U P - F N K A S E N I L ) ( R E TURN R E T ) ) ' I I S E T U T E M P ( A N A P H O R I C ' L O C A T I O N T E S T A N A P H O R - D E P T H (CDR P A R T ) ) ) ( F L A G - O N P A R T K E E P - S E N T ( S E T Q RET (COND ( ( G E T (CAR T E M P ) ' P R E P ) ( L I S T ' " < - L O C - " ( C A R T E M P ) ( N O U N - L I S T - G E T T E M P ) ) ) ( T ( L I S T , " < - L O C - " T E M P ) ) ) ) ) ( S E T O A N A P H C R - D E P T H -AO F N M R P L A C D ( E N D - L I S T ( F I N D - L I S T S T R U C T • " < " > " ) ) ( L I S T S T R C T ) ) NUM I P H R A S E - N U M ' V P K E E P - S E N T ) ) ( R E T U R N R E T ) ) ( ( L E S S P A N A P H O R - D E P T I I ) ( S E T Q AN A P H O R - D E P T H ( A D U l A N A P H O R - D E P T H I ) (GO L O O P ) ) IT ( P K I N 1 ""I C A N N O T R E S O L V E YOUR R E F E R E N C E T O " ) ( P R I NI ( CAUUIl P A R T ) ) ( T ER PR I ) ( P R I N T " ' I S H A L L C O N T I N U E A N Y W A Y . " ) ( F L A G - O N P A R I K E E P - S E N T ( S E T C R E T ( L I S T • * ' < - L O C - " • SOM E P L AC E ) 1 1 ( S E T U AN API 1 0 R - D E P TH Al) F N M R P L A C D ( E N O - L I S T ( F I N D - L I S T S T R U C T •"<==>")) ( L I S T S T R C T ) ) MOD ( P H R A S E - N U M ' V P K E E P - S E N T ) ) ( R E T U R N R E T ) ) ) ) ) . ( D E F U N A F T C R - A N D - M O O ? ( P R E P NN) ( L E S S P I P H K A S E - N U M ' V P K E E P - S E N T ) N N D ( D E F U N A G E N T N E X P R A G E N T F I N D S THE IK T H E S E N T E N C E P H R A S E S S T A R T I N G IF T H E S E N T E N C E T H E S E N T E N C E TO BE C O R R E C I E D T U ( T E S T ) A G E N T C A S E I S P A S S I V E , W I T H " B Y " I S N O T P A S B E T H E A G E M A K E A G E N T IT C A L L S P A S S I V E - A G E N T W I T H A L.I ST OF A L L OF T H E F I R S T NOUN P H R A S E OF 5 I V E I T T A K E • I T . T H I S I S A M A J O R M O R E I N T E L L E G E N T . E R R C R A N D S H O U L D IF THE SE N T EC E B E G I N S W l I H IT IS T H E A G E N T . ( P R O G ( T E S T E E T E M P PRN L S I NUMS VNUM NUM) ' ICONO ( ( G E T R P A S S I V E ) ( P R O G ( K - S ) I S E T U L O O P I COND A T H A I - C O M P L E M E N T UR A T O - C O M P L E M E N T , K - S K E E P - S E N T ' N U M 1 ) ( ( N U L L K - S ) ( R E T U R N ( P A S S I V E - A G E N T L S T T E S T N U M S V N U M ) ) ) ( ( C U ( C A A R K - S ) ' V I M [ S E T Q V N U M N U M D ( ( A N D 1 E O ( C A A R K - S ) ' P P ) ! S E \ Q C L S T ' ' I A P P E N D ' L S T ( L I S T ( C A R K - S ) ) ) N U M S ( A P P E N D N U M S ( L I S T N U M 1 D D ) K - S ( C D R K - S ) N U M [ADOl N U M D ( S E T U ( C O L O O P ) ) ) ( I S E T U T E S T E E (COND ( ( A N D ( EO ' NP ( C A A R L ) > (MOT ICADAR L ) D ( C A R L D ( (AMD I A TOM ( C A R L>) ( E O ' N P 1C AADR ( C O N D ( ( N U L L ( S E T Q P R N ( S T A R T - L I S T ' P R O T E S T E E ) ) ) (CONO ( ( O H ( T E S T - U F F ? " A G E N T ) ( E V A L T E S T ) ) ( F L A G - O N T E S T E S K E E P - S E N T T ) ( R E T U R N T E S T E E ) ) ( T ( S E T O F A I L - T E S T M I L ) ) ) I T (CONO ( ( N O T ( N U L L ( S E T Q TEMP ( A N A P H O R I C L D ( N O T { C A D A D R L D ) I C A D R D I D F A I L - T E S T - L I S T ( A P P E N D ( L I S T ' A G E N T ) F A I L - T E S T - L I S T ) ) ' ( A G E N T B E N E F I C I A R Y R E C I P I E N T C O - A G E N T P A T I E N T T O P I C ) T E S T A N A P H O R - D E P T H P R N ) ) ) ) ( F L A G - O N T E S T E E K E E P - S E N T T ) ( R E T U R N T E M P ) I ) ) ) ) ( ( A N D ( G E T V E R B ' T H A T - C O M P I ( E O ' T h A T - C O M P (CAR ( S E T C T E S T E E ( C A R K E E P - S E N T ) ) ) ) ( F L A G - O N T E S T E E K E E P - S E N T T l T E S T E E ) > ( ( A N D ( G E T V E R B ' T O - C O M P ) ( E Q ' T O - C O M P ( C A R ( S E T O T E S T E E ( C A R K E E P - S E N T ) ) ) ) ( S E T Q T E S T E E ( E V A L ( C O N S ' S ( L I S T ( A P P E N D ( L I S T M N P T (N S O M E O N E ) ) ) ( R E L - M O D S - J O I N (CCOP. T E S T E E ) ! ) ) ) ) ) ) ( F L A G - O N ( C A R K E E P - S E N T ) K E E P - S E N T T ) T E S T E E ) ) ) ) ) ( D E F U N A L L - F L A G - O F F ( K - S ) ( M A P C ' I L A M B D A ( X ) ( F L A G - O F F X K - S ) ) K - S ) K - S ) ( D E F U N A L L - H I S T - O F F ( S - H ) ( C O N D ( ( N U L L S - H ) ) ( T ( A L L - F L A G - O F F ( C A R S - H D ( A L L - H I S T - O F F ( C D R S - H ) ) ) ) ) ( D E F U N A L L - P R E P S (NN K - S ) T H I S R O U T I N E R E T U R N S T I F A L L OF T H E F I R S T NN S E N T E N C E P A R T S ; OF K - S A R E P R E P O S I T I O N P H R A S E S . ( C O N D ( I N O T ( £ 0 ' P P ( C A A R K - S ) ) ) N I L ) ( ( E Q NN 0 ) ) ( T ( A L L - P R E P S I S U B 1 NN) (CDR K - S ) ) ) ) ) ( D E F U N A N A P H O R ? ( T E S T E E K A S E H I S T T E S T PRN) ( A N D I OR ( T E S T - O F F ? K A S E ) ( E V A L T E S T ) ) (OR ( N U L L P R N ) I AND ( U R INOT ( E Q ' P R O ( C A R P R N ) ) ) I P R N - M A T C H ? PRN T E S T E E ) ) T E S T E E D ( A N A P H O R - Q U E R Y PRN T E S T E E D ) ( D E F U N A N A P H O R - C A S E - L O O K ( K A S E T E M P ) ( P R O G ( T E M P ( S E T Q L 0 0 P 1 (COND ( I N U L l L O O P £ (COND K - S ) K - S K E E P - S E N T ) K A S E ) ( R E T U R N N ( L D ) ( ( N U L L K - S ) ( S E T O K A S E (CDR K A S E ) K - S ( (OR ( C A D A R K - S ) ( E O ' P P ( C A A R K - S D ) ( ( A N D ( E U ' " < - A ( ) V - " ( CAAR K - S ) ) . (MEMBER ' L O C A T I O N ( G E T ( C A D A R K - S ) ( S E T O TEMP ( A U V - M O U ? ( C A R K - S ) T E S T ( F L A G - O N ( C A R K - S ) K E E P - S E N T T l ) ( R E TURN I EMP) ) ( T ( S E T O K - S ( C U R K - S D (GO L O O P ? ) ) ) ) ) K E E P - S E N T ) (GO . ( S E T Q K - S (CDR L 0 0 P 1 ) ) K - S ) ) (GO L 0 0 P 2 ) ) ' A D V - P f t O P l ) N I D ) ( D E F U N A N A P H O R I C ( K A S E T E S T D E P T H PKM) A N A P H O R i : IS THE M A I N A N A P H O R I C R E F E R E N C E ROUT 1N I: • IT T A K E S A L I S T . LIE C A S E S TO LOOK F O R . A T E S T THE R E F E R E N T • MUST P A S S , A NUMBER 1 MO I C A T I N G WHAT S E N T E N C E IN THE H I S T O R Y TO L O O K A T , AMI) (HE PRONOUN B E I N G R E S O L V E D . I C ( PROG TH I S ( H I S T ( C U N D ME MY M I N E D ( R E T U R N ( S P E A K E R ( C A C R P R N D D T H A T YOU C A M E . " THI S T E S T E E D K H - S ) ( ( " E ' I K E R ( C A D R PR.N) • ( I [ ( AN!) T H A T - C M P H A N D L E S S E N T E N C E S L I K E : " I T IS U N F O R T U N A T E ( G E T V E R B ' T H A T - C O M P ) (MEMBER • A C E N T K A S C I ( E O ( C A D R PRN) • I I ) ( S E T O T E S T E E ( S T A R T - L I S T ' T H A T - C O M P K E E P - S E N T ) ) (NOT ( C A D R T E S T E E ) ) ) ( F L A G - O N T E S T E E K E E P - S E N T T) 1 RE TURN T E S T E E ) ) ( ( A N D ( G E T V E R B ' T O - C O M P ) H A N D L E S S E N T E N C E S L I K E : " I T IS N E C E S S A R Y TO GO H O M E . " ( M E M B E R ' A G E N T KASI: ) ( E Q ( C A D R P R N ) ' I f ) ( S E T O T E S T E E ( S T A R T - L I S T ' T O - C O M P K E E P - S E N T ) ) I MOT ( C A D R T E S T E E D ) ( F L A G - U N I E S T E E K E E P - S E N T TI ( R E T U R N ( T O - C O M P M N P T (N S O M E O N E ) ) ) ) ) T H I S R E T U R N S I N T E R N A L R E F E R E N C E S TO THE A G E N T AS I N : " F R E D M A R R I E D THE WOMAN T H A T H E L O V E D . ( ( A N D A G - A M A P H O R ( A N A P H O R ? A G - A N A P H O R U P I N T E R N A L R E F E R E N C E S TO T H E P A T I E N T MARY TO H E R H O U S E . " ( ( A N D P A - A N A P H O R (ANAPIIOR? P A - A N A P H O R ( ( A N D A G - A M A P H O R T H I S R E S O L V E S O T H E R I N T E R N A L R E F E R E N C E S L I K E : " F R E D P L A Y E D T H E M U S I C FOR MARY SO SHE WOULD RE H A P P Y . " ( S E T Q T E S T E E ( F I N O - A N A P H O R S U P E R - S E N T ' • C H E C K . T E S T PRN S U P E R - S E M T D ( R E T U R N T E S T E E ) )) ) ( S E T Q H I S T H I S T O R Y T H I S P A R T D O E S T H E R E F E R E N C E S TO P R E V I O U S S E N T E N C E S . D I H - S S E N T - H I S T K ( C O N D ( ( A N D ( ATOM K ASE ) ( N O T ( N U L L K A S E ) ) ) ( L I S T K A S E D ( T K A S E ) ) ) I I G R E A T E R P D D E P T H ) ( R E T U R N N I L ) ) ) T H I S P I C K S " F R E D T O O K K A S E H I S T AS I N : T E S T PRN) ) i R E T U R N A G - A N A P H O R D K A S E H I S T T E S T P R N ) ) ( R E T U R N P A - A N A P H O R ) ) ( COND L O O P (COND ( ( N U L L H I S T ) ( R E T U R N N I L ) ) ( 1 L F S S P D D E P T H ) (S>=TQ D ( A O O l P) H - S (COR H - S ) H I S T (CDR H I S T ) ) (GO L O O P ) ) I ( F l . N U - A N A P H O R ( C A R H I S T ) K T E S T PRN ( C A R H - S ) D ) D ( D E F U N A N A P H O R - Q U E R Y (PRN T E S T E E ) O N C E A P O T E N T I A L R E F E R E N T HAS B E E N THE U S E R I S A S K E D IF IT C O R R E C T . IT HAS NOT A L R E A D Y B E E N A S K E D . I PROG ( R E S P T E M P I T E M P 2 ) ( C O N D ( ( E Q U A L ( C A R ( S E T O I C O N D ( ( E Q ( M A I N F O U N D FOR A PRONOUN T H E F I R S T PAR T M A K E S S U R E ( R E T U R N I S E L E C T O ( C A D A D K T E M P I ) ( ( E Q (CA'OAOR T E M P I ) ' Y E S ) ( R E T U R N I ( O E E P - M E M B E K 1 ( L I S T T E S T E E ' Y E S ) ANAPHOR ( P R I N 1 ' B Y ) . ( P R I N I ( C A D R P R N ) ) ( P R I N 1 ""I A S S U M E YOU M E A N " ) ( P R I N 1 ( S E T Q T E MP 2 (MAI N - W O R D - G E T T E S T ' ; E ) ) ) ( T E R PR I) . , ( P R I N T " M S T H A T C O R R E C T ? " ) L O O P ( C O N D ( ( E f ) • Y ( C A R ( E X P L O D E ( S E T Q R E S P (MY EV AL A N A P H O R - R E S P ( A P P E N D ( L I S T I L I S T ( C A R ( E X P L O D E R E S P ) ) ) A N A P H O R - R E S P ( A P P E N U ( L I S T ( L I S T T E M P I ( T O P - L E V E L - S T A R T - L I S T P R N A N A P H O R - R E SP ) ) ) ' • ' P R N ) . - W O R U - G E T T E S T E E ) (MA I N - W O R O - G E T (CADR T E M P I ) ) ) ( Y E S T ) (NO N I L ) N I L ) ) ) . M I L ) ) ) ) - R E S P ) ( R E T U R N N I L ) ) ) ( ( E 0 * Y ( SE TO ( ( E G •N ( S E T Q N I L ) (T ( P R I N T ( R E A D ) ) ) ) ) ) PRN ( L I S T T E S T E E • Y E S ) ) ) A N A P H O R - R E S P ) ) ) PRN ( L I S T T E S T E E ' N O ) ) ) A N A P H O R - R E S P ) ) ' " P L E A S E ANSWER Y E S OR N O " ) ( G O L O O P ) ) ) ) ) ( D E F U N B E I ? ( N L I S T ) (COND ( ( E Q ' P L ( C A D R ( S T A R T - L I S T ( T ( U E 1 - D E T N L I S T D ) ) •NUMBER N L I S T ) ) ) • S U U S E T - O F - S E T ) ( D E F U N B E 1 - D E T ( N O (PROC. J c u " u * C f M U L L ( S E T Q T E H P ( S T A R T - L I S T ' D E T N t l l l ' E L E M E N T - O F - S C T ) ( ( D E F I N I T E - D E T ? (CADR T E M P ) ) ' E L E M E N T - O F - S E T ) ( T • S U B S E T - O F - S E T D D I D E F U M B E E O K E - A F T E R - D E S C ? I I E S T E E P K I : P N N I Q Q ; m i s R O U T I N E i r. F U R P H R A S E : ; L I K E : " I H E H O U S E A F T E R T H I S one. . . " II C C U N D ( I tH) I ( E O 'UP ( C A I li . ' . IEE))) N I L ) I T ( P R O G (Ml) P R O 'OL I N O U N ) I C O N O I I O K ( A N D ( M E M B E R ( C A D R ( S E T Q D E T ( S T A R T L I S T ' D E T T E S T E E ) ) ) . • I I I I I S I H A T T H E S E I H O S T ) ) I EC) ( O A D R ( S E I O N O U N ( S T A R T - L I S T * N T E S T E ! : ) ) ) ' O N E ) ( S E T O NCI ( C A D R ( S T A R T - L I S T ' N U M B E R N O U N ) ) ) ) ( A N D ' ( M E M B E R ( C A D R ( S E T O PRO ( S T A R T - L I S T ' P R C T E S T E E ) ) ) M I H I S T H A T T H E S E T H O S E ) ) ( S E T O N U ( C A D R ( S T A R T - L I S T ' N U M B E R P R O ) ) ) ) ) ( U E F I I R E - A F T E H - O E S C 1? T E S T E E P R E P M N N U ) ) ) ) ) ) ) ( D E F U N B E F O R E - A F T E R - D E S C I ? ( T E S T E E P R E P N N N U ) ( P R O G ( B F U R C ) . ( S E I O B F O R E ( N O U N - L I S T - G E T ( E L M T ( S U B I . N N . K E E P - S E N T ) ) ) ) ( C O N D ( ( E O N U ( C A U K ( S T A R T - ( . I S T * N U M B E R U F O K E 1 I ) ( N P - H U I L U B F O R E ) ) ) ) ) ( O E F U N B E - L O C ( ) T H I S I S T H E L O G A T I O N A L C A S E O F " T O B E " : " F R E D I S I N T H E A T T I C . " " F R E D I S W I T H M A R Y . " ( P R O G ( P R E P S P R E P T E S T E E R E T ) ( S E T Q P R E P S M I N O N U N D E R W I T H A T B Y N E A R B E S I D E B E F O R E U P D O W N A R O U N D A C R O S S U P O N ) ) ( R E T U R N I C O N D ( ( S E T O T E S T E E ( E L M T ( A D M ( P H R A S E - M U M ' V P K E E P - S E N T ) ) K E E P - S E N T ) ) ( C O N D ( ( A N D ( E U ( C A R T E S T E E ) ' P P ) ( N O T ( C A D R T E S T E E ) ) (OR ( T E S T - O F F ? ' L O C A T I O N ) ( N O T ( M U S T - B E A B S T R A C T ) ) ) ( S E I O P R E P ( C A R ( M E M B E R ( C A C O R T E S T E E ) P R E P S ) ) ) ) ( F L A G - O N T E S T E E K E E P - S E N T ( S E T C R E T ( C O N O ( ( E C ) P R E P ' W I T H ) ( L I S T ' " < - L O C - C F - " ( N O U N - L I S T - G E T ( N P - B U I L O T E S T E E ) ) ) ) ( T ( L I S T P R E P I N O U N - L I S T - G E T ( N P - B U I L D T E S T E E ) ) ) ) ) ) ) R E T ) ) ) ) ) ) ) ' I D E F U N B E - L O C 1 ( ) ( P R O G ( P R E P S P R E P T E S T E E R E T N N N ) ( S E T Q P R E P S M I N OM U N D E R W I T H A T B Y N E A R B E S I D E B E F O R E U P D O W N A R O U N D A C R O S S U P O N ) ) ( S E T Q N N N ( A D O i ( P H R A S E — N U M " V P K E E P - S E N T ) ) ) L O O P I C O N D ( ( S E T Q T E S T E E ( E L M T N N N K E E P - S E N T ) ) ( C O N D ( ( A N D . ( E O ( C A R T E S T E E ) ' P P ) ( N O T ( C A D R T E S T E E ) ) ( U R ( T E S T - O F F ? ' L O C A T I O N ) ( N O T ( M U S T - B E A B S T R A C T ) ) ) ( S E T Q P R E P ( C A R ( M E M B E R ( C A C O R T E S T E E ) P R E P S ) ) ) ) ( F L A G - O N T E S T E E K E E P - S E N T ( S E T Q R E T ( C O N D ( ( E Q P R E P ' W I T H ) ( L I S T * " < - L O C - O F - " ( N C U I ' l - L I S T - G E T ( N P - B U I L D T E S T E E ) ) ) ) ( T ( L I S T P R E P ( N O U N - L I S T - G E T ( N P - B U I L D T E S T E E ) ) ) ) ) ) ) ( R E T U R N R E D ) (DEFUN B E N E F I C I A R Y (TESTEE PREP) ; THIS FINDS THE B E N E F I C I A R Y CASE: "FRCO PLAYS THE PIANO FOR MARY." (PROC (PRN) (RETURN (CUND ((SETQ PRN (PRO? T E S T E E D (PROG (TEMP) (COND ( ( S E T Q TEMP (PRO-ANAPIIOR? ' (AGENT B E N E F I C I A R Y CO-AGENT TCP I C P A T I E N T ) ' • '(MUST-BE ANIMATE) PRN T E S T E E ) ) (SET-UP-FN 'BENEFICIARY PREP) (RETURN '.LIST " ^ - B E N E F I C I A R Y - " T E M P ) ) ) ) ) ) ((MUST-BE ANIMATE) (SET-UP-FN 'BENEFICIARY PREP) ( L I S T •"<-BENEFICIARY-" (NOUN-L IST-GE T (NP-BUILC T E S T E E ) ) ) ) ) ) ) ) (DEFUN BUILD1 (FRAG) ; THIS IS PART OF THE BUILDQ FUNCTION FOR BUILDING FINAL STRUCTURES. (PROG (A) (RETURN (COND (( N U L L FRAG) N I L ) ((EQ FRAG ••'•'•) (CETRV (CAR R E G L S T D ) ( ( E O (RAG •?) (NOUN-PUT (CAR R E G L S T D ) l(Ei> FRAG M M I EVAL (CAP R E G L S T D ) . I ( E U FRAG •*) *) ( I ATOM FRAG) FRAG) ( ( E Q (CAR FRAG) •"*") ( S E I O A (IINCUNS REGLST R E G L S T D (CUNS (GETRV A l ( B U I L D I (CDR F R A G ) ) ) ) (( E(j (CAR FRAG ) • V) (SETI) A (UNCCINS REGLST REGLST) ) ICONS (NOUN-PUT A) ( B U I L D I (COR F R A G ) ) ) ) ( ( EO ( CAR FRAG) ' .'/ ) ( S E I Q A (UNCONS REGLST REGLST)) • (CUNS (EVAL A) ( B U I L D I (COR F R A G ) ) ) ) I I E O (CAR FRAG) •*) ICUNS * ( B U I L D I (CDR F R A G ) ) ) ) ( ( E O (CAR FRAG) 'SI (GI.UF ( B U I L C I (CDR F R A G ) ) ) ) (T (CUNS ( B U I L D I (CAR F K AG D ( B U I L D I (CDR F R A G ) ) ) ) ) ) ) ) I i ( D E F U N T i l l 1 ; OF i (CUM i C A N - C L A S S ? (NI' IMP) S R O U T I N E A S K S T i l l ! U S E R I E A NOUN P H R A S E IS A C L A S S I F I E R A N O T H E R NOUN P H R A S E . D ( ( A N D ( E O ( C A R P I P ) ' N P ) ( N U L L ( S T A R T - L I S T ' O E T T H P)1 ( N O U N - G E T N P I ) ( P R I M l M S I ( P R I N T ( N O U N - G E T N P ) ) (PR IN L ' " A C L A S S IE I E R O F " ) ' ( P R I N l ( N O U N - G E T I M P ) ) I T E R P R I ) (COND < ( E O ' Y ( C A R ( E X P L O D E ( R E A D ) ) ) ) ( S E T O FN M R P L A C O ( E N D - L I S T P L A C E I ( L I S T S T R C T I ) P L A C E ( N O U N - L I S ' T - G E T TMP I > ( R E T U R N ( L I S T ' " < - C L A S S - n ( N O U N - L 1ST - G E T ( N P - i l U I L U P A R T I ) ) ) ) ) ) ) ) ( D E F U N C A N - M O D - D E S C ? ( T E S T E E P A R T P R E P ) ( A P P L Y 1 ( I M P L O D E ( L I S T ' U E S C ' " - " P R E P 1 ) T E S T E E P A R T ) ) ( D E F U N C A S E N E X P 3 ( C A S E S ) T H I S R O U T I N E G O E S T H R O U G H A L I S T (IF C A S E F R A M E S FOR A V E R B TO ; F I N D T H E C O R R E C T O N E . ( P R O G ( O U - O P T F A I L - T E S T ) L O O P (COND ( ( N U L L C A S E S ) ) ( ( P R O G N ( S E T Q F A I L - T E S T N I L ) ( E V - S E T R ( C A D R C A S E S ) ( C A R C A S E S ) ) ) ( S E T Q C A S E S ( C D O D R C A S E S ) ) (GO L O O P ) ) ( ( E Q ' O B L ( S E T Q O U - O P T ( M Y E V A L (CAODR C A S E S ) ) ) ) ( A L L - F L A G - C F F K E E P - S E N T ) N I L ) ( ( E C ' O P T O B - O P T I I S E T O C A S E S ICOCIJR C A S E S ) ) (GO L O O P ) ) ( T ( E V - S E T R ( C A D R C A S E S ) O B - O P T ) ( S E T Q C A S E S (COOUR C A S E S ) ) (GO L O O P ) ) ) ) ) too ( D E F U N C A S E - A N A P H O R ( K A S E P A R T T E S T ) ; T H I S R O U T I N E I S I N T E N D E D TU B E E X T E N D E D . ; C U R R E N T L Y IT O N L Y WORKS W I T H THE S O U R C E C A S E . I F T H E S O U R C E ; C A S E I S L O O K E D l-UR BUT NOT FOUND IN A S E N T E N C E , T H I S ; R O U T I N E T R I E S TO F I N D T H E S O U R C E BY L O C K I N G FOR WHERE T H E ; T H I N G OR P E R S O N WAS B E F O R E T H E M O V E M E N T D E S C R I B E D IN T H E S E N T E N C E . ( P R O G ( T E S T E E ) ( S E L E C T Q K A S E ( S O U R C E ( A N D ( S E T O T E S T E E I W H E R E - I S ( N O U N - L I S T - G E T ( G E T R A G ) ) ) ) (OR ( T E S T - O F F ? K A S E ) I E V A L T E S T ) ) T E S T E E ) ) N I L ) ) ) ( D E F U N C A S E - A T O M - A S S O C ( K A S E ) ( S E L E C T Q K A S E ( L O C A T I O N ' L O O K A S E ) ) ( D E F U N C A S E S ? ( P A R T NN) T H I S R O U T I N E IS G I V E N A S E N T E N C E P A R T AND A S K E D TO F I N D WHAT C A S E IT I S . IF I T S T A R T S W I T H A P R E P O S T I T I O N OR IS A C O M P L E M E N T , T H E N C A S E - C A L L ER IS C A L L E D . O T H E R W I S E M O D I F Y ? IS I N V O K E D . ( P R O G (NUM F A I L - L I S T P L A C E P R E P R C A S E S T R C T F N TEMP) ( C O N D ( ( A N D ( P R E P - S T A R T P A R T I ( C A S E - C A L L E R (C4DDR P A R T ) V E R B ( C C O O R P A R T ) N N ) ) ) ( ( A N D ( S E T Q T E M P ( C O M P L E M E N T P A R T ) ) ( C A S E - C A L L E R TEMP V E R B (CDDR P A R T ) N M D ) ( ( M O D I F Y ? (COND ( ( A T O M ( C A R P A R T ) ) P A R T ) (T ( C A R P A R T ) ) ) N N D D ) ( D E F U N C A S E - C A L L E R ( P R E P V E R B NP NN) C A S E - C A L L E R C A L L S T H E F O R E G R O U N D IMG K O U T I N E , T H E N I N V O K E S T H E R O U T I N E F O R E G R O U N D E D . I F T H A T R O U T I N E F A I L S , OR T H E S Y S T E M F A I L S L A T E R ( V I A C O N T I N U E ) T H E N THE N E X T R C U T I N E IS I N V O K E D . T H I S IS T H E R E F O R E THE R O U T I N E WHICH C O N T R O L S T H E D E C I S I O N P O I N T S FUR T H E B A C K - U P . ( P R O G ( T E M P ) ( S E T Q TEMP ( C A S E - E D R E - G R U UN i) V E R B P R E P ( P R E P - L I 5T-CET P R E P C A S E - T A B L E ) NN ) ) L O O P ( C O N D (I N U L L T E M P ) N I L ) j • ( ( A N D ( E O ( L E N G T H N P ) 2) • (NOT (MEMBER ( C A R TEMP) • I METHOD C A U S E T I M E P U R P O S E E X P E C T E O - E F F E C T ) D ) | ( S E TO T E M P ( C D R T E M P ) ) ; ( G O L O O P ) ) ( ( A N D ( S E T Q S T R C T ( A P P L Y l ( C A R T E M P ) NP P R E P ) ) ( C O N T I N U E ) ) ) ( T ( S E T Q TEMP ( C D R T E M P ) ) (GO L O O P ) ) ) ) ) • ' T u s V u M P L O o f ^ ^ ^ - " I c ^ A T O M - A S S O C K A S E , . . - « » , P R E P ( N C U N - U S r - G E T ( N P - B U . L D T E S T E E . . . , ( O E E U N C A S E - D E L E T E ( V E R B P R E P L ) ; T H I S A L L O W C E R T A I N C A S E S TO HE R U L E D OUT FOR C E R T A I N V E R B S AND P R E P O S T I O N S . ( P R O G ( T E H P ) ( R E T U R N ( COND ( ( N U L L ( S E T O T E H P ( P R E P - I . I S T - C E T V E R B AN f l - C A S E - T A B L E >> > L ) ( ( O R ( N U L L (CAI)OR T E H P ) . ( ( ' E M B E R P R E P (CACIJR T E M P ) ) ) ( S O F T - D E L E T E ( C A D R T E M P I 1 L l ) ( T L ) ) ) ) ) ( D E F U N C A S E - F I N D I X K A S E ) ; T H I S IS U S E D FOR F I N D I N G A C A S E IN A P R E V I O U S F I N A L S T R U C I U R E . ; IT IS U S E D ii Y T H E A N A P H U K I C R O U T I N E S . ( P R O G ( T E M P I ( R E T U R N (COND ( ( S E T O T E M P (CUR ( S T A R T - L I S T ( S E L E C T Q K A S E ( A G E N T "'<==>••) ( P A T I E N T '"<—") ( L O C A T I O N 1 " < - L O C - " ) ( R E C I P ! E N T ' " ( - R E C I P I E N T -( T I M E ' " ( - T I M E - " ) ( D U R A T I ON * " ( - D U R A T I O N - " ) ( D E S C ' " O U E S C - " ) ( T O P I C ' " ( - T O P I C - " ) ( P.EMEF I C ! ARY ' " ( - B E N E F I CI A R Y - " ) ( P A T H ' " ( - P A T H - " ) ( E X C H A N G E • " ( - E X C H A N G E - " ) ( C O - A G E N T ' " ( - C O - A G E N T - " ) ( D E S T I N A T I O N ' " ( - D E S T I N A T I O N - " ) ( S O U R C E I L I K E ' ( W I T H ' N I L ) X) ) ) ( C O N D ( I C Q K A S E - P A T I E N T ) ( C A C R T E M P ) ) ( ( E Q K A S E ' A G E N T ) (CAR T E M P ) ) K N O T ( A T O M ( C A R T E M P ) ) ) ( C A R T E M P ) ) I T T E M P ) ) ) ( ( S E T Q T E M P ( S T A R T - L I S T " ' ( = = >" (CDR • " ( - S O U R C E -' ( - L I K E - " ) ' ( - W I T H - " ) " ) X . . . ( C A S E - F I N D T E M P K A S E ) ) ) ) ) : ( D E F U N C A S E - F O R E - G R O U N D ( V E R H P R E P K A S E S NN) T H I S IS T H E T O P - L E V E L F O R E G R O U N D ING R O U T I N E . C A L L E D IT C H E C K S TO S E E I F D E S C IS ONE OF T H E IF S O , IF T H E P R E V I O U S P H R A S E IS A N O U N - OR A F O R E G R O U N D S D E S C . ( P R O G ( T E M P B E F ) ( S E T Q TEMP ( C A S E - D E L E T E A F T E R V - F O R E - G R N O IS C A S E S TO BE C A L L E D . P R E P - P H R A S E , IT V E R B P R E P ( A P P E N D ( S E T Q TEMP ( V - F O R E - G R N D V E R B P R E P ( CDR ( P R E P - L I S T - G E T P R E P ( G E T V E R B • P R E P - C A S E ) ) ) ) ' ) ( S U 8 1 NN) K E E P - S E N T ) J ) ' ( P P M P . ) ( C O M P - I N T E R S E C T I O N (COR K A S E S ) T E M P ) ) ) ) I C U N U ( ( A N D ( M E M B E R ' D E SC T E M P ) ( M E M B E R ( C A R ( S E T Q B E F ( E L M T (NOT ( S T A R T - L I S T ' N P R B E F ) ) ) ( R E T U R N ( A P P E N D ( L I S T ' D E S C ) ( S O F T - D E L E T E ' D E S C T T E M P ) ) ) ) ( T TEMP ) ) ) ) ( D E F U N C A S E - P R E P S ( V E R B K) ( P R O G ( T E M P ( S E T Q L O O P (COND L C S S ) T E M P ( G E T V E R B ' P R E P - C A S E ) C S S ICOND ( ( A T O M K) ( L I S T K ) ) (T K ) ) > ( ( N U L L T E M P ) I R E T U R N L l ) ( ( I N T - L I S T C S S 1COAR T E M P ) ) ( S E T Q T E M P (CUR T E M P ) ) (GO L O O P ) ) ) ( S E T Q L ( A P P E N D ( L I S T ( C A A R T E M P ) ) L ) ) ) ) I D E F U N C A S E - R E T U R N (ARROW P R E P P H . ( A P P E N D ( L I S T ( M A K E - A R R O W A R R O W ) ) (CUNI) ( (NOT ( N U L L P R E P ) . ( L I S T P R E P ) ) ) ( L I S T ( L I S T ( N O U N - L I S T - G E T ( N P - B U I L I ) I CAR P H ) ) ) ) ) ) ) ( D E F U N C A U S E ( T E S T E E P R E P ) C A U S E IS I N V O K E D EUR S i l - C U M I ' L E M C N T S - I T R E J E C T S " S O . . . W O U L D " C O N S T R U C T S , T H E N I T S O R T S UUT THE E N A B L E AND C A U S E C A S E S . " S O . . . C A N " C O N S T R U C T S ARE THE E N A B L E C A S E . S I N C E S O - C CMPL E V E N T S A R E S E N T E N C E S . S IS C A L L E D . A C - A N A P H O R AND HA™ANAPHOR A R E SE I F O R I N T E R N A L R E F E R E N C E S . I S E L E C T O P R E P I • so (CONO ( ( N O T I E O "WOULD ( C A R T E S T E E ) ) ) ( P R O G I T E M P ) ( S E T U A G - A N A PHOT'. ( G E T R AG) P A - A . N A P H O K ( G E T R P A ) ) I C O N D ( ( N O T ( A T O M ( S E T O T E M P ( E V A L ( C O N O ( I N C T ( E U ' S ( C A A R T E S T E E ) ) ) ( C A D R T E S T E E ) ) (T (CAR T E S T E E ) ) ) ) ) ) ) ( S E T - U P - F N ' C A U S E N I L ) ( S E T O AG-ANAPI' .UR N I L P A * - A N A P H O R N I L ) ( R E T U R N ( B U I LOU ( '/ •') ) ( C O N O I ( M E M B E R (CAR T E S T E E ) " ( C O U L D C A N ) ) ' " < - E N A B L E - " ) ( T " " < - C A U S E - " ) ) TEMP I ) ) ) ) ) ) I N I L ) ) ( D E F U N C H A R A C T E R I S T I C (A D) T H I S C A S E IS NOT I M P L E M E N T E D Y E T . N I L ) ( D E F U N C H O O S E - E L M T ( P A R T NN F - L ) T H I S R O U T I N E IS U S E D TO C H O O S E A C A N D I D A T E WHEN T R Y I N G T O F I C U R E WHAT A C E R T A I N S E N T E N C E P A R T M O D I F I E S . F - L IS T H E L I S T OF C A N D I D A T E S A L R E A O Y F A I L E D . I T B E G I N S BY L O O K I N G A T THE P A R T B E F O R E T H E PART IN Q U E S T I O N , T H E N T H E ONE B E F O R E T H A T , E T C . IF T H E Y A L L F A I L , IT COOKS AT T H E O N E A F T E R THE P A R T IN Q U E S T I O N , THEN THE ONE A F T E R T H A T , E T C . I P R O G ( P ) ( C O N D ( ( A N D (NOT ( M E M B E R ( S E T Q NlfM ( S U B L N N ) ) F - L ) ) ( L E S S P 0 N U M ) ) ( R E T U R N ( E L M T NUM K E E P - S E N T ) ) ) ( ( A N D (NOT (MEMBER ( S E T Q NUM (ADD 1 MM)) F - L ) ) ( N O T ( G R E A T E R P NUM ( L E N G T H K E E P - S E N T )•) ) ) ( R E T U R N ( E L M T NUM K E E P - S E N T ) ) ) ( T ( S E T Q NUM ( S U B 2 N N I ) ( R E T U R N ( P R U G M I L ' L O O P (COND ( ( G R E A T E R P 0 NUM) ( C O N D ( ( N O T (MEMBER NUM F - L ) ) ( R E T U R N I E L M T NUM K E E P - S E N T ) ) ) I T ( S E TO NUM ( S U B 1 N U M ) ) ( G O L C O P ) ) ) ) IT ( S E T Q NUM ( A D O 2 N N ) ) ( R E T U R N (PROG N I L L O O P l I C O N D ( ( A N D (NOT (MEMBER NUM F - L ) ) ( S E T C P ( E L M T NUM K E E P - S E N T ) ) ) ( R E T U R N P ) ) (P ( S E T Q NUM ( A O O l N U M ) ) (GO L O O P l ) ) ) ) ) ) ) ) ) ) ) ) ) ( D E F U N C H O O S E - E L M T - P R E P (NP NN F - L ) T H I S R O U T I N E IS U S E D BY T H E L O C A T I V E C A S E . IF THE- S E N T E N C E P A R T IN Q U E S T I O N IS T H E F I R S T IN T H E S E N T E N C E OR F O L L O W S ONLY P R E P - P H R A S E S , T H E N IT R E T U R N S THE V E R B - P H R A S E AS T H E L I K E L Y C A N D I D A T E . T H A T I S , THE P H R A S E IS C O N S I D E R E D . TO BE T H E L O C A T I V E C A S E , NOT T H E D E S C R I P T I V E C A S E . (COND ( ( O R ( E O NN 1 ) ( A L L - P R E P S NN K E E P - S E N T ) ) ( E L M T ( S E T C NUM ( P H R A S E - N U N ' V P K E E P - S E N T ) ) K E E P - S E N T ) ) (T ( C H O O S E - E L M T NP NN F - L ) ) ) ) ( D E F U N C L A S S ? ( N P ) ( P R O G ( T E M P ) ( R E T U R N (CONO ( ( S E T Q T E M P ( E L M T ( S E T U NUM ( A U D I N ) ) K E E P - S E N T ) ) ( C A N - C L A S S ? NP T E M P ) ) ) ) ) ) ! I ' ( D E F U N C L A U S E I P R E * ' 1 E S T K A S E I . , , I H I S R O U T I N E L O O K S FOX A P R E P O S I T I O N P H R A S E B E G I N N I N G V.' I III ONE OF T H E ' ° J '; P R E P O S I T I CMS I N P R E P . • I P K U G ( T E S I E E K - S TEMP I'RII PR R E T T G I j I S E T Q K - S K E E P - S E M I ) J L O O P - - , [ ( C O N D ( ( N U L L K - S ) N I L ) ( ( A N D ( E O ' P P ( C A R ( S E I O T E S T E E I CAR K - S ) ) ) ) (NOT E G I (NOT ( C A D R T E S T E E ) ) ( S E T Q PR ( C A R ( MI.MHEK ( C A O O R T E S T E E ) P R E P ) I I ) ( C U N D ( ( S E T O PRN ( P R O ? T E S T E E ) ) ( P R O - AN API IOR ? K A S E T E S T PRN T E S T E E ) ) f l A N L i ( E O ' " C - A D V - " ( C A A R ICODDR T E S T E E ) ) ) ( S E T O T E H P (ADV-MUO? ICAOOOR T E S T E E ) T E S T K A S E I ) ) ( F L A G - O N T E S T E E K - S TEMP) ( R E T U R N T E " P ) ) M A N U (OR ( T E S T - O F F ? K A S E ) ( E V A L T E S T ) ) ( P R O G N C E T Q F A I L - T E S T N I L ) ( F L A G - C N T E S T E E K - S ( S E T C R E T 1 C A S E - C L A U S E - f i U I L O K A S E PR T E S T E E ) ) ) R E T ) ) ) (T ( S E T C F A I L - T E S T T K - S (CDR K - S 1 ) (CO L G O P ) ) ) ) ( T ( S E T O K - S ( C D R K - S I ) . T H I S PART IS AN A T T E M P T MOT TO B R E A K U P R E L A T I V E C L A U S E S . IF F G I S T T H E R O U T I N E T H I N K S IT IS IN A R E L A T I V E C L A U S E AND W I L L MOT A C C E P T I HE P H R A S E . ( C U N D ( ( M E M B E R ( C A R T E S T E E ) ' ( R E L O B J - R E L R E D - R E L O B J - R E O - R E L ) I ( S E T O F G T I ) ( ( C O ( C A R T E S T E E ) . ' V P ) ( S E T O F G N I L ) ) ) ( G O L O O P ) ) ) ) ) ( D E F U N C O - A G E N T ( T E S T E E P R E P ) ; T H I S IS T H E C O - A G E N T C A S E . ( P R O G ( P R N ) ( R E T U R N ( C O N O ( ( S E T O PRN ( P R O ? T E S T E E ) ) ( P R G G ( T E M P ) (COND ( ( S E T Q T E M P . ( P R O - A N A P H O R ? * ( A G E N T R E C I P I E N T C C - A G E N T . P A T IENT B E N E F I C I A R Y ) • (MUS T - B E A N I M A T E ) PRN T E S T E E ) ) ( S E T - U P - F N ' C O - A G E N T P R E P ) ( R E T U R N ( L I S T • " < - C O - A G E N T - " T E M P ) ) ) ) ) ) I ( M U S T - B E A N I M A T E ) ( S E T - U P - F N ' C O - A G E N T P R E P ) ( L I S T ' " < - C O - A G E N r - " ( N O U N - L I S T - G E T ( N P - B U 1 L D T E S T E E ) ) ) ) ) ) ) ) ( D E F U N C O M P - I N T E R S E C T ION (A B) ( M A P C ' ( L A M B D A ( X ) ( C O N D ( ( M E M B E R X B) ( S E T Q A ( S O F T - D E L E T E X T A ) ) ) ) ) A) A ) ( D E F U N C O M P L E M E N T ( L ) ( S E L E C T Q ( C A R L ) C T U - C O M P ' T O ) ( ' B Y - C O M P ' B Y ) ( ' S O - C O M P » SO) ( ' W H E N • W H E N ) ( ' W H I L E ' W H I L E ) I * B E F O R E ' B E F O R E ) I ' A F T E R ' A F T E R ) N I L ) ) ( D E F U N C O N T E X T (A S ) ; T H I S C A S E IS NOT I M P L E M E N T E D Y E T . N I L ) ( D E F U N C O N T I N U E ( ) T H I S IS T H E R O U T I N E T H A T C O N T R O L S T H E S T A C K OF C A S E S . . FN IS T H E F U N C T I O N W H I C H W I L L AOD A S T R U C T U R E TO T H E C U R R E N T S T R U C T U R E IN S T R U C T . T A I L - E N D S S U C C E E D S IF T H E R E S T OF T H E S E N T E N C E C A N BE A N A L Y Z E D IN T H E C U R R E N T C A S E F R A M E . ( S E T Q F A I L - L I S T ( A P P E N D F A I L - L I S T ( L I S T M U M ) ) ) I F L A G - O N P A R T K E E P - S E N T S T R C T ) ( C O N D ( ( T A I L - E N D S ) ( E V A L F N ) ( P U T - I N - L I S T V E R B ' C A S E - M I S T P R E P S C A S E ) ) ) ) IDE P U N C O P U L A K - A D V ? N E X P K ( T E S T ! /Of ; m i s is A C A S E or HIE V E K I I " T O ir L O O K S A F T E R S E N T E N C E L I K E : ; "I AM W E L L . " ( P R O G ( T E S T E E K - S P T NN T E M P R E T ) ( S E T Q K - S K E E P - S E N T NN ( P I T ! * A S E - H U M ' V P K E E P - S E N T ) T E S T E E ( E L M T ( S E T Q N M ( A O D 1 N N ) ) K E E P - S E N T ) ) L O U P ( C O N D ( ( N U L L T E S T E D I C O N D ( E f ( S E T U F A I L - T E S T f F A I L - T E S T - L I S T ( A P P E N D ( L I S T • C O P U L A R - A O V ) F A I L - T E S T - L I S T ) ) ) ) ( R E ( U R N M I L ) ) ( ( A M D I EO ' " < ~ A O V - " ( C A R T E S T E D ) ( N O T ( C A D R T E S T E E ) ) ( S E T O F T T ) ( E V A L T E S T ) ) I S E T O T E M P I A D V - L O C T E S T E E T • C U P U I . A R - A D V ) I ( F L A G - O N T E S T E E K E E P - S E N T I S E T O R E T ( C U O R T E M P ) ) ) ( R E TURN R E F ) ) I T ( S E T U T E S T E E ( E L M T I S E . ' O N N l A D U l N N ) ) K E E P - S E N T ) ) I G O L O O P ) ) ) ) ) ( D E F U N OA TE ( N P ) (MEMBER ' Y E A R ( G E T ( N O U N - G E T N P ) - N - P R O P ) ) ) ( D E F U N D B L Q (L) • ( L I S T ' Q U O T E ( L I S T ' Q U O T E Z ) M ( D E F U N D E E P - M E M B E R I H L 2 ) T H I S R O U T I N E S U C C E E D S IF L 2 I S A D E E P MEMBER O F L I . I PROG N I L L O O P (COND ( ( N U L L H ) ( R E T U R N N I L ) ) ( ( D E E I ' - M E M B E R l ( C A R L L ) L 2 ) ( R E T U R N ( C A R L I ) ) ) ( T ( S E T Q L L (CDR L I D ( G O L O O P ) ) ) ) ) ( D E F U N D E E P - M E M B E R ! ( H L 2 ) (COND I ( N U L L L 2 ) N I L ) ( ( E Q U A L L I L 2 D ( ( A T O M L 2 ) N I L ) (T (OR ( D E E P - M E M B E R 1 L I ( C A R L 2 ) ) ( D E E P - M E MBE R I L I (COR L'2 ) ) ) ) ) ) ' ( D E F U N D E E P - P H R A S E - N U M (A L ) ( P R O G (NN) ( S E T Q NN 0) L O O P (COND ( ( N U L L D O ) ( ( D E E P - M E M B E R I A ( C A R L I I ( A 0 0 1 N N D ( T ( S E T Q NN ( A U D I NN) L ICDR L ) ) (GO L O O P ) ) ) ) ) ( D E F U N D E F A U L T (A B) T H I S R O U T I N E A L L O W S T H E D I C T I O N A R Y W R I T E R TO L E T C A S E S D E F A U L T IF NOT S P E C I F I E D IN THE S E N T E N C E . I E : " T H E P IAN I ST VM.AYED A L L D A Y . " — T H E P A T I E N T C A S E C O U L D D E F A U L T TO " T H E P I A N O " BY U S I N G T H I S R O U T I N E IN T H E D E F I N I T I O N OF " T O P L A Y " . ( P R O G ( T E M P ) ( S E T Q T E M P ( G E T B ' D E F A U L T ) ) L O O P (COND ( ( N U L L TEMP) • O B L ) ( ( A N D ( M E M B E R V E R B ( C A D R T E M P ) ) I ME-1 BER A ( C A R T E M P ) . ) ) ( R E T U R N ( L I S T ' Q U O T E ( C A D D R T E !*'.'•) ) )') ( T ( S E T Q T E M P ( C D D D R T E M P ) ' ) (GO L C Q P ) ) ) ) ) ( D E F U N D E F I N I T E - D E T ? ( 0 ) (MEMBER D ' ( T H E A L L T H A T T H O S E T H I S T H E S E ) ) ) ( D E F U N D E S C ( T E S T E E P R E P ) T H I S IS T H E O E S C k l P I I V E C A S E : THE C A S E DF T H E N O U N . THE P H R A S E P K E C E E O I N G IS TI.IE O N L Y ONI: C O N S I D E R E D A S THE ONE B E I N G M O D I F I E D . T H I S C O U L D BE C H A N G E D BY I N V O K I N G C H O O S E - E L M T . THE E L E M E N I C H O O S E N MUSI BE A P R E P - P H R A S E OR A NOUN P H R A S E . ( P R O G ( PR N I E M P ) (COND ( I A N ! ) ( M E M B E R PRE P 1 ( B E F O R E A F T E R ) ) ( S E T O T E M P I B E F OR E - A F T E R - D E SC V T E S T E E P R E P NN ) ) ) I S E I O T E S T E S TE M P ) ) ( ( S E T O PRN ( P R O ? T E S T E E ) I ( S E T O T E S T E E ( P R O - A N A P H O R V ' ( P A T I E N T D E S C T O P I C A G E N T ) T PRN T E S T E E ) ) ) ) . ( C O N D ( ( N U L L T E S T E E ) ( R E T U R N N I L ) ) I I O R ( E U NM 1) (NOT (MEMBER ( C A R ( S E T Q TEMP ( E L M T ( S U B l NN) K E E P - S E N D I ) ' ( P R NP I ) ) ) ( R E TURN M I L ) ) ) ( C O N D ( ( A N D (OR ( S T A R T - L I S T " D E T T E S T E E ) (NOT ( EU ( C A D R ( S T A R T - L I S T ' N U M B E R T E S T E E ) ) ' S G ) ) ) I D E S C - M O D 7 T E S T E E T E M P P R E P ) ) ) ( T ( R E T U R N N I L ) ) ) ) ) ( D E F U N D E S C - A C R O S S (A B) ( O E S C - T R A J ' A C R O S S A H I ) ( D E F U N D E S C - A R O U N D (A B) ( D E S C - T R A J ' A R O U N D A B ) ) ( D E F U N D E S C - A T ( T E S T E E M - P H ) (NOT ( M U S T - B E H U M A N ) ) ) ( D E F U N . D E S C - B E S I D E (A B) ( D E S C - B Y - N E A R - B E S I D E ' B E S I D E A B ) ) ( D E F U N D E S C - B Y ( A B ) ( D E S C - B Y - N E A R - B E S I D E ' B Y A 8 ) ) ( D E F U N D E S C - B Y - N E A R - B E S I D E ( K A S E O - P H M - P H ) I T H I S H A N D L E S T H E D E S C R I P T I V E C A S E FOR P H R A S E S B E G I N N I N G W I T H ; B Y , N E A R , OR B E S I D E . IT I N S I S T S T H A T T H E NOUNS IN Q U E S T I O N E I T H E R B O T H BE S M A L L OR E L S E BE A B O U T T H E SAME S I Z E , OR E L S E T H E S E C O N D ; ONE MUST BE A BODY OF W A T E R : "I W A L K E D B E S I D E T H E C C E A N . " ( P R O G ( S I S 2 ) ( S E T Q S 2 ( G E T ( N O U N - G E T M - P H ) ' O B J - S I Z E ) ) ( R E T U R N ( C O N D { ( A N D (OR ( S T A R T - L I S T ' D E T D - P H ) (AND ( H A B I T U A L ? ) (NOT ( E O ' S G ( C A D R ( S T A R T - L I S T ' N U M B E R D - P H ) ) ) ) ) ) (OR (AND ( L E S S P ( S E T O S I ( G E T ( N O U N - G E T O - P H I ' O B J - S I Z E ) ) 6 ) I L E S S P S 2 6 ) ) ( L E S S P ( A B S I SUB S I S 2 ) ) 2 ) (MEMBER ( N O U N - G E T O - P H ) ' ( O C E A N S E A L A K E ) ) ) ) ( C A S E - R E T U R N ' L O C K A S E D - P H ) ) ) ) ) ) t D E F U N D E S C - F R O M ( D - P H M - P H ) I T H I S H A N D L E S T H E S T R U C T U R E : " T H E MAN F R O M P A R I S . . . " ( P R O G ( T E S T E E ) ( S E T Q T E S T E E M - P H ) ( C O N D ( ( G R E A T E R P ( G E T ( N O U N - G E T D - P H ) ' O B J - S I Z E ) 3 ) ( C O N O ( ( A N D ( M U S T - B E A N I M A T E ) ( S E T Q T E S T E E O - P H ) ( M U S T - B E L O C A T I O N ) ) ( B U I L D Q ("< = = >" 9 P A S T ("<—" I N H A B I T ID) ( N O U N - L I S T - G E T ( C O P Y M - P H ) ) ( N O U N - L I S T - G E T ( N P - B U I L D D - P H ) ) ) ) (T ( C A S E - R E T U R N ' U E S C ' F . ' C M D - P H ) ) ) ) ) ) ) ( O E F O N D E S C - I N ( D E S C - P H MOD7 - P H ) ; T H I S H A N D L E S P H R A S E S L I K E : " T H E MAN IN T H E H O U S E . " I PROG ( S I S 2 ) ( S E T Q SI ( G E T ( N O U N - G E T D E S C - P H ) " O B J - S I / E ) S2 ( G E T ( N O U N - G E T MCD7 - P H I ' O B J - S I Z E ) ) ( R E T U R N ( C O N D ( ( O R ( N U L L S I ) ( N U L L S 2 ) ) N I L ) ( (AND T E S T - O F F ( G R E A T E R P ( S U B S I 2 ) S 2 1 ) ( C A S E - R E T U R N ' L O C M M D E S C - P H ) ) ( ( A N D S H O U L D - T E S T - O F F ( G R E A T E R P ( S U B l S I ) S21I ( C A S E - R E T U R N ' L O C ' I N D E S C - P H ) ) ( ( G R E A T E R P SI S 2 I ( C A S E - R E T U R N ' L O C ' I N D E S C - P H ) ) ) ) ) ) ( D E F U N D E S C - M O D ? ( T E S T E E P A R T P R E P ) ( P R O G ( T E M P ) ( C O N D ( ( A N O (OR ( S T A R T - L I S T ' D E I P A R T ) (NUT ( E U ( C A D R ( S T A R T - L I S T ' N U M B E R P A R T ) ) ' S G ) ) 1 ( S E T U TEMP ( C A N - M U D - D E S C ? T E S T E E PART P R E P ) ) ) ( S E T O E N M R P L A C D ( E N D - L I S T P L A C E ) ( L I S T S T R C T ) ) P L A C E ( N O U N - L I S T - G E T P A R T ) P R E P f . C A S E ( L I S T P R E P - D E S C ) NUM ( P H R A S E - N U M 2 P A R T K E E P - S E N T ) ) T E M P ) ) ) ) ( D E F U N D E S C - N E A R (A B) ( D E S C - B Y - N E A R - B E S I D E ' N E A R A B ) ) I D E F U N D E S C - U K ; 1 H I S H A N D L E ' ; I P R O G ( T E M P ) ( T E S T E S P A R I ) i " H I E B O O K S UK 10<° J O H N . AND " T H E B O X O F B O O K S . ( S E T O T E M P T E S T E E ) • - , ( C O N D ( ( M U S T - B E HUMAN) ( L I S T " • < = = > " ( N O U N - L I S T - G E T ( N P - B U I L D T E S T E E ) ) ( L I S T • " < — " ( P O S S E S S I O N I E ST EE P A R T ) ( ( A N D ( S E T O I E S I E E P A R T ) ( M U S T - H E C O N T A I N E R ) ) ( L I S T • "< - • = > " ( N O U N - G E T P A R T I ( L I S T • "< — " I T ( L I S T - D E S C - " P R E P ( N U U N - I . l S T - G E T ( N P - B U I L D T E S T E E ) ) ) ) ) ) ) ( N O U N - L I S T - G E T ( C O P Y P A R T ) ) ) ) ) C O N T A I N ( N O U N - L I S T - C C T ( N P - B U I L D T E M P ) ) ) ) ) ( D E F U N O E S C - O N (A U) ( D E S C - O N - U N D E R ' ON A Ti l ) ( D E F U N D E S C - O N - U N D E R ( K A S E D - P H M - P H ) T H I S H A N D L E S : " T H E I T HAS T H E U R V I O U S ( P R O G ( S I S2> ( S E T Q SI ( G E T ( R E T U R N ( C O N D AND " T H E MAN UNDER T H E C A R . MAN ON THE T A B L E " S U E R E S T R A I N T S . ( N O U N - G E T D - P H ) ' O B J - S I Z E ) S2 ( G E T ( N O U N - G E T M - P H ) ' O B J - S I Z E ) ) ( ( O R ( N U L L S I ) ( N U L L S 2 ) ) N I L ) . ( ( O R ( A N D T E S T - O F F ( L E S S P S I 1 0 ) ) ( A N D S H O U L D - T E S T - O F F ( L E S S P S I 7>) (AND ( L E S S P SI ?) (OR ( G R E A T E R P SI 0 ) ( L E S S P S2 2 ) ) ) ) ( C A S E - R E T U R N ' L O C K A S E D - P H ) ) ) ) ) ) ( D E F U N D E S C - T R A J ( K A S E D - P H M - P H ) ; T H I S H A N D L E S " T H E MAN A C R O S S T H E ( P R O G ( S I S2) ( S E T O S I ( G E T ( R E T U R N ( C O N D ROOM . E T C ( N O U N - G E T D - P H ) ' O B J - S I Z E ) S2 ( G E T (NOUN ( ( O R ( N U L L S I ) ( N U L L S 2 1 ) N I L ) ( ( O R (AMD T E S T - O F F ( G R E A T E R P S I 0 ) ) (AND S H O U L D - T E S T - O F F ( G R E A T E R P S I 1 ) ) ( G R E A T E R P S I 2 ) ) ( C A S E - R E T U R N ' L O C K A S E O - P H ) ) ) ) ) ) G E T M - P H ) " O B J - S I Z E I ) ( D E F U N DE S C - U N D E R ( A B) ( D E S C - O N - U N D E R ' U N D E R A B ) ) ( D E F U N D E S C - W I T H ( D - P H M - P H ) ; T H I S H A N D L E S " T H E BOX W I T H T H E P E N C I L S ; " T H E G I R L W I T H THE R E D H A I R . . . " . E T C ( P R O G ( N E X T P R N ) ( R E T U R N ( C O N D I N I T . ^ u V ^ E T Q ^ ^ « « • — ™ ™ ' ' K E E P - S E N T ) ) K E E P - S E N T ) ) ) , , A N D S « E ™ R N E X D ' . ^ r . ^ ' p R N ( P R O ? ( C A D D D R N E X T , , , ( P R N - M A T C H ? PRN M - P H , , ( F L A G - O N NEXT K E E P - S E N T T , ( P R E P - V E R B - A S S O - C C M P L X - R E T U R N ( C O P Y M - P H ) D - P H N E X T ) ) ( T ( C A S E - R E T U R N ' D E SC ' W I T H O - P H ) ) ) ) ) ) ( D E F U N D E S T I N A T I O N ( T E S T E E P R E P ) ( S O U R C E - D E S T T E S T E E P R E P ' D E S T I N A T I O N ) ) ( D E F U N DROP (M L E T S ) ( C O N D ( ( Z E R O P N) L E T S ) ( T ( D R O P ( S U B 1 N) t C D R L E T S ) ) ) , ) ( D E F U N D R 0 P 6 G 0 ( L S T L E T S ) . ( S E T Q L E T S ( D R O P ( L E N G T H ( C A R L S T ) ) L E T S ) ) ( E V A L ( C A D R L S T ) ) I ( D E F U N D U R A T I O N ( N P P R E P ) ; T H I S IS T H E D U R A T I O N C A S E . I C O N D ( ( D U R A T I O N ? N P ) ( S E T - U P - C M ' D U R A T I O N P R E P ) ( B U I L D O ( " < - D U R A T I O N - " 0) ( N O U N - L I S T - G E T ( N P - B U I L D N P ) ) ) ) ) 1 (I )EEUM DURAT I O N ? (MP) • T H I S IS T H E T E S T FOR T H E D U R A T I O N C A S E . ! IT S U C C E E D S ON " T H E Y P L A Y E D FOR AM H O U R . '; " T H E Y Pt A YET) IN AM H O U R . " (UR (AND ( I S - I T MP ' T I M E ) I E Q ( C A R t G E T R (AND ( I S - I T NP ' T I M E ) ( E O ( C A R ( G E T R T N S ) ) T N S ) ) • P A S T ) ( N O T ( D A T E N P ) ) ) • P R E S E N T ) ( H A B I T U A L ? ) ) ) ) J • tol IDEFUN ELHT IM K-SI ; THIS RETURNS T HE NTH ELEMENT OF THE L F ST K-S. (PROG NIL LOOP (CIJMO I (OR (NULL K-S I (LESSP N 1)1 NIL) ( (LESSP 1 N) (SETO N ( S U I i l N) K-S (COR K-S)) (GO LOOP)) (T (RETURN (CAR K-S)1)))I (DEFUN END-LIST (TEMP) ; THIS RETURNS THE LAST ELEMENT OF A LIST. (PROG NIL LOOP (CONO ((NULL (CDR TEMPI) (RETURN TEMP)) (T (SETO TEMP (CDR TEMP)) (GO LOOP))))) ( D E F U N E R C A T I V E ( V E R B ) ; T H I S IS THE D I C T I O N A R Y E N T R Y FOR E R G A T I V E V E R B S . ( I F ( ( A G E N T ( M U S T - B E A N I M A T E ) ) AG SOMEONE (COND ( ( A N D ( E G ' S O M E O N E ( G E T R A G ) ) ( A G E N T (NOT ( S H O U L D - B E H U M A N ) ) ) ) ) ) INST OPT ( P A T I E N T ( N O T { S H O U L D - B E H U M A N ) ) ) PA ( P R O G N ( S E T R PA ( G E T R I N S T ) ) ( S E T R I N S T N I L ) ' O P T ) ) ( B U I L D Q ( 3 (••<==>") ( ? ) ( " « • " ) ( ( " < — " II ?)) #) A G TNS V E R B PA (CONO ( ( M U L L ( G E T R I N S T ) ) N I L ) ( T ( L I S T ( L I S T ' " < - I N S T R U M E N T " ( N O U N - P U T ' I N S T ) ) ) ) ) ) ) ) ( D E F U N E V - S E T R F E X P R ( X ) T H I S R O U T I N E E V A L S ( C A R X) AMD S E T R ' S ( P R O G ( T E M P ) ( S E T Q R E G S ( C O N S ( C O N S ( E V A L ( C A R I S E T Q TEMP R E G S ) ) ( R E T U R N T E M P ) ) ) I T TO ( C A D R X ) . X) ) ( C U N D ( ( A T O M ( S E T Q TEMP ( E V A L ( C A D R X ) ) ) ) T E M P ) (T ( M Y E V A L ( E V A L (CADR X ) ) ) ) ) ) ) ( D E F U N E X C H A N G E ( T E S T E E P R E P ) ; T H I S I S T H E E X C H A N G E C A S E . ( P R O G ( P R N ) ( R E T O R N ( C O N D ( ( S E T O PRN ( P R O ? T E S T E E ) ) ( P R U - A M A P H O R ? ' ( P A T I E N T E X C H A N G E B E N E F I C I A R Y A G E N T ) • ( N O T I S H O U L D - B E HUMAN A B S T R A C T ) ) PRN T E S T E E ) ) ( ( N O T ( S H O U L D - B E HUMAN A B S T R A C T ) ) ( S E T - U P - F N • E X C H A N G E P R E P ) ( L I S T • " < - E X C H A N G E - " I N G ' J N - L I S T - G E T ( N P - B U I L D T E S T E E ) ) ) ) ) , ) ) ( D E F U N E X P E C T E D - E F F E C T ( T E S T E E P R E P ) ; T H I S IS T H E E X P E C T E D - E F F E C T C A S E . ; " F R E D P L A Y E D T H E P I A N O SU WE WOULD L E A V E . " ( P R O G ( S U P E R - S E N T ) ( S E T Q S U P E R - S E N T ( A L L - F L A G - O F F ( C O P Y K E E P - S E N T ) ) ) (COND ( ( A N D ( E Q • S U P R E P ) (EO ( C A R T E S T E E ) ' W O U L D ) ) ( P R O G ( T E M P ) ( S E T Q A G - A M A P H O R ( G E T R A G ) P A - A N A P H O R ( G E T R P A ) ) ( C O N U ( ( N O T ( A T O M ( S E T O T E M P ( E V A L ( C A D R T E S T E E ) ) ) ) ) ( S E T - U P - F N ' E X P E C T E D - E F F E C T P R E P ) ( S E T Q A G - A M A P H O R N I L P A - A N A P H G R N I L ) ( R E T U R N ( L I S T - ' " < - E X P E C I C D - E F F E C T - " T E M P ) ) ) ) ) ) ) ) ) ( D E F U N F I N D - ANA PHUR ( H I S T K T E S T PRN 111 S T - S N T ) I PROG ( T P T E M P ) L O O P (COND ( ( N U L L H I S T - S N T ) I R E T U R N N I L ) ) ( ( A N D (OR ( A M U ( N U L L K ( ( N O T (CAIIAK H I S T - S N T ) , ) ( E O K ' C H E C K ) ) ( S E T O TEMP ( A N A P H O R ? ( C A R H I S T - S N T ) M I L H I S T - S N T T E S T P R N ) ) ( P R O G N ( F L A G - O N ( C A R H I S T - S N T ) ICAR S E N T - H I S T ) T ) T ) T E M P ) ) ( ( A N D ( N O T ( N U L L K ) ) (MOT ( E 0 ' C H E C K K) ) ( S E T Q TEMP ( C A S E - F I N D H I S T ( C A R K ) ) ) ( S E T O TP ( A N A P H O R ? TEMP ( C A R K ) H I S T T E S T P R N ) ) T P ) ) ( ( A N D (MOT ( N U L L K l ) (NOT ( E O ' C H E C K K ) ) ( S E T Q TEMP ( N O U N - L I S T - G E T ( S E C O N D - C H A N C E ( C A R K ) PRN H I S T - S N T H I S T ) , , ) ) ( (AND (MO T ( N U L L K) ) (MOT ( E Q ' C H E C K K l ) ( T H I R D - C H A N C E ( C A R K) PRN H I S T ) ) ) ( ( N U L L K ) ( S E T Q H I S T - S N T ( C D R H I S t - S N T l l (GO L O O P ) ) ( ( E Q K ' C H E C K ) (COMD ( ( N O T (MEMBER • ( S O - C O M P T H A T - C O M P T O - C O M P ISY-COMP ) ( C A A R ( SE TO- HI S T - S N T ( C D R H I S T - S N T ) ) ) ) ) I G U L O O P ) ) I T ( R E T U R N N I L I ) ) ) ( (NOT ( N U L L I S E T O K. (CUR K ) ) ) l (GO L O U P ) ) ) ) ) . I • • | I i- • :( D E F U N F l N O - L I S T IL A) ; ( C U N U ( ( O R ( N U L L L ) ( A T O M L I I N, I L ) ; ( I E U A ( C A R L ) I L I j ( ( F t N D - L I ST ( C A R L I A l l i (T I F I N D - L I S T ( C D R L ) A l l ) ) 1 ; (0 E E U N F L A G - O F F I X K - S ) ; T H I S I URNS X ' S F L A G O F F . ( P R O G N I L L O U P (COND ( ( O R ( N U L L K - S ) ( EO • • P A R T I C L E ( C A A R K - S ) ) ) X ) ( IEOUAI . X ( C A R K - S ) ) I R P L A C A I C U A R K - S ) N I L ) (COND ( ( M E M B E R ( C A R X) M R E L O B J - H E L P . E D - R E L O B J - R E D - R E L ) ) ( A L L - F L A G - O F F ( S T A R T - R E L ( C A R K - S ) ) )) ) X ) ( T ( S E T Q K - S ( C O R K - S ) ) (GO L O O P ) ) ) ] ) ( D E F U N F L A G - O F F - H I S T (A B ) T ) /0% ( D E F U N F L A G - O N (P K - S F L A G ) ; T H I S T U R N S P ' S F L A G ON ( S E T S IT TO F L A G ) . I P R O G N I L L O O P • ( C O N D ( ( N U L L K - S ) N I L ) ( ( E Q U A L P ( C A R K - S ) ) ( R P L A C A ( C D A R K - S ) F L A G ) P ) ( T ( S E T U K - S (CDR K - S ) ) (GO L O O P ) ) ) ) ) ( D E F U N G E T - U N F L G D - N P - A F T R - V B ( ) ; T H I S R E T U R N S T H E F I R S T U N F L A G G E D NP A F T E R T H E V E R B . ( P R O G ( K ) ( S E T Q K K E E P - S E N T ) L O O P ( COND ( ( N U L L K ) ( R E T U R N N I L ) ) ( ( EO ( C A A R K ) ' VP ) ) ( T ( S E T Q K ( C D R K ) ) (GO (CO^ID ( ( A N D ( N U L L ( C A D R ( S E T U L C O P ) ) ) K ( C A D R K ) ) ) ) ( E Q ' N P ( C A R K ) ) ) ( R E T U R N K ) ) ) ) ) ( D E F U N H A B I T U A L ? ( ) (OR H A B I T U A L ( D E E P - M E M B E R ( U S U A L L Y A L W A Y S S O M E T I M E S O F T E N ) I N P U T * ) * ) ) ) ( D E F U N I F F E X P R ( X ) IE IS T H E M A I N F U N C T I O N U S E D IN D E F I N I N G C A S E F R A M E S . ; I T T A K E S A N E V E N NUMBER OF A R G U M E N T S AND A P P L I E S C A S E TO ; T H E F I R S T OF T H E P A I R S , B U I L D S THE S T R U C T U R E A S S O C I A T E O W I T H T H A T I C A S E F R A M E , C A L L S T A I L - E N D S , AND R E T U R N S T H E S T R U C T U R E T H U S B U I L T . ; IF ANY OF T H E S E F A I L S , IT G O E S ON TO T H E N E X T P A I R - . ( P R O G N I L L O O P ( C O N D ( ( N U L L X ) N I L ) ( ( A N D ( A P P L Y 1 ' C A S E ( C A R X ) ) ( S E T Q S T R U C T ( E V A L (CADR X ) ) ) ( T A I L - E N D S ) ) ( R E T U R N S T R U C T ) ) ( T ( S E T Q X ( C D D R X I ) (GO L O O P ) ) ) ) ) ( O E F O N I M P L O D E ( L ) (COND ( ( E Q ( L E N G T H L ) 1) ( C A R L>> (T ( I M P L O D E ( A P P E N D ( L I S T (MKATOM ( C A R L ) ( C A D R L ) ) ) (CDDR L ) ) ) > ) > ( D E F U N I N D E F I N I T E - D E T (D) (NOT I D E F I N I T E - D E T D ) ) ) ( D F FUN I N D - S U B J ( A F ) I ; T H I S C A S E IS NOT I M P L E M E N T E D Y E T . j N I L ) ( D E F U N I N D - 0 6 J N E X P R ( T E S T ) ; T H I S F I N D S AM I N D I R E C T O B J E C T WHEN I T IS A NOUN P H R A S E : ; " F R E D P L A Y E D J A C K T E N N I S . " ( P R O G ( T E S T E E PRN T E M P ) ( C U N U ( (NOT ( N U L L ( S E T Q T E S T E E ( G E T - U N F L G U - N P - A E T R - V B I I ) I ( C U N D ( ( N U L L ( S E T Q PRN ( S T A R T - L I S T ' I ' R U T E S T E E ) ) ) t COND ( (OR ( T E S T - O F F ? ' I N O - U i l J ) ( E V A L T E S T ) ) ( F L A G - U N T E S T E E K E E P - S E N T T ) ( R E T U R N T E S T E E ) ) I T ( S E T U FA I L - T E . S T T ) N I L ) ) ) ( T ( P R O - A N A P I I U R ? ' ( A G E N T B E N E F I C I A R Y R E C I P I E N T C O - A G E N T P A T I E N T ) T E S T PRN T E S T E E ) t ) II I I /o1 ( U E F U N I N F E R ? ( A ) . . j A , I ' ( D E F U N I N S T R U M E N T ( T E S T E E P R E P ) ; T H I S IS T H E I N S T R U M E N T C A S E . ( P R O G ( P R N ) ( R E T U R N ( C O N D ( I 5 E 1 0 PRN (PP.0? T E S T E E ) ) ( I'KUG ( TEMP ) (COND ( ( S E T C ) TEMP ( P R O - ANAPHOR ? ' ( P A T I E N T I N S T R U M E N T ) M I N I T - T E S T T E S T E E V E R B P R E P ) PRN T E S T E E ) ) I S E T - U P - F N ' I N S T R U M E N T P R E P ) ( R E T U R N ( L I S T " ^ - I N S T R U M E N T - " T E M P ) ) ) ) ) ) , { ( I N S T - T E S T T E S T E E V E R B P R E P ) ( S L T - U P - F N ' I N S T R U M E N T P R E P ) ( L I S T ' "<-INSn<UMENT-" ( M O U N - L I S T - G E T ( N P - B U I L O T E S T E E ) ) ) ) ) ) ) ) ( D E F U N I N S T - T E S T ( T E S T E E V E R B P R E P ) I A N U ( N O T ( M U S T - B E H U M A N ) ) ( E Q ( C A A R T E S T E E ) ' N P ) ( M U S T - B E O B J E C T ) ) ) ( D E F U N I N T E R S E C T (A 8 ) ; T H I S R E T U R N S THE I N T E R S E C T I O N OF L I S T S A £ B . ( P R O G I T E M P ) (COND ( ( N U L L A) ( R E T U R N N I L ) ) ) L O O P •. (CONO ( ( N U L L B ) ( R E T U R N N ( L I ) ( ( M Y O R ( M A P C A R ' ( L A M B D A ( X ) (MEMBER X A ) ) ( S E T Q TEMP ( A P P E N D ( P R O P - L I S T B ' S U P E R S E T ) ( P R O P - L I S T B ' N - P R O P ) 8 ) ) ) ) ) ( T ( S E T Q B ( S U P E R S E T B I ) (GO L O O P ) ) ) ) ) ( D E F U N I N T - L 1 S T ( A B) (COND ( ( O R ( N U L L A) ( N U L L 0 ) ) N I L ) ( ( M E M B E R ( C A R A l B) ) ( T ( I N T - L I S T ( C D R A ) B ) ) ) ) ( D E F U N I S - I T ( P H P R O P ) ( M E M B E R PROP ( M Y E V A L ( G E T ( N O U N - G E T PH) ' N - P R O P ) ) ) ) ( D E F U N L E A V E - D E S T CA) T H I S IS A S T U B . I N " F R E 0 L E F T T H E H O U S E . " T H E D E S T I N A T I O N IS UN S P E C I F I E D . A R O U T I N E C O U L D BE W R I T T E N TO TRY TO F I G U R E OUT WHERE HE W E N T . ( O U T S I D E ? ) • S O M E P L A C E ) ( D E F U N L E A V E - S O U ( T E S T E E ) (COND ( ( M U S T - B E A N I M A T E ) ( L I S T " < - L O C - 0 F - " ( N O U N - P U T T E S T E E ) ) ) (T ( N O U N - P U T T E S T E E ) ) ) ) no ( O E K U N L E T S - G O I) ; T H I S IS T H E V E R Y T O P - L E V E L R O U T I N E WHICH R E A D S IN S E N T E N C E S ; AS S T R I N G S OF I N D I V I D U A L A T O M S . IT C O N S I D E R S A S E N T E N C E E N D E D IF IT ; F I N D S A . ? OR I AT T H E END OF A WORD. T H E S E A R E THE O N L Y . I P U N C T U A T I O N MARKS A L L O W E D . IT C H E C K S FOR A S T O ABORT A S E N T E N C E , ; OR A It TO L E A V E T H I S M O D E . ANY L I S P FORM W I L L BE E V A L E D IN T H I S M O D E . ; IF A R O U T I N E IS NOT L O A D E D ( V I A L O A D E R ) IT W I L L NOT BE E V A L E D . I P R O C i l l l S I O R Y I N P U T * : / I I I A T - C M P WORD S U P E R - S E N T L E V E L Wl IM ANAPII O R - D EPTII F A I l . - T E S T - l . I S T T E S T - O F F S P E A K E R A M A P H O R - R t S P R E L - L E V E L S H O U L D - T E S T - O F F S E N T - H I S T T N S - F I X ? A G - A N A P H O R P A - A N A P H O R ) ( P R I N T ' " H E L L O . YUU ARE NOW III C O N V E R S A T I O N A L M O D E . " ) ( P R I N T ' " A N Y L I S P FORMS W I L L flu E V A L E D IN T H I S M O D E . " ) ' ( P R I N T ' " Y O U MAY R E T U R N TO L I S P BY E N T E R I N G A .'(.") ( P R I N T ' " I F YOU E N T E R A 3 AS A WORD IN A S E N T E N C E , T H A T S E N T E N C E " ) I P R I N T ' " W I L L B E A B O R T E D " ) ( V E R B - C L E A N ) ( S E T Q S P E A K E R N I L ) L O O P 1 ( S E T Q I N P U T S N I L ) L O O P 2 ( S E T Q WORD ( R E A D I ) (COND ( ( N O T ( A T O M WORD)) ( P R I N T (MY EV AL W O R D ) ) (GO L O O P 2 ) ) ( ( E O WORD '#) ( R E T U R N ' " B Y E D Y E " ) ) ( ( E Q WORD ' 3 ) ( P R I N T ' " S E N T E N C E A U O R T E D " ) (GO L O O P 1 ) ) ( ( N O T I MEMBER (CAR ( S E T O Wl ( R E V E R S E ( E X P L O D E W O R D ) ) ) ) • ( . ? ! ) ) ) ( S E T Q I N P U T / I * ( A P P E N D I N P U T * * ( L I S T W C R O I I I (GO L O O P 2 ) ) ) ( S E T Q T H A T - C M P N I L INPUT!/ /* ( A P P E N D I N P U T S * ( L I S T ( I M P L O D E ( R E V E R S E (COR Wl.) ) ) ) ) L E V E L 0 A N A P H O R - D E P T H 0 T E S T - O F F N I L F A I L - T E S T - L I S T N I L T N S - F I X ? M I L A N A P H O R - R E S P N I L -S H O U L D - T E S T - O F F N I L • • R E L - L E V E L 0 H I S T O R Y I A P P E N D (COND ( ( A T O M ( C A R ( S E T Q T M ( L I S T ( I N F E R ? (PR T Y - PR I NT ( E V A L ( M Y P A R S E INPUT.*/* S ) ) ) ) ) ) ) ) N I L ) ( T TM>> H I S T O R Y ) ) ( A L L - H I S T - O F F S E N T - H I S T ) (GO L O O P I ) ) ) ( D E F U N L I K E ( T E S T E E P R E P ) ; T H I S IS T H E L - I K E C A S E . ( P R O G ( P R N ) ( R E T U R N ( C O N D ( ( S E T Q PRN ( P R O ? T E S T E E ) ) ( P R O G ( T E M P ) (COND ( ( S E T Q T E M P ( P R O - A M A P H O R ? * ( L I K E P A T I E N T T O P I C A G E N T B E N E F I C I A R Y ) T PRN T E S T E E ) ) ( S E T - U P - F N ' L I K E P R E P ) ( R E T U R N ( L I S T ' " < - L I K E - " T E M P ) ' , ) ) ) ) ( T ( S E T - U P - F N ' L I K E P R E P ) ( L I S T - ' " < - L I K E - " ( N O U N - L 1 S T - G E T I N P - B U I L O T E S T E E ) ) ) ) ) ) ) ) ( D E F U N L I S T E N - T O P I C ? ( T E S T E E ) ; T H I S B U I L D S T H E T O P I C C A S E FOR L I S T E N . " L I S T E N TO B E E T H O V E N " ; MEANS L I S T E N TO THE M U S I C C O M P O S E D BY B E E T H O V E N . E T C . (COND ( ( N U L L T E S T E E ) M N ( S O M E T H I N G ) ) ) ( ( M U S T - B E M U S I C ) ( N O U N - L I S T - G E T T E S T E E ) ) ( ( M U S T - B E C O M P O S E R ) ( L I S T ' M U S I C ( L I S T •"<==" ( L I S T •"<==>" I N O U N - L I S T - G E T T E S T E E ) ' C O M P O S E ' M U S I C ) ) ) ) ( ( M U S T - B E M U S I C I A N ) ( L I S T ' M U S I C ( L I S T •"<==" ( L I S T •"<==>" ( N O U N - L I S T - G E T T E S T E E ) ' P L A Y ' M U S I C ) ) ) ) (T ( L I S T ' S O U N D ( L I S T •"<==" ( L I S T •"<==>" ( N O U N - L I S T - G E T T E S T E E ) ' C A U S E ' S O U N D ) ) ) ) ) ) ( D E F U N L I S T - I T ( A ) (COMD ( ( M U L L A) N I L ) ( T I L I S T A ) ) ) ) ( D E F U N L I S T - I T - l ( A ) ( C O N D ( ( N U L L A) N I L ) ( T ( C O N D ( ( E Q ( L E N G T H A) 2 ) ( S E T Q A ( A P P E N D ( C A R A) I C A D R A ) ) ) ) ( T ( S E T Q A ( C A R A ) ) ) I ( L I S T ( M A P C A R ' L I S T - I T - 2 A ) ) ) ) ) ( D E F U N L I S T - I T - 2 ( A ) (COMD ( ( O R ( A T O M A) ( N U L L A ) ) A) ( (AND ( N O T ( N U L L ( C A D R A ) ) ) . ( N O T ( E Q T .(CADR A ) ) ) . ) A) (T ( C O N S (CAR A ) ( C U D R A ) ) ) ) ) I (DEFUN LDCAI ION ( TESTEE PRLP) ; THIS 1S THE LOCATION CASE. (PROC MIL (COND ((NOT ILOC-TEST. PREP) ) NIL) (T (COND I I ATI ER-AMD-KI.ID? PREP NN I (SET-UP-FN •LOCATION PREP) (LIST '"<-LUC-" PREP (NOUN (T (PROG (TEMP) LOOP ( SETU ( COND •LIST-GET (NP-BUILD TESTEE)))) TE STEE NN FAIL-L1 S T ) ) TEMP (CHOOSE-ELMT-PREP ( ( NULL 1 El'P) NIL ) ((LflC-MOTJ? TESTEE TEMP PREP ) ) (T (SETO FAIL-LIST (APPEND FAIL-LIST (LIST NUM))) (GO LOOP ))))).))))) (DEFUN LOC-MOD? (PROG (TEMP) (RETURN (NP PHRASE PREP) INP-BUILO NP)))) 1NPR PHRASE)) ((EO 'VP (CAR PHRASE)) (SET-UP-FN 'LOCATION PREP) (LIST '"<-L0C-" PREP (NOUN-LIST-GET ((OR (START-LIST •N PHRASE) (START-LIST (SE(0 PREPCCASE (LIST PREP 'LOCATION) PLACE (NOUN-LIS T-GE T PHRASE) FN MRPLACD (END-LIST PLACE) (LIST STRCT) ) NUM ( PIIRASE-NUM2 PHRASE KEEP- SENT ) ) (LIST '"<-LOC-" PREP (NGUN-L t ST-GET (NP-UUILO NP)))))))) (OEFUN LOC-TEST (PREP) (OR (AND ( EQ PRE P MN) (SHOULO-BE CONTAINER BUILDING COUNTRY CITY CONTINENT STATE PROVINCE)) (AND (EQ P 1 E P 'AT) (NOT (MUST-BE HUMAN ABSTRACT))) (MUST-BE THING PLACE LOCATION))) (DEFUN LOOK-DOWN (TESTEE PRN TEST) ; THIS ROUTINE 'IS CALLED B Y THIRD-CHANCE. IT LOOKS.BACK THROUGH THE OLD PARSES TO RESOLVE ANAPHORIC REFERENCES. 1 PROG (TEMP) (COND ((OR I NULL TESTEE) (NULL TEST) (ATOM TESTEE)) NIL) I(EVAL TEST)) ((AND (SETQ TEMP (LOOK-DOWN (CAR TESTEE) PRN TEST)) (ANAPHOR-QUERY PRN (NOUN-LIST-GET TEMP)) TEMP)) ((AND ISETO TEMP (LOOK-DOWN (CDR TESTEE) PRN TEST)) (ANAPHOR-QUERY PRN INUUN-LIST-GET TEMP)) TEMP)1))I (DEFUN MAIN-WORD-GET (TESTEE) ; THIS RETURNS THE MAIN WORD OF A PHRASE. I PROG (TEMP) (RETURN (COND ((SETQ TEMP (NOUN-GET TESTEE)) TEMP) ((SETQ TEMP (START-LIST 'V TESTEE)) (CADR TEMP)) ( (SETQ TEMP (START-LIST 1 PRO TESTES)) (CADR TEMP)))))) (OEFUN MAKE-ARROW (KASE) (IMPLODE (LIST "'<-" KASE '"-"))) IDEFUN MANNER (TESTEE PREP) ; THIS IS THE MANNER CASE. (CONO ((SETQ PRN (PRO? TESTEE)) NIL) • ((MANNER-TEST TESTEE VERB PREP) (SET-UP-FN 'MANNER PREP) (LIST '"<-M ANNER-" PREP (NOUN-LIST-GET . (NP-BU(LD TESTEE)))))) (DEFUN MANNER-TEST (TESTEE VERB PREP) I THIS IS THE TEST FOR THE MANNER CASE. (OR (AND (EQ 'GO VERB) (MUST-BE CONVEYANCE)) (MUST-BE ABSTRACT))) (DEFUN METHOD (TESTEE PREP) ; THIS IS THE METHOD CASE. ; "THEY WENT BY CAR." ; "FRED HURT MAR Y BY HITTING HER." (PROG (TEMP) (COND ((AND (EQ (CAAR TESTEE) 1NP) (SET-UP-FN 'METHOD PREP) (LIST (MAKE-ARROW 'ME I HOD) (MUST-BE CONVEYOR CONVEYANCE)) PREP (NOUN-LIST-GET (NP-BUILD TESTEE)))) ((AND (EQ 'BY PREP) (SETQ AG-ANAPHOR (GETR AC.))) ( SE TQ (COND I'A-ANAPHUR (GETR PA) ) ((NOT (ATOM ( SETQ TEMP. (EVAL ICCNS •s (LIST (APPEND (LIST (COPY AG-ANAPHOR)) IREL-MODS-JOIN TESTEE NN)))))))I (SET-UP-FN 'METHOD PREP) ( SETQ AG-ANAPHOR NIL P.A.-ANAPHOR NIL) (LIST (MAKE-ARROW •METHOD) TEMP))))))) I D E F U N M O D I F Y ? ( P A R T N) T H I S IS C A L L E D IF S O M E T H I N G O T H E R THAN A P R E P U S I I U N A L P H R A S E OR A C O M P L E M E N T IS F O U N D I I N - F L A C G I - U IN T H E T A I L - E N D S P R O C E S S A D V E R B P H R A S E S , R E L A T I V E C L A U S E S , I HE S Y S T E M D O E S NOT H A N D L E T H I N G S S I N C E T H E ' N O U N - P H R A S E " L A S T N I G H T IT WOULD BE S I M P L E TU C H A N G E . AND C L A S S I F I E R S ARE H A N D L E D H E R E . L I K E : "I WENT HOME L A S T N I G H T . " IS NOT H A N D L E D IN T H I S R O U T I N E . ( P R O G ( T E M P NUM) ( R E T U R N (COND I ( AND ( ( AND P A R T ) • " < - A D V - " ) (CAR P A R T ) ) - C L A U S E ( R E L ( S E T Q S T R C T ( A D V - M C D ? P A R T T N I L ) ) ( C O N T I N U E ) ) ) • M O O S - J O I N PART M) N ) ) ( E Q ( C A R ( E O ' R E L ( S E T Q S T K C I I R E L( C O N T IMU'J ) ) ) ( I AND ( E Q • R E D - R E L ( C A R P A R T ) ) ( S E T Q S T K C T ( R E D - R E L - C L AU S E ( RE L - M O D S - J 0 I N PART iM ) N)> ( C U N T I N U E ) ) ) ( (AND ( E O ' O B J - R E L ( C A R P A R T ) ) ( S E T Q S T R C T ( O B J - R C L - C L A U S E ( R E L - M O D S - J C I N PART N) N ) ) ( C O M T I N U E ) ) I ( ( A N D ( E D M J H J - R E O - K E L (CAR P A R T ) ) ( S E T O S T R C T I O R J - R E D - R E L - C L A U S E ' ( R E L - M O O S - J C I N P A R T N) N ) ) ( C O N T I N U E ) ) ) ( ( A N D 1EQ 1 N P ( C A R P A R T ) ) ( S E T Q S T R C T ( C L A S S ? P A R T ) ) ( C O N T I N U E ) ) ) ( T I P R I N l ' M O D I F Y ? ) ( P R I N 1 P A R T ) ( T E R P R I ) ) ) ) ) ) ( D E F U N MORPH I WORD) ; T H I S IS T H E MORPHOLOGY R O U T I N E . (COND ( I G E T WORD ' O I C T 1 ) (T ( S E T Q L E T T E R S ( R E V E R S E ( E X P L O D E W O R D ) ) ) ( C O N D ( ( M O R P H I T M O R P H — T A B L E L E T T E R S ) T ) ( T I QUERY WORD) ) I ) ) ) ( O E F U N M O R P H I T ( M - T L E T S ) (COND ( ( N U L L M - T ) N I L ) ( (MY EQ ( C A A R M - T ) L E T S ) (COND ( I N O T N ( L ( D R O P S G O ( C A R M - T ) (T ( M O R P H I T (CDR M - T ) L E T S ) ) ) ) L E T S ) ) ) ( T ( M O R P H I T (COR M - T ) L E T S ) ) ) ) E F U N M U S T - B E F E X P R ( A ) ( P R O G ( T E M P ) ( C O N O ( ( I N T E R S E C T A ( S E T Q T E M P ( N O U N - M E A N ( N O U N - G E T T E S T E E ) ) ) ) ( R E T U R N T E M P ) ) ) ) ) I D E F U N MYEQ ( L S T L E T S ) (COND ( ( N U L L L S T ) ) ( ( N O T ( 6 0 ( C A R L S T ) ( C A R L E T S ) ) ) N ( L ) (T ( M Y E Q (CDR L S T ) (CDR L E T S ) ) ) ) ) ( D E F U N M Y E V A L ! Z ) ; T H I S T A K E S A FORM AND C A L L S S O E T - E V A L ON I T IF IT IS A L I S T I WITH A F U N C T I O N NAME S T A R T I N G I T . ; O T H E R W I S E IT J U S T R E T U R N S T H E F O R M . ( P R O G (Q F N T E M P ) (COND ( ( A T O M Z) Z) ( ( O R ( S E T Q F N ( G E T ( S E T Q Q ( C A R Z D ( S E T Q T E M P ' E X P R l D ( S E T Q F N ( G E T 0 ( S E T Q TEMP • S U B R ) ) ) ( S E T Q F N ( G E T Q ( S E T Q T E M P • F S U U R I ) ) ( S E T Q F N ( G E T Q ( S E T Q T E M P ' N S U B R ) ) ) ) ( S U F T - E V A L F N Z T E M P ) ) ( T Z) D ) ( D E F U N MYGET (W L ) ( C O N D ( ( A T O M L ) ( G E T W L ) I ( T ( G E T W ( C A R L D ) ) I ( D E F U N MYGET R F E X P R ( L S T ) (COND ( ( N U L L (CDR L S T ) ) ( G E T R V ( E V A L ( C A R L S T ) ) ) ) ( ( N U M B E R P (CADR L S T ) ) (CUNO ( l / F R O P ( C A D R L S T ) ) ( G E T R V ( E V A L ( C A R L S T ) ) ) ) ( T (CDR ( A S S Q ( C A R L S T ) ( C A D A R ( N T H S T A C K ( C A D R L S T ) ) ) ) ) ) ) ) (T (CDR ( A S S Q ( C A R L S T ) ( C A D R ( A S S Q ( C A D R L S T ) S T A C K ) ) ) ) ) ) ) ( D E F U N MYOR ( L ) (COND ( ( N U L L L ) N I L ) I ( C A R L I ) ( T ( MYOR (CDR D D I ) ( D E F U N M Y P A R S E F E X P R ( L ) ( P R O G (A : L E V E L : I A B S T ) ( S E T U : L F v E L 0) (CUND ( ( N U L L (CDR L D ( P E R R O R S E C O N D A R G U M E N T TO P A R S E IS U N S P E C I F I E D ) ( R E T U R N N I L ) ) ( I ( S E T Q ST ( C A D R L ) ) ) ) ( S E T Q A ( WEKR SE I ( P A R S E I ( E V A L ( C A R L D D ) ( R E T U R N (COND ( ( A T O M A ) N I L ) _ IT ( C O N D ( T E S T - O F F ( P R I N T ' " T H A T S E E M S S T R A N G E , B U T A N Y W A Y : " ) ) ) ( C A R A D D ) ) ( D E F U N M Y P O r (L ) M ' L i ( P U I ( C A R L ) ' G R A M M A R ( C O R L t l ) J ' (DC-FUN M Y R E T U R N (WRD F L A G ) I ( M Y E V A L ( C E ( W « 0 F L A G M l • ' i j |( D E F U N NE X r ( C L A S S ) ! ; T H I S R E T U R N S T IF THE N E X T WORD IN THE. I N P U T S T R E A M IS O F T Y P E C L A S S . ( P R O G N I L (COND ( ( A T O M C L A S S ) ( S E T Q C L A S S ( L I S T C L A S S ) ) ) ) L O O P (COND ( ( N U L L C L A S S I N I L ) ( ( G E T L E X ( C A R C L A S S ) ) ) (T ( S E T Q C L A S S (CDR C L A S S ) ) I Gi l L O O P ) ) ) ) ) ( D E F U N N O T N I L ( L l (COMD ( ( N U L L L ) M I L ) ( (NOT I M U L L ( C A R L ) ) ) ) ( T (NO T N I L (CDR L ) ) )) ) ( D E F U N N O U N - G E T ( P H ) ; T H I S R O U T I N E AND T H E N E X T TWO R E T U R N D I F F E R E N T L E V E L S IN T H E N O U N - P H R A S E ; M R U C I U R E . I C A D R ( M O U N - L I S T - G E T P H D ) ( D E F U N N O U N - L I S T - G E T ( P H ) ' ( C O N O ( ( A T O M PH) PH ) ( ( M E M B E R ( C A R PH) ' ( T H A T - C O M P T O - C U M P D ( C A D D R P H ) ) ( T ( N O U N - L I S T - G E T - F U L L P H D ) ) ( D E F U N N O U N - L I S T - G E T - F U L L ( P H ) ( C O N O ( ( S T A R T - L I S T ' N P H ) I ( ( S T A R T - L 1 S T • N P R P H ) ) ) ) ( D E F U N N O U N - M E A N ( N O U N ) ; T H I S A L L O W S T H E USER TO PUT A FORM O.N T H E P R O P E R T Y L I S T OF A NOUN ; WHICH W I L L BE E V A L E D AND R E T U R N E R AS T H E M E A N I N G OF T H E NOUN I N S T E A D O F T H E NOUN I T S E L F . T H I S F E A T U R E I S NUT U S E D C U R R E N T L Y . ( P R O G ( T E M P ) ( C O N D ( ( S E T Q T E M P ( C E T NOUN ' N - M E A N D ( E V A L T E M P ) ) ( T ( L I S T NOUN D I D ( D E F U N N O U N - P U T ( l l ) ( P R O G ( Z ) (CONO ( I E Q • « < = = > « ( C A R ( S E T Q I ( G E T R V ll)))) I) (T. ( S O F T - N C U N - L I S T - G E T ( N P - O U I L O Z D ) ) ) ) ( D E F U N N P - B U I L D ( N P ) ; T H I S T A K E S A NOUN ; FOR I T . I T S M A I N ( P R O G I D E T W WWP) P H R A S E AND B U I L D S T H E A P P R O P R I A T E S T R U C T U R E C O N C E R N IS W I T H T H E D E T E R M I N E R S T R U C T U R E . < DET- NP ) ) ) ) NP ) ( S E T Q WWP ( S T A R T - L I S T ' M P N P D (COMD ( ( N U L L WWP) ( R E T U R N N P D ( T ( S E T Q MP WWP ) ) ) ( C O N D ( ( N U L L ( S E T Q D E T ( C A D R ( S T A R T - L I S T (I S T A R T - L I S T • " < - O E F I N I T E - " NP) N P ) ( (S T A R T - L 1 S T • " < - I N D E F T N I T G - " N P ) N P I ( ( S T A R T - L I S T ' " < - P O S S - B Y - " MP) N P ) ( ( D E F ( N I T E - D E T ? D E T ) ( S E T O M ( B U I L D O ( " < - D E F I N I T E - " H) D E T ) ) ) I ( M E M B E R DET M A AN SOME ANY) ) ( S E T Q W ( B U I L D Q ( " < - I M D F F I N I T F -( ( E O ' P O S S P R O ( C A R D E T ) ) ( S E T O W ( B U I L D Q I " < - P O S S - B Y - " II) ( N O U N - G E T ( M P - B U I L D ( P C S S - A N A P H O R DET N P ) ) ) ) ) ) ) ( R E T U R N (COMD ( ( M U L L W) N P ) (T ( R P L A C D ( E N D - L I S T ( C A D D O R NP) ) ( L I S T W)) N P ) D ) ) » ) DET ) ) ) ( D E F U N N T Y P E NE XP R (Z ) ( E Q ( G E T NEW-WORD ' N ) Z ) ) ( D E F U N N U M A G R E E ( D E T NOUN N - N P R NUM)" ; T H I S C H E C K S NUMBER A G R E E M E N T B E T W E E N A D E T E R M I N E R OR PRONOUN ; AND A N O U N . ( C O N D ( ( N U M A G R E E I D E T NOUN N - N P R MUM)) ( ( O R ( G E T NOUM ' N U M ) I E Q ' N O N E ( G E T NOUN ' N ) ) ) ) ) ) ( O E F U N N U M A G R E E I ( D E T NOUN N - N P R NUM) ( C O N D ( ( E Q N - N P R ' N P R ) ( M U L L D E T ) ) ( ( E O NUM ' S G I (AND (NOT ( N U L L D E T ) ) I NOT ( M E M B E R DET • ( TIIES I: T H O S E ) D D ( I E Q NUM ' P L ) (NOT ( M E M B E R D E I M A T H A T T H I S ) ) ) ) ( T T ) D / / I f ( O E F U N N U M B E R ? (I ( F R O G ( T E M P I ( C O N O I ( S E T U T E M P ( G E I F NUMBER ! ) ( L I S T ' " < - N U M 3 E R - " T E M P ) ) ) ) ) ( D E F U N O B J - R E D - R E L - f . L A U S E ( R E L P O S ) ; T H I S H A N D L E S O B J E C T I V E R E D U C E D R E L A T I V E C L A U S E S : " T H E B A L L ' J O H N H O L D S . " ( P R O G ( T E M P ) L O O P (COND ( ( A N D ( S E T O TEMP ( S T A R T - L I S T ' N P ( E L M T ( S U B l P O S ) K E E P - S E N T ) ) ) ( O B J - R E L - E V A L (CDDR R E L ) T E M P ) ) ) ( T ( S E T Q POS ( S U B l P O S ) ) (GO L O O P ) ) ! ) ) " T H E B A L L WHICH JOHN H O L D S . ( D E F U N O B J - R E L - C L A U S E ( R E L P O S ) ; T H I S H A N D L E S O B J E C T I V E R E L A T I V E C L A U S E S . : ( P R O G ( T E S T E S P R O ) ( S E T Q PRO ( C A D R ( C A D D R R E L ) I I L O ° C O N D I ( N U L L ( S E T Q T E S T E E ( S T A R T - L I S T ' N P ( E L M T ( S U B l P O S ) K E E P - S E N T ) ) 1 ) ( ( O R (AND (MEMBER PRO ' ( W H I C H T H A T ) ) (NOT ( M U S T - B E H U M A N ) ) ) (AND ( M E M B E R PRU ' ( W H O M W H O S E ! ) ( M U S T - B E H U M A N ) ) ) ( O B J - R E L - E V A L ( C D D D R R E L ) T E S T E E ) ) I T ( S E T Q POS ( S U B l P O S ) ) ( C O L O O P ) ) ) ) ) ( R E T U R N N I L ) ) ( D E F U N O B J - R E L - E V A L ( R E L O B J ) T H I S T A K E S A S U R F A C E O B J E C T I V E R E L A T I V E C L A U S E , B U I L D S IT UP I N T O A S T R U C T U R E WHICH L U U K S L I K E A S E N T E N C E , P U T S T H E O B J E C T IN I T C O R R E R T P L A C E , AND C A L L S ON " T H E B A L L W H I C H J O H N " T H E L A K E I N T O WHICH ( P R O G ( T E M P ) ( S E T O R E L - L E V E L A G - A N A P H O R P A - A N A P H O R T E M P ( E V A L I T . H O L D S . " I J U M P E D . " ( A U D I R E L - L E V E L I ( G E T R A G ) ( G E T R P A ) ( A P P E N D ( L I S T • I COND • S ) ( ( E Q ' P R E P ( C A A R R E D ) ( L I S T ( A P P E N D (CDR R E L ) ( L I S T (CONS ' P P ( C C N S IT R E L - L E V E L ) ( L I S T ( A P P E N D R E L ( L I S T ( C O P Y N I L ( C O N S ( C A O A R R E L I ( L I S T (COP 1 . ' O B J ) ) ) ) ) ) ) ) ) O B J ) ) ) ) ) ) ) ) R E L - L E V E L ( S U B l A G - A N A P H O R N I L P A - A N A P H O R N I L ) ( ( N O T ( N U L L T E M P ) ) . ( S E T Q F N M R P L A C D ( E N D - L I S T P L A C E ( S T A R T - L I S T • NP ( R E T U R N T E M P ) ) ) ) ) ( C A R ( E N D O B J ) ) • L I S T P L A C E ) ) ) ( L I S T S T R C T ) ) ( O E F U N OPT I T E S T S U B S T ) ( C O N D ( T E S T S U B S T ) (T ' O B L ) ) ) ( ) ( O E F U N P A S S I V E ( P R O G ( T E M P ) (COND ( ( E Q ' B E ( G E T R V ) ) (COND ( ( A N D ( S E T O TEMP ( G E T F P A R T ) ) ( E Q T E M P - P A S T P A R T ) ) ( P K O G N (COND ( ( N O T (MEMBER - P R O G R E S S I V E ( G E T R A S P E C T ) ) ) T ) ) ) ) ) ) ) • ( L I F T R H A B I T U A L T S ) ) ) ( D E F U N P A S S I V E - A G E N T ( L S T T E S T NUMS VNUM) IS P A S S E D A L I S T OF A L L OF THE P R E P - P H R A S E S S T A R T I N G " B Y " BY A G E N T IF T H E . S E N T E N C E IS P A S S I V E . IT G O E S U N T I L IT F I N D S ONE T H A T P A S S E S T E S T . IT R E T U R N S ( T E S T E E L L S H - F ) ( S E T Q S H - F S H U U L D - T E S T - O F F ) T H I S W I T H THEM ( PROG THROUGH N I L ON F A I L U R E . L O O P l ( S E T Q L O O P 2 (COND L L ( R E - O R D E R L S T NUMS V N U M ) ) ( ( A N D ( N U L L L L ) SHOUL D - T E S T - O F F ) ( R E T U R N N I L ) ) ( ( N U L L L L ) ( S E T Q S H U U L D - T E S T - O F F T ) (GO L C O P l ) ) ( ( A N D ( S E T Q T E S T E S (CADR ( C C D A R L L ) ) ) (OR ( T E S T -I S E T O S H U U L D - T E S T - O F F S H - F ) ( F L A G - O N ( C A R L L ) K E E P - S E N T T ) ( R E I U R N T E S T E E ) ) ( T ( S E T Q L L (CDR L D ) I GO L O O P ? ) ) ) ) ) O F F ? ' A G E N T ) ( E V A L T E S T ) ) I ( D E F U N P A T H ( T E S T E E P R E P ) ; T H I S IS T H E P A T H C A S E . I T IS O N L Y A P P L I C A B L E TO V E R B S OK M O V E M E N T . ( P R O G I P R N I . ( R E T U R N ( C O N O ( ( N O T ( E Q U A L ' M O V E ( C A D R ( S T A R T - L I S T ' " < - - » S T R U C T ) I I ) N I L ) I ( S E T Q PRN ( P R O ? T E S T E E ) ) ( P R O - A N A P H O R ? ' ( P A T I E N T T R A J E C O R Y T O P I C ) • (AND ( N O T ( M C ' S T - B E H U M A N ) ) ( S H O U L Q - B E C O N V E Y O R ) ) PRN T E S T E E ) ) ( ( A N D (NOT (MUS T - B E A N I M A T E ) ) ( S H O U L D - B E C O N V E Y O R ) ) ( S E T - U P - P N ' P A T H P R E P ) ( L I S T ' " < - P A r n - " P R E P ( N O U N - L I S T - G E T ( N P - B U I L O T E S T E S ) ) ) ) ) ) ) ) ( D E F U N P A T I E N T N E X P R ( T E S T ) T H I S IS THE P A T I E N T C A S E . IT F I N D S T H E F I R S T U N F L A G G E D NP A F T E R T H E V E R B IN A C T I V E S E N T E N C E S , OR T H E F I R S T IN T H E S E N T E N C E IN P A S S I V E S E N T E N C E S . ( P R O G ( T E S T E E L L TEMP P R N ) ( S E T Q L L L ) (COMD ( ( G E T R P A S S I V E ) ( S E T O L L ( R E V E R S E L L ) ) ) ) (COMD ( ( A T O M ( C A R L L ) ) ( G O L C U P 2 ) J ) LOOP1 . (COMD ( ( A N D ( C D R L L ) ( N O T ( A T O M ( C A D R L L ) ) ) ) ( S E T Q L L (CDR L L ) ) (GO L O O P 1 M ) ( S E T Q L L (CDR L L ) . ) L 0 0 P 2 (COND ( ( A N D ( NOT ( N U L L ( C O R H i l l ( C A O A R L L ) ) ( S E T Q L L (CDR L L ) ) (GO LOOP2 ) ) ) (COMD ( ( A M D ( E Q 'MP ( C A A R L L ) ) (NOT ( C A D A R L L ) ) ) I C O N D ( ( N U L L t S E T Q PRN ( S T A R T - L I S T ' P R O ( S E T Q T E S T E E (COND ( ( A N D ( G E T R P A S S I V E ) ( E O ' N P ( C A A O R L L ) ) ) ( C A O R I D ) ( T ( C A R L L ) ) ) ) ) ) ) (COMD ( ( O R ( T E S T - O F F ? ' P A T I E N T ) ( E V A L T E S T ) ) ( F L A G - O N T E S T E E K E E P - S E N T T ) ( R E T U R N T E S T E E ) ) ( T ( S E T O F A I L - T E S T T F A I L - T E S T - L I S T ( A P P E N D ( L I S T ' P A T I E N T ) FA I L - T E S T - L I S T ) ) N I L ) ) ) IT (COMD ( ( N O T ( M U L L I S E T C TEMP ( A N A P H O R I C ' P A T I E N T T E S T A N A P H O R - D E P T H P R N ) ) ) ) ( F L A G - O N T E S T E E K E E P - S E N T T E M P ) ( R E T U R N TEMP 1 1 ) 1 1 ) ( ( A N D ( G E T V E R B ' T H A T - C O M P ) ( S E T Q T E S T E E ( T O P - L E V E L - S T A R T - L I ST ' T H A T - C O M P K E E P - S E N T ) ) ) ( F L A G - O N T E S T E E K E E P - S E N T T ) T E S T E S ) ) ) ) ( D E F U N P E R S O N A L - P R N ( P R N T E S T E E ) I C O N D ( ( G E T P R N ' P E R S O N A L ) I M U S T - R E A N I M A T E ) ) (T (MOT ( M U S T - B E A N I M A T E ) ) ) ) ) ( D E F U N PHRAS E - N U M ( A L ) ; T H I S R E T U R N S 0 I F A DOES NOT S T A R T A L O P - L E V E L L I S T IM L . ; O T H E R W I S E IT R E T U R N S THE NUMBER OF T H E L I S T T H A T A S T A R T S . ( P R O G (NUM) ( S E T Q NUM 1 ) L O O P ( C O N D ( ( N U L L D O ) ( ( E Q ( C A A R L ) A ) NUM) ( T ( S E T Q L ( C D R L ) MUM ( A U D I N U M ! ) ( G O L O O P ) ) ) ) ) ( D E F U N . P H R A S E - N U M 2 (A L ) ; T H I S R E T U R N S 0 I F A IS NOT A T O P - L E V E L E L E M E N T OF L , ; O T H E R W I S E IT R E T U R N S THE NUMBER IN T H E L I S T THAT A I S . ( P K O G ( N U M ) ( S E T Q NUM I ) L O O P (COMD I ( N U L L D O ) ( ( E Q U A L A ( C A R D ) MUM) ( T ( S E T O NUM 1ADD1 NUM) L ( C D R L ) ) I GO L O O P ) ) ) ) ) ( D E F U N P O S S - A N A P H O R ( P R N N P ) . ; T H I S R O U T I N E S Y S T E M A T I C A L L Y ; R E S O L V E A P O S S E S I V E PRONOUN ( P R U G ( T E S T E E R E G NN MUMP) ( S E T O R E G M A G PA R E C SOU B E N ) ) G I J E S T H R O U G H R E F E R E N C E . A S E N T E N C E T R Y I N G TO lib L O U P 1 ( C U N D L O O P 2 ( S E T O (C UNO L O O P 3 . ( S E T Q . ( CONO ( ( N U L L R E G ) ( G O L O O P 2 I ) ( ( A M D ( S E TO I E S T E E I C C T R V ( C A R R E G ) ) ) ( R E TURN T E S T E E ) ) ( T ( S E T O REG (CDR R E G ) ) (GO L C O P l ) ) ) (PR N - M A TC H? PRN I E S T E E ) ( A M A P H U R - Q U E R Y PRN T E S T E E ) ) NN ( P H R A S E - N U M 2 NP K E E P - S E N T ) NUMP 0 ) ( I Z E R O P NN) ( S E T Q NN (DEF. P - P H R A S E - N U M NP K E E P - S E N T ) ) ) ) NUMP (ADD 1 M U M P ) ) ( ( N O T ( L E S S P NUMP N N ) ) ( C C L O O P * ) ) ( (AND ( S E T O T E S T E E . (EI.MT NUMP K E E P - S E N T ) ) ( P P N - M A T C H ? PRN T E S T E E ) ( A N A P H C R - Q U E ' R Y PRM T C ST E E ) ) ( R E TURN T E S T E E ) ) (T (GO L 0 0 P 3 ) ) ) L O O P ' . ( R E T U R N ( A N A P H O R I C N I L T A N A P H O R - D E P T H P R N ) ) ) ) ( D E F U N P O S S E S S I O N I AG P A ) ; T H I S IS A S T A R T ON THE P R O B L E M OF P O S S E S S I O N . IN ; " B E E T H O V E N ' S M U S I C " WE D O N ' T WANT TO S A Y T H A T B E E T H O V E N OWNS ; T H E M U S I C , BUT THAT HE WROTE I T . ( P R O G ( T E S T E E ) ( S E T Q T E S T E E AG 1 ' ( C O N O ( ( A N D ( M U S T - B E C O M P O S E R ) ( S E T Q T E S T E E P A ) ( M U S T - B E M U S I C ) ) ' C O M P O S E ) ( T ' O W N ) ) ) ) ( D E F U N P R E P - C A S E - L O O K ( K A S E P R E P T E S T ) T H I S R O U T I N E T A K E S A L I S T OF C A S E S , A L I S T O F PR EPOS I T ON S', AND A T E S T . IT L O O K S T H R O U G H T H E C U R R E N T S E N T E N C E FOR A P R E P - P H R A S E S T A R T I N G W I T H ONE OF T H E P R E P O S I T I O N S WHICH P A S S E S T H E T E S T . . IF NONE I S F O U N D , I T L O O K S B A C K I N T O T H E P R E V I O U S S E N T E N C E . ( P R O G ( K K ) ( S E T Q KK K A S E ) L O O P ( C O N D ( ( O R ( M U L L K A S E ) ( N U L L P R E P ) ) I A N A P H O R - C A S E - L C O K KK T E S T ) ) ( ( C L A U S E ( C A R P R E P ) T E S T ( C A R K A S E I I ) i f ( S E T Q K A S E ( C D R K A S E ) P R E P ( C D R P R E P ) ) (GO L O O P ) ) ) ) ) ( D E F U N P R E P - C L A U S E ( P R E P S S N T ) ; T H I S R E T U R N S A L I S T OF A L L OF ; W I T H ANY OF T H E L I S T OF P R E P S ( P R O G ( L S T ) L O O P (CONO T H E P H R A S E S IN P R E P . IN A S E N T E N C E B E G I N N I N G ( ( N U L L S N T ) L S T ) ( ( A N D ( E Q ' P P ( C A A R S N T ) ) (MEMBER ( C A O O A R ( S E T Q L S T ( A P P E N D L S T ( L I S T ( C A R S N T ) ) ) ( G O L O O P ) ) ( T ( S E T Q SNT ( C D R S N T ) ) (GO L O O P ) ) ) ) ) S N T ) P R E P S ) ) SNT ( C O R S N T ) ) ( D E F U N ' P R E P - L I S T - G E T ( P R E P L ) ( P R O G ( T E M P ) L O O P (COMD ( ( N U L L L ) N I L ) ( ( O R I AMD ( A T O M ( T ( S E T Q L ( C D R ( S E T Q T E M P ( C A A U L ) ) ) L ) ) (GO L O O P ) )) ) I ( E Q TEMP P R E P ) ) ( M E M B E R P R E P T E M P ) ) ( C A R L ) ) [ D E F U N P R E P - R E L - C L A U S E ( R E L P R E P PRO P O S ) ; T H I S H A N D L E S " T H E MAN I N WHOSE H O U S E . . . " ( P R O G ( T E S T E E ) L O O P ( C O N D ( ( N U L L ( S E T Q T E S T E E ( S T A R T - L I S T ' N P ( C L M T ( S U B 1 P O S ) K E E P -( I O R (AMD ( E O ' W H I C H P R O ) ( N O T ( M U S T - B E H U M A N ) ) ) (AND ( M E M B E R PRO M W i i U M W H O S E ) ) ( M U S T - B E H U M A N ) ) ) ( P R E P - R E L - E V A L R E L P R E P T E S T E E ) ) ( T ( S E T Q POS ( S U B l P O S ) ) (GO L O O P ) ) ) ) ) S E N T ) ) ) ) ( R E T U R N N I L ) ) I D E F U N P R E P - R E L - E V A L ( R E L P R E P O B J I ( P R O G ( T E M P ) ( S E T O R E L - L E V E L ( A D D ! R E L - L E V E L ) TEMP ( E V A L ( A P P E N D ( L I S T ' S I R E L - L E V E L I S U B l R E L - L E V E L ) ) (COMD ( ( N O I ( M U L L T E M P ) ) ( S E T Q EN M R P L A C D ( E N D - L I S T ( R E T U R N T E M P I )) ) ) ( L I S T ( A P P E N D R E L ( L I S T ( C O N S • P P ( C O N S P R E P ( C O P Y O B J ) ) ) ) ) ) ) ) ( C A R ( E N D - L I S T P L A C E ) ) ) ( L I S T S T R C T ) ) P L A C E O B J ) 1EFUN P R E P - S T A R T ( P A R T ) ( C O N U ( I A T UM P A R T ) fJI L ) ( ( L O ( C A R P A R T ) M ' P ) ) ) ) 1 E F U M P K E P - V C R B - A S S O - C O M P L X - R C T U K N ( P i l l PH2. P H 3 ) T H I S C O N V E R T S " M E POX W I T H T H E P E N S IN I T " I N T O " T H E B O X , I HE BOX C O N T A I N S THE P E N S . " ( L I S I "•<==>" I N U ' J N - L I S T - G E T ( N P - U U I L O P H I ) ) . ' P R E S E N T ( L I S T " • < - - » ( S E L C C T O (C A 0 0 R P H D C O N ' S U P P O R T ) ( M N ' C O N T A I N ) ' R E L A T I O N ) I N O U N - L I S T - G E T ( M P - B U I L D P H 2 ) ) ) ) ) IDEFUN P R O ? ( T E S T E E ) ( S T A R T - L I S T ' P R O T E S T E E ) ) O E F U N P R O - A N A P H O R ? ( C S S T E S T P R N T E S T E E ) T H I S F L A G S A P R O N O U N AS B E ( N G H A N D L E D ( F A N A P H O R I C C A N R E S O L V E I T . ( P R O G ( T E M P ) ( R E T U R N ( C O N D ( ( N O T ( N U L L ( S E T O T E M P ( A N A P H O R I C C S S T E S T A N A P H O R - U E P T H P R N ) ) ) ) I F L A G - O N T E S T E E K E E P - S E N T T E M P ) T E M P ) ) ) ) ) O E F U N P R O P - L I S T ( L F L G ) T H I S R E T U R N S A L I S T OF WHAT IS U N D E R F L G ON T H E P R O P E R T Y L I S T S O F A L L O F T H E E L E M E N T S I N L . ( P R O G ( T E M P ) L O O P ( C O N O ( ( N U L L L ) T E M P ) ( T ( S E T U T E M P I A P P E N D T E M P ( G E T ( C A R L ) F L G ) ) L ( C O R L I ) (GO L O O P ) ) ) ) ) I D E F U N P R N - G E N I P R N ) '; T H I S R O U T I N E R E T U R N S A P R O N O U N ' S G E N D E R . ' . ( C O 10 ( ( M E M B E R P R N ' ( H E H I M H I S ) ) ' M A S C U L I N E ) ( ( M E M B E R P R N ' ( S H E H E R ) ) ' F E M I N I N E ) I ( M E M B E R P R N M Y C U R I T H E Y THEM WE M Y ) ) ' O U T H ) ( (ME MD ER PP.N M I T T H A T T H O S E ) ) ' N E I T H E R ) I T ( P R N - G E N - O U E R Y P R N ) ) ) ) ( D E F U N P R N - G E N - Q U E R Y ( P R N ) " ( F A P R O N O U N G E N D E R IS NOT K N O W N , T H E U S E R IS A S K E D FOR I T , ANO T H E R O U T I N E P R N - G E N IS C H A N G E D . ( P R O G ( T E M P I I PR I NI M S ) ( P R I N 1 P R N ) ( P R I N 1 ' " M A S C U L I N E UR F E M I N I N E ? " ) ( T E R P R I ) L O O P ( P R I N T ' " E N T E R M A S C U L I N E , F E M I N I N E , B O T H , OR N E I T H E R " ) ( P R I N T ' " E N T E R # T O A B O R T " ! (CO*ID ( ( N O T ( M E M B E R ( S E T Q TEMP ( R E A D ! ) ' ( M A S C U L I N E F E M I N I N E B O T H N E I T H E R H I ) ) (GO L O O P ) ) ( ( E Q T E M P ' » ) ( R E T U R N N I L ) ) ) I P R N - R P L A C D • P R N - G E N PRN I S E L E C T Q TEMP ( M A S C U L ( N E 1) ( F E M I N I N E 2) ( B O T H 3 ) ( N E I T H E R A ) ) ) ( R E T U R N T E M P ) ) ) ( O E F U N P R N - M A T C H ? { P R N T E S T E E ) ; T H I S R O U T I N E C H E C K S T O S E E IF T H E P K C N C U N PRN M A T C H E S T E S T E E . ' ( A N O ( P R N - N U M C G E N ? ( P R N - N J M I C A O R P R N ) ) ( P R N - G E N ( C A D R P R N ) ) T E S T E E ) ( P E R S O N A L - P R N I C A O R P R N ) T E S T E E ) ( O E F U N P R N - N U M ( P R N ) ; T H I S R O U T I N E R E T U R N S A P R O N O U N ' S N U M B E R . ( C O N O ( ( M E M B E R P R N M I T H E S H E I H I M H E R T H A T H I S NY 1 I M S G MASS I } ( ( M E M B E R PRN • I T H E V T H E M T H O S E « l i ) ) ' P L ) ' ( ( M E M B E R P R N M Y O U ) ) M S G P L M A S S ) ) (T I P R N - N U M - Q U E R Y P R N ) ) ) ) ( D E F U N P R N - N U M I . G E N ? (NUM G E N T E S T E E ) ( A N D ( S O F T - M E M NUM ( C A U R ( S T A R T - L I S T • "<-NUMF. E P - " T E S T E E ) ) ) ( S O F T-MEM GE.I ( C A D R ( S T A R T - L I S I ' " < - C L N D E R - " T E S T E E ) ) ) I OR ( A N D I E C G E N ' M A S C U L I N E ) ( M U S I - B E M A L E ) ) (AND- ( E D G E N ' F E M I N I N E ! ( " U S T - B E F E M A L E ) ) ( N U T ( M E M B E R G E N ' ( M A S C U L I N E F E M I N I N E ) ) ) ) ) ) be FUN PK.-NUM-QUEKY ( f ' - 'n 11% IE A I P R O C N U M B E R I i NOT KNOWN, PRiiNUUN'S I T E M P I ( P R I M M S I I I ' K M . I I P K I N I • " S I N G U L A R ( H x P R l ) L O U P ( P R I N T ' " E ' U C R S C . P L . S G P L ( P R I N T " " E N T E R </ TO A B O R T " ) . ico.NU ( I N I I T ( M E M B E R I S E T Q T E M P IUEAOII ( ( E Q IE. V.P ' H) I RE T U R N M I L D ) ( P R - I - P . P L A C O ' P R N - N U M P R N I S E L E C TG T E M P ( R E T U R N T E M P ) ) ) T H I S R O U T I N E A S K S T H E U S E R l :CR I T . OR P L U R A L " ) ') M S G P L S G P L M A S S C D ) 1 GC L C U P D I S G L ) ( P L 2 ) ( S G P L 3 1 ) 1 D ET H , S P R O U T M E C A C I U A L L Y R I N S E T S A O U E O I N F O R M A T I O N A B O U T NUMBER ANO G E N D E R I N T O T C N I S E L E C T O NUM ( 1 ( R P L A C O ( 2 ( R P L A C O ( 3 ( R P L A C O ( 4 I R P L A C O ( E N O - L I S T ( E T J - L I S T I E N D - L I ST I E N D - L I S T (CAD'.OR (CAO'.UR (CAU ADR (CADAOR (CCAADR (COAACR (CCAADR (CDAADR I C A U D 3 (CADDC: (CADDR ICAODR ( G E T F C N ' E X P R D ) ) ) ( L I S T P R N D ) l ( G E T F C N • E X P R ) ) ) ) ) ( L I S T P R N D ) I f C D P . ( G F T F C N • E X P R ) ) ) ) D ( L I S T P R N D ) ICDDOR ( G E T F C N ' E X ? R) D D ) ( L I S T P R N D . D ) IDEFUM P R T Y - P R I N T ( L S T ) I C O U O I ( A T O M L S T ) ( P R I N T L S T , ) ( ( N O T ( N U L L L S T ) ) I P R I N T P A R S C L S T 0 ) ) ( T ( P R I N T ' " T H A T O I O N O T P A R S E " ) ) ) L S T ) ( C E F U M P U R P O S E ( S E N T P R E P ) T H I S I S T H E P U R P O S E C A S E . "I R A N HOME TO G E T MY B O C K . " ( S E L E C T Q P R E P ( • T O ( P R O G ( T E M P ) ( R E T U R N ( C O N D ( ( S E T Q A G - A N A P H O R I G E T R A G ) ) I S F T Q P A - A N A P H O R ( G E T R P A D ( C U M O ( ( N O T ( A T O M ( S E T Q T E M P ( E V A L I C O N S ' S ( L I S T ( A P P E N D ( L I S T ( C O P Y A G - A N A P H O R I R E L - M O O S - J Q I N S E N T NN D ) ) ) ( S E T - U P - F N ' P U R P O S E P R E P ) ( S E T Q A G - A N A PHOR N I L P A - A N A P F . C R N I L ) ( L I S T ( M A K E - A R R O W " P U R P O S E ) T E M P D D D D N I L ) ) ( D E F U N P U T - I N - L I S T I AT IND W H A T ) ; T H I S ADDS WHAT TO T H E L I S T ON T H E P R O P E R T Y L I S T C F A T U N C E R I N O . ( P R O G ( T E M P ) ( C U N O ( ( N U L L ( S E T O T E M P ( G E T AT I N D ) D ( P U T A T IND ( L I S T W H A T ) ) ) I T I P U T A T I N D ( A P P E N D ( L I S T W H A T ) T E M P ) ) ) ) ) ) i ' ! ( D E F U N P U T O N (W l > [ P U T W ' O I C I « T ) ( P U T W ( C O N O I I A T O M ( C A D R L D ( C A O R L l ) j 1T ( C A D R ( C A D K L)))) ! ' ( C O N D ( ( E Q U A L ( C A O U R ( C O R L D • # ) . ' * ) | ( T ( A P P E N D ( L I S T N E W - W O R D ) I C G O U R O D D ) ( D E F U N P U T THEM IW L ) : ; T H I S IS U S E D I N R E A D I N G IN T H E D I C T I O N A R Y . I T P U T S P A I R S ON T H E P R O P E R T Y L I S T . ( C O N O ( ( N U L L L ) ( P U T W ' D I C T T ) > ( T ( P U T W I C A R L ) ( C A O R L D ( P U T T H E M W ICOOR D D I ) ( D E F U N Q U A N T I T Y ( T E S T E E P R E P ) ; T H I S IS T H E Q U A N T I T Y C A S E : "WHAT C O M E S BY T H E Q U A R T ? " ( P R O G ( P R N ) ( R E T U R N (CUND ( ( S E T Q P R N I P R U 7 T E S T E E ) ) I P R O G ( TEMP ) (COMD I ( S E T Q T E M P ( P R O - A M APIIDR? • ( Q U A N T I T Y ) • ( M U S I - B E Q U A N T I T Y ) PRN T E S T E E ) I ( SE T-'.IP - F .••! • QUA N T I T Y PRE P ) ( R E T U R N ( L I S T • " < - Q U A N 1 I T Y - " P R E P T E M P ) ) ) ) ) ) ( ( M U S T - B E Q U A N 1 I T Y ) ( S E T - U P - F N 'i.'UiWT I TY . P R E P ) ( L I S T • " < - U U A N I I I Y - « P R E P ( N U U N ' - L ( S T - G E T ( M P - I ' U I I . C T E S T E E ) ) ) ) ) ) ) ) I O E F U N : : THIS ; ; NOT : I ?••>. 00 OUCKY IW IS THE KNO^. ID I P !U NI I PR I!Ml (PKIMl ( T ER PR 1 (PRINT ( PKINT (PRINT I SET U L I CONO 1 ( ( R O U T I N E T H A I Q U E R I E S T H E U S E R A B O U T A WORD T H A T IT D O E S " • I DO NOT KNOW W H A T " ! W0R0 1 • M E A N S ) ) ' " P L E A S E E N T E R A D I C T I O N A R Y E N T R Y F O R I T ' S ROOT WORD") • " O R A N O T H E R W O R D " ) • " E N T E R a T O A H O R T T H I S S E N T E N C E . " ) I R C A O ) ) ( E Q L 'a i ( P R I N T • " S E N T E N C E A B O R T E D " ) N I L ) ( A T O M L ) (MORPH L ) L ) T ( P u T T H E M ( C A R L ) ( C D R L ) ) ( M O R P H W O R O ) ) ) ) ) ( D E F U N R A T E ( A S) ) ; T H I S C A S E H A S NOT B E E N I M P L E M E N T E D Y E T . ( D E F U N R E A D I N ( ) ' ; T H I S R E A D S I N T H E D I C T I O N A R Y F R O M B R O C : D I C T . I P R O G I D ( O P E N ( B U F 2 5 5 B R C C : U I C T ) I L O O P SCONS « ( N O T A | N S L L ' L . » ( P U T T H E M ( C A R L ) ( C O R L ) . ( G O L O O P ) . ) . ) ( O E F U N R E C I P I E N T ( T E S T E E F R E P ) ; T H I S I S T H E R E C I P I E N T C A S E . I P R O G ( P R N ) ( R E T U R N I C O N D ( ( S E T Q P R N ( P R O ? T E S T E D ) ( P R O G ( T E M P ) ( C O N D ( ( S E T Q T E M P ( I ' R O - A N A P H C R ? • ( A G E N T ( S E T - U P ( R E T U R N ( ( M U S T - B E A N ( M A T E ) ( S t T - U P - F N " R E C I P I E N T ( L I S T • • ^ - R E C I P I E N T - " B E N E F I C I A R Y C C - A G E N T R E C I P I E N T T O P I C P A T I E N T ) • ( M U S T - B E A N ( M A T E ) P R N T E S T E E ) ) - F N ' R E C I P I E N T P R E P ) ( L I S T « " < - R E C I P I E M T - " T E M P I ) ) ! ) ) P R E P ) • ( N O U N - L I S T - G E T 1 N P - B U I L 0 T E S T E E ) ) ) ) ) ) ) ) ( 0 = F U N R E D - R E L - C L A U S E ( K E L P O S ) ; T H I S R O U T I N E S E T S UP T H E C A L L ( P R O G I TEMP T l T 2 ) TO R E L - E V A L FOR R E D U C E D R E L A T I V E C L A U S E S . L O O P ( C O N O I ( A N D ( S E T O ( COND ( S E T Q ( COND T E M P ( S T A R T - L I S T • N P ( E L M T (SU8I ( ( N U L L ( S E T Q T l ( C A D R T E M P ) ) ) ) T E M P K E E P - S E N T ) I ) ( C D D R R E L ) T E M P ) ) T E M P K E E P - S E N T T l ) ) TEMP K E E P - S E N T ) I > P O S ) K E E P - S E N T ) ) I IT ( F L A G - O F F T 2 ( R E L - E V A L I T 1 ( F L A G - O N ( T ( F L A G - O F F T 2 ) ) ( ( L E S S P 1 P U S ) ( S E T Q POS ( S U B l P O S ! ) IGO L O O P ) ) ) ) ) ! D E T M S R S ^ T S A U U T R L L A n v T c L A U S C S FROM PREPOS.TCNAL RELAT IVE CLAUSES. """J° '(Saw0/ICOND ( ( F D (CAR (SETQ RLLPRO ICAOOR RED!) ( K L T U K I CUNU • M ™ L ^ _ C L M I S I , _ H m ) 7 ,cniii;R RED ICADR REIPRO) POSD ' ' U U P - R ^ L - C L ^ REL, (CADR RELPRO) (CACR (C A DOOR R E D . POS),M.» ( D C - F U N R E L - S L A U ; T H I S S E T S U l ' ( P R O G ( T E S T E E L O O P ( C U M D ( ( A N D E - H I J D ? ( R E L T H E C A L L TO r i 1 2 ) P R O R E L -P O S ) E V A L f Xo F O R R E L A T I V E C L A U S E S . ( SE TO ( C U N D T E S T E E ( S T A R T - L I S T ' N P ( E L M T ( S U B l P O S ) K E E P - S E N T ) ) ) ( ( N U L L ( S E T O I I ( C A D R T E S T E E ) ' ) ) ) ( T ' ( F L A G - O F F T E S T E E K E E P - S E N T ) ) ) ( S E T O 1 2 ( C O N D ( ( UP. ( A N D ( E C ' WHO P R O ) ( M J I S T - B E H U M A N ) ) ( A M D ( E O ' W H I C H P R O ) ( M O T ( M U S T - B E H U M A N ) ) ) ) ( I ' . E L - E V A L R E L T E S T E E ) ) ) ) ( C O N D ( T l ( F L A G - O N I E S T E E K E E P - S E N T T i l l ( T ( F L A G - O F F I E S T E E K E E P - S E N D ) ) T 2 ) I ( ( L E S S P 1 P O S ) ( S E T O P O S ( S U B l P O S D ( G O L O O P ) ) ) ) ) ( D E F U N R E L - E V A L ; T H I S R O U T I N E ( P R O G ( T E M P ) ( S E T U S O P E R ( R E L S U B J ) B U I L D S U P i S E N T E N C E P A R S E OUT O F T H E R E L A T I V E C L A U S E , A N D E V A L S I T . S E N T K E E P - S E N T R E L - L E V E L (ADD1 R E L - L E V E L ) A G - A N A P H O R ( G E T R A G ) P A - A N A P H O R ( G E T R P A ) T E M P I E V A L ( A P P E N D ( L I S T ' S ) R E L - L E V E L ( S U B l R E L - L E V E L ) A G - A N A P H O R N I L P A - A N A P H O R N I L S U P E R - S E N T N I L ) ( C O - J O ( ( N U T ( N U L L T E M P ) ) ( SE TO F N - M R P L A C D ( E N O - L I S T P L A C E ( S T A R T - L I S T ' N P ( R E T U R N T E M P ) ) ) ) ) ( L I S T ( A P P E N D ( L I S T ( C O P Y ( S T A R T - L I S T ' N P S U B J ) ) ) R E D D ) ( C A R ( E N D S U B J ) ) - L I S T P L A C E ) D ( L I S T S T R C T ) ) ( D E F U N R E L - M O D S - . J 0 I N ( P A R T N N ) T H I S R O U T I N E T A K E S A S E N T E N C E P A R T A N D I T S E L E M E N T N U M B E R , A N D A P P E N D S T O I T A L L OF T H E F O L L O W I N G P A R T S W H I C H . A R E N P , P P , E T C . I N T H E P A R T I A L P A R S E R E T U R N E D B Y T H E A T N , A R E L A T I V E C L A U S E I S O F T E N B R O K E N I N T O S E V E R A L P A R T S . T H I S P U T S I P B A C K T O G E T H E R A G A I N . L A T E R , I F T O O M U C H I S A D D E D O N I N T H I S R O U T I N E , T H E E N D O N E S A R E D R O P P E D O N E A T A T I M E . ( P R O G ( T E M P ) L O O P ( C U N D ( ( A N D ( S E T Q T E M P ( E L M T ( A U D I N N ) K E E P - S E N T ) ) ( M E M B E R ( C A R T E M P ) ' ( P P N P R E L R E D - R E L O B J - R E L O B J - R E D - R E L T H A T - C O M P T O - C O M P S O - C O M P B Y - C O M P T H A N - P H " < - A D V - " " < - A D J - " ) > ( N O T ( C A D R T E M P ) ) ) ( S E T Q P A R T ( A P P E N D P A R T ( L I S T T E M P ) ) . N N ( A D D I N N ) ) ( G O L O O P ) I ( T ( R E T U R N P A R T ) ) ) ) ) ( O E F U N R E - O R D E R ( L S T ( C O N O ( ( N U L L N U M S ) ( ( L E S S P ( C A R ( T L S T ) D N U M S V N U M S ) L S T ) N U M S 1 V N U M S ) ( R E - O R D E R ( A P P E N D ( C O R L S T ) ( L I S T ( C A R L S T ) ) ) ( C D R N U M S ) V N U M S D ( D E F U N . S N E X P R ( S E N T E N C E ) T H I S R O U T I N E I S T H E V E R Y F I R S T F U N C T I O N C A L L E D A F T E R T H E A T N R E T U R N S . I T T A K E S A N A T N P A R S E A N D I N V O K E S THE C A S E A N A L Y S I S ON I T . I T S E T S U P A F E W G L O B A L V A R I A B L E S , A N D B U I L D S A L I S T L O F T H E N O U N P H R A S E S A M D T H E V E R B . Till 7, I S U S E D B Y T H E A G E N T A N D P A T I E N T R O U T I N E S . ( P R O G ( N L S E N T V E R B K E E P - S E N T S T R U C T V P ) ( S E T U L E V E L ( A O O l L E V E L ) N 0 S E N T S E N T E N C E K E E P - S E N T S E N T E N C E ) ( S E T R P A S S I V E ( C O N O ( ( E Q ' P A S S I V E ( C A D R ( S T A R T - L I S T ' V O I C E ( S E T Q V P ( T O P - L E V E L - S T A R T - L I S T V E R B ( C A D R ( S T A R T - L I S T ' V ' V P ) ) ) T N S ( C A D R ( S T A R T - L I S T ' T N S V P ) ) ) ( T N S - F I X V ( T E N S E - F I X ( G E T R T N S ) ) ) ) • V P K E E P - S E N T ) ) ) ) ) ) ) ) ( S E T Q ( S E T R ( C O N D L O O P ( C O N D ( ( N U L L S E N T ) ( S E T O TMP ( W H I C H - M E A N I N G L S E N T E N C E ( C U N D ( ( E Q L E V E L I ) ( S E T Q S E N T - H I S T ( S E T Q L E V E L ( S U B l L E V E L ) ) T M P ) ( ( E D ( C A A R S E N T ) ' N P I I S E TO L ( A P P E N D L ( L I S T ( G O L O O P ) I ( ( E O ( C A A R S E N T ) ' V P ) ( S E T O L ( A P P E N D L ( L I S T I S E T U V E R B ( C A D R ( G O L U M P ) ) ( T ( S E T Q S E N T ( C D R S E N T ) ) N V E R B ) ) ( A P P E N D ( L I S T ( A L L - F L A G - O F F K E E P - S E N T ) ) S E N T - H I S T ) ) ) ) ( C A R S E N T ) ) ) S E N T ( C O R S E N T ) N ( A D D 1 N D ( S T A R T - L I S T ' V ( C A R S E N T ) ) ) ) ) ) S E N T ( C D R S E N T ) J ( G O L O O P ) ) ) ) ) ( D E F U N S E C U M D - C I I A N C E ( K A S E PRN H - S HI S I ) IF A N A P H O R I C F A I L S TO R E S O L V E A L l i C A U V E R E F E R E N C E , T H I S R O U T I N E ; IS C A L L E D W H I C H I R I E S E V E R Y P H R A S E IN I HE S E N T E N C E . ( S E L E C T Q K A S E ( L O C A T I O N ( A N A P H O R I C N I L 1 ( M U S T - H E L O C A T I O N ) A N A P H O R - D E P T H P R N ) ) N I L ) ) ( D E F U N S E T - U P ( ) ; S E T - U P S E T S UP T H R E E T A B L E S . M O R P H - T A B L E IS THE S E T OF MORPHOLOGY R U L E S . ; C AS E - T A B L E A S S O C I A T E S W I T H E A C H P R E P O S I T I O N THE C A S E S I T M I G H T F L A G . ; A N T I - C A S E - T A B L E IS A L I S T OF V E R B S W I T H A S E T OF C A S E S W H I C H T H E Y W I L L ; NOT T A K E . ( P R O G N ( S E T Q MORP H - T A B L E M l I S ) (MAPCAR ' T R Y • ( ( N I L N ( N T Y P E S ) (NUMBER P L ) ) ( N I L V (OR ( V B T Y P E S - E D ) ( V U T Y P E S - D l ) I T N S P R E S E N T ) ( P N C O D E " 3 S G " ) ) ) ) ) ( I S E I ) ( M A P C A R ' T R Y • l ( ( Y ) N ( N T Y P E E S ) (NUMBER P L ) ) ( ( Y ) V ( V B TY P E E S - E D ) ( T N S P R E S E N T ) ( P N C O D E " 3 S G " ) ) ) ) ) U S E ) ( M A P C A R ' T R Y • ( ( N I L N ( N T Y P E E S ) ( N U M B E R P L ) ) ( N I L V ( V B T Y P E E S - E O ) ( T N S P R E S E N T ) ( P N C O D E " 3 S G " ) ) ) ) ) ( I S I: V) ( M A P C A R ' T R Y • U ( E F ) N ( N T Y P E I R R ) (NUMBER P L ) ) ( ( F ) N ( N T Y P E I R R ) I NUMBER P L ) ) ) ) ) ( ( S "•") ( M A P C A R ' T R Y • ( ( N I L N T ( P C S S E S I V E T) ( N U M B E R S G ) ) ( N I L N P R , T ( P O S S E S I V E T ) ( N U M B E R S G ) ) ) ) ) ( ( " ' " S ) ( M A P C A R ' T R Y ' ( ( N I L N T ( P C S S E S I V E T ) ( N U M B E R P L ) ) ( N I L NPR T ( P O S S E S I V E T ) ( N U M B E R P L ) ) ) ) ) ( ( Y L ) ( M A P C A R ' T R Y " ( ( N I L ( A D J A D V ) ' T E R - E S T ) ( I E L ) ( A O J A D V ) ' T * ) ) ( ( Y L I) ( T R Y ( ( Y ) I A D J A O V ) ' T * ) ) ) 1(Y L G N I) ( T R Y f ( E ) (V A D V ) ( V B T Y P E S - C ) * ) ) ) ( ( G N I ) ( M A P C A R ' E V A L • ( ( T R Y ( N I L V ' T ( P A R T P R E S P A R T ) ) ) ( T R Y ( I E ) V ( V B T Y P E S - O ) ( P A R T P R E S P A R T ) ) ) (COND ( ( E Q ( C A R L E T S ) ( C A D R L E T S ) ) ( D R O P C G O ( L I S T ( L I S T ( C A R L E T S ) ) • ( T R Y ( N I L V ' T ( P A R T P R E S P A R T ) ) ) ) L E T S ) ) ) ) ) ) ( ( 0 ) ( T R Y ( N I L V ( V B T Y P E S - D ) ( P A R T . P A S T P A R T ) ( T N S P A S T ) ) ) ) ( I D E ) ( M A P C A R ' E V A L • ( ( T R Y ( N I L V (OR ( V B T Y P E E S - E D ) ( V B T Y P E S - E D ) ) ( P A R T P A S T P A R T ) I T N S P A S T ) ) ) ' ICOND ( I E Q ( C A R L E T S ) ( C A D R L E T S ) ) ( D R O P C G O ( L I S T ( L I S T ( C A R L E T S ) ) • ( T R Y ( N I L V (OR ( V B T Y P E E S - E O ) I V B T Y P E S - E D ) ) ( P A R T P A S T P A R T ) ( TNS P A S T ) ) ) ) L E T S ) ) ) ) ) ) ( I D E I) ( T R Y ( ( Y ) V ( V B T Y P E E S - E D ) I T N S P A S T ) ( P A R T P A S T P A R T ) ) ) ) ( ( D ) ( T R Y ( N I L V ( V B T Y P E S - D ) ( T N S P A S T ) ( P A R T P A S T P A R T ) ) ) ) ( I R E ) ( M A P C A R ' E V A L • ( ( T R Y ( N I L A O J ( A D . J T Y P E E R - E S T ) ( C O M P - S U P C O M P A R A T I V E ) ) ) II'(IV KILL. ADV (ACVTYPE ER-EST) (COMP-SUP COMPARATIVE I ) I (CONO ((EO (CAR LET:;) ICADR LETSII • -I (DROPCGO (LIST (LI ST (CAR LETS)) •(TRY (MIL AOJ (ADJTYPE ER-EST) 1COMP-SUP COMPARATIVE)))) LETS)!)))) ((R E I) (TRY (IY) ADJ (ADJTYPE ER-EST) (COMP-SUP COMPARATIVE)))) MR) (TRY ( N I L AD.) (ADJTYPE R-STI (COMP -SUP COMPARATIVE)))) (IT S E 1) (IRV ((Y) ADJ (ADJTYPE ER-EST) (COMP-SUP SUPERLATIVE)))) l(T S) (TRY (NIL ADJ (ADJTYPE R-ST) (COMP-SUP SUPERLATIVE)))) ( I T S E I (MAPCAR 'EVAL •((TRY (MIL AOJ (ADJTYPE ER-EST) (COMP-SUP SUPERLATIVE))) (TRY (MIL ADV (A D V TYPE ER-EST) iCOMP-SUP SUPERLATIVE))) (COND (IEO (CAR LETS) (CADR LETS)) (DROPCCO ( L I S T (LIST ( C A R LETS)) •(TRY (NIL ADJ •T (COMP-SUP SUPERLATIVE)))) LETS)))))))) I SETQ CASE-TABLE '((IN LOCATION TIME DESC OUR AT I ON MANNER DESTINATION CONTEXT CHARACTERISTIC WITH-RESP-TO) (WITH CO-ACENT INSTRUMENT WITH MANNER DESC DESTINATION EXCHANGE IND-SUBJ PREREQUISITE-USED) (TOR DURATION BENEFICIARY EXCHANGE IND-SUBJ) (ON LOCATION DESC CHARACTERISTIC DESTINATION IND-SUBJ) (TO RECIPIENT DESTINATION TOPIC PURPOSE IND-SUBJ) (AT LUCATION DESC TIME RATE DESTINATION) . IOF DESC TOPIC SEC-OBJECT WITH-RESP-TO) (BY LOCATION DESC TIME PATH METHOD QUANTITY! (ABOUT TIME TOPIC PATH! (INTO OESTINATION) (ONTO DESTINATION) I TOWARD DESTINATION) (TOWARDS DESTINATION) (NEAR LOCATION DESC TIME) (BESIDE LOCATION DESC) (DURING TIME) (BEFORE TIME LOCATION DESC) (AFTER TIME DESC) (ALONG PATH) (UP PATH OESC) (FROM SOURCE DESC) (DOWN PATH DESC) (AROUND PATH DESC) I A L R U S S P A 1 H U t S C I (SO EX PECfEO-EEFCC T C A U S E I (UNDER LOCATION CONTEXT DESC) (LIKE LIKE) (DESPITE DESPITE) . (WHEN TIME) ( W H I L E T I M E ) ) ) (SETQ ANTI-CASE-TABLE '((GO (LOCATION!) (COME (LOCATION)))) (GRAMMAR-IN) (READIN))) (SET-UP) (DEFUN SET-UP-FN (CS PRN) ; WHEN A CASE HAS BEEN DETERMINED FOR A PREPOSIONAL PHRASE, IF THE CASE I IS OF THE STANDARD TYPE, SET-UP-FN IS INVOKED TO BUILD THE USUAL ; FUNCTION FN TO PUT THE STRUCTURE STRCT INTO STRUCT CO-ORDINATE WITH ; THE VERB. (PROG (TEMPI (SETQ PRE PF.CASE (LIST PRN CS) FN (CUND ((AND (SETQ TEMP (START-LIST (MAKE-ARROW (CASE-ATOM-ASSOC CS)) STRUCT)) I MEMBER (CADR TEMP) '(SOMEONE SUMPLACE HERE))) (PROGN (SETO PLACE TEMP) MRPLACD PLACE (LIST (CDR STRCT))))) ( T MRPLACD (END-LIST (FIND-LIST STRUCT •"<= = >")) (LIST STRCT)))) NUM IPHRASE-NUM 'VP KEEP-SENT I I)1 , 0 ? a r s K - T f s r - f . F F ^ ! N r e R S E c r A .NOUN-MEAN . N O U N - G E T T E S F E E ) ) M > 12* ( D E F U N S I Z E ( N P ) ( C O N D ( ( G E T ( N O U N - G E T N P ) " O B J - S I Z E ) I ( T 0) ) ) ( D E F U N S O F T - D E L E T E ( A T S T E S T L ) T H I S W I T H I C O N O ( C O N D R O U T I N E R E M O V E S A L L E L E M E N T S OF A T S IN 1. IOR E L E M E N T S W H I C H S T A R T A T S ) W I T H O U T S C R E W I N G UP THE L I S T T H E WAV D E L E T E D O E S . ( ( A N D ( A T O M A T S ) ( N O T ( N U L L A T S ) ) ) ( .SETO A T S ( L I S T A T S ) ) ) ) ^ i B i ^ ^ ^ S ^ :ts.*u«>- -»» (T ( A P P E N D ( L I S T ( C A R L>> ( S O F T - D E L E T E A T S T E S T ( C D R L ) ) ) ) l ) ( D E F U N S O F T - E Q ( A B ) ( O R ( E Q A B ) ( N U L L A ) ( N U L L B ) ) ) I ^ S O F T - E C I L ' T A K E S ' A L I S / S T A R T I N G W I T H A F U N C T I O N N A M E , A N D W H E R E ' P O S S I P L E C H E C K S T O S E E T H A T T H E N U M B E R O F A R G U M E N T S I S C O R R E C T . •! I F S O , ' I T E V A L S I T , E L S E I T J U S T R E T U R N S I T . I T O N n ( ( M E M B E R T P M S U B R F S U B R N S U B R ) ) ( E V A L L S T ) ) ( ( A N D ( E O T P ' E X P R ) ( O R ( E Q ( L E N G T H ( C A D R F N ) ) ( S U B L ( L E N G T H ( E V A L L S T ) ) I T L S T ) ) ) L S T ) ) ) ( E Q ' F L A M B O A I C A R F N ) ) ) ) ( D E F U N S O F T - M E M ( B A ) ( C O N D ( ( A T O M B ) ( S O F T - E Q A B ) l ( T I O R ( M E M B E R A B) ( N U L L A ) , ( N U L L B ) ) ) ) ) ( D E F U N S O F T - N O U N - L I S T - G E T ( A ) ( C O N D ( ( N O U N - L I S T - G E T A ) ) ( T A D ) . ( D E F U N S O F T - N O U N - P U T ( Z Z ) ( S O F T - N O U N - L I S T - G E T ( N P - B U I L D ( G E T R Z Z D M I L D ( D E F U N S O U - O E S T ' - P R O ? ( P R N T E S T E E P R E P V E R B K A S E ) ( P R O G I T E M P ) ( C O N O ( ( S E T Q T E M P I P R Q - A N A P H O R ? • ( A G E N T C O - A G E N T B E N E F I C I A R Y ) • ( M U S T - B E H U . ' ( S E T - U P - F N ' D E S T I N A T I O N P R E P ) ( R E T U R N ( L I S T ( M A K E - A R R O W K . A S E I ( L I S T ' L O C A T I O N ' O F T E M P D D I I S E T Q T E M P ( P R O - A N A P H O R ? N I L M M U S T - B E P L A C E L O C A T I O N B U 1 L I N G ) P R N T E S T E E ) ) ( S E T - U P - F N K A S E P R E P ) ( R E T U R N ( L I S T ( M A K E - A R R O W K A S E ) T E M P ) ) ) ) ) ) ( D E F U N S O U R C E ( T E S T E E P R E P ) • ( S O U R C E - O E S T T E S T E E P R E P ' S O U R C E ) ) A N ) P R N T E S T E E ) ) ( D E F U N S O U R C E - D E S T ( T E S T E E P R E P K A S E ) T H I S I S T H E S O U R C E ( P R O G ( P R N ) ( R E T U R N ( C O N D AMD D E S T I N A T I O N C A S E . ( ( S E T Q P R N ( P R O ? T E S T E E M ( S O U - C E S T - P R O ? P R N ( ( M U S T - B E L O C A T I O N P L A C E B U I L D I N G C O N T A I N E R ) ( S E T - U P - F N K A S E P R E P ) ( L I S T ( M A K E - A R R O W K A S E ) 1 N O O N - L I S T - G E T ( N P T E S T E E P R E P V E R B K A S E D - B U I L C T E S T E E ) ) ) ) ) ) ) ) ( O E F U N S P E A K E R ( P R N ) IF A F I R S T P F R S O N A L S I N G U L A R PRONOUN ; FOR I M S M A N E . IF HE IS NO I KNOWN TO (CONO ( ( M U L L S P E A K E R ) ( P R O G ( N A M E N - P R O P SEX S U P E R RE L O O P 1 ( P R I N T ' " W H A T IS YOUR N A M E ? I S U S E D , T H E S P E A K E R ,15 rut- S Y S T E M , HE IS A S K E D P ) A S K E D l-UR H I S S E X . ( S E I O (COND L O O P 2 ( COND m i n ' ( A T U M ' N A M E ) ) ( P R I N T • "DON T BE CUMB") (GO L O C P 1 ) ) ) ( ( M O T ( M E M B E R ( C A R ( P R I N T ' " A R E Y O U ( T S P E A K E R ) ) ) ( G E T M A L E NAME ' S U P E R S E T ) ) OR F E M A L E ? " ) ' (MAN WOMAN) ) ) ( S E T O S E X ( R E A D ) ) ( GO NO M M F M B F R S F X ' ( M A L E M A S C U L I N E M MAN BOY G l:N T L c rt AN ) ) ( S E T O N - P R O P ' ( H U M A N M A L E ) S U P E R S E T ' ( M A N ) ) ) ( ( M E M B E R S F X • ( F E M A L E F F E M I N I N E WOMAN G I R L C H I C K ) ) ( S E T O N - P R O P ' ( H U M A N F E M A L E ) S U P E R S E T ' ( W O M A N ) ) ) ( ( M E M B E R SEX ' ( B O T H N E I T H E R BI B I S E X U A L ) ) ( P R I N T ' " I N THA I C A S E ( S T O P ) ) (T ( P R I N T ( P U T NAME • N - P R O P M - P R O P ) ( P U T NAME ' S U P E R S E T S U P E R ) I PUT NAME ' O B J - S I Z E : ' " 3 " ) ( P U T NAME ' D I C E T ) ( P U T NAME ' N P R • * ) ( R E T U R N ( S E T U S P E A K E R ( L I S T ' (T ( R E T U R N I SE TO S P E A K E R I L I . S T ") 'WOULD YOU G I V E ME A S T R A I G H T A N S W E R " ) (GO L 0 O P 2 ) ) ) NP N I L ' N P N I L ( L I S T ( L I S T 1 NPR NAME) ) ) ) ) • N P R N A M E ) ) ) ) ) ) ) ) I O E F U N S T A R T - L I S T U ! L I THI S (COND R O U T I N E R E T U R N S T H E F I R S T S U B - L I S T OF L B E G I N N I N G W I T H Z Z . ( ( M U L L L ) N I L ) I (EO ( C A R L 1 Z Z ) L ) 1 ( ATOM L ) N IL ) ( ( S T A R T - L I S T ZZ ( C A R L ) ) ) ( T ( S T A R T - L 1ST ZZ ( C D R L ) ) ) ) ) ( D E F U N S T A R T - R E L ( L ) ( S E T O L (CODR L ) ) ( C O N D ( ( E Q ( C A A R L ) ( C O N D ( (EQ ( C A A R I.) L ) • R E L P R O ) ( S E T Q L (COR L ) ) ) ) • P R E P ) ( S E T O L ( C D R L ) ) ) ) ( D E F U N S U P E R S E T ( X ) ; T H I S R E T U R N S A L I S T ( P R O G ( L ) ( S E T Q L N I L ) L O O P (COND C F A L L O F THE S U P E R S E T S OF T H E E L E M E N T S OF X . I ( N U L L X ) L ) ( ( A T O M X) ( S U P E R S E T ( L I S T X ) ) ) ( T ( S E T Q L ( A P P E N D L ( G E T ( C A R • S U P E R S E T ) ) X (CDR X ) ) (GO L O O P ) ) ) ) ) ( D E F U N S U P E R - N P T H I S ( PROG R O U T I N E ( T E M P ) ( C O N D - B U I L O C A L L S ( N P ) N P - B U l L D i B U T I F NP IS A PRONOUN IT R E S O L V E S T H E R E F E R E N C E F I R S T . ( ( S E T Q T E M P ( P R O ? N P ) ) ( S E T Q A G - A N A P H O R ( G E T R AG) PA ANAPHOR ( G E T R P A ) ) ( S E T Q TEMP ( A N A P H O R I C N I L T A N A P H O R - D E P T H T E M P ) ) ( S E T Q A G - A N A P H O R N I L P A - A N A P H O R N I L ) ( R E T U R N ( N P - B U I L D T E M P ) ) ) ( T ( N P - B U I L D N P ) ) ) ) ) ( D E F U N S U P E R - S T A R T - L I S T ( Z Z L T E S T ) ; T H I S IS T H E SAME A S S T A R T - L I S T , . BUT ; A P A R T OF L • (COND ( ( N U L L L ) N I L ) ( ( A N D ( E O ( C A R ( ( A T O M L ) M I L ) ( ( S U P E R - S T A R T - L I S T ZZ ( C A R L ) ( ( S U P E R - S T A R T - L I S T ZZ ( C D R L ) T E S T MUST BE T R U E FOR I T TO S U C C E E O ON L ) Z Z ) ( E V A L T E S T ) ) L ) T E S T ) ) T E S T ) I) ) IO0FUN T A I L - C M S I ) TAIL-ENDS FOUND THE PARSE FOR FUR T H E M . (PROG <S';R 1 S L T Q LOOP (COND IS THE R O U T I N E WHICH I S I N V O K E D WHEN CORP. E C I C A S E F R A M E FOR THE V E R M . I I E L f M E N I S WHICH H A V E MOT B E E N H A N D L E D IF THINKS IT HAS L O O K S DUW.T THE PARTIAL YET. CASES? IS IMVOKEO NN ) NR K E E P - S E N T N N 1) ( ( N U L L S N R l l ( ( O R (C AD AR SMR) ( E O ' V P ( C A A R S M K I ) ( SC TO N N . t A D O l MN) SMR ( C C R SMI'.)) ( C O L O U P ) ) K E O 0 R E L - L E V E L ) ( A L L - H I S T - O F F S C N T - H I S T ) M I L ) ( T T ) ) ) ) ( C A S E S ? (CAR SMR) N N ) ) ( O E F U N T E N S E - F I X ( T N S ) ( P R O G I T E M P ) L O O P ( C U J O I ( M U L L I S E T O T E M P ( S U P E R - S T A R T -I T I R P L A C A ( C D R T E M P ) T N S ) (GO L I S T ' T N S L C C P ) ) ) ) ) K E E P - S E N T • I N U L L ( C A D R L ) ) ) ) ) ( R E T U R N N I L ) ) ( D E F U N T E S T - O F F ? I K ) ( A N D T E S I - U F F ( N O T ( G E T R T H A T - C O M P ) ) ( M E M B E R K F A I L - T E S T - L I S T ) ) ) ( D E F U N T H E R E - I S ( ) ! T H I S IS A C A S E OF " T O B E " : " T H E R E I S A MAN IH T H E H O U S E . " I C O N O ( I A N 0 ( E Q ' " < - A O V - " ( C A A R K E E P - S E N T ) ) IEQ • T H E R E ( C A O O A R K E E P - S E N T ) ) ) ( F L A G - O N ( C A R K E E P - S E N T ) K E E P - S E N T T ) T ) ) ) ( O E F U N T H I R D - C H A N C E ( K A S E PRN H I S T ) ; IF A L O C A T I V E R E F E R E N C E C A N N O T B E R E S O L V E D , T H I R D C H A N C E L O C K S ; 3ACK O V £ R H I S T , T H E P R E V I O U S P A R S E S . ( L C C K - C O * , ' ! H I S T PRN ( C O M D I ( M E M B E R K A S E • ( S O U R C E D E S T I N A T I O N L O C A T I O N ) ) M M U S T - B E L O C A T I O N ) ) ) ) ) ( O E F U N T I M E ( N P P R E P ) T H I S IS T H E T I M E C A S E . W - W - T I M E I S C A L L E D F G R T h E P O S S I B L Y C O M P L E X C O N S T R U C T S . ( C O N D ( ( A N D ( E Q P R E P • I N ) ( D U R A T I O N ? N P ) I M I L ) ( ( M E M B E R P R E P • ( B E F O R E A F T E R WHEN W H I L E ) ) ( W - W - T I M E MP PREP1) I ( I S - I T - NP ' T I M E ) ( S E T O F N ' ( R P L A C O ( E N D - L I S T ( F l . N O - L I S T S T R U C T " ' < = = >•')) ( L I S T S T R C T ) ) ) ( S t TO P R E P C C A S E ( L I S T P R E P ' T I M E ) ) ( S E T Q MUD ( P l i R A S E - N U M ' V P K E E P - S E N T ) ) I T I M E - B U I L D NP P R E P ) ) ) ) ( D E F U N T I M E - B U I L D (NP P R E P ) ( B U I L O Q ( " < - T I M E - " * «l P R E P ( C A O R ( S T A R T - L I S T • N N P ) ) ) ) I D E F U N T O - C O V . P ( S U B J ) ; T H I S R O U T I N E T A X E S A T O - C O M P L E M E N T , A D D S S U B J B E F O R E I T , AND ANY • ; P O S S I B L E P H R A S E S ON T H E END OF I T , T H U S B U I L D I N G UP A S E N T E N C E P A R S E , ; AND I N V O K E S S ON I T . ( P R O G ( K - S T E M P MN) ( C C M D ( ( N U L L S U B J ) ( R E T U R N N I L ) ) ) ( S E T Q K - S K E E P - S E N T NN I ) L O O P ' I C O N D ( ( N U L L K - S ) ( R E T U R N N I L ) ) ( ( A N D ( E O • T O - C O M P ( C A A R K - S ) ) ( S E T Q TEMP ( E V A L ( A P P E N D ( L I S T ' S ) ( L I S T ( A P P E N D ( L I S T S U B J ) ( R E L - M O D S - J O I N ( C D D A R K - S ) NN)))))) ( F L A G - O N ( C A R K - S ) K E E P - S E N T T ) T E M P ) ) I T IS ET Q N I ( A U D I NN T K - S (CI)R K - S ) ) I GC L O O P ) ) ) ) ) (DEFUN TOPIC I T E S T E E P R E P ) ; THIS IS THE T O P I C C A S E . T H E R E IS MO T E S T ON T H I S C A S E . ( P R O G IPRN) I R LI URN ( C O M ) ( t SE TO PRN ( P R C ? T E S T E E ) ) , r , , , . „ u „,--.,r, T D I M J T C C T F F ) ) ( P R U - A i i A P H U R ? ' ( P A T I E N T A G E N T T O P I C B E N E F I C I A R Y C C - A G c N T T PR I C S T C E ) ) ( T ( S E T - U P - F N ' T O P I C P R E P ) ( L I S T " • < - T O P I C - ' ' ( N O U N - L I S T-Gfc T ( N P - B U I L D T E S T E E ) ) ) ) ) ) ) ) ( D E F U N T O P I C - L O O K N L X P R I T E S T ) ; T H I S R O U T I M E L O O K S FOR T H E T O P I C C A S i ( P R O C I T E H P T E S T E E C L S S P R N ) C L S S ( P R E P - C L A U S E ( C A S E - P R E P S VI ( S E T U L O O P ( C O N O I F IT I S A N O U N - P H R A S E . C • T O P I C) K E C P - S E N T I 1 ( ( N U L L C L S S ) ( R E T U R N N I L I ) I ( N U L L ( S E T O PRN ( S T A R T - L I S T 1 PRO ( S E T O T E S T E E ( C A R C L S S ) ) ) ) ) , _ „ . „ , , , . ( C O N D ( ( O R 1 T F S T - O F F ? • T O P I C ) ( E V A L T E S T ) ) ( R E T U R N ( D B L C ( M I ' - 0 U ( L O T E S T E E ) ) ) ) I T ( S E T U C L S S ( C D R C L S S ) ) ( C O L O O P ) ) ) ) „ „ „ „ „ „ . , . . , , ( T ( C U N D ( ( N U T ( N U L L ( S E T Q TEMP ( A N A P H O R I C ' ( T O P I C P A T I C H T I T E S T A M A P H O R - O E P T H P R N ) ) ) ) I F L A G - O N T E S T E S K E E P - S E N T T E M P ) ( U E L Q ( R E T U R N T E M P ) ) ) (T ( S E T O C L S S ( C D R C L S S ) ) ( G O L O O P ) ) ) ) ) ) ) BUT IT L O O K S O N L Y F O R AT I N THE ( O E F U N T O P - L E V E L - S T A R T - L I S T ( A T L ) ; T H I S I S T H E S A M E A S S T A R T - L I S T , T O P - L E V E L C F L . I P R O G N I L L O O P ( C O N D ( ( N U L L L ) N I L ) ( ( A T O M ( C A R L ) ) ( S E T O L ( C D R L ) ) ( G O L O O P ) ) ( ( E Q U A L ( C A A R L > A T ) ( C A R L ) ) I T ( S E T Q L ( C D R L ) ) ( G O L C O P ) ) ) ) ) A D O S A L I S T O F L E T T E R S O N T O N W O R D . ( D E F U N T R Y N E X P R ( L ) ; T H I S I S P A R T O F T H E M O R P H O L O G Y R O U T I N E S . I T ; A R O O T W O R D . A N D C H E C K S T O S E E I F I T I S A K N C ! ( P R O G ( N E W - W O R O ) ' . . - - c u t ( S E T Q M P W - W C R D ( ( M P L O O E I R E V E R S E ( A P P E N D ( C A R L ) L E T S ) ) ) ) ( C O N D ( ( A N D ( G E T N E W - W O R D ' O I C T ) ( M Y G E T N E W - W C R D ( C A D R L ) ) ( E V A L ( C A D D R L D ) 1 P U T O N W O R D . O D D ( D E F U N V 3 T Y P E N E X P R ( Z ) ( E U ( G E T S E W - W O R D " V ) Z D ( O E F U N V E R b - C L E A N ( ) ( M A P O B ' ( L A M B D A ( X ) ( R E M X ' C A S E - H I S I ) ) ) ) ( D E F U N V E R B - P R E P 7 ( V E R B PREP) ( P R O G ( T E M P ) ( S E T Q T E M P (GET V E R B 1 P R E P - C A S E ) ) LOOP ( C O V U ( ( N U L L T E M P ) N I L ) I(EQ P R E P ( C A A R TEMP))) I T ( S E T Q T E M P I C D R T E M P ) ) I GO L O O P ) ) ) ) ) ( O E F U N V - F O R E - G R N D ( V E R B P R E P LST) : T H I S R O U T I N E T A K E S A L I S T O F C A S E S , A N D F O R E G R O U N D S T H O S E C A S E S U S E D P R E V I O U S L Y W I T H V E R B A N O F L A G G E D BY P R E P . IT D O E S NOT T O U C H T H E D E S C C A S E . I P R O G ( T E M P I ( S E T C T E M P I G E T VEkB ' C A S E - H I S T D . L O O P ( C O N O ( ( N U L L T E M P ) ( R E T U R N L S T I ) ( ( A N D ( E Q P R E P ( C A A R T E M P ) ) ( N O T I E O ' O E S C R I P D V E ( C A C A R T E M P ) ) ) ) ( R E T U R N ( A P P E N D ( L I S T ( C A C A R T E M P ) ) ( S O F T - D E L E T E ( C A O A R T E M P ) T L S T ) ) ) ) ( T ( S E T O T E M P ( C D R T E M P I ) ( G C L O U P ) ) ) ) ) ( D E F U N W E V A L ( S U I N G ! S T A T E 1 S T A C K L " R E G S L H C L D L P A T H 1 ) T H I S I S P A R T O F R A Y R E I I E R ' S A T N P A R S E R , I M A D E A S M A L L C H A N G E T O I T . ( P R O G ( A E U D Y - S A R C T Y P E * L E X ) ( P T R A C E E N T E R I N G S T A T E ( S T A T E D : S T R I N G = I S T R I N G D ) ( P I R t G S ) I S L I Q * ( C O N D ( ( N U L L S T R I N C 1 1 N I L ) I ( S E I O M O K P H I t M P I M C K P H ( C A R S T R ( N G l ) l ) I COND ( ( E Q M H R P H T E M P T) (CAR S T R I N G D ) t ( E O fURi ' l i r t 'MP " ' ) ( R E I UR N N I L ) I I T ( R P L A C A S I R I N G 1 MUKl'M T EMP ) ) ) ) I ) I E K R O R ( H I C I E R K ) ) ) ) L E X * ) I f ' i f i i ) 1 ('M)T (CrT S T A T E 1 ' G R A M M A R ) ) ( ERROR I E R R O R S ) > ) ) I . t l « f l O D Y - S I GE I S I A I L l ' G R A M M A R ) ) T A G ( C l A G ( ( N U L L B O O Y - S I ( B L O C K E D ) ( I ' C I U K N M L ) ) ( I ( S L I D A k C I Y P L ( C A A R B O l i r - S D ! ) I I ' . L I U A I E V A L I C A R I ' . U O Y - S ) ) ) ( IIF [URN A ) ) ( T ( S E T O l < 0 0 Y - S (C U R P M D Y - S ) ) ( C o I A C - • ) ' ) ) ) (CON!) ( D E F U N W H E R E - I S (WHO) ; T H I S R O U T I N E T R I E S TO F I N D OUT WHERE WHO I S . ( P R O G ( H I S I T E M P ) •( S E T Q H I S T HI S T O R Y ) L O O P (COMD ( ( N U L L H I S T ) ( R E T U R N 1 S O M E P L A C E 1) ( ( O R ( E Q U A L WHO ( C A S E - F I N D (CAR H I S T ) ( E Q U A L WHO ( C A S E - F I N O (CAR H I S T ) ( E Q U A L WHO ( C A S E - I - I N U ( C A R H I S T ) ( C O N O ( ( S E T O TEMP ( W H E R E - I S - 1 WHO I CAR ( R E T U R N (COMD ( ( E O ( L E N G T H T E M P ) 1) ( L I S T ( T I S E T O H I S T (CUR H I S T ) ) (GO L C O P ) ) ) ) IT I S E T Q H I S T (CDR H I S T ) ) (GO L O O P ) ) ) ) ) A G E N T ) ) C O - A G E N T I ) B E N E F I C I A R Y ) ) ) H I S T ) ) ) ' Q U O T E T E M P ) ) IT ( D B L Q T E M P ) ) ) ) ) ( D E F U N W H E R E * I S - 1 (WHO S E N T ) (OR ( C A S E - F I M D SENT, - D E S T I N A T I O N ) ( C A S E - F I N D S E N T ' L O C A T I O N ) ( A N D 1 E O ' I N H A B I T ( C A D R ( S T A R T - L I S T S E N T ) ) ) ( C A S E - F I N O S E N T ' P A T I E N T ) ) ) ) ( O E F U N W H I C H - M E A . M I N G ( L S E N T N V E R B ) T H I S F U N C T I O N C O N T R O L S T H E T O P - L E V E L B A C K - U P . T H E F I R S T L I N E I N V O K E S T H E D E F I N I T I O N O F T H E V E R B . T H E N E X T P A R T C H A N G E S ANAPHOR—OEP TH TO ALLOW A N A P H O R I C TO LOOK D E E P E R I N T O T H E H I S T O R Y O F T H E C C N V E R S T A T I ON TO R E S O L V E R E F E R E N C E S . IT CANNOT GO B A C K F U R T H E R T H A N 2. T H E N E X T T H I N G I T T R I E S IS TO S H U T O F F T H E S H O U L D - B E T E S T S . AS A L A S T A T T E M P T IT S H U T S O F F T H E M U S T - B E T E S T S . ( C O N D ( ( E V A L ( G E T V E R B ' V - M E A N ) ) ) ( ( E Q 0 R E L - L E V E L ) (COND ( ( G R E A T E R P ( M I N 2 ( L E N G T H H I S T O R Y ) ) A N A P H O R - D E P T H 0) ( S E T Q A N A P H O R - D E P T H ( A U D I A N A P H U R - O E P T H ) ) ( A L L - F L A G - O F F K E E P - S E N T ) ( K H I C M - M E A N ING L S E N T N V E R B ) ) ( ( N O T S H O U L D - T E S T - O F F ) ( S E T O S H U U L O - T E S T - O F F T ) ( A L L - F L A G - O F F K E E P - S E N T ) (COND ( ( G R E A T E R P A N A P H O R - D E P T H 0) ( M U C H - M E A N I N G L S E N T N V E R B ) ) ( ( N O T T E S T - O F F ) ( S E T Q T E S T - O F F T ) ( A L L - F L A G - O F F K E E P - S E N T ) ( C O N O ( ( G R E A T E R P A N A P H O R - D E P T H 0 ) ( S E T Q A N A P H O R - D E P T H 1 ) ) ) ( W H I C H - M E A N I N G L S E N T N V E R B ) ) ( T ' " I DON T G E T I T " ) ) 1 I I ( S E T Q A N A P H O R - D E P T H 1 ) ) ) ( D E F U N W I T H ( T E S T E E ; T H I S IS T H E W I T H ( P R O G ( P R N ) ( R E T U R N ( C O N D P R E P ) C A S E . ( ( S E T Q PRN ( P R O ? T E S T E E ) ) ( P R O G ( T E M P ) (COMD ( ( S E T Q TEMP ( P R O - A N A P H O R ? ' ( W I T H P A T I E N T T O P I C A G E N T ) ' ( N O T ( M U S T - B E A B S T R A C T H U M A N ) ) PRN T E S T E E ) ) ( S F T - U P - F N ' W I T H P R E P ) ( R E T U R N ( L I S T " < - W I T H - " T E M P ) ) ) ) ) ) ( ( N O T ( M U S T - C E A B S T R A C T H U M A N ) ) ( S E T - U P - F M ' W I T H P R E P I ( L I S T ' " < - W I T H - " ( N O U N - L I S T - G E T ( N P - B U I L D T E S T E E ) ) ) ) ) ) ) ) ( D E F U N W I T I I - R E S P - T O (A S) ; T H I S C A S E IS NUT I M P L E M E N T E D Y E T . N I L ) ( D E F U N W R I T E ? ( A ) ( C O N D M I S F I T A ' M U S I C ) - C O M P O S E ) ( T ' W R I T E . ) ) ) ( O F F U N WRI T E - I M O - O B J ( I N D P A ) " T H I S F I N D S T H E C A S E OF AN I N D I R E C T O B J E C T FOR T H E V E R B " T O W R I T E " . IF M U S I C IS W R I T T E N , T H E I N D I R E C T O B J E C T IS THE B E N E F I C I A R Y C A S E , E L S E IT IS T H E R E C I P I E N T . (COMD ( ( N U L L IND) N I L ) r T „ m i n n PA I I 1 I . ( U S - I T PA - M U S I C ) ( L I S T " < - l ' E N E F I C ! A R Y - " ( N O U N - L I S T - G E T ( N P - B U I L D P A ) ) ) ) IT ( L I S T ' " < - R E C I P ( E M T - " I N O U N - L I S T - G E I ( M P - U U I L D P A ) ) ) ) ) ) I 2. ( O E F U N W - W - T I M E ( NP P R E P ) T H I S H A N D L E S C O M P L E X T I M E C A S E S . " B E F O R E J O H N C A M E . . . " " W H I L E I W A L K E D H O M E . . " ( P R O G ( P A X r RET I ( S L T 0 P A R T ( R E L - M O U S - J O I M MP ( P H R A S E - N U M 2 (COMS P R E P (CONS M I L N P I ) K E E P - S E N T ) ) ) ICONO I ( P R O C N I S E T g A G - A M A P H O R ( G E T R A G ) P A - A N A P H O R ( G E T R P A ) ) ( S E T O R E T ( E V A L ( C O N S ' S ( L I S T P A R T ) ) ) ) ( S E T O AG-ANAPIIIIR N I L P . ' . - A N A P H O R N I L ) (NOT ( A T O M R E T ) ) ) ( S E T - U P - F N ' T I ME P R E P ) ( R E T U R N (COMS •••<-riME-" I C U N S P R E P ( L I S T R E T ) ) ) ) ) ) ) ) T H I S IS I HE A I M \1A . F U N G R A M M A R - IN ( ) MARC ' M Y P U T M I S ( C A T ( C A R ( S E T Q I CAR I I C L E T ( C A R VV> • " VV (CUR * ) ) ) - " * ) ) I WRO I WRD ( MEM (WRD ( WRD ( WRD (WRD ( P U S H I P U S H ( PUSH ( P U S H PART I CL G ' ( A N D (NUT ( G E T R P A R T I C L E ) I ( G E T R VP I ( M E M B E R * ( G U I 1ADDR S E N T ( B U I L D O ( R P I . A C A VV ( MKATUM ( S E T R P A R T I C L E T) ( T O S ) ) T H A N T ( T O T H A N - P H ) ) SO T 1 TO S U - C O M P ) ) (WHEN W H I L E A F T E R B E F O R E ) T I S E T R WH-WH IN T ( T O I N - I N ) ) i)Y T I T U B Y - C O M P ) ) THAT (OR (NUT ( G E T R S E N T ) ) ( S T A R T - L I S T ' V ( G E T R V I M ) ) ) ) ' P A R T I C L E S ) ) ) * ) ( T O W H E N - W H I L E ) ) ( G E T R V P ) ) ( T O T H A T - C O M P ) ) S E N D ) ( G E T R (ADDR S E N T *) V P ) ) ( T O I TO S) ) T O - C O M P ) ) ( P U S H ( P U S H ( JUMP ( P O P TO (OR (NOT IGF.Tfi PP ( N E X T ' P R E P ) VP (NOT ( G E T R V P ) ) l-SENDR V ( G E T R V ) ) ( S E N U R T E N S E ( G E T R T E N S E ) ) ( S E T R V P * ) (ADDR S E N T *) ( T O S ) I R E L T ( AODR S E N T * ) ( T O S) ) A D J P (OR ( N E X T ' A D J ) ( N E X T ' A O V ) ( N E X T ' V ) ) ( P R O G ( T E M P ) ( S E T Q TEMP *) L O O P ( C O N D ( ( N U L L T E H P ) ) ( T (ADDR S E N T ( T O S ) ) ADV ( N E X T ' A D V ) (ADDR S E N T *) I TO S I ) NP T ( S E N D R NP T) IADDR S E N T *) ( T O S ) ) S - Y E S N O ( N E X T ' V ) ) ( B U I L D Q (S "+"> S E N T ) I P R O G N I S E T Q H A B I T U A L ( G E T R H A B I T U A L ) ) " ' ( T O W-W-( C A R T E M P ) ) ( S E T Q TEMP ( C D R T E M P ) ) (GO L O O P ) ) ) ) T ) ) ) •NP ) ) ) ( T O S ) ) ) ( W H E N - W H IL E ( P U S H NP T ( S E T R W-W ( L I S T ( G E T R WH-WH) N I L * ) \ ( W - W - N P ( P U S H PP ( N E X T ' P R E P ) (ADDR W-W *) ( T O W - W - N P ) ) ( P U S H VP ( N E X T ' V ) ( A O D R W-W * ) (ADDR S E N T ( G E T R W - W ) ) ( T O S ) ) ( P U S H R E L T (ADDR W-W *) ( T O W - W - N P ) ) ) ( T H A N - P H ( P U S H NP T (ADDR S E N T ( B U I L D Q ( T H A N - P H N I L * ) ) ) ( S O - C O M P (WRD T H A T T ( S E T R M O D A L - F I N D T ) I TO S O - C O M P ) I ( P U S H S T I S E N D R S O - C O M P T ) ( C U N D ( ( A N D ( G E T R N O D A L - F I N D ) ( N O T ( G E T R V O C A L ) ) ) N I L ) ( ( G E T R M O D A L ) IACDR S E N T ( B U I L D Q I S O - C O M P N I L " • " *) M O D A L ) ) ) ( ( A N D ( N O T ( G E T R M O D A L - F I N D ) ) (NOT ( G E T R M O D A L ) ) ) (ADDR S E N T ( B U I L D Q ( S O - C O M P N I L * ) ) ) ) ) I TO S) ) ) ( T H A T - C O M P ( P U S H S T ( S E N O R T H A T - C G M P T ) ( S E N D R T E N S E ( G E T R T E N S E ) ) I C O N D ( ( N O T ( N U L L * ) ) ( P R O G ( T H A T - C O M P ) ( S E T R T H A T - C O M P T ) (AODR S E N T I B U I L D Q ( T H A T - C O M P N I L ( S E T Q fH A T - C M P T ) ) ) I) I E V A L * ) ) ) ) ( T O S ) ) ) ( T O - C O M P ( P U S H V P ( N E X T ' V ) ( S E N D R T E N S E ( G E T R T E N S E ) ) ( S E N D R T O - C O M P T) I S E T R T O - V P *) ( TCI T O - C O M P - V P ) ) ) I T O - C O M P - V P ( P U S H P P ( N E X T ' P R E P ) ( S E T R . T O - C C M P T) (ADDR SENT ( B U I L D Q ( T O S) ) ( P U S H NP T ( S E T R T O - C O M P T ) I ADDR S E N T I BEI 11. DO I T O - C O M P N I L " + " *) T O - V P ) ) ( T O S ) ) S T (AODR S E N T ( B U I L D Q I T O - C O M P N I L " + ") T C - V P D I ) I I TO I N-IIMHER ) ) ) T ( T O T O - C O M P ) ) ) ( T O - C O M P N I L "+" #) T O - V P ) ) I JUMP ( I N - 1 N (WRD ORDER ( I N - O R D E R (WRD TO ( B Y - C O M P ( C A T V ( E Q ( S E T R ( C O N D ' P R E S P A R T ( G E T F P A R T ) ) S - V ( G E T R V ) ) ( ( G E T R V I ) (T ( S k l Q T N S - F I X ? T ) ) ) ( S E TR T E N S E ( G E I R T E N S E I I ( S E T R V *) ( S E T R B Y - V ( B U I L D - V P ) ) ( S E T R V ( G E T R S - V ) ) ( T O a v - c o n i ' - v ) ) I ( B Y - C O M P - V ( P U S H 'NP ' T (CONO ( ( N O T ( N U L L *>) ( AODR S E N T ( B U I L O O ( B Y - C O M P N I L *) B Y - V ) ) ) ) I I O S H I ( S - P P U - P U P ( P O P ( B U I L O - P P U ) T l ) ( S - P P ( J U M P S-YfcSNIJ (AND ( G E IR W H - P H R A S E ) ( A U X V L E X ) ) ) ( J U M P S T ) ) ( S - O C L ( P U S H NP I I S E T R S U B J *) ( S C I R S - S U I I J ( C E I R H E A O N C U N I ) ( T O S - M P ) ) ) ( S - I M P ( C A T V ( G E T E U M T E N S E D ) ( S E ( k S U U J M N P ( D E T N I L ) ( P R O YOU) (NU S C - P L ) ) ) ( S E T R V * I ( S E I R T E N S E M U N T E N S E O ) ) ( S E I R S - S U B J M O U M M Y YOU N I L ) ) ( S E I R S - V E R 3 ( B U I L C U ( 3 (V *) ( * ) ) F E A T U R E S ) ) ( T O V - A U X ) ) ) ( S - N P U ( P U S H NP T ( S E T R S U B J *) ( T O S - N P U - P O P ) ) ) ( S - Y E S N O ( C A T V 1A U X * ) ( S E T R V (BUI LOO (V * ) ) ) ( S E T R T Y P E ' Y E S - N O ) ( S E T R T E N S E ( L I S T ( C E T F T N S ) ) ) ( S E T R Y E S N O I) ( T U S - Y E S N O - N E G ) ) 1 I S - Y E S N O - N E C . (WRU NOT T ( S E I R N E C ' ( N E G A T I V E ) ) ( T O S)> ( J U M P S T l ) ( S - W H ( C A T OAOV I C O N U ( ( N U L L (CDR S T R I N G ) > M I L ) I ( A U X V ( C A D R S T R I N G ) ) ) ) (ADOR A D V E R B S ( B U I L D Q ( Q A D V * ) ) ) ( S E T R T Y P E ' ( Q A D V ) ) ( T O S - Y E S N O ) ) ( P U S H QP (AMD ( G E T L E X - Q P R O ) (MOT ( A S S Q ' S U B J (CDR ( G E T L E X ' U P R O ) ) ) ) ) (COND ( ( (NULL S T R I N G ) ( A B O R T ) ) ( ( N O T ( A U X V L E X ) ) ( A B O R T ) ) ) ( H O L D ( A P P E N D * ( G E T R P R E P P H R A S E S ) ) ) ( S E T R T Y P E ' ( U P R O ) ) ( S E T R Q O B J ( G E T R H E A D Q P R O ) ) ( S E T R S - D O ( G E T R Q O B J ) ) ( S E T R P R E P P H R A S E S N I L I ( T O S - Y E S M O ) ) ( P U S H OP • (AND ( G E T L E X ' Q P R O ) (NOT ( A S S Q ' O B J (CDR ( G E T L E X ' Q P R O ) ) ) ) ) ( C O N D ( ( N U L L S T R I N G ) ( A B O R T ) ) ( ( N O T ( G E T L E X ' V ) l ( A B O R T ) ) ) ( S E T R S U B J ( A P P E N D * ( G E T R P R E P P H R A S E S ) ) ) ( S E T R S - S U B J ( G E T R H E A D Q P R O ) ) ( S E T R T Y P E ' ( Q P R O ) ) ( S E I R P R E P P H R A S E S N I L ) ( T O S - N P ) ) ( C A T Q D E T T ( S E T R U D E T *) ( T O S - Q O E T ) ) ) ( S - Q D E T ( P U S H N P - D E T T ( SENDR DET (GETR. Q D E T ) ) ( S E N O R S E M - O E T ( B U I L D Q ( Q D E T "+") Q D E T ) ) ( S E T R WH-NP ( A P P E N D * (GETR" P R E P P H R A S E S ) ) ) ( S E T R T Y P E ' ( O D E T ) ) I S E T R P R E P P H R A S E S N I L ) ( T O S - W H - N P ) ) ) ( S - W I I - N P ( J U M P S - Y E S N O ( A U X V L E X ) ( S E T R S - D O ( G E T R HE A O N O U N ) ) ( H O L D ( G E T R W H - N P ) ) ( S E T R Q O B J ( G E T R H E A O N O U N ) ) ) ( J U M P S - M P ( G E T L E X - V ) ( S E T R S U B J ( G E T R W H - N P ) ) ( S E T R S - S U B J I G E T R H E A O N O U N ) ) ) ) ( R E L (MEM (WHICH WHO WHOM T H A T W H O S E ) T ( S E T R R E L P R O ( B U I L D Q ( R E L P R O * ) ) ) ( T O R E L - P R O ) ) ( C A T P R E P ( S E T R P R E P ( B U I L D Q ! P R E P * ) ) ) ( T O R E L - P R E P I ) ( J U M P R E D - R E L ( N E X T M N NPR D E T PRO V ) ) ) ) ( R E L - P R E P (MEM ( W H I C H WHOM W H O S E ) ( S E T R R E L P R O ( B U I L D Q ( R E L P R O * ) ) ) ( T O R E L - P R O ) ) ) ( R E D - R E L ( C A T V ( E Q ' P R E S P A R T 1 G E T F P A R T I ) ( S E T R V *) ( S E T R T E N S E ' ( P R E S E N T ) ) ( S E TR VP ( B O I L O - V P ) ) ( S E T R R E D U C E D T) ( T O R E L - V P ) ) ( C A T V ( E U ' P A S T P A R T I G E T F P A R T ) ) ( SE TR V *) ( S E T R V O I C E ' ( V O I C E P A S S I V E ) ) ( S E T R T E N S E ' ( P A S T ) ) ( S E T R VP ( B U I L D - V P ) ) ' ( S E T R R E D U C E D I ) ( I U R E L - V P ) ) ) ( R E L - P R O ( P U S H NP T ( S E T R O B J - R E L T l ( S E T R N l ' l « ) ( T O R E L - N P I ) ) ( P U S H VP (AND (NOI ( G E T R P R E P ) ) ( M E M B E R ( C A D R ( C E I R R E L P R O ) ) ' ( W H I C H WHO T H A T ) ) ) I S E T R VP » ) (TO R E L - V P ) ) ) ( R E L - N P 1 ( P U S H I'I' ( N E X T ' I ' H E P I (A I ) D R M U U - N P I * > I H I R E L - N P 1 1 ) ( I 'USH V P 1 ( S E T U V P « ) ( H I K L L - N P l - V P ) ) I P U S H P.EL I ( S E I R MUD-NIM * ) ( T O K E L - N P l ) ) ) ( R F L - N P l - V P ( P O P O i U I L D U ( .Tl :l ( N I L ) V !) ("'") V ("+")) V < U . - T (C.UNL) ( ( A N D ( G E T R R E D U C E D ) ( G E I K O B J - R E L M -OB J-P. h D - R E L ) . • . ( ( G E T R R E D U C E D ) ' R E D - R E I-) I ( G E T R O B J - R E L ) ' D B J - R E L ) ( T ( G E T R ( G E T R • R E L ) ) ) R E L P R O ) ) P R E P ) ) ( L I S T ( L I S T IIP 1 ( L I S r - I T I C E T R M O D - N P l ) ) V P ) T ) I ( R E L - V P ( P U S H A O J P ( A N D ( O R ( N E X T " A O J ) ( N E X T ' A D V ) ) ( E O ( M A P C ' ( L A M B D A (X) ( A D O R A O J X ) ) *) . ( I 0 R E L - V P - N P 2 ) I R E L - V P - N P 2 T ) ) ( 0 !l ( M I L ) ( L I S T ( C O N O •BE ( C A D R ( S T A R T - L I S T 'V I G E T R V P ) ) ) ) ) ( J U M P I R E L - V P - N P 2 ( P U P ( B U I L D Q ( L I S T - I T ( L I S T - I T I L I S T - I T V P A O J I L I S T - I T 1) U ( ( A N D ( G E T R R E D U C E D ) ( ( G E T R R E D U C E D ) 'RED-( I G E T R O B J - R E L ) " O B J -( T ' R E D ) ) ( G E T R R E L P R O ) ) ( G E T R P R E P ) ) ( G E T R M P 1 ) ) (GETR N P 2 ) ) ) ( G E T R R E D R E L ) O B J - R E L ) ) • O B J - R E D - R E L ) ( V P ( J U M P V - A U X T ) ) ( G E T R V) ) ( C A T V (OR ( G E T F T N S ) ( A N D ( G E T R T D F L A G ) ( G E TE UN T E N S E D ) ) ) ( CON 0 ( C O N D s V - A U X ) ) ( S E T R ( S E T R ( T O V ( C A T MODAL T ( S E T R M O D A L * ) ( L I F T R MODAL * SO-( C U N D ( ( M E M B E R * ' I TO V P ) I • ( J U M P V P - V P ( G E T R V I I ) ( S - N P U - P O P ( P O P I B U I L D - M P U ) ( ( N O T ( G E T R T E N S E ) ) ( S E T R T E N S E ( L I S T ( G E T F T N S ) ) ) ) ) ( ( A N D ( N O T ( G E T R TO-C.CMP ) ) ( N O T ( G E T R T H A T - C O M P ) ) I N O T ( G E T R B Y - C O M P ) ). ( N O T ( G E T R S O - C O M P ) ) ) ( L I F T R T E N S E ( G E T R T E N S E ) S ) ) ) V E R B ( B U I L D I ) 1 3 ( V *) ( S I ) F E A T U R E S ) ) * ) C U M P ) ( W O U L D T) ) W ( L L S H A L L ) ) ( S E T R T E N S E ' ( F U T U R E ) ) ) ) ( V - A U X ( WRD ( C A T ( V F E A T U R E ( G E T R V ) ' A U X ) ( S E T R N E G ' ( N E G A T I V E ) ) ( T O V - A U X ) ) • ( P E R F E C T ) ) ( B U I L D Q ( 3 ( V ( A P P E N D ( B U I L O Q ( G E T R ( 3 (V * ) I / ) ) ) F E A T U R E S ) ) A S P E C T ) • ( P R O G R E S S I V E ) ) ) F E A T U R E S ) ) * ) ( i t ) ) ' ( F I J TURE ) ) I B U I L D Q (; ( V * ) (.11) F E A T U R E S ) ) ( C A T NOT V ( P E R F E C T ) ( S E T R V * ) ( S E T R A S P E C T ( S E T R S - V E R B ( T O V - A U X ) ) ( CA T V ( P R O G R E S S I V E ) ( S E T R V *) ( S E T R A S P E C T ( S E T R S - V E R B ( T O V - A U X ) I ( C A T V ( F U T U R E ) ( S E T R V * ) ( S E T R T E N S E ( S E T R S - V E R B I TO V - A U X ) ) V ( P A S S I V E ) ( S E I R V *) ( S E T R S - V E R B ( B U I L D Q ( 3 ( V *) (,'/)) F E A T U R E S ) ) ( S E T R V O I C E ' ( V O I C E P A S S I V E ) ) ( T O V P - V P ) I V ( D O - A U X ) ( S E T R V * ) ( S E T R S - V C R U ( B U I L D Q 13 I V * ) ( C U N D ( ( A N D ( N U T ( G E T R Y E S N O ) ) ( T O V P - V P ) I V ( M O D A L ) ( S E I R MODAL ( B U I L D Q ( M O D A L ( S E T R V * ) ( S E T R S - V E R B ( B U I L D Q ( a ( V « ) I K ) ) F E A T U R E S ) ) ( T O V - A U X ) ) P R E P ( M E M B E R * ( G E T ( G E T R V). ' P A R T I C L E S ) ) ( S E T R V ( M K A T U M ( G E T R .V) ' " - " * ) ) ( S ) ) ( NOT F E A T U R E S I ) ( G E I R N E G ) ) ) ( S E T R MODAL ' ( M O D A L D O ) ) ) ) • I V ) ) ( V - O O - A G R E E M E N T ) ) ( A B O R T ) ) ) ( S E T R OR J * ) ( T O S - V - T O C O M P ) ) 1 TRAMS) ( V F E A T U R E ( G E I R V ) • C O P U L A ) ) (OR ( G E T L E X " A D V ) ( G E T L E X ' A O J ) ) ) ( G E T R U E A U A O J ) ) ( G E T R S - S U B J ) ) ) I A B O R T ) ) ) ( TO VP"-VP ) ) ( J U M P V P - V P T ) ) ( V P - V P ( P O P ( C I U I L O - V P ) I ) ) ( S - V ( V ! R NP T ( C O N O ( ( N O T ( P U S H N P , (OR ( V F E A T U R E (GE TR V ) ( S E N O R MOT I U N E L A G T ) ( S E T R S - D O ( G E I R H E A O N O U N ) ) ( C D N U ( ( N U T ( V - O O - A G K E E ME N T) ) ( A B O R T ) ) ) ( S E T R O B J *) ( T O S - V - T O C O M P ) I ( P U S H A D J P ( A N D ( V F E A T U R E ( G E T R V ) ' C U P U L A ) ( S E E K V *) ( C O N D ( ( N O T ( P P . E O A D J - S E M A N T ICS ( L I S T ( S E T R S - V E R B *) (TL) S - P R E D A D J ) ) ( C A I P R E P (AND I NOT 1GETR P A R T I C L E ) ) ( S E T R V (MKATOM (GETP. V ) • ( S E T R 5 - V E R B ( B U I L O O I V " * ( S E T R P A R T I C L E I) ( T O S - V ) ) T H A T ( V F E A T U R E ( G E T R V ) ' ' T H A T ) ( T O S - V - W R O = THAT I I TO T ( T O S - V - W R O = r O ) ) ADV ( G E T L E X ' A D V ) (ADDR A D V E R B S *) ( T O S - V ) ) S - V - W R D = THAT (AND ( V F E A T U R E ( G E T R V ) 1 T H A T ) ( N O T (MEMO L E X • I TO T H A T ) ) ) (NOT ( G E T R P A S S I V E F L A G ) I ) I S - V - P P T ) ) (WRU T H A N ( C O M P V E R B ( G E T R V I ) ( T O S - P R E O A O J I P U S H NP I ( S E T R O B J *) ( T C S - M A I N C L A U S E ) ) ) (MEMBER • - " *) ) 1 ) V ! ) * ( G E T ( G E T R V ) ' P A R T I C L E S ) ) ) ( WRD ( WRD ( P U S H ( J U M P ( JUMP ( S - P R E O A D J ( S - P R E D A D J - C O M P ( S - V - N P ( V I R NP ( A N D ( V F E A T U R E ( G E T R V ) C O M P ) ) ( J U M P S - M A I N C L A U S E T ) ) . • I N O D B J ) (MEMO ( C A R ( G E T R T Y P E ) ) 1 ( Q P R O Q D E T ) ) ) ( ADDR ( S E T R ( S E T R (COND P R E P P H R A S E S ( B U I L C G (PP ( P R E P T O ) " + ") O B J ) ) S - I N D O ( G E T R S - U O ) ) S - D O ( G E T R Q O B J ) ) ( ( O R (NOT ( V - O O - S E K A N T I C S ( G E T R S - V E R B ) ( G E T R S - O O ) ) ) (MOT ( V — I N D O - S E MAN T I C S ( G E T R S - V E R B ) ( G E T R S - I N D O ) ) ) ) I A B O R T ) ) ) ( S E T R O B J *) ( T O S - V - P P ) ) ( P U S H NP ( V F E A T U R E ( G E T R V ) ' I N D O B J ) ( S E N U R A G F L A G ( G E T R A G F L A G ) ) (COND ( ( O R (AND ( G E T R WHUKJ) (NOT ( G E T R P A S S I V E F L A G ) ) ) ( S E T R S - I N D O ( G E T R H E A O N O U N ) ) (ADDR P R E P P H R A S E S ( B U I L D Q ( P P ( P R E P T O I * ) ) ) ) ( G E T R Q O B J ) ) ( T (ADDR I S E T R ( S F T R (COND P R E P P H R A S E S ( B U I L D Q ( P P ( P R E P T C ) "+") O B J ) ) S - I N D O ( G E T R S - D O ) ) S - D O ( G E T R H E A D N O U N ) ) ( ( O R (NOT ( V - D O - S E M A N T I C S ( G E T R S - V E R B ) (NUT ( V - I N D O - S E M A N T I C S ( G E T R S ( A B O R T ) ) ) • ( G E T R S - 0 0 ) ) I V E R B ) ( G E T R S - I N O O ) ) ) ) ' A D V ) (ADDR A D V E R B S *) ( T O S - V - N P ) ) ( S E T R O B J * ) ) ) ( T O S - V - P P ) ) ( P U S H ADV ( G E T L E X I J U M P S - V - P P T ) ) ( S - V - P R E P = B Y ( P U S H NP T ( S E N O R A G F L A G ( G E T R A G F L A G ) ) I S E N D R M O T I O N F L A G T ) (COND ( ( N O T ( S - V - S E M A N T I C S ( G E T R H E A D N O U N ) ( G E T R S - V E R B ) ) ) (ADDR P R E P P H R A S E S ( B U I L D Q I P P ( P R E P B Y ) * ) ) ) ) ,'T ( S E T R S U B J * ) ( S E T R S - S U B J ( G E T R H E A D N O U N ) ) ( T O S - V - P P ) ) ) ( S - V - P P (WRD BY I G E T R A G F L A G ) ( T O S - V - P K E P = B Y ) ) ( P U S H PP ( G E T L E X ' P R E P ) ( S E N U R MOT I U N F L AG (COND ( ( N O T ( A S S Q ' M O T I O N ( C D R ( G E T L E X ' P R E P ) ) ) ) ) ) ) ( S E N O R A G F L A G ( G E T R A G F L A G ) ) (ADDR P R E P P H R A S E S *) ( T O S - V - P P ) ) • A D V ) (ADDR A D V E R B S *) ( T O S - V - P P ) ) T) ) ( S E T R A G F L A G N I L ) ) ) ( P U S H ( J U M P ( S - V - W K D - T HAT ADV ( G E T L E X S - M A I N C L A U S E ( P U S H S - D C L T ( S E N D R ( ADDR T Y P E C O M P L ' ( O C L ) ) ( B U I L D Q ( C O M P L ( C T Y P E T H A T ) (AND ( V F E A T U R E (GETR. V ) ' T R A N S ) . ( S E T R ( T O S - M A [ N C L A U S E I ) I ( S - V - T U C U M P ( C A T P R E P (AND (NUT ( G E T R P A R T I C L E ) ) ( M E M B E R ( S E I R V IMK ATOM ( G E I R V ) ' " - " * ) ) ( S E T R S - V E R B ( B U I . L D Q (V " + ") V ) ) ( S E T R P A R T I C L E T) ( TO S - V - TUI'.OMP) ) (WHO TO T ( 1 0 S - V - W R D = T O ) ) ( J U M P S - V - N P I ) ) *) ) ) -DO ( C A R ( G E T R C O M P L ) ) ) ) * ( G E T I G E T R V ) ' P A R T I C L E S ) ) ) ( [ G E T R S U B J ) ) ) ) ( S - V - W R U = T O ( P U S H S - N P I ( S E N D R T O F L ( SENDR T Y P E ( S E N D R S U B J I S E N D R T E N S E . . • I SENOK S - S U B J (CONO ( ( G E T R P ( U ) 1 GE Tl< S - D O ) ) (AODR C O H P L (IIIJILIJC- (COMP ( C T Y P E . 101 * ) ) I ( A N D ( V E E A J U H E ( G E I R V ) 1 C H A N S , ( S E I R S - U O ( C A R ( 1 0 S - M A I M C L A U S E ) , , ( S - M A I N C L A U S E ( C A T C U N J T ( S E I ' K C O N J * , ( T O S - C O N J ) , G D • ( UCI.).) (CONO ( ( G E T R O B J ) ) ( G E T R T E N S E . ) ) ( ( G E T R S U I U ) ( G E T R S - S U B J I M ) ( G E fR C O M P L ) ) ) ) ( J U M P S - S T ) ) ( S - C O M J ( C A T ( C A T V I AND ( S E T R ( T O S-V ( AND (NOT I NE XT V ) ) (MOT ( G E T R P AS S I V E E L A G ) ) (NOT ( E U U A L ( G E T R T Y P E ) ' ( I M P , , , (NOT ( G E T R . Y E S N O ) ) ) C O M J - V *) C O N J - V - A C T I V E ) ) I S (NOT ( N E X T V ) ) ( O R ( G E T R P A S 5 I V E F L A G ) ( G E T R Y E S N O ) , (NOT ( E Q U A L I G E T R T Y P E ) ' ( I M P ) ) ) ) ( A M U (COR S T R I N G ) ( GE TH O B J ) ( H O L D I G E T R O B J ) ) ) ( S E T R C O N J - V *) ( T O S - C O N J - V - P A S S I V E ) ) ( P U S H S I ( S E T R S - C O N J *) ( T O S - S ) ) ) - C O N J - V - A C T I V E ( P U S H S - V - S EM ANT I CS (NUT ( N U L L S T R I N G ) ) ( S E N D R SUE J ( G E T R S U B J ) ) ( S E N D R ( S E N D R ( S E N D R ( S E N D R ( S E N D R ( S E N D R ( S E N D R S - V E R B ( B U I L D Q (V "+") C O N J - V ) ) ( S E T R S - S U B J ( G E T R S - S U B J ) ) T Y P E ( G E T R T Y P E ) ) MEG ( G E T R N E G ) ) T E N S E ( G E T R T E N S E ) ) A S P E C T ( G E T R A S P E C T ) ) V ( G E T R C O N J - V ) ) S - V E R B ( B U I L D Q (V S - C O M J * ) ( T O S - S ) ) ( JUMP 5 - C O N J - B U I L D ( N U L L - S T R I N G ) ) ) ( S - C O N J - V - P A S S I V E ( P U S H S - V - S E M A N T I C S (NOT ( N U L L S T R I N G ) ) ( S - C O N J - E U I L D ( JUMP ( J U M P S - S ( S E N D R S U U J ( G E T R S U B J ) ) ( S E N D R S - S U B J ( G E T R S - S U B J ) ) (SENDR T Y P E ( G E T R T Y P E ) ) ( S E N D R N E G ( G E T R M E G ) I ( S E N D R V O I C E ( G E T R V O I C E ) ) ( S E M C R T E N S E ( G E T R T E N S E ) ) ( S E N D R A S P E C T ( G E T R A S P E C T ) ) (SENOP. V ( G E T R C O N J - V ) ) ( S E N D R S - V E R H ( B U I L D O (V "+'•) C O N J - V ) ) ( S E N D R P A S S I V E F L A G ( G E T R P A S S I V E F L A G ) ) ( S E N D R A C F L A G ( G E T R P A S S I V E F L A G ) ) ( S E N D R S - D O ( G E T R S - D O ) ) ( S E N D R Y E S N O ( G E T R Y E S N O ) ) ( S E N D R A D V E R B S ( C O N D ( ( E Q U A L ( G E T R T Y P E ) ( S E T R S - C O N J *) ( T O S - S ) ) S - C O N J - B U I L D ( N U L L S T R I N G ) ( S E T R C O N J - P A S S I V E T I ) ) ' ( Q A D V ) ) ( G E T R A D V E R B S ) ) ) ) ( S - S ( P O P ( B U I I U -1NP ( C A T G E M P R O S) ( S - S E M A N T I C S ( G E T R S - S U B J ) ( B U I L D O ( V " + ( S E T R S - C O N J ( B U I L D - S - C O M J ) ) ) ) ( S - S E M A N T I C S ( G E T R S - S U B J ) ( G E T R S - V E R B ) ') C O N J - V ) ( G E T R S - D O ) N I L ) ( G E T R S - D O ) ( G E T R S - I N D O ) ) ) ) T ( S E T R P R O P E R ( B U I L O Q ( G E M P R O * ) ) ) ( S E T R NU ' S G ) ( S E T R S E M - . N D U N I BU IL DO lOENPP.O * ( L I F T R H E A D N O U N ( G E T R S E M - N G U N ) ) I TO N P - G E N P R U ) ) ( C A T DET (MOT ( G E T F P O S S P R O ) ) ( SE TR D E T *) ( S E T R S E M - D E T ( L I S T ' D E T w F E A T U R E S ) ) ( S E T R O F I . A C ( G E T F GUAMT ) ) ( T O M P - U E T ) ) I C A T D E T ( G E T F P O S S P R O ) ( S E T R S E M - D E T ( B U I L D Q I P O S S * ) ) ) ( S E T R D E T ( B U I L O Q ( P O S S P R O * ) ) ) ( T O N P - O E I ) ) I C A T NPR P O S S E S S I V E ) P I I S S F L A G T ) S E M - D E T ( B U I L D Q ( P f l S S * ) ) ) MUDS ( B U I L D O ( P O S S (NPR * ) ) ) ) - D E T ) ) ( ( NUMBER S G ) ) ) ) ) ( G E T F ( SE TR ( S E T R ( ADDR ( T O M P -( C A T PRO (NOT ( G E T F P O S S P R O ) ) ( S E T R P R O P E R ( B U I L D O (3 I PRO *) H) F E A T U R E S ) ) ( S E T Q A N A P H O R - D E P T H I ) ( S E T R S E M - N O U N ( B U I L D Q (3 ( P R O *) ( » ) ) F E A T U R E S ) ) I L 1 F T R H E A D N O U N ( G E T R SEM- i-IUUfl) ) ( S E T R NU ( G E T F NUMBER ) ) ( S E T R PRO T ) ( TO N P - N ) I ( C A T NPR INOT ( C E T F P O S S E S S I V E I I ( S E T R P R O P E R ( B U I L D O ( ii ( N P R *) » ) F E A T U R E S I I ( S E T R S E M - N O U N ( B U I L D O (SI (NPR *) ( H I ) F E A T U R E S ) ) ( L I F T R H E A D N O U N ( G E T R S E M - N U U M I I ( S E T R NU ' S G I I TO N P - N ) ) ( C A T Q D E T . (NOT ( E O * ' W H O ) ) ( S E T R D E T *) ( S E T R S E M - D E T ( B U I L D O ( Q D E T * ) ) ) ( L I F T R WTt-PHRASE T S) ( M A P C ' ( L A M B D A ( X I ( A P P L Y • L I F T R ( L I S T ' T Y P E " ( Q D E T ) M S S - D C L S - V S - V - N P S - P R E U A O J - C D M P S - V - P R E P = B Y ( S E T R Q F L A G ( G E T F Q U A N T ) ) ( T O N P - U R O ) ) ( C A T PRO P O S S P R O ) S E M - D E T ( B U I L D Q ( P U S S *)>> D E T ( B U I L D Q I P O S S P R O * ) ) ) N ' O N E S ) NU - S G - P L ) S E M - N O U N M O U M M Y O N E S N I D I H E A D N O U N ( G E T R S E M - N C U N ) ) X) ) ) S - V - P P ) ) ( G E T F ( S E T R ( S E T R ( S E T R I S E T R ( S E T R I L I F T R I TO N P - M A 1 N P H R A S E ) ) ( J U M P N P - D E T T ) ) ( N P - G E N P R O ( P U S H A O J P (OR ( G E T L E X ' A D J ) IADDR MODS *) ( T O N P - N ) ) N P - N T ) ) T (ADDR MODS ( B U I L D Q I N P - D E T ( N P - O R D ( JUMP ( C A T ( C A T O R D I N A L A D J ( G E T F S U P E R L A T I V E ) ( A D O R MOOS I B U I L D Q IORD ( 3 ( " < - A D J ( S E T R ORD T ) ( T O N P - O R D ) ) ( J U M P N P - O R D T ) ) ( P U S H Q U A N 1 P T ( S E T R QUANT T ) ( A D D R ( J U M P N H - Q U A N T T ) ( J U M P N P - M A I N P H R A S E (OR (AND ( G E T R ( S E T R N ' O N E S ) ( S E T R NU ' S G - P L ) ( S E T R S E M - N O U N ' ( D U M M Y O N E S N I L ) ) ( L I F T R H E A D N O U N ( G E T R S E M - N O U N ) ) ( S E T R NU - S G - P L ) ) ) ( N P - Q U A N T (WRD OF (UR (AND ( G E T R URD) ( G E T R D E T ) ) ( TU N P - O U A ' J T - P R E P = O F ) ) ( J U M P N P - C U A N T - P R E P = O F (AND (NOT ( G E T R O R D ) ) (NOT ( G E T R Q U A N T ) ) ( G E T R Q F L A G ) (ME MO ( G E T R D E T ) - ( A L L B O T H ) ) ) ) ( J U M P N P - P A R T (NOT ( E Q * ' O F ) ) ) ( J U M P N P - M A I N P H R A S E (OR ( G E T R Q U A N T ) ( S E T R N ' O N E S ) ( S E T R NU - S G - P L ) ( S E T R S E M - N O U N ' ( D U M M Y ONES N I L ) ) ( L I F T R H E A D N O U N ( G E T R S E M - N O U N ) ) ( S E T R NU ' S G - P L ) ) ) ( N P - Q U A N T - P R E P = U F ( P U S H NP r I AODR ( S E T R ( S E T R ( S E T R ( G E T L E X - A D V ) ( G E T L E X ' V D ( ( " < - O R D - " N I L * ) ) ) ) ( S E T R ORD T ) ( T O N P - O R D ) ) *) # ) ) F E A T U R E S ) ) MODS *) ( S E T R S E M - D E T N I L ) ( T O N P - Q U A N T ) ) O R D ! ( G E T R D E T ) ) I G E T R OF L A G ) ( G E T R P O S S F L A G ) ) ( G E T R Q F L A G ) I G E T R Q U A N T ) ) ( G E T R Q F L A G ) ( G E T R P O S S F L A G ) (AND ( G E T R ORD) ( G E T R D E T ) ) ) PP ( B U I L D Q ( P P ( P R E P O F ) * ) ) ) N ' O N E S ) NU ' S G - P L ) S E M - N O U N ' (DUMMY O N E S N I L ) ) ( N P - P A R T ( C A T N ( G E T F ( ADDR ( C U N D I S E T R ( ADDR ( S E T R ( S E T R ( S E T R ( L I F T R H E A D N O U N ( G E T R S E M - N O U N ) ) ( S E T R NU ' S G - P L ) I T U N P - M A I N P H R A S E ) )) P O S S E S S I V E ) SMUOS ( " < - P O S S - H Y - " ( 3 <*l ( » ) » ) ) F E A T U R E S I C U N U ( I G E T R C L A S S ) . 1 L I S T - 1 T - 1 ( G E T R M O O S ) ) ) ) ) ( I G E T R C L A S S ) ( S E T R MODS N I L ) ( S E T R C L A S S N I L ) ) ) MODS ( G E T R S M O D S ) ) MOOS ( B U I L D O la ( P O S S (N *) « ) ) F E A T U R E S ) ) OF L A G N I L ) ORD N I L ) P O S S F L A G T1 ( S E T R OUAf l l NIL) ( S E T R S E M - U E T N I L ) (S fc lU SEM-ADJS N I L I i r u NP-DEr i ) ( C A T N ' " ' ( A M D ( N O r ( G E T F P O S S E S S I V E ) ) ( S E T R N *) ( S E T K N F E A T E E A I U K E S ) I S E T K NU ( G E I F N U M B E R ) ) ( S E T K SEM-NOUN i n U I L D O (3 (N ( f O NP-M)) ( C A T N (AND (NOT ( G E T F P O S S E S S I V E ) ) ( S E T R N *) ( S E T R N E E AT F E A T U R E S ) ( S E T R NU (GETI-' NUMBER ) ) ( S E T R SMODS ( G E T R M O D S ) ) ( S E T R MOOS M I L ) ( S E T R C L A S S ( B U I L D Q ( " < - C L A S S - " (AAAA ) ( S E T R MODS ( G E T R S M O D S ) ) (ADDR MODS ( G E T R C L A S S ) ) (AAAA) ( S E T R M NIL) (I 0 NP-PART)I ( C A T NPR ( NOT ( GE IF P O S S E S S I V E ) ). (ADDR MODS ( B U I L D Q ( A D J I at (N "+") " + " ) ) N N E E AT) ) ( S E T R N F E A T F E A T U R E S ) ( S E T R NPR *) ( S E T R NU •SG) ( S E T R S E M - N O U N ( B U I L D Q ( 3 (NPR *) ( * ) ) F E A T U R E S ) ) ( T O NP-M)) ( P U S H A D J P (OR ( C E T L E X - A D J ) ( G E T L E X ' A D V ) ( G E T L E X ' V ) ) ( S E N O R NP T ) • (ADDR MODS *) ( A D D R S E M - A D J S [ G E T R H E A D A D J ) ) (TO N P - P A R T ) ) ) ( N U M A G R E E ( G E T R D E T ) * ' N ( G E T F N U M O E R I ) ) ) ( » ) ) F E A T U R E S ) ) ( NOT (GETR C L A S S ) )) 0) ( N P - B U I L D ( N O U N - L I S T - G E T (BU I L D - N P ) ) ) ) I ( N P - A O J ( C A T N (GETF ( ADDR ( ADDR (a (*) (H) »)) (CUND ( S E T R ( ADDR ( S E T R ( S E T R ( S E T R ( S E T R ( S E T R ( S E T R ( T O NP ( C A T N (AND (NOT ( L I S T - I T - 1 ( G E T R M O D S ) ) ) ) ) MODS M I L ) ( S E T R C L A S S N I L ) ) ) P O S S E S S I V E l MODS ( B U I L D Q ( A D J (a (N "+") "+")> N N F E A T ) ) SMODS ( : , < - P O S S - 3 Y -F E A T U R E S (COND ( ( G E T R C L A S S ) ( ( G E T R C L A S S ) ( S E T R MODS ( G E T R S H O O S ) ) MODS ( B U I L D Q ( P O S S ( 3 ( N *) H)) F E A T U R E S ) ) Q F L A G N I L I ORO N I L ) P O S S F L A G T) Q U A N T N I L ) S E M - D E T N I L ) S E M - A D J S N I L ) D E T ) ) ( ADDR ( S E T R ( S E T R ( S E T R ( S E T R ( T O NP ( C A T N (AND (NOT ( G E T F P O S S E S S I V E ) ) ( M U M A G R E E ( G E T R D E T ) * ' N ( G E T F N U M B E R ) ) ) MODS ( B U I L D Q ( A D J (a (N " + ") "+")) N N F E A T ) ) N *) N F E A T F E A T U R E S ) NU ( G E T F N U M B E R ) ) S E M - M O U N ( B U I L D Q ( 3 ( N *) ( » ) ) F E A T U R E S ) ) A D J ) ) ( G E T F P O S S E S S I V E ) ) (NOT I G E T R C L A S S ) ) ) ( S E T R ( S E T R ( S E T R ( S E I R ( S E T R ( S E T R ( ADDR ( S E T K ( TO NP ( C A T NPR (NOT ( G E T F (ADDR MODS ( SE TR ( S E T R ( S E T R NU ' S G I ( S E T R S E M - M O U N ( Tl) N P - A O J ) ) ( J U M P N P - N T ) ) I N P - N I PUP [ B U I L D - N P ) T ) ) ( N P - M A I N P H K A S C ( C A T C U M J T ( N P - C O N J ' ( PUSH N *) . N F E A T F E A T U R E S ) NU ( G E T F N U M B E R ) ) SMODS ( G E T R MODS) ) C L A S S ( B ! . - ! L D Q ( " < - C L A S S -MODS ( G E T R S M O D S ) I MODS ( G E T R C L A S S ) ) N N 11. ) PART I ) P O S S E S S I V E ) ) ( B U I L D Q ( A D J O (N N F E A T F E A T U R E S ) NPR *) H) ( B U I L D - N P ) l ) ' + " ) ) N N F E A T ) ) ( B U I L D Q ( 3 (NPR *) (!))) F E A T U R E S ) ) ( S E T R C O N J *) ( T O N P - C O N J ) ) ( J U M P N P - N P T)> NP r ( S E N D R C U M J F L AG T ) I S E T R N P - C O N J •*) (CUND ( ( A I O M ( C A D R ( G E T R H E A D N O U N ) ) ) . ( r L I F T ! ! H E A O N O U N ( BUI Ll.ii; ( N 1 " + " " » ' S E M - N O U N H E A D N O U N ( C U N U ( I C Q ( • S G -I L I F T R H E A O N O U N . ) ( ( N U M B E R 0 ) ) ) ( G E T R CON.JI •PL ) ) ) ) ) ' AND) ' P L ) ( L I S T ( C A R ( G E T R H E A O N O U N ) ) ( A P P E N D ! (CADR ( G E I R H E A D N O U N ) ) ( C A D D R ( G E T R HE A O N U U N ) ) ) ) ) ) ( G E T R S E M - N O U N ) ) ( N P - N P ( P O P ( TO ( BU I LD N P - N P I ) ) -NP) I M P - S E M A N T I C S ( G E T R ( A O J (MEM (MURE M O S T ) T ( S E T R F E A T ( B U I L O O ( C A T V (AND ( P A R T I C I P L E ) ( G E T R ( S E T R A D J ( D U H . D O Ul *) S E M - O E T I ( G E T R S E M - A D J S ) ( ( « ) ) ( C O M P - S U P E R ) ) ) ( T O (GE TR S E M - N C U N ) )) ) A D J - F E A T ) ) NP ) ) ( P A R T IC I I 'LE ) ) ) ( L I F T R HE AO AD.I ( L I F T R HE A D A D J ( T O A D J - A D J ) ) ( J U M P A D J - F E A T T ) ) ( A D J - F E A T ( C A T A D J r ( S E T R A D J (OR ( G E T R ( L I F T R I L I F T R ( B U I L U U ( B U I L D Q ( I) I » * ) ) * I ) ( P A R T I C I P L E ) ) ( P A R T I C I P L E ) ) N P - P A R T ) S - V ) *) F E A T ) I S E T R F E A T F E A T U R E S ) ) HE A C A D J ( B U I L O O ( A D J * (" + " ) ) F E A T ) I IE AD AD J ( B U I L D Q ( A D J * ("+")) F E A T ) N P - P A R T ) S - V ) N I L *'*"> "+") ( B U I L D Q ( ( # ) ) A D J F E A T ) T ) ) ( C O M P - S U P E R ) ) ) ( T O A D V - F E A T ) ) N I L ••<•") "+") ADV F E A T ) T ) ) *)) ( L I S T -I T - 2 ( G E T R A D V ) ) ) ) ) ( S E T R ADV N I L ) ) ) *)) ( L I S T - I T - 2 ( G E T R A D V ) ) ) ) ) ) ) ( T O A D J - A D J ) ) ) ( A D J - A D J ( P O P ( B U I L D O IS ( " < - A U J - " ( A D V (MEM (MURE M O S T ) T ( S E T R F E A T I JUMP A D V - F E A T T ) ) ( A D V - F E A T ( C A T ADV T ( S E T R ADV #) IOR ( G E I R F E A T ) ( S E T R F E A T F E A T U R E S ) ) ( C O N D ( ( M E M B E R * ' ( T H E R E H E R E ) ) ( S E T Q A N A P H O R - D E P T H 1 ) ) ) ( T O A D V - A O V ) ) ) ( A D V - A D V ( P O P ( B U I L D O (a ( " < - A D V -( A D J P ( P U S H A D J (OR ( N E X T ' ( A D J ADV V ) ) ) ( S E N O R NP ( G E T R N P I ) ( C O N D ( ( N U L L ( G E T R A O V ) ) (ADDR A D J (T (ADDR A O J ( A P P E N D * ( L I S T ( T O A D J P ) ) ( P U S H ADV (OR ( N E X T ' A O V ) ( N E X T ' V I ) (COND ( ( N U L L ( G E T R A D V ) ) ( S E T R ADV ( T ( S E T R AOV ( A P P E N D * ( L I S T ( T O A D J P ) ) ( J U M P A D J P - A D J P T ) ) ( A O J P - A D J P ( P O P ( G E T R A D J ) ( N O T ( N U L L ( G E T R A O J ) ) ) ) ) ( PP ( C A T P R E P ( S E T R P R E P *) ( T C P P - P R E P ) ) ) ( P P - P R E P (MEM ( T H E R E H E R E ) ( S E T R NP ( B U I L D Q ( " < - A D V - " N I L * ) ) ) ( T O P P - P P ) ) ( P U S H NP T ( S E T R NP *) ( T O P P - P P ) ) ( P U S H UP ( G E T L E X ' U P R O ) I S E T R NP *) ( L I F T R T Y P E ' Q P R O S ) ( L I F T R W H - P H R A S E T S ) ( T O P P - P P ) ) ) ( P P - P P ( P O P ( B U I L D Q ( P P MIL "+" "+") P R E P N P ) ( U P ( C A T QPRO T ( S E T R QPRO *) ( T C C P - C P R O ) . ) ) ( Q P - Q P R O ( P U S H PP ( G E T L E X ' P R E ? ) ( S E T R PP *) ( T O Q P - O P 1 ) ( J U M P Q P - Q P ' ( Q P - O P ( P O P ( B U I L D - U P ) T)> ( Q U A N T P ( C A T NUMBER T ( S E T R Q ( O U l l . D C ( I N T E G E R * ) ) ) ( T O Q U A N T P - Q ) ) ( C A T Q U A N T T ( S E T R Q *) ( T O C U A N T P - Q 1 ) ( J U M P Q U A N T P - Q T ) ) I Q U A N T P - Q (WRD AT T ( T O Q U A N T P - P R E P - A T ) ) ( C A T COMP T ( S E T R COMP ( B U I L D O ( A D V * ) ) ) I TO QUANT P - C O M P ) ) ( J U M P Q U A N T P - U U A N T P I G E T R . O ) ( S E T R QWORD T ) ) I • ( Q U A N T P - P R E P = A T ( C A T S U P E R T ( S E T R S U P E R ( B U I L D Q . ( A D V * ) ) ) I TO QUAN T P - M O D S ) ) ) ( Q U A N T P - C O M P (WRD THAN T I TO Q U A N T P - M O O S ) ) ( J U M P Q U A N F P - Q U A N TP ( CUND ( (AND ( G E T ! : C O M P ) ( E U ( C A D R ( G E T R C O M P ) ) ' M O R E ) ( G E T L E X ' A D J ) ( EQ ( GET L E X ' A D J ) • * ) ) N I L ! ( T ) ) ( S E T R QWORD (MOT I AND ( G E T R C O M P ) ( G E T R 0 ) ) ) ) ) l ( Q U A N T P - M O D S ( C A T D E T ( N O T ( G E T R D E T ) ) ( S E T R D E T « I ( T O QU AN T P - M O D S ( P U S H Q U A N T P T ( S E T R CUAMT *) ( T O QUANT P - Q U AN C P ) ) ( J U M P U U A N T P - Q U A N TP (AND ( G E T R Q) (NOT ( G E T R C O M P ) ) ) ) ) ( Q U A N T P - O U A N T P ( P O P ( B U I L D - Q U A N I P ) I ) ) ) ) ) T) ) T )•) ) ) T H E S E A HE Sll--!r A U X I L I A R Y KI11ITI i , : t iin i m i u . - v . ' i i tsi-.ru IVPE ( i ' - u i i D C (i< i»iiiuuI " • If.N.iO ( ICC H i VI) I C D ) (T I -j! ' it VNICL ' ( V O I C E AC r I VI I ) ) 1 I L IF IR TYPE ( C.E lit T Y P E ) ) ( L I F T R V O I C E ( GET It V O I C D ) (SETR AUX ( B U I L D O ( T.'IS ( iJ " » ' ( S r T K V ( H U H . IK) ( V " » " ) V) ) ( C U N D ( C U L L (GETR A D V E R l l S ) ) ) (T I A O U L A U V E R V S " < - A U V - " ) ) ) I BUI L O O ia (VP) ( N I L ) ( " » " ) ("•") I N E G T Y P E I I ) T E N S E A S P E C T V O I C E ) ) »")• AUX v ADVERBS)) I D E F U N BU 1 LD - N P .( ) I S E T R . O E T ( C O N D ( ( N U L L t f . i . T R OE f) ) N I L ) ( T ( B U I L D C ( S E T R P U S S ( C O N O ( ( G E T R P O S S ) ( B U I L D O ( ( P O S S "+"))' ( S E T R N F E A T ( B U I L O Q t & It * \ ( 1. I S T - 1 T ( G E T R f l F L A D ) (S E TR N ( COMD ( ( D E T '••'•) ) D E T ) ) ) ) POSS)) )) ( L I S T - I T - ! (GE TR M O D S ) I ) I ( I G E T R N) ( U U I L O O 1S ( ( G E TR N P R ) ( B U I L D O ( I C E r f t P R O P E R ) ) ) ) I S E T R NP ( B U I L D O (3 ( M P ) ( N I L ) " ( C O N D ( I G E T R C O M J ) ( f l U I L D U IMP ( IT I G E T R N P ) ) ) ) IN " • " ) "••") M N F E A T ) ) 14 (NPR " f " ) " » • ' ) NPR N F E A T ) ) • " " * " ("+") ) OCT P C S S N ) ) " * " " • " " • " ) > C U N J NP N P - C O N J ) ) ( O E F U N B U I L O - Q P I ) ( S E T R P P ( C O N D ( I G E T R P P ) ( L I S T ( G E T R P P ) ) ) ) ) ( B U I L D O 13 ( N P ) ( ( D E T N I L ) ) ( I O P R U "•")) I I NU S G - P L ) ) • » • " ) O P R O P P ) ) I D E F U N B U 1 L D - Q U A N T P I ) ( C O N D t t A N O ( C E T R OWORO) ( G E T R 0 ) 1 ( B U I L O Q t C U ANT " • " ) Q I ) ( ( A N D ( G E T R QWORO) I G E T R C O U P ) ) I B U I L U Q ( Q U A N T " •" ) C O M P ) ) ( T ( S E T R Q 1 C 0 N D ( I G E T R Q ) ( B U I L D Q 1 I QUANT ' •*")) Q) ) ) ) ( S E T R COMP ( C O N O ( ( G E T R C U W P ) ( B U I L D Q ( ( C O M P " » - " > l C O M P ) ) ) ) ( S E T R S U P E R ( C O N O ( ( G E T R S U P E R ) I R U I L C Q ( ( S U P E R " + ••)) S U P E R ) ) ) ) ( S E T R D c T ( C O N O ( ( G E T R U E T ) I B U I L D C I I D E T "<•">) D E T ) ) ) ) ( S E T R QUANT ( C O N D ( ( G E T R Q U A N T ) ( L I S T ( G E T R Q U A N T ) ) ) ) ) ( B U I L D Q ( 3 ( Q U A N I P ) "+" " » '• ' • • • • "*") Q C CMP S U P E R D E T Q U A N T ) ) ) ) ( O E F U N B U I L D - A D J P I ) I G E T R A D J ) ) t C E F ' J . N P E R F E C T I ) (AND ( E Q I P A R T I C I P L E ) • P A S T P A R T ) ( E Q ( G E T R V ) ' H A V E ) ) ) ( O E F U N P R O G R E S S I V E ( I ( A N D ( E O ( P A R T I C I P L E ) ' P R E S P A R T ) ( E Q ( G E T R V ) ' U E ) ) 1 ( D E F U N F U T U R E (I I AND ( G E T F U N T E N S E O ) ( M E M O ( G E T R V ) ' ( W I L L S H A L L ) ) ) ) ( O E F U N O A R T I C I P L E ( ) ( C O N D ( ( c W ' P R E S P A R T ( G E T F P A R T ) ) " P R E S P A R T ) I t fcO ' P A S T P A R T ( G E T F P A R T ) ) ' P A S T P A R T ) ) ) ( l ie FUN C O M ? - S U P C - R ( I ( M A K E - A R R U W (CADPv ( A S S Q * ' ( ( M U R E C O M P A R A T I V E ) ( M C S T S U P E R L A T I V E ) ) ) ) ) ) (OEFPROP SEIR EXPR IFLANgOA IXI -ISETQ DECS ICONS ICONS ICAR XI I EVIL ICACR XIII RECSID) (OEFPROP CEIR EXPR IFLAMBDA CLST) ICONO I (NULL ICOR LST>] ICETRV IOR 1ST))) IINUH9ERP ICACR LSI II ICONO (WEROP ICAOR LSTI) ICETRV ICAR LSTIII IT ICOR IASSC ICAR LST) ICAOAR INTH STICK ICAOR LST))))] II ICOR (ASSQ ICAR LSTI ICAOR (ASSQ ICAOR LSI I STACK)))))))) IDEFPROP GETRV EXPR ILAPQCA IRECI IPROG 15) IRE TURN ICONO IIEO REC IOU01E •)) •) IISETO B IASSO REG RECSII ICOR 61)1)1)1 IOEFPROP BUILDQ EXPK IFLAHBDA ILI • IBUILD ICAR I) ICDR L l l l l IOEFPROP BUILD EXPR ' ' ILAHBCA IFRAC REG*) IPROG (REGLSTI ISETO REGLST REG*) • RETURN (BUILOl FRAG)ID) (OEFPROP BUILOl EXPR ILAPBOA IFRAG) IPROG (Al (RETURN ICONO I(NULL FRAG) NIL) IIEC FRAG ICUOTE » ) ) ICETRV (CAR RECISIIII IIEQ FRAG ICUOTE <I1 IF.VAL (CAR RECLST ) U IIEO FRAG ICUOIe • ) ! •) • ' IIATON FRAG) FRAG) (IES ICAR FRAG) ICUOTE » ) ) ISETQ A IUNCCNS RECLST I0UOI6 REGLST)I) ICONS ICETRV A) ISUILOl ICOR'FRAGIII1 (IEO ICAR FRAG) ICUCTE III ISETQ A IUNCCNS RECLST IOUOTE REGLST))) ICCNS (EVAL A) (SUILCt (CCP. FRAG)))) IIEO ICAR FRAG) ICUOTE 0)1 (CCNS » (BUILDI (CDR FRAG)1)1 (IEO ICAR FRAG) (QUOTE 311 IGLUE IBUILOI ICCH FAA«))1) IT ICONS (BUILOl ICAR-FRACII (BUILDI (CDR FRAG1 > I}I)I )I (OEFPROP PARSEI EXPR ' . " . ' " • " * ILAPBCA I SENTENCE I ' : . ' " ' IPROG I A PORPHTENP) UNIT-TRACE) - * (SEIO REGS S I D (CONO I ISETQ A INSVAL SENTENCE ST NIL NIL NIL IOUOTE IN1L » QUI) J UNO SPRINIPARSE (PROG* IPRINl (QUOTE PARSES II ITfRPftU (PK1N7PARSE A 0))) (RETURN A)))))) ; . IOEFPROP WEVAL EXPR ILAPBDA (STRING! STATEI STACK! REGSl HOLOI PATHl) IPROG IA 800Y-S ARCTYPE * LEX) IPTXACE ENTERING STATE ISIATEU S STRING.* ISIAIHCm IPTREGSI ISEIO • • (CONO 11 NULL STR1NG1) NIL) (ISETQ »CRPHIE»P IPCRPN (CA* STRING1DT ICONO IIEO POR»HTFPP Tl ICAR STRTNGI11 IT IRPLACA SIRINGl MCRPHTEHPIII) IT (ERROR ID1CIERR)))) lex . . •) . ICONO KNOT .GET STATEI ICUCTE GRAMMAR) 11 (ERROR (ERRDR2IHI ISEIO 800Y-S (CET SI'TCl ICUOTE CRAPKARlll TAG ICONO IINULL BOOT-SI IBLCCXEO) (RETURN NIL)) II ISETQ ARCTYPE ICAAR B0CY-SI1II (CONO IISEIQ A IEVAL ICAR BOOY-S))) (RETURN A l l IT ISETQ 800Y-S ICOR B031-SI) (CO T A C ) ) ) I » IDEFPROP .PUSH EXPR IFLAKBOA ILK IPROC ISIRING STATE STACK RECS MCIO PUSHRECSI -UNITIALIZE) IRETUP.N ICCNO 11N'JLL STRINGI NILI I(NOT (EVAL (CAOR LIT) NILI II IPRINTPUSH) IMEVAL STRING ICAR L) XCIO •{• (CONS STATE (SU31 (LEVEL!>>>II>11 102' 103 IO* IOEFPROP NAC EXPR 105 IFLAMBOA I D IC6 - IPROG ISTRING STATE STACK REGS HOLD* 10T l I N l T I A l U E l . • 109 (RETURN 109 ICONO I(NULL STRING! NIL) -H O HAND (EQ » ICAR III I EVAL (CADR (.1)1 111 . IPRINTARC ARCTYPEI 112 «APPLY (QUOTE PROCNXI ICOCR 1 ) 1 1 , 1 ) 1 ) 3 »»* 115 IOEFPROP PRCGNX EXPR . ' . • * • 116 IFLAMBOA (Ll XI? • (CONO I(NULL L) (ERROR (ERRORIIII 118 ' llr/ULL ICOR D I • l l ' ICOND KNOT (EQ (CAAR I) ICUOTE T o l l ) (ERROR (ERRORIIII 120 IT ( E v i l (CAR l l l l l l 121 IT (EVAL (CAR III (APPLY (CUOTE PROSNXI (CCR 1 ) 1 ) 1 ) 1 122 - . 123 ' 12V IOEFPROP HEM EXPR 123 (HANBO* (L) 126 IPROG (STRING STATE STACK REGS HOLD) IZT UNITIALIZE) 128 (RETURN 129 (COND ((NULL STRING) NIL) 130 I4AN0 (HEMS • (CAR L l l I EVAL I CADR L I U 131 IPRINTARC ARCTYPEI 132 (APPLY IOUOIE PAOCMO ICODR L ) ) ) ) ) ) l l 3 13* . 13* IOEFPROP POP EXPR 136 IFLAMBOA (Ll 1IT IPROC (STRING STATE STACK REGS NOLO PS LEVI ' 13S UNITIALIZE) 139 ICONO 11 NULL ICOR L l l IERRCR IERRDK3I), 1*0 KNOT (EVAL (CAOR L l l l (RETURN NIL) I 1*1 IT 1*2 IRETURN 1*3 ICONO 1*4 • (IANO (NULL STRING) (NULL STACK) (NULL HOLD)! 1*3 IPTRACE ABOUT TO POP I SUCCESS) 1*6 (EVAL (CAR L D ) 1*T I(NULL STACK) NILI l*a KNOT (HOLOLEVEL)I NIL) 1*9 IT (SETO PS (CAR STACKII 150 (PCPSTKI 151 ISEIQ o (EVAL (CAR l l , RECS (CAOR PSI LEV ILEVEL) 152 (PRINTPOPI 131 (APPLY (QUOTE PUSHPROSNI (CAOOft PS)I |11))I)> I S * 1SS 1S6 IOEFPROP OOSENORS EXPR 1ST I I A » B 0 A H I < 138 ICONO I (OR I NULL L l (NOT (EO I CAAR L) (QUOTE SENORIDI NIL) 1*9 IT I EVAL ICAR L l l IDOSENURS ICOR L l l PUSHREGSI))) . I . 1 6 0 161 162 ICEFPROP SENDR EXPR 163 IFLAMBOA IL) . ' : 16* (CONO ((NOT (CQ ARCTYPC (QUOTE PUSH!!) (ERROR (ERRCR61II1 165 (SETO PUSHRECS 16* ICONS (CONS (CAR L l (EVAL ICASR D I ) PUSHRECS)I)t 16T . 168 169 IOEFPROP FINOACTIGNS EXPR 170 HAHBOA (Ll 171 ICOND IINULL l l NIL) * -172 ((NOT (EQ ICAAR l l (QUOTE SENDR))> L ) 173 IT IFINOACIIONS ICOR L l l l l l l 1?+ 173 176 IOEFPROP PUSHSTR EXPR 177 ILAMQCA ISI 178 ICONS S STACK))I 179 ISO 181 IOEFPROP POPStK EXPR 1)2 l l*»BSA NIL -183 (SETQ STACK ICDR STACK)I)) IB* » 183 186 IOEFPROP TO EXPR 18? IFLAMBOA ISI 1(6 ICONO 11 NULL STRING) NIL) 189 II ' 190 IWEVAL ICOR STRING) 191 ICAR S) 192 STACK 193 REGS 19* HCIO 195 ICONS STATE :IEV6L))II), 196 " 197 198 (DEFPROP JUMP E<PR 199 IFLA»BOA 111 2C0 IPROG I STRING STATE STACK RECS HCIO) 201 I I M T U L I I E I 202 (RETURN 203 ICONO KNOT (EViL ICAOR L I M NILI 20* IT IH4PC ICUOTE EV»L) ICODR LII 205 (PIRACE J ' J 1 " ' TO l(C»R t i l l 2C6 tw£»»L SUING IC»R U STACK REGS BOLD ICONS STATE :LEVEL M l I > II ) 207 208 . -2C9 IDEFPROP CAT EXPR 210 1FLAH8DA (LI '211 JPROC ISTRINC STATE STAC* AECS HOLD FE-TURES1 212 UNITIALIZE) 211 (RETURN 21* ICONO I (NULL STRING) NILI 215 I UND ICATEC3RY ICAR LII (EVAL (CADR t i l l 216 IPR1HTMC iRCTYPEI 217 (APPLY IOUOTE PROCNXI ICDCX L I I M I I M 218 219 . 220 IDEFPROP PUSHPROGN EXPR 221 IFL6MB0A (LI 222 (COND 11.NULL LI (ERROR lERRORlill 223 I(NULL (COR III 22* ICONO I(HOT IEO ICAAR LI ICUOTE TOIIl IERROR (ERR0RI1II 225 IT IWEVAL STRING IO0AR II STACK REGS HOLO ICCNS STATE LEVI I 111 224 IT I EVAL ICAR LII (APPLY 16U0IE PUSHPROCiil (COR Ll>l)>> 22T 228 ' 229 IDEFPROP TR&CEPARSE EXPR 230 (LAN8CA NIL . 2)1 ISETO :TRACE T i l l 232 213 23* IDEFPAOP UNTRACEPAR5E EXPR . . . 235 ILAPBCA NIL • 236 ISETO 1TRACE N1LIII 237 238 239 IDEFPROP INIT—TRACE EXPR 2*0 (LAP8CA NIL 2*1 ICONO 2*2 IsTRACE ISETO »TA3 01 ' , ' • - . 2*3 IPRINT (OunTE SENTENCE:II * * * IPRINT SENTENCE! 2** ITERPRIMII) 2*6 2*7 2*8 I0EFPROP PRINTARC EXPR " 2*9 (LAPBCA URCTYPEI 250 IPTRACE TAKING tARCTYPE IC«R LII ARGII) 251 232 253 (OEFPROP PRINTPUSH EXPR . 25* ILAMBCA NIL 255 ISETO 1LEVEL (Aupi :LtvcLI» l i t UNO CPTRACE ABOUT TO PUSHI fSETQ tTAB (ADO STAB 2)11)1 258 ' 259 IDEFPROP PR1NTP0P EXPR 240 ILAPBCA NIL ; * 261 CSETQ :lEVcL ISUS1 :LEVELI1 262 UNO (PTRACE ABOUT TO POP • - ! • ) ) 263 ISETC JTAB I SUB 1T»B 21)111 . 26* 265 266 IOEPPROP PARSE EXPR 267 IFLW80A U l 268 IPROC U 'LEVEL ITAB STI 269 ISETQ ILEVEL 0) 270 ICCNO 2)1 IINULL (COR LII 272 (PERROR SECOND ARGUMENT TO PARSS IS UNSPECIFIED) 273 (RETURN NILII 27* IT ISETO ST ICAOR L M M 275 ISETQ A IERRSET (PARSE! ICAR l l l l i 276 IRETURN ICONO ((..TOM A l NILI (T I CAR A I I I D M 277 278 279 IDEFPROP ERR0R1 EXPR 280 ILAPBOA NIL 2(1 I PERROR NO TERMINATING NEXT STATE ACT ICS CN CURRENT ARCH) » * ... * 283 . 28* IDEFPROP ERR0R2 EXPR 285 ILA'BO* NIL » 286 (PERROR STATE ISTATElt UXOEPIKEO)It _1 287 288 . 289 IDEFPROP HOLCLEVEL EXPR 290 ILAPBOA NIL 291 (CONO CINULL HOLD I T l 292 IIEO (CAAR HOLD) :LEVELI NILI 293 1111)1 29* - » 295 296 (DEFP30P VIR EXPR 297 (Fl»HBOA (I) 249 IPROC ISIRINO STATE STICK RECS HCLO LEV) 299 (INITIALIZE! SCO (RETURN 301 (CONO IINUll NOLO) l l l l l 3C2 (UNO (SETO • (C04R HOLD)) 3C3 (VIRCATEGORY (CAR l l ) 30<k IEVAI (CAOR 11)1 305 IPRINTARC ARCTYPEI 3C6 (POPMOLOI • 307 ( SETQ LEV SIEVED 309 (APPLY (QUOTE PU5NPR0GN) (CCDR L l l l l l l l t 309 310 311 IOEFPROP POPhOLO EXPR 3IZ ILAVBCA NIL 313 ISETQ HOLD ICOR NOLO)) 31* IPTXACE POPPING 11* MGLD 116 L 1ST 317 • 318 » 319 . (•) 320 CURRENT 321 HOLO ' 322 IS 323 IICONO IHOLO ICOAR HOLD}}III!I 32* 123 126 IOEFPROP ERR0R3 EXPR 327 (LAMBDA NIL ' 128 IPERROR NO TEST ON POP ARC OF STATE (STATED)} 329 U O 331 IOEFPROP eiGCXEO EXPR 332 (LAF.BOA NIL 1J3. IPTRACE BLOCKED) 13* ISETQ 3LEVEL ICOR PATH1I STAB IA0O ILEVSl SIEVEIII 115 ICONO ((CAR PATHll (PIRACE BACKEO UP TO STATE ((CAR PATHlt1)11)1 136 117 318 (OEFPROP HOLD EXPR 339 IFLAMBOA ILI 1*0 (PROG IA) 1*1 ISETO A IEVAI ICAR III} 3*2 IPTRACE HOIOING IAII 1*1 (-SETQ HOLO ICONS ICONS H E V E l Al KCLOIIIIt 1*4 ». 1*5 • . 1*6 IOEFPROP CATEGORY EXPR 1*7 (LAMBDA (CAT) 3*8 (COND 1*9 ((GET LEX CATI 150 (SETO FEATURES (GETCATFEATUaESt. • (CETROGTII 151 T i l l ) 1*2 151 13* ICEFPROP GETCATFEATURES EXPR 153 (LAK8CA NIL i * 156 IPROG IPROP! 157 (SETQ PROP I GET LEX CATI) 158 ICONO ; 159 11 ATOM PROPI 160 IRETURN 161 ISEIECT CAT 162 IIOUOTE NI 161 ICONO IIEO PROP I0UOTE MASSI1 (QUOTE ((NUMBER HASStti l J«» IT (QUOTE I (NUMBER SGI I M l I 165 (ICUOTE VI 166 (LIST (OUOTE ITNS PRESENT)) 367 (QUOTE IPMCCCE X3SC)) 36* (QUOTE IUNTENSEOI))) 169 NILDI) 370 ISETO PROP ICOR PROP)) » 7 I (RETURN 172 ICONO 17] 11AND IEQ CAT IQUOTE V l l 174 IASSQ IQUOTE TNSI PROP) )T3 INOT IASSQ IQUOTE PNCCOE) PRO?) ) ) 376 (CONS IQUOTE IPNCODE ANT)) PROP)) 377 (IANO IEO CAT ICUOTE PROD 378 INOT IASSQ IQUOTE SUBJ) PROP)) 179 INOT (ASSO (QUOTE OBJI PRCPI1) 180 ICONS ICUOTE (SUBJ)) PROPI) . . . . 181 IT PROPI i mi 182 A. 163 18* IOEFPROP GETROOT EXPR . . . ^ 153 IIA»B0A NIL . . -186 IPROG IPROPI . 3 « 7 ISETO PROP ICET LEX CAT)) J - 3 IRETURN ICONO I(NOT IATCM PROP)) ICAR PROP)I IT LEX)))))) SS9 390 391 IOEFPROP CETF EXPR 192 IFLAMeDA IFEATUREI 39J IPROG ITEMP1 }•)* (CCKO IINCT IE5 ARC TYPE (QUOTE CITIII (ERROR (ERR0R5IM) 395 ISETO TEMP USSS ICAR FEATURE) FEATURES)) 3-»6 ICCNO jgT I TEMP IRETUSN ICCNO I (NULL ICD* IE»f>») TI IT (C«OR TEMP))))))})) 3«6 319 • C O IOEFPROP VIHCATEGORY EXPR 401 (LAPSE). (CAT) 4C2 IEQ CAT I CIS • l l l l «c> 40* 4C5 IOEFPMOP PRINTPUSE EXPR 406 (LAPBCA (PARSE 115) • 07 ICCND IINliLl PARSED ACS IIHCC (CAR PARSE 11 I SKIP TAB) IPR1 PARSE! I 409 CI (PP.INTPARSE (CAR PARSEI TAB! 410 (PRINTPARSE ICOR PARSEI TAB 111)1 411 AIZ 413 IDEEPRCP PR1 EXPR 41* ILAPBCA (PARSE) 415 ICC.NO ((NULL PARSEI ITERPRIII 414 (UIOM (CA* PARSE)) IPR1N1 (CAR PARSED CPR1 ICOR PARSED) 417 IT ITERPR11 41B IPR1MPARSE (CAR PARSEI IAOO TAB 4 D 419 (PRINTPARSE ICOR PARSE) IAOO TAB 411)1)1 420 421 422 IDEFPROP OISPLAY EXPR 423 (PLAH80A ILI 424 CSETQ :REC5 423 ICAR LI 426 (STATES 427 ICONO ((HULL (COR LII H i l l 425 IT ICAOR L I D ) 429 I D 4J0 431 432 (OEFPROP UN01SPLAT EXPR 433 ILAPBO* NIL 434 (SETQ IRECS NIL (STATES MILD) 435 436 417 IDEFPROP PAINRECS EXPR 43B ILAPBOA (REGLST) 439 IPAPC 460 IOUOTE 441 (LAMBDA 1X1 4*2 (PRINI XI 4*3 CPRIN1 ICUOTE >D 4*4 IPRINl ICETRV X D 4*5 ITERPRIDI 446 REGLSTD) 4*7 4*8 4*9 IDEFPROP ERROR* EXPR 430 ILAPBOA-NIL 451 IPRINl 452 IQUOTE 453 °»>MARNING—ATTEMPT TO AOOl OR AOCR TO ATOMIC VALUES REGISTER*)) 45* IPRINl (CAR L D 455 IS«1P *> 456 IPRINl IC«A L D 437 IMIN1 lOtOTE - D 458 IPRINl Al . ' 459 IPRINl IOUOTE • STATE • •II ' » •. 460 IPRINl STATEI 46) I1ERPR1ID 462 463 464 IDEFPROP ACCL EXPR 463 If LAMBDA I D 466 (PROG (A! 467 ISETO A 46* ICEIRV ICAR II) 469 REGS 470 : » • ICONO iss iss iruj J S E I^^W™*** 473 474 IDEFPROP A00R EXPR . 473 IFLAMBOA ILI 476 IPROG IA) 477 ISETQ A 478 ICETRV (CAR L D 479 REGS 480 ICONS ICONS ICAR L) IAPPENO A (LIST (EVAL ICAOR 1)11)1 481 REGS!I • -• • 482 ICCND ((ANO (A (ON A) INOT (NULL AID (ERROR*! T D D ) 483 48* -483 IOEFPROP GETREGS EXPR 486 UAPBCA NIL . 487 IPROG IA) *8B IMAPC 489 IOUOTE 49S ILAPBOA IX) *9 l ICGNO l l « N O ICAR XI A D 492 II ISETQ A ICCNS (CAR X) 1)111!) 493 REGS) *9* IRE TURN A I D ) *9i . *9i •97 IDEFPROP PTPEGi E»PR »9» UA»BC» NIL *91 ICCND SCO ISREGS •«I»«GS (CCNO :»£CS (CUOTE ALL,, „ SCI ICONO so* IIOR IHULL ssTJiesi iHg>*3 STATEI >STA;ESU SC3 ICCNO j ss* 11NULL imicei 505 IPAINI icuors "STATE » * l l 3C6 IPAINI STATEll 507 ITERPRlll l 5C8 309 510 311 IOEFPXOP OICTERR EXPR 512 (LA*8CA Nil. 313 (PERROR ((CAR STR1NC1II CANNOT BE M0RPMED1II 5 i * 515 516 IOEFPROP INITIALIZE EXPR 517 (LAMBCA NIL 5IS ISETO STRINC 519 STRIMC1 5Z3 STATE 321 STATE! 522 STACK 523 STACK1 52* REGS 323 RECS1 526 HOLO • 527 H0L01II) 523 329 530 IDSFPROP TST EXPR 531 IFLAMBOA (Ll 532 IPROG (STRING STATE STACK REGS HOLD} 533 - UNITIALIZE! 33* IRETURN . • 535 (COND 11 NULL STRING) N i l ) 536 IIEVAL ICAR L l l 537 (PRINTARC ARCTYPEI 538 (APPLY (OUOTE PROCNX) ICOR 11)111)11 539 5*0 5*1 IOEFPROP ERR0R3 EXPR 3*2 ILAPBOA NIL 5*3 (PERROR ATTEMPT 3** TO 5*5 ?i? EVALUATE 3*6 CETF 5*7 ON 3*8 NON 3*9 CAT 330 AHC 351 J 352 CURRENT 353 STATE 35* • 553 I STATE) 5S» » 357 CURRENT 358 ' jARC 559 . 360 (ARCTYPEDII 561 362 563 ICEFPROP ERRCR6 EXPR 56* ILAMSCA NIL 563 (PERROR ATTEMPT 566 TO • 567 SENOR 568 "-ON NON PUSH ARC t 369 370 371 572 III CURRENT 573 » " « l]y I STATE! 578 * J 7 , CURRENT 58S ARC • 581 IARCTYPEIIII 582 583 58* ICEFPROP GLUE EXPR 585 ILAMBCA IX) 5B6 ICCNO IINULL X) NIL) 587 IT IAPPESO ICAR XI ICLUE ICOR X))))))) 8 5B9 590 IOEFPROP PERROR EXPR 591 IFLAMBOA ISLU 392 ITERPR!) 59J 1PRIN1 (SUOTE " » » ERROR—"II 39* (MAPC 395 (CUOTE S9o j,J (LAMBDA IJXK > ' » , C 0 " ° L , T Q * X I , < : U O ' E ' I I ITERPRII I f . . • 59» H A T C M » „ , ( P R | „ , , „ J , " ( T ' B 1 2 , 1 •T . (MAPC (CUOTE u . M . o » „ „ , „ „ „ , e m t n i t t i *K*IIIII • CO SLSI 6Ct ITERPRIIII 402 603 . 60V IOEFPROP PTRACS EXPR 60S IFIAMBDA (SLtl 6 C 6 ICONO 6C7 |:TRACE (TERPAI1 6CB ISXtP STA9I 629 (HAPG 610 ICUOTE 611 (LAMBOA (8X«I 612 ICCND IIEO »X1 IQUOTE t l ) ITERPRII ISXIP :TAS») 613 IIATC-I SXt) IPRINl SXH) 614 IT INAPC IQUOTE (LAMBDA ISYU IPRINl IEVAI. S T l l l l ) SXS 615 S i l l 616 ITERPRII • • • 61T T i l l ! 618 619 620 IOEFPROP PPARSE7 EXPR 621 UA'SOA NIL 622 ISETQ SPRINTPARSE INOT :PRINTPARSEII)I 624 625 IOEFPROP ERRSET EXPR 626 IFLAMBOA ISEXP1I 62T ILIST IEVAL ICAR l E X P t l l l l l 626 629 430 IOEFPROP ERROR EXPR 631 |FIA».3DA ItVALl) 632 IUNEVAL IQUOTE EARSET) ICAR SVALSIIM 633 614 635 ICEFPROP ABCRT EXPR 636 ILAMBCA NIL 637 IPTRACE ABORTED) 633. ISETQ BOOY-S (CDR BOOT-SI) 631 ICO TAGIII 6*0 6*1 4*2 ICEFPROP SREPLACE EXPR 6*3 IH.-8CA (LST EL N> 6*4 IAPPEN0 ISUT-NTH LST N) ICONS EL ICOR INTH LST NI))))) 6*5 6*6 6*7 IOEFPRCP BUT-NTH EXPR 6*8 (LAMBDA l l HI 6*9 ICOND IIEQ N l l NIL) 650 IT (CCNS ICAR L l I BUI-NTH ICCR L l (SU31 N i l ) ) ) ) ) 651 6 » 2 653 ICcFPRCP FINDHEIGHT EXPR 65* ILAMBDA IX) 635 ICONO I (NUM3ERP X) ICONO IILESSP (LENGTH STACK) X ) O) IXIIl 6S6 IT IFINCPOS STACK X ) ) D ) • 637 658 659 IOEFPROP FINDPOS EXPR 669 (LAMBDA IL ST) 661 IPROG ICNT PTRI 442 ISEIO CNT 0 PTR L) • 481 TAG ICCNO I(NULL PTR) (RETURN 01) « . . . IIEO (CAAR PTR) ST) IRETURN IAD01 CNTD) IT (SETQ PIR ICOR PTR) CNT IAC01 CNT!) ( £ 0 TA6lt)l}> 664 463 666 • 661 IOEFPROP LIFTR EXPR 669 IFLAMBOA IL) 670 IPRCC (HEIGHT TEMP) 671 ICONO 672 IIMJLl ICOOR 1)1 • 671 IRETURN (APPLY ICUOTE LIFTR) IAPPENO L ILIST 1111111 67* ISETC HEIGHT IFINDM6IGHT ICADOR l l ) ) 675 (RETURN 676 ICOND I WERGP HEIGHT)) 677 (7 678 (SETQ STACK •-• 679 UREPLACE STACK 680 .. (SREPLACE ISETO TEMP (CAR (NTH STACK HEIGHT! I) 6>l (CONS ICONS ICAR L l IEVAL ICJM3A 11)) 6B2 . ICADR TEMPII — 683 21 6t* HEIGHT)))))!)) 6»7 ISETQ JPR INT PARSE 1 :RECS NIL) 450 I UN TRACE PARSE) 

Cite

Citation Scheme:

        

Citations by CSL (citeproc-js)

Usage Statistics

Share

Embed

Customize your widget with the following options, then copy and paste the code below into the HTML of your page to embed this item in your website.
                        
                            <div id="ubcOpenCollectionsWidgetDisplay">
                            <script id="ubcOpenCollectionsWidget"
                            src="{[{embed.src}]}"
                            data-item="{[{embed.item}]}"
                            data-collection="{[{embed.collection}]}"
                            data-metadata="{[{embed.showMetadata}]}"
                            data-width="{[{embed.width}]}"
                            data-media="{[{embed.selectedMedia}]}"
                            async >
                            </script>
                            </div>
                        
                    
IIIF logo Our image viewer uses the IIIF 2.0 standard. To load this item in other compatible viewers, use this url:
https://iiif.library.ubc.ca/presentation/dsp.831.1-0051780/manifest

Comment

Related Items