[libvoikko] Relation between spelling and grammar checkers

Kevin Brubeck Unhammer apertium at unhammer.mm.st
Fri Sep 20 11:13:41 EEST 2013


Sjur Moshagen <sjurnm at mac.com> writes:

> 19. sep. 2013 kl. 21:55 skrev Harri Pitkänen <hatapitk at iki.fi>:
>
>> 1) During dictionary loading both dictionaries are loaded and wired into the
>>    same voikko_options_t structure. This would be quite easy to implement.
>>    * There is one complicated corner case though: what if the language tags
>>      represent different variants of the same dictionary? If user requested
>>      "sme-x-medicine" and we have only medical spell checker but standard
>>      grammar checker, can the standard grammar checker be used as a
>>      substitute?
>> 
>> 2) We can also require that all grammar checkers must also provide a spell
>>    checker. This will simplify the logic: format 4 would always hide a
>>    format 3 dictionary if they have the same language tag.
>>    * The variant issue would still be present. We might have a spell checker
>>      in format 3 for some variant and only standard dictionary in format 4.
>
> I would go for 2). The main reasoning is that you can then provide a
> spell checker together with the grammar checker that is tailored to
> work with the grammar checker. E.g. one can allow such a spell checker
> to be a bit more relaxed, if one knows that certain error patterns are
> better handled by the grammar checker. This would not be possible with
> option 1), because under that scenario we do not have any control of
> which version 3 dictionary is installed.

With 2) you can also potentially have a spell checker turn unknown words
into known words, which might help the disambiguation which again helps
the grammar checker.

-- 
Kevin Brubeck Unhammer

GPG: 0x766AC60C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://lists.puimula.org/pipermail/libvoikko/attachments/20130920/b16a6b7b/attachment.sig>


More information about the Libvoikko mailing list