|
@@ -59,11 +59,9 @@
|
|
|
|
|
|
|
|
(defun read-from-string-no-punct (input)
|
|
(defun read-from-string-no-punct (input)
|
|
|
"Read from an input string, ignoring punctuation."
|
|
"Read from an input string, ignoring punctuation."
|
|
|
- (read-from-string
|
|
|
|
|
- (concatenate 'string
|
|
|
|
|
- "("
|
|
|
|
|
- (substitute-if #\space #'punctuation-p input)
|
|
|
|
|
- ")")))
|
|
|
|
|
|
|
+ (let ((*package* (find-package 'chatikbot)))
|
|
|
|
|
+ (read-from-string
|
|
|
|
|
+ (concatenate 'string "(" (substitute-if #\space #'punctuation-p input) ")"))))
|
|
|
|
|
|
|
|
(defun print-with-spaces (list)
|
|
(defun print-with-spaces (list)
|
|
|
(format nil "~@(~{~a~^ ~}~)" list))
|
|
(format nil "~@(~{~a~^ ~}~)" list))
|