Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

metaphone(3) [php man page]

METAPHONE(3)								 1							      METAPHONE(3)

metaphone - Calculate the metaphone key of a string

SYNOPSIS
string metaphone (string $str, [int $phonemes]) DESCRIPTION
Calculates the metaphone key of $str. Similar to soundex(3) metaphone creates the same key for similar sounding words. It's more accurate than soundex(3) as it knows the basic rules of English pronunciation. The metaphone generated keys are of variable length. Metaphone was developed by Lawrence Philips <lphilips at verity dot com>. It is described in ["Practical Algorithms for Programmers", Bin- stock & Rex, Addison Wesley, 1995]. PARAMETERS
o $str - The input string. o $phonemes - This parameter restricts the returned metaphone key to $phonemes characters in length. The default value of 0 means no restric- tion. RETURN VALUES
Returns the metaphone key as a string, or FALSE on failure. EXAMPLES
Example #1 metaphone(3) basic example <?php var_dump(metaphone('programming')); var_dump(metaphone('programmer')); ?> The above example will output something similar to: string(7) "PRKRMNK" string(6) "PRKRMR" Example #2 Using the $phonemes parameter <?php var_dump(metaphone('programming', 5)); var_dump(metaphone('programmer', 5)); ?> The above example will output something similar to: string(5) "PRKRM" string(5) "PRKRM" PHP Documentation Group METAPHONE(3)

Check Out this Related Man Page

htdig(1)						      General Commands Manual							  htdig(1)

NAME
htfuzzy - fuzzy command-line search utility for the ht://Dig search engine SYNOPSIS
htfuzzy [-c configfile] [-v] algorithm [options] DESCRIPTION
Description to follow here OPTIONS
-c configfile Use the specified configfile instead of the default. -v Verbose mode , -vvv etc ). Specifying more than two v's is probably only useful for debugging purposes. Supported Algorithms Different algoritms are supported for searching: soundex Creates a slightly modified soundex key database. Differences with the standard soundex algorithm are: Keys are 6 digits and the first letter is also encoded. metaphone Creates a metaphone key database. This algorithm is more specific to English, but will get fewer "weird" matches than the soundex algorithm. accents (No description of the algorithm at the moment) endings Creates two databases which can be used to match common word endings. The creation of these databases requires a list of affix rules and a dictionary which uses those affix rules. The format of the affix rules and dictionary files are the ones used by the ispell program. Included with the distribution are the affix rules for English and a fairly small English dictionary. Other languages can be supported by getting the appropriate affix rules and dictionaries. These are available for many languages; check the ispell distribu- tion for more details. synonyms Creates a database of synonyms for words. It reads a text database of synonyms and creates a database that htsearch can then use. Each line of the text database consists of words where the first word will have the other words on that line as synonyms. Notes on searching Please consult specialised literature to find out how the different algorithms work or simply try another search stragegy you do not get the intended search results. FILES
/etc/htdig/htdig.conf The default configuration file. /var/lib/htdig/db/db.accents.db (Output) Maps between characters with and without accents for accents fuzzy rule /var/lib/htdig/db/db.metaphone.db (Output) Database of similar-sounding words for metaphone fuzzy rule /var/lib/htdig/db/db.soundex.db (Output) Database of similar-sounding words for soundex fuzzy rule /srv/www/htdig/common/english.0, /srv/www/htdig/common/english.aff (Input) List of words and affix rules used to generate endings /srv/www/htdig/common/root2word.db, /srv/www/htdig/common/word2rood.db (Output) Database used for endings fuzzy rule /srv/www/htdig/common/synonyms (Input) List of groups of words considered synonymous /srv/www/htdig/common/synonyms.db (Output) Database used for synonyms fuzzy rule SEE ALSO
Please refer to the HTML pages (in the htdig-doc package) /usr/share/doc/htdig-doc/html/index.html and the manual pages htdigconfig(8) , htmerge(1) , htnotify(1) , htsearch(1) and rundig(1) for a detailed description of ht://Dig and its commands. AUTHOR
This manual page was written by Robert Ribnitz. It is based on documentation of ht://Dig, and on earlier manpages provided by Christian Schwarz and Stijn de Bekker. 21 July 1997 htdig(1)
Man Page