<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Zai Yi</title>
    <description>The latest articles on DEV Community by Zai Yi (@xiao-zaiyi).</description>
    <link>https://dev.to/xiao-zaiyi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3304742%2Fc83dc91d-c151-4802-913d-8f82e191972e.png</url>
      <title>DEV Community: Zai Yi</title>
      <link>https://dev.to/xiao-zaiyi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/xiao-zaiyi"/>
    <language>en</language>
    <item>
      <title>illa-helper: An Extension for Natural Language Learning on the Web</title>
      <dc:creator>Zai Yi</dc:creator>
      <pubDate>Sun, 29 Jun 2025 06:05:07 +0000</pubDate>
      <link>https://dev.to/xiao-zaiyi/illa-helper-an-extension-for-natural-language-learning-on-the-web-h3k</link>
      <guid>https://dev.to/xiao-zaiyi/illa-helper-an-extension-for-natural-language-learning-on-the-web-h3k</guid>
      <description>&lt;p&gt;Hi everyone,&lt;/p&gt;

&lt;p&gt;I'd like to share a browser extension I built called illa-helper.&lt;/p&gt;

&lt;p&gt;GitHub Repo: &lt;a href="https://github.com/xiao-zaiyi/illa-helper" rel="noopener noreferrer"&gt;https://github.com/xiao-zaiyi/illa-helper&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Project Description&lt;br&gt;
The best way to learn a language is through massive exposure to "comprehensible input," famously known as the "i+1" theory. This browser extension helps you do just that. It uses a Large Language Model (LLM) to intelligently replace words on any webpage with vocabulary from your target language, helping you build vocabulary and intuition naturally while you read.&lt;/p&gt;

&lt;p&gt;🎯 Project Highlights&lt;br&gt;
It features a complete pronunciation learning ecosystem and smart multi-language translation. This includes automatic language detection, phonetic display, AI-powered definitions, dual TTS speech synthesis, and interactive hover cards, providing a one-stop, immersive experience. All your settings, including API keys, are stored locally, so you don't have to worry about security leaks!&lt;/p&gt;

&lt;p&gt;🚀 Features&lt;br&gt;
🎯 Core Translation Engine&lt;br&gt;
Smart Language Detection: The AI automatically identifies the source language of a webpage, so you don't have to.&lt;br&gt;
Intelligent Text Processing: Uses an LLM to analyze web content and select words for translation that match your skill level.&lt;br&gt;
Precise Replacement Control: Control the replacement percentage (1%-100%) with character-level precision.&lt;br&gt;
Context-Aware: Considers the context and your proficiency level to choose the most suitable translated words.&lt;br&gt;
Multi-Language Support: Supports intelligent translation for 20+ languages (English, Japanese, Korean, French, German, Spanish, Russian, Italian, etc.), theoretically limited only by the LLM's capabilities.&lt;br&gt;
🔊 Pronunciation Learning Ecosystem ⭐&lt;br&gt;
Interactive Hover Cards: Hover over a translated word to see its phonetics, an AI-generated definition, and a read-aloud button. The card intelligently repositions to avoid going off-screen.&lt;br&gt;
Two-Layer Learning: Translated phrases show an interactive list of words. Click a single word to see its details in a nested hover card.&lt;br&gt;
Multiple TTS Service Support: Integrates Youdao TTS (high-quality) and the Web Speech API (fallback), with support for switching between British/American English accents.&lt;br&gt;
Smart Phonetic Fetching: Automatically fetches phonetic data from a Dictionary API with a 24-hour TTL cache for better performance.&lt;br&gt;
AI-Powered Definitions: Get real-time, context-aware definitions generated by an AI for a deeper understanding.&lt;br&gt;
Progressive Loading: Basic information appears instantly, while detailed content loads asynchronously to improve user experience.&lt;br&gt;
Audio Caching: In-memory TTS audio caching means the same word's audio is generated only once per session.&lt;br&gt;
🎨 Rich Visual Experience&lt;br&gt;
7 Translation Styles: Default, Subtle, Bold, Italic, Underline, Highlight, and Study Mode (blur effect).&lt;br&gt;
Study Mode: Translated words are initially blurred and become clear on hover to enhance memory retention.&lt;br&gt;
Glow Animation: A subtle glow effect for newly translated words that doesn't distract from reading.&lt;br&gt;
Responsive Design: Adapts to your system's dark/light theme with smart hover card positioning.&lt;br&gt;
⚙️ Highly Configurable&lt;br&gt;
Smart Translation Mode: Just select your target language, and the AI handles the rest.&lt;br&gt;
User Proficiency Levels: 5 levels from beginner to expert, allowing the AI to adjust vocabulary difficulty.&lt;br&gt;
Trigger Modes: Choose between automatic translation on page load or manual triggering.&lt;br&gt;
Original Text Display: Choose to show, hide, or blur the original, untranslated text.&lt;br&gt;
Toggle Features: Independently enable or disable the pronunciation hover card.&lt;br&gt;
🔌 Open API Integration&lt;br&gt;
OpenAI API Compatible: Supports any OpenAI-compatible service (e.g., ChatGPT, Claude, Llama, and other models).&lt;br&gt;
Flexible Configuration: Customize your API Key, Endpoint, Model Name, and Temperature.&lt;br&gt;
Smart Prompting: Dynamically generates optimal prompts based on the translation direction and your proficiency level.&lt;br&gt;
Error Handling: Robust API error handling and retry mechanisms.&lt;br&gt;
💻 Modern Tech Architecture&lt;br&gt;
Tech Stack: Vue 3 + TypeScript + WXT Framework&lt;br&gt;
Modular Design: High cohesion and low coupling for easy maintenance and extension.&lt;br&gt;
Cross-Browser Compatibility: Supports Chrome, Edge, and Firefox, with partial support for Safari.&lt;br&gt;
🌐 Browser Compatibility&lt;br&gt;
This extension is built with the Web Extension API and WXT.&lt;/p&gt;

&lt;p&gt;Browser Status  Notes&lt;br&gt;
Chrome  ✅ Fully Supported Recommended environment, all features available.&lt;br&gt;
Edge    ✅ Fully Supported Chromium-based, fully compatible.&lt;br&gt;
Firefox ✅ Supported   See Firefox installation guide.&lt;br&gt;
Safari  ⚠️ Partially Supported  Requires extra configuration.&lt;br&gt;
⚡ Performance Features&lt;br&gt;
Smart Caching System:&lt;br&gt;
Translations: Caches results based on content and settings to avoid redundant API calls.&lt;br&gt;
Phonetics: 24-hour TTL local cache for faster response times.&lt;br&gt;
TTS Audio: In-memory cache for speech audio.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
