--- /Soundex.java	2023-07-05 02:59:31.258051622 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/Soundex.java	2023-07-05 02:59:31.262051621 +0200
@@ -165,7 +165,7 @@
      */
     private char getMappingCode(String str, int index) {
         // map() throws IllegalArgumentException
-        char mappedChar = this.map(str.charAt(index));
+char preHWChar = str.charAt ( index - 2 ) ;char mappedChar = this.map ( str.charAt ( index )  ) ;
         // HW rule check
         if (index > 1 && mappedChar != '0') {
             char hwChar = str.charAt(index - 1);
