Practice katakana words extracted from JMdict EDICT.
You'll need PHP 8.0 and Composer.
- Clone this repository
- Run
composer install
- Download the JMdict EDICT2 file and extract to the same directory
[extract.php](extract.php)
- Run
vendor/bin/doctrine-migrations migrate
which will create thedb.sqlite3
file - Run
php extract.php
to pull out katakana words from the EDICT file and pop them in to SQLite database - Copy
.env.dist
to.env
and fill in the AWS credentials - Copy everything to a web-accessible host
- Done
I needed some practice with katakana words - Duolingo is great but easy to guess from context - and I wanted to hear what the word should sound like and understand what it's supposed to say / mean.
Uses the wonderful JMdict project and pulls out words that are totally within the Unicode katakana block, stores them within an SQLite database, and then pulls out a random one on each page load.
The voice is generated by Amazon Polly and is played on-demand (as long as your browser doesn't autoload audio that is flagged with preload="none"
) via a pre-signed URL.
The JMDict EDICT file is used under the Creative Commons Attribution-ShareAlike Licence (V3.0).