Back to Multilingual Demo

Semantic-First Parser

Native-feeling syntax in every language, not translated English

How It Works

Unlike keyword translation, the semantic parser understands the meaning of your code. Each language has idiomatic patterns that feel natural to native speakers.

🇯🇵 🇸🇦 🇪🇸
Native Input
🔤
Tokenizer
🎯
Pattern Match
💎
Semantic AST
Runtime

🔄 Bidirectional Parser Demo

Enter hyperscript in any supported language. The parser extracts semantic meaning and can render to any other language. Try typing in Japanese, Arabic, or Spanish!

Semantic Representation (Language-Neutral)

Rendered in All Languages

🔍 Explicit Mode

A universal syntax that makes semantic roles visible. Perfect for learning, debugging, and documentation. Same in all languages!

Converts To Natural Language

Semantic Roles: The explicit syntax shows the underlying meaning. patient is what's being acted on, destination is where, source is from where, event is what triggers it.

📝 Native Patterns by Language

Each language has patterns that feel natural to native speakers, not just translated keywords.

Language Word Order Toggle Pattern Natural Feel
🇺🇸 English SVO toggle .active on #button Verb first, optional target
🇯🇵 Japanese SOV #button の .active を 切り替え Object before verb, particles mark roles
🇸🇦 Arabic VSO بدّل .active على #button Verb first, RTL text
🇪🇸 Spanish SVO alternar .active en #button Similar to English structure
🇰🇷 Korean SOV .active 를 토글 Object-marker + verb at end
🇹🇷 Turkish SOV .active değiştir Agglutinative, verb at end
🇨🇳 Chinese SVO 切换 .active 在 #button Similar to English, no inflection
🇧🇷 Portuguese SVO alternar .active em #button Romance language, like Spanish
🇫🇷 French SVO basculer .active sur #button Romance language structure
🇩🇪 German SVO umschalten .active auf #button Germanic, compound-friendly
🇮🇩 Indonesian SVO alihkan .active pada #button Simple structure, no conjugation
🇵🇪 Quechua SOV .active tikray Agglutinative Andean language
🇰🇪 Swahili SVO badilisha .active kwenye #button Bantu language, noun class system
Key Insight: Japanese uses particles (を, の, に) to mark grammatical roles, so word order is flexible. Arabic is RTL but CSS selectors remain LTR "islands". The semantic parser understands these linguistic features natively.