kan

kanjidic

Kanjidic Node.JS wrapper

Showing:

Popularity

Downloads/wk

2

Maintenance

No Maintenance Data Available

Package

Dependencies

1

Size (min+gzip)

202.8KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

kanjidic-node

kanjidic is a Kanji dictionary created by Jim Breen and maintained by The Electronic Dictionary Research and Development Group.

This project is a small Node.JS wrapper around it.

Installation

npm install kanjidic

Usage

var kanjidic = require('kanjidic');

// get data on single kanji
var ame = kanjidic.lookup('雨');

// get JSON dump of the whole database
var dump = kanjidic.toJSON();

// this can be useful for further processing:
var subset = dump.filter(function(kanjiData) {
    return kanjiData.oldJlptLevel >= 3;
  })
  .map(function(kanjiData) {
    return _(kanjiData).pick('kanji', 'kunyomi', 'onyomi', 'meaning');
  });

The data is returned in the following format:

{
  "unicodeHexCode": "96e8",
  "radicalNumber": 173,
  "jouyouGrade": 1,
  "strokeCount": [ 8 ],
  "frequencyOfUse": 950,
  "oldJlptLevel": 4,
  "nelsonId": 5042,
  "haigId": [ 6518 ],
  "halpernId": 3561,
  "dictionaryCodes": [ "P4378", "K2218", "L2983", "N451", "O114", "A30",
    "S42", "F97", "H69", "T76", "J232", "B2.15", "G1858", "M429", "R3153" ],
  "heisigId": 422,
  "gakkenKanjiId": 655,
  "oNeillId": [ "759" ],
  "morohashiId": "42210",
  "morohashiVolumePage": "12.0001",
  "henshallId": 3,
  "kanjiAndKanaCode": 30,
  "skipPattern": "4-8-1",
  "theKanjiDictionaryCode": "8d0.1",
  "fourCornerCode": [ "1022.7" ],
  "chineseReadings": [ "yu3", "yu4" ],
  "koreanReadings": [ "u" ],
  "onyomi": [ "ウ" ],
  "kunyomi": [ "あめ", "あま-", "-さめ" ],
  "kanji": "雨",
  "jisHexCode": "312B",
  "meaning": [ "rain" ]
}

License

The code itself is available under MIT license, however kanjidic has its own license terms.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100