Learn Japanese vocabulary efficiently through context with this minimalist tool
Yochimu (予知夢) means "prophetic dream" in Japanese. This tool helps you read Japanese texts comfortably by parsing the content, providing definitions, and showing example sentences—all with a minimalist Japanese aesthetic.
The goal is to facilitate an in-context learning approach for Japanese vocabulary, allowing you to:
- 🔍 Search for Japanese words and see their meanings
- 📝 View example sentences showing words in context
- 💾 Save selected sentences for later study
- 📤 Export vocabulary lists as TSV files for Anki flashcards
Visit https://yochimu.now.sh to try it now!
Or try instant translations by appending a search query:
https://yochimu.now.sh/?search=神様が大好き
- Japanese text tokenization for accurate parsing
- Anki integration through TSV export format
- Context-based learning through example sentences
- Responsive design for desktop and mobile
- Next.js - React framework for server-rendered applications
- React - UI component library
- CSS-in-JS - Styled with inline styles and Japanese aesthetics
- Node.js - JavaScript runtime
- Express - Web application framework
- Kuromoji - Japanese morphological analyzer for tokenization
- Jest - JavaScript testing framework
- Cheerio - Server-side HTML parsing for scraping
- Vercel - Deployment and hosting platform
- Node.js (v14 or later)
- pnpm (or npm/yarn)
-
Clone the repository:
git clone https://github.com/ernestohegi/japanese-text-parser.git cd japanese-text-parser
-
Install dependencies:
pnpm install
-
Start the development server:
pnpm dev
-
Open http://localhost:3000 in your browser
Parse Japanese text directly from the command line:
cd server
TEXT="私はペンです。" node index.js
Run tests with:
pnpm test
- Build an integrated SRS (Spaced Repetition System)
- Add user accounts to save progress
- Implement more dictionaries and translation sources
- Add audio pronunciation for vocabulary
This is an ongoing project (currently v0.1.0). We're still evaluating different dictionaries and translation services for optimal accuracy and performance.
This parser relies on Kuromoji for Japanese text tokenization.
頑張ってください!
Made with ❤️ by Ernesto Hegi