pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedsoundex more or less exact
2+ messages / 2 participants
[nested] [flat]
* soundex more or less exact
@ 1998-06-01 18:02 Christian Guenther <guenther@laokoon.in-berlin.de>
1998-06-02 07:54 ` Re: [SQL] soundex more or less exact Herouth Maoz <herouth@oumail.openu.ac.il>
0 siblings, 1 reply; 2+ messages in thread
From: guenther@laokoon.in-berlin.de @ 1998-06-01 18:02 UTC (permalink / raw)
To: pgsql-sql
Hi,
How can I make the soundex-function more or less exact finding results.
If I have a name 'Fretwurst' and search for 'Vretwurst' I do not get the
'Fretwurst' as result. Is it possible to get it right, because for me
Vretwurst is near by Fretwurst?
Sorry about the terrible English.
Thanks for any hints
Christian Guenther
--
Christian Guenther http://laokoon.in-berlin.de/Kuenstler/
Fax: +49 030 4464152 http://laokoon.in-berlin.de/Museum/
Tel: +49 030 4442931 E-mail: guenther@laokoon.in-berlin.de
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [SQL] soundex more or less exact
1998-06-01 18:02 soundex more or less exact Christian Guenther <guenther@laokoon.in-berlin.de>
@ 1998-06-02 07:54 ` Herouth Maoz <herouth@oumail.openu.ac.il>
0 siblings, 0 replies; 2+ messages in thread
From: Herouth Maoz @ 1998-06-02 07:54 UTC (permalink / raw)
To: guenther@laokoon.in-berlin.de; +Cc: pgsql-sql
At 21:02 +0300 on 1/6/98, Christian Guenther wrote:
> How can I make the soundex-function more or less exact finding results.
>
> If I have a name 'Fretwurst' and search for 'Vretwurst' I do not get the
> 'Fretwurst' as result. Is it possible to get it right, because for me
> Vretwurst is near by Fretwurst?
Soundex is not a magic wand. It is a generic name for a function that maps
words that sound the same to one root. But "sound the same" in which
language? I once wrote a soundex function for Arabic. Believe me, it is
nothing like English soundex. It may be tempting to use English soundex for
German - after all, they use the same character set, more or less. But
since pronounciation of "V" and "F" and "W" is different, and I think
there's also some difference in "S", the way things *sound* is different.
It may not be as far as Arabic is from English, but it's enough to render
the function invalid for practical purposes.
That's the theory. In practice, I believe the soundex in PostgreSQL is a
contributed module. So if you have programming skills, you may want to
follow the sources, see how they work, and change the function to apply
German logic rather than English logic. Then you can contribute your own
version as "german_soundex" or whatever.
Herouth
--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1998-06-02 07:54 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1998-06-01 18:02 soundex more or less exact Christian Guenther <guenther@laokoon.in-berlin.de>
1998-06-02 07:54 ` Herouth Maoz <herouth@oumail.openu.ac.il>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox