Hi Peter,
I'll let Sid chime in on the details of the implementation, but it's
definitely been designed to allow for other algorithms. If there's a better
way to integrate it into Hunspell itself, that might be worth looking into.

-Nick

On Tue, Mar 24, 2009 at 10:54 PM, Peter Kasting <[email protected]>wrote:

> On Tue, Mar 24, 2009 at 10:16 PM, Nick Baum <[email protected]> wrote:
>
>> We want to start out with a very conservative approach so as to not be
>> annoying. We considered using the hunspell suggestions, but we wanted
>> something that captured one particular, common type of misspelling. However,
>> I believe Sid has built it in a way that lets us test other algorithms,
>> including using hunspell's algorithm.
>>
>
> That's still pretty easy to do with this -- you make your "distance oracle"
> return 1 for two words that differ by a letter swap, and infinity for every
> other case.  You get the same results but it becomes trivial to add anything
> else you want later.
>
> If you're saying you can accomplish the points I was shooting for by
> tweaking the existing mechanism, you are right; I am simply suggesting that
> this route will be cleaner, saner and more future-proof in the end.
>
> PK
>

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to