EXAMPLE TEXT STRUCTURE FRAMES FOR THE 'DONUT' TEXT

(Produced from TAMERLAN meaning representation using
 text planning rules)

(TSF
   (has-as-part S_1 S_2)
   (type *plan-text)
)

(S_1
   (type *plan-sentence)
   (subtype and)
   (clauses C_1 C_2)
   (textual-before C_1 C_2))

(C_1
   (type *plan-clause)
   (head +drop-v1)
   (features
      (voice active)
      (mood imperative))
   (realization  lexical)
   (agent r_2)
   (theme r_1))

(r_1
   (type *plan-role)
   (head +shop-n1)
   (realization lexical)
   (features
      (ref def)               
      (number sg))
   (modifiers r_1.5 mod_2))

(r_1.5
    (type *plan-role)
    (head +dunkin_donuts-n1) 
    (realization lexical))   
                             
(mod_2
   (type *plan-mod)
   (realization lexical)
   (head +favorite-adj1)
   (modifiers r_2))

;mod_2 renders "your favorite", with r_2 being "your".

 (r_2
    (type *plan-role)
    (realization pro)
    (head +consumer-n1)
    (features (person 2)   ;need this for 
              (number sg)));"you",
                           ;"yourself", 
                           ; or "your".

(C_2
  (type *plan-clause)
  (head +find-v1)
  (realization lexical)
  (features
     (voice active)
     (tense future)
     (mood declarative)
     )
  (experiencer r_2)
  (theme r_2.5) 
  (modifiers mod_3)               
 )

  (r_2.5
      (head $set$)
      (type *plan-role)
      (subtype and)
      (elements r_3 r_4 r_5 r_6)
      (textual-before r_3 r_4 r_5 r_6))

(mod_3            
   (type *plan-mod)
   (head +only-adv1)
   (modifiers mod_3.5)
   (realization lexical))

; mod_3 renders "not only"

(mod_3.5            
   (type *plan-mod)      
   (head +not-neg1)
   (realization lexical))

(r_3
   (type *plan-role)
   (head +donut-n1)
   (realization lexical)
   (features
      (number pl)
      (ref indef))
   (modifiers mod_4  C_3) )

;r_3 renders "fresh donuts made by hand"

(mod_4
     (type *plan-mod)
     (head +fresh-adj1)
     (realization lexical))

;mod_4 renders "fresh"

(C_3
    (type *plan-clause)
    (head +make-v1)
    (realization lexical)
    (features (voice passive) (mood declarative))
    (theme r_7)
    (modifiers r_8))

(r_7
   (type *plan-role)
   (head +donut-n1)
   (realization ellipsis))

;r_7 renders "which" , ellided

(r_8
     (type *plan-role)
     (head +hand-n1) 
     (features (number sg) (prep ((root by))))
     (realization lexical))

;r_8 renders "hand"

(r_4
   (type *plan-role)
   (head +Munchkin-n1)
   (realization lexical)
   (features
      (number pl)
      (ref indef))
   (modifiers mod_5 ) )

(mod_5
     (type *plan-mod)
     (head +fresh-adj1)
     (realization lexical))

(r_5
   (type *plan-role)
   (head +smell-n3)
   (realization lexical)
   (features
       (number sg)
       (ref def))
   (modifiers  mod_6)
   (domain r_9)) 

;r_5 renders "the delicious smell 
;of fresh-brewed coffee".

(mod_6
  (type *plan-mod)
  (head +delicious-adj1)
  (realization lexical))

;mod_6 renders "delicious".

(r_9
  (type *plan-role)
  (head +coffee-n2)
  (realization lexical)
  (features
     (ref indef) (number sg))
  (modifiers mod_8)) ;"fresh" only

(mod_8 
 (type *plan-mod)
 (head +fresh-adj1)
 (realization lexical)
)

;mod_8 renders "fresh"

(r_6 
 (type *plan-role)
 (head +thing-n1)
 (realization ellipsis)
 (features
         (number pl)
         (ref indef))		          
 (modifiers mod_9)		
)

;r_6 renders "more things" , with "things" ellided.

(mod_9
	(type *plan-mod)		
	(head +more-det1) 
	(realization lexical))		

;mod_9 renders "more".

(S_2
 (type *plan-sentence)
 (subtype simple)
 (clauses C_4))

;S_2 renders "You'll also find 
;a fresh new Dunkin' Donuts shop"

(C_4
 (type *plan-clause)
 (head +find-v1)
 (realization lexical)
 (features
  (mood declarative)
  (tense future)
  (voice active)
 )
 (experiencer r_9.5)
 (theme r_10)
 (modifiers mod_10))

(r_9.5
 (type *plan-role)
 (head +consumer-n1)
 (realization pro)
 (features
   (number sg)
   (person 2))
)

(mod_10
 (type *plan-mod)
 (head +also-adv1)
 (realization lexical))

;mod_10 renders "also".

(r_10
 (type *plan-role)
 (head +shop-n1)
 (realization lexical)
 (features
   (number sg)
   (ref indef))
 (modifiers mod_11 mod_12 r_13)
 (textual-before mod_11 mod_12 r_13))

(mod_11
     (type *plan-mod)
     (head +fresh-adj1)
     (realization lexical))

;mod_11 renders "fresh".

(mod_12
 (type *plan-mod)
 (head +new-adj1)
 (realization lexical))

;mod_12 renders "new".

(r_13
 (type *plan-mod)
 (head +dunkin_donuts-n1)   
 (realization lexical))    

;r_13 renders "Dunkin' Donut".