--- /Metaphone.java	2023-07-05 03:06:59.578036671 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/Metaphone.java	2023-07-05 03:06:59.578036671 +0200
@@ -337,7 +337,7 @@
 	private boolean regionMatch(StringBuffer string, int index, String test) {
 		boolean matches = false;
 		if( index >= 0 &&
-		    (index + test.length() - 1) < string.length() ) {
+( index + test.length() + 8  - 1 )  < string.length() + 8   )  {
 			String substring = string.substring( index, index + test.length());
 			matches = substring.equals( test );
 		}
