Ex255 - Complex Sentences



Background: NLI
Related: Examples, Ex330, Ex335

Description:
This example stores the following 4 complex sentences by building them from smallers ones having a subject-verb-object format:

1. flower1's brightest color is fluorescent red
2. flower1's brightest color was fluorescent green on monday
3. flower1's brightest color willBe fluorescent blue on friday
4. john says line 3

In normal speech/writing, relators that indicate the relationship between adjectives and nouns are frequently dropped or are implied by modification of the adjective. For example: "hot modifies milk" becomes "hot milk", or "bright modifies color" becomes "brightest color". And sometimes the relator between subject and object is appended with the subject, for example "flower attribute color" becomes "flower's color".


NLI Script

(; Create a flower named flower1)
(new 'flower1 'flower)

(; Create colors red, green and blue)
(new 'red 'color)
(new 'green 'color)
(new 'blue 'color)

(; Create adjectives bright and fluorescent)
(new 'bright 'adjective)
(new 'fluorescent 'adjective)

(; Create weekdays monday and friday)
(new 'monday 'weekday)
(new 'friday 'weekday)

(; Create flower1 attribute brightest color is fluorescent red)
(; Long method)
(set bright modify color)
(set flower1 attribute (get bright modify color))
(set fluorescent modify red)
(set (get flower1 attribute (get bright modify color)) 
     is 
     (get fluorescent modify red))

(; Create flower1 attribute brightest color 
   was fluorescent green on monday)
(; Shorter method)
(set flower1 
     attribute 
     (set bright modify color) 
     was 
     (set fluorescent modify green) 
     on monday)

(; Create flower1 attribute brightest color 
   willBe fluorescent blue on friday)
(set flower1 
     attribute 
     (set bright modify color) 
     willBe 
     (set fluorescent modify blue) 
     on friday)

(; Create a person named john)
(new 'john 'person)

(; Create a verb named say)
(new 'say 'verb)

(; Create john says 
   "flower1 attribute brightest color 
    willBe fluorescent blue on friday")
(set john 
     say 
     (get flower1 
          attribute 
          (get bright modify color) 
          willBe 
          (get fluorescent modify blue) 
          on friday))

Notes:

Download Database:
Ex255.zip (22 KB)
The creation of rolex replica the watch is inspired by the retro and elegant money of rolex replica watches the brand's round watch. The chronograph is omega replica simple and stylish, with the line features of rolex replica uk the watch series.

CM ©2000-2007