literal-kanji

Return English words replacing kanji characters

Usage no npm install needed!

<script type="module">
  import literalKanji from 'https://cdn.skypack.dev/literal-kanji';
</script>

README

literal-kanji

A small NodeJS module to convert Japanese kanji to their literal meaning:

// Tokyo
literalKanji = require('literal-kanji');
literalKanji('東京');
> 'east capital'

Use case

I translated this SVG Tokyo subway map:

Modules used

  • jisho by Siegfried Ehret, using kanjium dataset
  • mocha for testing

License

Open source under MIT license