My Friend Can't Explain Loglan Grammar Fast Enough — So I Built Him an AI That Speaks a 1955 Artificial Language
Description and use
Alex, a Loglan mentor, spent 20–30 minutes answering grammar questions using large databases. A locally run, open‑weights LLM assistant built on a two‑tier RAG system now answers in milliseconds, delivers accurate, citation‑backed explanations, and eliminates hallucinations.
Problem
Alex, a Loglan mentor, spends 20–30 minutes answering grammar questions that require searching a 10,000‑word SQLite database and cross‑referencing textbooks, and generic LLMs hallucinate words, borrow from Lojban, and mis‑assign argument slots.
Outcome
The assistant reduces answer time from 20–30 minutes to milliseconds, provides accurate, citation‑backed explanations, and achieves near‑zero hallucination rates by grounding all context in the LOD dictionary.
Workflow
- 1. Ingest 28 canonical Loglan sources into an SQLite FTS5 index (18,766 dictionary definitions and 769 textbook chunks).
- 2. When a user queries, the retriever searches Tier 1 (LOD dictionary) and Tier 2 (grammar corpus) simultaneously.
- 3. The grounded context is fed to a local Ollama model.
- 4. The model outputs a markdown answer with slot definitions, parse tree, and citations.
- 5. The assistant is available via a terminal REPL and a Streamlit web demo.
Evidence
Each answer requires digging through a 10,000-word SQLite database, cross-referencing 1970s grammar textbooks, checking case-tag theory papers, and formulating a coherent explanation. It is mentally exhausting and takes 20–30 minutes per question.
A standard cloud model fails badly on Loglan: It hallucinates words that don't exist in the 9,988-word dictionary, borrows from Lojban, and scrambles argument slots.
Grounding with the LOD dictionary fixes this: when the retriever explicitly surfaces cinkau → puppy / infant-dog, hallucination drops to near zero.
I used to spend 15 minutes explaining how 'nu donsu' flips the donor and the gift, and another 10 minutes digging up the lesson on case tags. Now I just paste the assistant's breakdown into our community channel.
- Record date: 2026-10-04T19:40:52.248Z