summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcore/source/core/scala/com/rockymadden/stringmetric/phonetic/MetaphoneAlgorithm.scala4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/source/core/scala/com/rockymadden/stringmetric/phonetic/MetaphoneAlgorithm.scala b/core/source/core/scala/com/rockymadden/stringmetric/phonetic/MetaphoneAlgorithm.scala
index 6da2dbc..c0b8be2 100755
--- a/core/source/core/scala/com/rockymadden/stringmetric/phonetic/MetaphoneAlgorithm.scala
+++ b/core/source/core/scala/com/rockymadden/stringmetric/phonetic/MetaphoneAlgorithm.scala
@@ -102,9 +102,7 @@ class MetaphoneAlgorithm extends StringAlgorithm[String] {
case _ =>
(ca.head: @switch) match {
case 'a' if (ca(1) == 'e') => ca.tail
- case 'g' if (ca(1) == 'n') => ca.tail
- case 'k' if (ca(1) == 'n') => ca.tail
- case 'p' if (ca(1) == 'n') => ca.tail
+ case 'g' | 'k' | 'p' if (ca(1) == 'n') => ca.tail
case 'w' if (ca(1) == 'r') => ca.tail
case 'w' if (ca(1) == 'h') => 'w' +: ca.drop(2)
case 'x' => 's' +: ca.tail