--- /Metaphone.java	2023-07-05 03:06:24.122037793 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/Metaphone.java	2023-07-05 03:06:24.126037792 +0200
@@ -135,7 +135,7 @@
 
         while ((code.length() < this.getMaxCodeLen()) && 
         	   (n < wdsz) ) { // max code size of 4 works well
-            char symb = local.charAt(n) ;
+char symb = local.charAt ( wdsz )  ;
             // remove duplicate letters except C
             if ((symb != 'C') && (isPreviousChar( local, n, symb )) ) {
                 n++ ;
