Tower of Babel is an intelligent Chrome extension that transforms any webpage into an immersive language learning environment. Using Chrome's revolutionary Built-in AI capabilities, it seamlessly weaves language learning into your daily web browsing, no textbooks, no separate apps, just natural learning in context.
The Legend Behind the Name
In ancient Mesopotamia, humanity united to build a tower reaching the heavens: the Tower of Babel. According to legend, this ambition led to the confusion of languages, scattering people across the earth, unable to understand one another. Our Tower of Babel seeks to reverse this ancient curse. Where the original tower divided humanity through linguistic confusion, our extension reunites us—transforming that same diversity of language from a barrier into a bridge, one webpage at a time.
- Intelligent Word Selection: AI-powered vocabulary selection based on your skill level using Chrome's Prompt API (Gemini Nano)
- Seamless Page Translation: Automatic translation of selected words while preserving page layout using Chrome's Translation API
- Interactive Word Cards: Hover over translated words to see definitions, AI-generated contextual examples, and hear native pronunciation
- Context Menu Translation: Right-click any text for instant translation or simplified translation using Chrome's Rewriter API
- Built-in Quiz System: Test your knowledge with AI-generated multiple-choice questions and pronunciation practice
- Image Translation: Multimodal AI identifies and translates text in images
- Pronunciation Validation: Record yourself speaking and get AI-powered feedback on your pronunciation
- Multi-Language Support: Currently supports French (🇫🇷) and Spanish (🇪🇸)
- 100% Offline & Private: All AI processing happens locally in your browser—no data sent to servers
Traditional language learning apps disconnect learning from real-world content. Tower of Babel bridges this gap by turning every article, blog post, and website you visit into a personalized language lesson. Learn vocabulary in meaningful context, not isolated flashcards.
What makes it unique:
- First Chrome extension to integrate all 5 Chrome Built-in AI APIs
- Context-aware learning that adapts to what you're reading
- Progressive loading handles pages of any size without slowdown
- Works on any website—news, social media, documentation, shopping sites
Before installing Tower of Babel, ensure your system meets the following requirements:
- Install Chrome Dev channel (or Canary channel)
- Version must be ≥ 131.0.6778.0
- Download Chrome Dev
- Minimum 22 GB of free storage space for AI models
- Note: If available storage falls below 10 GB after download, models will be automatically deleted
- For macOS users: Use Disk Utility to check accurate free disk space
- Currently supports:
- English → French (fr-FR)
- English → Spanish (es-ES)
- Both language models are downloaded during onboarding
- Review and acknowledge Google's Generative AI Prohibited Uses Policy
- Open Chrome and navigate to
chrome://flags/#optimization-guide-on-device-model - Select "Enabled BypassPerfRequirement"
- This bypasses performance checks that might prevent Gemini Nano download
- Navigate to
chrome://flags/#prompt-api-for-gemini-nano - Select "Enabled"
- Navigate to
chrome://flags/#translation-api - Select "Enabled"
- Navigate to
chrome://flags/#rewriter-api-for-gemini-nano - Select "Enabled"
- Navigate to
chrome://flags/#prompt-api-for-gemini-nano-multimodal-input - Select "Enabled"
- Click "Relaunch" to apply all changes
- Open Chrome DevTools (F12 or Cmd+Option+I on Mac)
- Run the following in the Console to check Prompt API:
await LanguageModel.availability();Expected output: "downloadable" or "available"
Follow the guide here if needed: https://developer.chrome.com/docs/ai/get-started
- Clone the repository:
git clone https://github.com/Keshraf/tower-of-babel.git
cd tower-of-babel- Install dependencies:
npm install- Build the extension:
npm run build- Open Chrome Dev/Canary
- Navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked"
- Select the
distdirectory inside the clonedtower-of-babelfolder - The Tower of Babel icon should now appear in your Chrome toolbar
- Click the Tower of Babel icon in your toolbar
- Follow the onboarding flow:
- Choose your target language (French or Spanish)
- Wait for language models to download (this may take a few minutes)
- Once complete, you're ready to start learning!
- Navigate to any webpage in English
- Click the Tower of Babel icon
- Watch as words are intelligently translated based on your skill level
- Hover over translated words to see:
- Full translation
- AI-generated example sentences in context
- Pronunciation (click the speaker icon)
- Word statistics
- Select any text on a webpage
- Right-click to open the context menu
- Choose:
- "Translate Selection" - Direct translation
- "Simplify & Translate" - First simplifies complex text, then translates
- Click the Tower of Babel icon to open the popup panel
- Click on Practice Quiz
- Or, when hovering over individual you can click Practice Quiz
In the popup panel settings:
- Skill Level: Adjust difficulty (Beginner/Intermediate/Advanced)
- Learning Density: Control how many words are translated (Few/Moderate/Many)
- Target Language: Switch between French and Spanish
- Auto-translate: Toggle automatic translation on page load
Tower of Babel doesn't just translate everything—it uses AI to select words that:
- Match your skill level
- Have high learning value
- Are contextually important
- Challenge you without overwhelming
- Instantly translates visible content
- Lazily processes off-screen content as you scroll
- Handles pages of any size without slowdown
- Automatically identifies images with text
- Uses multimodal AI to extract and translate content
- Supports visual learners
- Record yourself speaking words
- AI transcribes and compares to the target word
- Get instant feedback on accuracy
- 100% offline processing using Chrome's Built-in AI
- No data sent to external servers - all AI runs locally
- No tracking or analytics - your learning is completely private
- No account required - everything stored locally in Chrome
- Open source - audit the code yourself
- Node.js 18+
- npm or yarn
npm run devThis starts the development server with hot module replacement.
npm run buildThe built extension will be in the dist directory.
- React 19 with TypeScript
- Tailwind CSS 4 for styling
- Vite with CRXJS plugin for extension development
- Radix UI for accessible components
- Chrome Built-in AI APIs: Prompt, Translation, Rewriter, Multimodal (Image + Audio)
Problem: Models show as "not available"
Solution:
- Verify you have >22 GB free disk space
- Check Chrome version is ≥ 131.0.6778.0
- Confirm all flags are set to "Enabled"
- Relaunch Chrome completely (quit and reopen)
- Wait a few minutes—models download in the background
Problem: Words aren't being translated
Solution 1:
- Open the side panel and check if onboarding is complete
- Verify the page language is English (extension only translates from English)
- Check that Translation API is enabled:
chrome://flags/#translation-api - Try refreshing the page
Solution 2:
- Highlight a bunch of words on a page
- Right click to open context menu
- Go to
Tower of Babeland click on Translate - Refresh Page, should work as expected.
Problem: Extension doesn't appear after loading unpacked
Solution:
- Ensure you selected the
distdirectory, not the root directory - Check the Extensions page for error messages
- Try rebuilding:
npm run build - Verify all dependencies installed:
npm install
Problem: Can't record pronunciation
Solution:
- Grant microphone permissions when prompted
- Check Chrome has microphone access in system settings
- Verify multimodal flag is enabled:
chrome://flags/#prompt-api-for-gemini-multimodal
Problem: Page is slow after translation
Solution:
- Lower learning density in settings (fewer words = better performance)
- Disable auto-translate and manually trigger translation
- Close other Chrome tabs to free up memory
- Try a less complex webpage first
- More language pairs (German, Italian, Portuguese, Japanese, Chinese)
- Spaced repetition system for long-term retention
- Grammar explanations using AI
- Export vocabulary lists
- Learning streaks and gamification
- Teacher dashboard for classroom use
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with Chrome's Built-in AI platform
- Inspired by immersion learning principles
- Special thanks to the Chrome team for making on-device AI accessible
For questions, issues, or feedback:
- Open an issue on GitHub
- Check existing issues for solutions
- Review the Troubleshooting section above
Made with ❤️ for language learners everywhere
Learn naturally. Learn contextually. Learn while you browse.