Fix
This commit is contained in:
		@@ -71,17 +71,6 @@ async function convertEnglishWordToKatakana(word: string): Promise<string> {
 | 
			
		||||
    return englishToKatakanaMap[lowerWord];
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Try using wanakana for romanized pronunciation
 | 
			
		||||
  try {
 | 
			
		||||
    // Convert to a rough romanized version and then to katakana
 | 
			
		||||
    const katakana = toKatakana(word.toLowerCase());
 | 
			
		||||
    if (katakana && katakana !== word.toLowerCase()) {
 | 
			
		||||
      return katakana;
 | 
			
		||||
    }
 | 
			
		||||
  } catch {
 | 
			
		||||
    // Fallback if wanakana fails
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  console.warn(
 | 
			
		||||
    `No conversion found for "${word}", using phonetic approximation.`,
 | 
			
		||||
  );
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user