summaryrefslogtreecommitdiff
path: root/app/Soundex.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Soundex.php')
-rw-r--r--app/Soundex.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/Soundex.php b/app/Soundex.php
index fa5bd336ac..9d2a0b16b5 100644
--- a/app/Soundex.php
+++ b/app/Soundex.php
@@ -1,6 +1,4 @@
<?php
-namespace Fisharebest\Webtrees;
-
/**
* webtrees: online genealogy
* Copyright (C) 2015 webtrees development team
@@ -15,12 +13,15 @@ namespace Fisharebest\Webtrees;
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+namespace Fisharebest\Webtrees;
/**
- * Class Soundex Functions for phonetic matching of strings
+ * Phonetic matching of strings.
*/
class Soundex {
/**
+ * Which algorithms are supported.
+ *
* @return string[]
*/
public static function getAlgorithms() {
@@ -679,6 +680,8 @@ class Soundex {
);
/**
+ * Calculate the Daitch-Mokotoff soundex for a word.
+ *
* @param string $name
*
* @return string[] List of possible DM codes for the word.