[developers] Preprocessor with ERG - Lisp break

Ben Waldron bmw20 at cl.cam.ac.uk
Thu Jul 6 14:12:38 CEST 2006

It was the same bug in both cases below (see my previous email).

- Ben

Dan Flickinger wrote:
> After a rather long delay, I updated my LKB code to the current head revision
> in CVS today, and discovered that the preprocessor for the ERG is now unhappy
> with input strings that contain apostrophes.  Input like "We'll arrive." 
> or "Kim's chair" results in a Lisp error, presumably related to the fact 
> that the ERG preprocessor rules introduce a space before the apostrophe.
> I would be grateful for instruction or a correction.
Dan Flickinger wrote:
> As a follow-up to yesterday's message, note that a similar error (assigning
> NIL as the span for a token) arises with the ERG preprocessor when one
> token is replaced with another for the current cheap and cheerful spell 
> correction.  For example, 
> (lkb::preprocess "The chears arose.") 
> gives the span of the spell-corrected "cheers" as NIL.  But note that if the 
> misspelling is at the end of the input, the span is okay: 
> (lkb::preprocess "The chears.")

More information about the developers mailing list