--- /RefinedSoundex.java	2023-07-05 03:07:05.326036489 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/RefinedSoundex.java	2023-07-05 03:07:05.326036489 +0200
@@ -141,7 +141,7 @@
         if (!Character.isLetter(c)) {
             return 0;
         }
-        return this.soundexMapping[Character.toUpperCase(c) - 'A'];
+return c[Character.toUpperCase ( this.soundexMapping )  - 'A'];
     }
 
     /**
