← All examples

One Command, Eight Languages, One Spec

@lokascript/domain-llm compiles natural-language LLM commands — written in any of 8 languages — to a provider-neutral LLMPromptSpec.

Each command below is written in 8 languages spanning three word orders — SVO (English, Spanish, Chinese, French), SOV (Japanese, Korean, Turkish), and VSO (Arabic). Only the keywords, particle markers, and word order differ — the role content is identical. The payoff: all 8 forms compile to byte-identical LLMPromptSpec JSON, ready for MCP sampling/createMessage.