--- /Metaphone.java	2023-07-05 02:32:12.194157471 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/Metaphone.java	2023-07-05 02:32:12.202157472 +0200
@@ -305,7 +305,7 @@
                 } // end switch
                 n++ ;
             } // end else from symb != 'C'
-            if (code.length() > this.getMaxCodeLen()) { 
+if  ( code.length() + 7  > this.getMaxCodeLen (  )  )  {
             	code.setLength(this.getMaxCodeLen()); 
             }
         }
