From: Mitchell Koch Date: 2006-08-10T14:22:15+09:00 Subject: Re: [QUIZ] Proper Case (#89) * Elliot Temple [060809 21:55]: > if EOSPunc.index word[-1].chr then true else false end > can be replaced with > EOSPunc.index word[-1].chr Ah, yeah that's a shorter way to do it. For some reason I had it stuck in my head that I just wanted to express truth value and tried to avoid passing on extraneous information (like in this case the index in the punctuation array of the entry with the punctuation attached to the last word). I didn't spend too much time refactoring; at first I was dreaming up abstracting parts of both the source reading and the proper casing into a token parser kind of thing, but then it was more like, okay it works and it's the Wednesday before the quiz summary goes up, so let's send it off. ;-) Mitchell Koch