Re: Spellcheck package
| From: | Aidan Lister | Date: | Sat, 16 Oct 2004 08:26:08 +0000 |
| Subject: | Re: Spellcheck package | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-33885@lists.php.net to get a copy of this message | ||
Yep, does sound good. There's already an extension for this, pspell, but if
PEAR could provide a wrapper interface that'd be the bomb.
Joe, that could be done simply with addFilter or whatever, it wouldn't
require any design specifics on the spelling package.
-- Aidan
"Joe Stump" <joe@joestump.net> wrote in message
news:B5A54D6D-1D80-11D9-9CCF-000A95DC38D8@joestump.net...
> +1 here too. This would be even cooler if it could be attached to
> Quick_Form text inputs :)
>
> --Joe
>
> --
> Joseph C. Stump
> joe@joestump.net
> http://www.joestump.net
>
>
> On Oct 12, 2004, at 5:04 PM, Justin Patrin wrote:
>
>> On Tue, 12 Oct 2004 19:28:51 -0400, Nikolas 'Atrus' Coukouma
>> <atrus@atrus.org> wrote:
>>> I've been working on wrapping spellchecking functions in objects. The
>>> obvious advantage is not having to remember calls to *_free functions.
>>>
>>> I'm also planning to add functions for getting suggestions for whole
>>> strings (space-delimited words). It would return an associative array
>>> of suggestions with the misspelled words as keys and arrays of
>>> suggestions as values. Additionally, I think a function for
>>> 'highlighting' misspelled words by inserting stings before and after
>>> each misspelled word (i.e. '<b>' before and '</b>'
>>> after). Suggestions
>>> for other commonly useful functions are welcome.
>>>
>>> I'm currently basing the design on libenchant's interface. For
>>> convenience, it'll have a pspell (actually aspell) backend as a
>>> default, which can be switched for enchant, if it's available.
>>>
>>> Does this seem like a good addition to PEAR?
>>>
>>> Nikolas 'Atrus' Coukouma
>>>
>>
>> Sounds useful to me.
>>
>> --
>> paperCrane --Justin Patrin--
>>
>> --
>> PEAR Development Mailing List (http://pear.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>