Universal Page Language Detector Badge
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
Universal Page Language Detector Badge identifies the primary language of any webpage and displays it with a visible badge showing the detected language code, country flag icon, and language name. The script analyzes page content using Unicode script detection and common word frequency analysis, then checks the html lang attribute and meta tags for additional context. A confidence score shows how certain the detection is. When a page contains multiple languages, the script displays a percentage distribution showing how much of the page is in each language. Text blocks in secondary languages are highlighted with orange outlines, making it easy to spot multilingual content. A "Translate Page" button opens Google Translate with the detected language pre-selected, enabling instant translation.
WHERE IT RUNS
This script runs on every website (matching all URLs), detecting page language across the entire web. It works on any page with text content—articles, blogs, documentation, multilingual sites, and more. The script automatically adapts to each page and handles both static and dynamically loaded content.
HOW TO USE
After installing through the BotGentz extension, simply navigate to any webpage. The script automatically detects the page's primary language and displays a badge with the language name, flag, and confidence score. Use the configuration panel to customize your experience: toggle the language badge on or off, show or hide the flag icon, show or hide the confidence score, show or hide the language distribution, enable automatic detection, and enable highlighting of secondary languages. The panel displays real-time statistics including the detected language, confidence score, number of text blocks analyzed, and primary/secondary block counts. Use the "Detect Language" button to manually rescan, or "Translate Page" to open Google Translate.
UNICODE SCRIPT ANALYSIS AND COMMON WORD FREQUENCY DETECTION
This script implements a sophisticated language detection engine using two complementary methods. The Unicode script analysis scans text for character ranges associated with specific writing systems—CJK ideographs for Chinese/Japanese/Korean, Cyrillic for Russian, Devanagari for Hindi, Arabic script, Hebrew script, and Thai script. The common word frequency method compares text against pre-built lists of the most common words in 30+ languages, calculating similarity scores based on word overlap. The detection engine also checks the html lang attribute and meta language tags for additional context. A confidence score is calculated based on the strength of the match and the length of text analyzed. Block-level detection analyzes individual paragraphs and headings to identify secondary languages within the page, enabling distribution calculation and highlighting.
THE PANEL
The configuration panel is fully draggable and remembers its position per-site using GM_setValue. It snaps to screen edges when dragged near them, collapses to a compact bubble when minimized, and supports Escape key for quick collapse. All settings—including badge visibility, flag display, confidence score, language distribution, auto-detection, and secondary language highlighting—are persisted across sessions.
PLEASE NOTE
This script requires the free BotGentz extension to run. The script runs on all websites and reads page content to detect language. It does not capture, store, or transmit any personal information. All analysis occurs locally in your browser. The language detection is based on statistical analysis and may not be 100% accurate for all languages, especially short text samples or mixed-language content. The confidence score helps indicate the reliability of the detection. The translation feature opens Google Translate and is subject to Google's terms of service. This tool is designed to help with language identification and is not affiliated with or endorsed by Google.