where can I download the ispell *.dict and *.affix files?
Asked Answered
I

2

6

I am quite new to postgresql full text search and I am setting up the configuration as where can I download the ispell *.dict and *.affix filefollowing (exactly as in docs):

CREATE TEXT SEARCH DICTIONARY english_ispell (
    TEMPLATE = ispell,
    DictFile = english, 
    AffFile = english, 
    StopWords = english
);

So, this I think expects files english.dict and english.affix on for example:

/usr/share/postgresql/9.2/tsearch_data

But these files are not there. I just have ispell_sample.dict and ispell_sample.affix - which when included above work fine - no problem.

So... I followed this post and downloaded the required dictionary from the open office people and renamed the .dic to .dict and .aff to .affix. Then I have checked (using file -bi dict.affix and file -bi english.dict and they are UTF8 encoded).

When I run the above text search dictionary, I get the error:

 ERROR:  wrong affix file format for flag
 CONTEXT:  line 2778 of configuration file "/usr/share/postgresql/9.2/tsearch_data/english.affix": "COMPOUNDMIN 1
 "

I was wondering if anyone had clues on how to solve this problem or if anyone had encountered this before.. Thanks./.

UPDATE:1: I guess the question can be rephrased as follows: where can I download the ispell *.dict and *.affix file for postgres

Idempotent answered 14/8, 2013 at 11:17 Comment(0)
W
3

Here's a good reference: https://www.cs.hmc.edu/~geoff/ispell-dictionaries.html This is a good resource for those dictionaries of any language.

Wimmer answered 13/11, 2013 at 2:43 Comment(1)
some link inside that link are not work properly, i already give other solution insteadApelles
A
1

Here's complete and latest dic and aff file:

https://github.com/albasyir/dictionaries

Already Served on Network

those files already served on https://albasyir.github.io/dictionaries/, and here's example if you using typo-js (https://www.npmjs.com/package/typo-js) you can access with this example url:

this the URL pattern if you need other language:

Apelles answered 7/11, 2023 at 4:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.