[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Aspell-user] Compile / Create aspell Dictionary
From: |
Wojciech Muła |
Subject: |
Re: [Aspell-user] Compile / Create aspell Dictionary |
Date: |
Wed, 25 Aug 2004 11:34:42 +0200 (CEST) |
On Tue, 24 Aug 2004, Astro96 wrote:
> I am trying to create a dictionary for aspell that
> contains over one million scientific names. I first
> tried creating a personal dictionary file but it is to
> slow - over 60 seconds to run spell check. I looked
> in the aspell manual but I only found how to name a
> new dictionary, not how to create/compile one. I
> couldn't find anything on Google either. If someone
> could point me in the right direction that would be
> great.
Personal dictionary is a text file, so aspell must first convert one
into internal represenatation and it takes a moment. You should
create master dictionary:
$ aspell create master --lang=lang_code path/dict_name < wordlist
That command produce a "compiled" dict - .rws file, ready to use. For
example my polish dict has 2.5 milion words (.rsw file: 56MB!) and
aspell starts instantly. Creating dictionary may take a long time...
The next step is locate file lang_code.multi - for example en.multi,
pl.multi, uk.multi - it should be placed in the same directory where
the lang_code.rws file is (Linux: /usr/local/lib/aspell).
.multi files are just a text file, and looks like this:
--- cut ---
# comment
add lang_code.rws
--- cut ---
(Multi files are described in the section 5.5 of manual).
Add line to the multi file
add path/dict_name
and when you run aspell
$ aspell --lang=lang_code action ...
it use all dictionaries listed in the lang_code.multi file.
hth
w.