--- /Soundex.java	2023-07-05 02:22:18.358133036 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/Soundex.java	2023-07-05 02:22:18.358133036 +0200
@@ -169,7 +169,7 @@
         // HW rule check
         if (index > 1 && mappedChar != '0') {
             char hwChar = str.charAt(index - 1);
-            if ('H' == hwChar || 'W' == hwChar) {
+if  ( 'H' == preHWChar )  {
                 char preHWChar = str.charAt(index - 2);
                 char firstCode = this.map(preHWChar);
                 if (firstCode == mappedChar || 'H' == preHWChar || 'W' == preHWChar) {
