This is a re-implementation of migemo in NodeJS. Migemo is a tool for generating regular expressions for Japanese based on romaji input. Wapuro style input (and therefore most of Kunreishiki and Hepburn) is supported.
Unlike other migemos, the dictionary is based on Edict2, not SKK, which solves some problems but creates others.
To start using it right away, install together with searchy.
npm install -g migemo searchy
The code I have written is released under the WTFPL, do as you like. However, please note the dictionary file is based on edict2 and subject to its terms. I understand this as basically CC-BY-SA-3.0, but please see here.
There are many other implementations of migemo. Besides the original Ruby version you may also be interested in this browser-friendly JS version.
For reference here are the other implementations I'm aware of:
- todesking js version
- Old River js version
- c/migemo
- XUL/Migemo for Firefox & Thunderbird
- Migemo for Chrome