Tsearch2 and Snowball - Mailing list pgsql-hackers

From Simon Riggs
Subject Tsearch2 and Snowball
Date
Msg-id 1159901609.2659.341.camel@holly
Whole thread Raw
Responses Re: Tsearch2 and Snowball  (Oleg Bartunov <oleg@sai.msu.su>)
List pgsql-hackers
I'm looking at some of the code in contrib/tsearch2/snowball and see
that the code there is *generated* code. The Snowball stemmer produces
this C code in much the same way bison reads gram.y

My understanding is that the Snowball code moves forwards regularly and
there are many other stemmers we could be including with the
distribution.

Snowball has a BSD licence: http://snowball.tartarus.org/license.php
Would it be possible to include the Snowball source directly and allow
its execution to be part of the make process for tsearch2? Or have
configure check for Snowball at make time? At the very least it would be
good to have a Readme file explaining how to modify the Snowball stemmer
and regenerate for tsearch2.

That would then encourage people to improve the stemmers, as well as
allow us to include French and Spanish versions etc..

Perhaps we should ask translators to provide stop word lists for their
languages. It seems a shame to have docs in so many languages, but no
language capability for Tsearch2.

Also, why do we have another crc32 implementation in there?

--  Simon Riggs              EnterpriseDB   http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Re: src/tools/msvc usage instructions
Next
From: Tom Lane
Date:
Subject: Re: src/tools/msvc usage instructions