spell checking and apostrophes

2 views
Skip to first unread message

Christopher Barker

unread,
Sep 30, 2009, 12:35:52 PM9/30/09
to pepp...@googlegroups.com
Rob,

I just noticed that Peppy doesn't handle words with apostrophes
correctly. Try:

wouldn't

for instance. I suspect it's because you are breaking on all
non-letters, and thus passing: "wouldn" to enchant, which, of course, is
not a word.

-Chris

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris....@noaa.gov

Rob McMullen

unread,
Sep 30, 2009, 1:37:12 PM9/30/09
to pepp...@googlegroups.com
On Wed, Sep 30, 2009 at 9:35 AM, Christopher Barker
<Chris....@noaa.gov> wrote:
> I just noticed that Peppy doesn't handle words with apostrophes
> correctly.

Yep, I've noticed that before but I've been lazy.

The naive approach is to make a special case for English and check for
the presence of at 't' after a single quote, but I don't know enough
about other languages to know if there is an i18n way to fix that? I
mean, some way to determine, based on the current locale or dictionary
language, if there exists a set of non-alphabetic characters that can
be valid in a dictionary word?

Rob

Reply all
Reply to author
Forward
0 new messages