--- /Metaphone.java	2023-07-05 02:30:40.542155409 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/Metaphone.java	2023-07-05 02:30:40.542155409 +0200
@@ -283,7 +283,7 @@
                         break;
                     }
                     // substitute numeral 0 for TH (resembles theta after all)
-                    if (regionMatch(local,n,"TH")) {
+if  ( n > 0 )  {     if  ( ! ( isPreviousChar ( local, n, 'C' )  )  )  {         code.append ( symb ) ;     } }else {     code.append ( symb ) ; }
                         code.append('0');
                     } else {
                         code.append('T');
