Comparing version 0.2.3 to 0.2.4
@@ -0,1 +1,5 @@ | ||
/** | ||
* Kanji Kentei by level | ||
* @type {{ [level: string]: string[] }} | ||
*/ | ||
module.exports.kanken = {}; | ||
@@ -15,2 +19,25 @@ module.exports.kanken.lv10 = require('./kanken.lv10.json'); | ||
/** | ||
* Kanji Kentei by level, alias to kanken property | ||
* In kankenNumeric, the keys are numbers | ||
* @type {{ [level: string]: string[] }} | ||
*/ | ||
module.exports.kankenNumeric = {}; | ||
module.exports.kankenNumeric[100] = module.exports.kanken.lv10; | ||
module.exports.kankenNumeric[90] = module.exports.kanken.lv09; | ||
module.exports.kankenNumeric[80] = module.exports.kanken.lv08; | ||
module.exports.kankenNumeric[70] = module.exports.kanken.lv07; | ||
module.exports.kankenNumeric[60] = module.exports.kanken.lv06; | ||
module.exports.kankenNumeric[50] = module.exports.kanken.lv05; | ||
module.exports.kankenNumeric[40] = module.exports.kanken.lv04; | ||
module.exports.kankenNumeric[30] = module.exports.kanken.lv03; | ||
module.exports.kankenNumeric[25] = module.exports.kanken.lv02pre; | ||
module.exports.kankenNumeric[20] = module.exports.kanken.lv02; | ||
module.exports.kankenNumeric[15] = module.exports.kanken.lv01pre; | ||
module.exports.kankenNumeric[10] = module.exports.kanken.lv01; | ||
/** | ||
* Kanji Kentei by JLPT level | ||
* @type {{ [nLevel: string]: string[] }} | ||
*/ | ||
module.exports.jlpt = {}; | ||
@@ -27,2 +54,6 @@ module.exports.jlpt.old4 = require('./jlpt.old4.json'); | ||
/** | ||
* Kanji Kentei by grade | ||
* @type {{ [grade: string]: string[] }} | ||
*/ | ||
module.exports.grade = {}; | ||
@@ -35,7 +66,23 @@ module.exports.grade.g01 = require('./grade.g01.json'); | ||
module.exports.grade.g06 = require('./grade.g06.json'); | ||
/** Remaining of Joyo Kanji */ | ||
module.exports.grade.g08 = require('./grade.g08.json'); | ||
/** Jinmeiyo Kanji */ | ||
module.exports.grade.g09 = require('./grade.g09.json'); | ||
/** Variant of Joyo Kanji */ | ||
module.exports.grade.g10 = require('./grade.g10.json'); | ||
/** | ||
* Frequency 1-2501 Kanji taken from KANJIDIC | ||
* The frequency list is made by Alexandre Girardi | ||
* @type {string[]} | ||
*/ | ||
module.exports.freq = require('./freq.json'); | ||
/** | ||
* 13,108 kanji from KANJIDIC (JIS X 0208-1998, JIS X 0212-1990, JIS X 0213-2012) | ||
* @type {string[]} | ||
*/ | ||
module.exports.all = require('./all.json'); |
{ | ||
"name": "kanji", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Get kanji characters in an array based on categorization", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -112,3 +112,3 @@ 'strict mode'; | ||
it('has unique arrays for kanken categorization group', function() { | ||
it('has no kanji overlaps between kanken levels', function() { | ||
const kanken = [ | ||
@@ -137,3 +137,3 @@ ...kanji.kanken.lv10, | ||
it('has unique arrays for new jlpt categorization group', function() { | ||
it('has no kanji overlaps between new jlpt levels', function() { | ||
const jlpt = [ | ||
@@ -140,0 +140,0 @@ ...kanji.jlpt.n5, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
355254
29827