(setf sentence (format nil "~A in ~A" sentence (find-noun-with-article words)))
)
(setf sentence (format nil "~A is not ~A" sentence (find-pos words "ADJECTIVE" 'false)))
sentence))
(lambda ()
"The <noun> from <place> will go to <place>"
(let* ((sentence ""))
(setf sentence (format nil "~A ~A from ~A will go to ~A" sentence (find-pos words "NOUN" 'false) (find-place-noun words) (find-place-noun words)))
sentence))
(lambda ()
"<name> must take the <adjective> <noun> from <place>"
(let* ((sentence (find-noun-with-article words)))
(setf sentence (format nil "~A must take the ~A from ~A" sentence (find-pos words "NOUN" 'true) (find-place-noun words)))
sentence))
(lambda ()
"<place> is <adjective> and the <noun> is <adjective>"
(let* ((sentence (find-place-noun words)))
(setf sentence (format nil "~A is ~A and the ~A is ~A" sentence (find-pos words "ADJECTIVE" 'false) (find-pos words "NOUN" 'true) (find-pos words "ADJECTIVE" 'false)))
sentence))
(lambda ()
"<name> <preposition> <place> for the <adjective> <noun>"
(let* ((sentence (find-noun-with-article words)))
(setf sentence (format nil "~A ~A ~A for the ~A ~A" sentence (find-pos words "PREPOSITION" 'false) (find-place-noun words) (find-pos words "ADJECTIVE" 'false) (find-pos words "NOUN" 'true)))
sentence))
(lambda ()
"The <noun> from the <place> <action> the <noun>"
(let* ((sentence ""))
(setf sentence (format nil "~A ~A from the ~A ~A the ~A" sentence (find-pos words "NOUN" 'true) (find-place-noun words) (find-pos words "VERB" 'false) (find-pos words "NOUN" 'true)))
sentence
))
(lambda ()
"The [random(<adjective>, .5)] <noun> <action> the <adjective> <noun> [random('in ' . <place>, .2]"