Functions | |
| spanish_metaphone ($string) | |
| This is a Spanish version of the standard double metaphone tokenizer. | |
| spanish_metaphone_string_at ($string, $start, $string_length, $list) | |
| Search a string for the presence of substrings. | |
| spanish_metaphone_is_vowel ($string, $pos) | |
| See if the character at a given string position is a vowel. | |
| spanish_metaphone | ( | $ | string | ) |
This is a Spanish version of the standard double metaphone tokenizer.
Metaphone allows matching of strings phonetically, but is very language- dependent. The standard metaphone algorithm is for English, and misses a few rules for Spanish. This is a version that takes Spanish pronunciation into account when generating tokens.
| string | The string to tokenize. |
Referenced by SplitIntoMetaphone().
| spanish_metaphone_is_vowel | ( | $ | string, |
| $ | pos | ||
| ) |
See if the character at a given string position is a vowel.
| string | The string to search. |
| pos | The position of the character to test. |
Referenced by spanish_metaphone().
| spanish_metaphone_string_at | ( | $ | string, |
| $ | start, | ||
| $ | string_length, | ||
| $ | list | ||
| ) |
Search a string for the presence of substrings.
| string | The main string to search. |
| start | The position within the main string to start the search. |
| string_length | The length of the substrings to test. |
| list | An array of substrings. |
Referenced by spanish_metaphone().
1.7.4