Name : perl-Text-Soundex
| |
Version : 3.05
| Vendor : openSUSE
|
Release : bp150.2.4
| Date : 2018-07-30 18:19:32
|
Group : Development/Libraries/Perl
| Source RPM : perl-Text-Soundex-3.05-bp150.2.4.src.rpm
|
Size : 0.05 MB
| |
Packager : https://bugs_opensuse_org
| |
Summary : Implementation of the soundex algorithm
|
Description :
Soundex is a phonetic algorithm for indexing names by sound, as pronounced in English. The goal is for names with the same pronunciation to be encoded to the same representation so that they can be matched despite minor differences in spelling. Soundex is the most widely known of all phonetic algorithms and is often used (incorrectly) as a synonym for \"phonetic algorithm\". Improvements to Soundex are the basis for many modern phonetic algorithms. (Wikipedia, 2007)
This module implements the original soundex algorithm developed by Robert Russell and Margaret Odell, patented in 1918 and 1922, as well as a variation called \"American Soundex\" used for US census data, and current maintained by the National Archives and Records Administration (NARA).
The soundex algorithm may be recognized from Donald Knuth\'s *The Art of Computer Programming*. The algorithm described by Knuth is the NARA algorithm.
The value returned for strings which have no soundex encoding is defined using \'$Text::Soundex::nocode\'. The default value is \'undef\', however values such as \'\'Z000\'\' are commonly used alternatives.
For backward compatibility with older versions of this module the \'$Text::Soundex::nocode\' is exported into the caller\'s namespace as \'$soundex_nocode\'.
In scalar context, \'soundex()\' returns the soundex code of its first argument. In list context, a list is returned in which each element is the soundex code for the corresponding argument passed to \'soundex()\'. For example, the following code assigns AATTcodes the value \'(\'M200\', \'S320\')\':
AATTcodes = soundex qw(Mike Stok);
To use \'Text::Soundex\' to generate codes that can be used to search one of the publically available US Censuses, a variant of the soundex algorithm must be used:
use Text::Soundex; $code = soundex_nara($name);
An example of where these algorithm differ follows:
use Text::Soundex; print soundex(\"Ashcraft\"), \"\ \"; # prints: A226 print soundex_nara(\"Ashcraft\"), \"\ \"; # prints: A261
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/openSUSE:/Backports:/SLE-15/standard/x86_64 |