Learn Japanese Grammar with TypeScript: Introducing Typed Japanese

2025-03-29
Learn Japanese Grammar with TypeScript: Introducing Typed Japanese

Typed Japanese is a TypeScript type-level library that allows you to express complete Japanese sentences using the type system. It creates a domain-specific language (DSL) based on Japanese grammar rules, enabling the writing and verification of grammatically correct natural language using TypeScript's compiler. The project also explores an intermediate format for AI in language learning, potentially replacing JSON with a type-checked representation for improved accuracy. It supports various verb and adjective conjugations, phrase and sentence construction, aiming to create a type system for learning and verifying Japanese grammar. While still in early stages and relying on LLM-generated rules, it offers a unique approach to language learning and grammar verification.