--- /Metaphone.java	2023-07-05 03:05:39.110039228 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/Metaphone.java	2023-07-05 03:05:39.110039228 +0200
@@ -148,7 +148,7 @@
                     break ; // only use vowel if leading char
                 case 'B' :
                     if ( isPreviousChar(local, n, 'M') && 
-                         isLastChar(wdsz, n) ) { // B is silent if word ends in MB
+isLastChar ( wdsz, maxCodeLen )   )  {
 						break;
                     }
                     code.append(symb);
