Re: Specialised dictionaries [was Re: localization formats proposal]


Subject: Re: Specialised dictionaries [was Re: localization formats proposal]
From: Kevin Atkinson (kevina@users.sourceforge.net)
Date: Mon Jul 16 2001 - 23:08:37 CDT


On Tue, 17 Jul 2001, Andrew Dunbar wrote:

> Do we even support "cascading dictionaries"? We would
> look in all of the chosen specialized dictionaries
> first and finally the main language dictionary until
> we find the word we're looking for. I'm not sure how
> this would impact candidate lists either. Does ispell
> already support this kind of thing? Does pspell?

Ispell doesn't (unless you use symbolic links as alias but thats not
really what you are looking for) but Pspell does, the current search
strategy is a bit broken so I won't repeat what it does here. But the
next version of Pspell will use the following strategy:

  // Give first prefrence to an exect match for the language-country
  // code, then give prefrence to those in the alternate code list
  // in the order they are presented, then if there is no match get fine
  // look for one for just language. If that fails give up.
  // Once the best matching code is found, try to find a matching
  // jargon if one exists, other wise look for one with no jargon.

My code is written is such a way that a list of jargon strings can be
specifed and it will try to find a word list in the list giving preference
to those appearing first.

Aspell also allows multiple dictionaries to be loaded at once. And can
treat multiple dictionaries as a single one by using special "multi"
dictionaries allowing the user to easily add a large list of special words
to the main dictionary with having to resort to putting them all in the
personal word list.

---
Kevin Atkinson
kevina at users sourceforge net
http://www.ibiblio.org/kevina/



This archive was generated by hypermail 2b25 : Mon Jul 16 2001 - 23:03:22 CDT