henkan 2.0.4 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +789 -736
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.mjs +781 -730
- package/dist/index.mjs.map +3 -3
- package/dist/types/constants.d.ts.map +1 -1
- package/dist/types/types.d.ts +93 -19
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils.d.ts +55 -28
- package/dist/types/utils.d.ts.map +1 -1
- package/docs/api/README.md +12 -1
- package/docs/api/functions/capitalizeString.md +1 -1
- package/docs/api/functions/convertJMdict.md +1 -1
- package/docs/api/functions/convertJawiktionaryAsync.md +1 -1
- package/docs/api/functions/convertJawiktionarySync.md +1 -1
- package/docs/api/functions/convertKanjiDic.md +1 -1
- package/docs/api/functions/convertKradFile.md +1 -1
- package/docs/api/functions/convertRadkFile.md +1 -1
- package/docs/api/functions/convertTanakaCorpus.md +1 -1
- package/docs/api/functions/convertTanakaCorpusWithFurigana.md +1 -1
- package/docs/api/functions/createEntryMaps.md +59 -0
- package/docs/api/functions/generateAnkiNote.md +1 -1
- package/docs/api/functions/generateAnkiNotesFile.md +1 -1
- package/docs/api/functions/getKanji.md +10 -10
- package/docs/api/functions/getKanjiExtended.md +8 -8
- package/docs/api/functions/getValidForms.md +39 -0
- package/docs/api/functions/getWord.md +11 -11
- package/docs/api/functions/getWordDefinitions.md +1 -1
- package/docs/api/functions/getWordDefinitionsWithFurigana.md +1 -1
- package/docs/api/functions/isObjectArray.md +27 -0
- package/docs/api/functions/isStringArray.md +2 -2
- package/docs/api/functions/isValidArrayWithFirstElement.md +2 -2
- package/docs/api/functions/shuffleArray.md +1 -1
- package/docs/api/interfaces/DefaultNoteInfo.md +4 -4
- package/docs/api/interfaces/Definition.md +4 -4
- package/docs/api/interfaces/DictKanji.md +5 -5
- package/docs/api/interfaces/DictKanjiForm.md +4 -4
- package/docs/api/interfaces/DictKanjiMisc.md +5 -5
- package/docs/api/interfaces/DictKanjiReading.md +3 -3
- package/docs/api/interfaces/DictKanjiReadingMeaning.md +3 -3
- package/docs/api/interfaces/DictKanjiReadingMeaningGroup.md +3 -3
- package/docs/api/interfaces/DictKanjiWithRadicals.md +3 -3
- package/docs/api/interfaces/DictMeaning.md +15 -15
- package/docs/api/interfaces/DictRadical.md +4 -4
- package/docs/api/interfaces/DictReading.md +5 -5
- package/docs/api/interfaces/DictWord.md +9 -9
- package/docs/api/interfaces/EntryMaps.md +83 -0
- package/docs/api/interfaces/ExamplePart.md +8 -8
- package/docs/api/interfaces/GlossSpecificNumber.md +4 -4
- package/docs/api/interfaces/Grammar.md +15 -15
- package/docs/api/interfaces/GrammarMeaning.md +3 -3
- package/docs/api/interfaces/JaWiktionaryEntry.md +8 -20
- package/docs/api/interfaces/Kana.md +11 -11
- package/docs/api/interfaces/Kanji.md +24 -24
- package/docs/api/interfaces/KanjiComponent.md +3 -3
- package/docs/api/interfaces/KanjiForm.md +4 -4
- package/docs/api/interfaces/NoteAndTag.md +3 -3
- package/docs/api/interfaces/NoteHeaderKeys.md +7 -7
- package/docs/api/interfaces/Phrase.md +5 -5
- package/docs/api/interfaces/Radical.md +16 -16
- package/docs/api/interfaces/Reading.md +5 -5
- package/docs/api/interfaces/ReadingsKanjiFormsPair.md +31 -0
- package/docs/api/interfaces/ResultEntry.md +7 -7
- package/docs/api/interfaces/TanakaExample.md +7 -7
- package/docs/api/interfaces/Translation.md +3 -3
- package/docs/api/interfaces/UsefulRegExps.md +8 -8
- package/docs/api/interfaces/Word.md +15 -15
- package/docs/api/interfaces/WordDefinitionPair.md +4 -4
- package/docs/api/type-aliases/Dict.md +1 -1
- package/docs/api/type-aliases/DictTranslation.md +1 -1
- package/docs/api/type-aliases/EntryType.md +1 -1
- package/docs/api/type-aliases/KanjiEntryMap.md +13 -0
- package/docs/api/type-aliases/KanjiSVGMap.md +13 -0
- package/docs/api/type-aliases/KanjiWordsMap.md +13 -0
- package/docs/api/type-aliases/Result.md +1 -1
- package/docs/api/type-aliases/StringNumber.md +13 -0
- package/docs/api/type-aliases/WordDefinitionsMap.md +13 -0
- package/docs/api/type-aliases/WordExamplesMap.md +13 -0
- package/docs/api/type-aliases/WordIDEntryMap.md +13 -0
- package/package.json +4 -4
- package/docs/api/functions/isValidArray.md +0 -27
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **generateAnkiNotesFile**(`list`, `defaultNoteInfo?`): `string`
|
|
10
10
|
|
|
11
|
-
Defined in: [utils.ts:
|
|
11
|
+
Defined in: [utils.ts:2751](https://github.com/Ronokof/Henkan/blob/main/src/utils.ts#L2751)
|
|
12
12
|
|
|
13
13
|
Generates an Anki notes file with each entry’s info organized into fields, either in HTML or plain text.
|
|
14
14
|
|
|
@@ -8,35 +8,35 @@
|
|
|
8
8
|
|
|
9
9
|
> **getKanji**(`kanji`, `dict?`, `jmDict?`, `svgList?`, `noteTypeName?`, `deckPath?`): [`Kanji`](../interfaces/Kanji.md) \| `undefined`
|
|
10
10
|
|
|
11
|
-
Defined in: [utils.ts:
|
|
11
|
+
Defined in: [utils.ts:2096](https://github.com/Ronokof/Henkan/blob/main/src/utils.ts#L2096)
|
|
12
12
|
|
|
13
|
-
Transforms a converted `KANJIDIC` entry into a more readable format
|
|
13
|
+
Transforms a converted `KANJIDIC` entry into a more readable format, by providing either the kanji or the [DictKanji](../interfaces/DictKanji.md) object directly.
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
17
17
|
### kanji
|
|
18
18
|
|
|
19
|
-
The kanji character or a [DictKanji](../interfaces/DictKanji.md) object
|
|
19
|
+
The kanji character (requires [dict](#getkanji)) or a [DictKanji](../interfaces/DictKanji.md) object
|
|
20
20
|
|
|
21
21
|
`string` | [`DictKanji`](../interfaces/DictKanji.md)
|
|
22
22
|
|
|
23
23
|
### dict?
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
An array of converted `KANJIDIC` entries or a [KanjiEntryMap](../type-aliases/KanjiEntryMap.md) (not needed if [kanji](#getkanji) is a [DictKanji](../interfaces/DictKanji.md) object)
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
[`KanjiEntryMap`](../type-aliases/KanjiEntryMap.md) | readonly [`DictKanji`](../interfaces/DictKanji.md)[]
|
|
28
28
|
|
|
29
29
|
### jmDict?
|
|
30
30
|
|
|
31
|
-
An array
|
|
31
|
+
An array of converted `JMdict` entries or a [KanjiWordsMap](../type-aliases/KanjiWordsMap.md)
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
[`KanjiWordsMap`](../type-aliases/KanjiWordsMap.md) | readonly [`DictWord`](../interfaces/DictWord.md)[]
|
|
34
34
|
|
|
35
35
|
### svgList?
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
An array of SVG file names or a [KanjiSVGMap](../type-aliases/KanjiSVGMap.md)
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
[`KanjiSVGMap`](../type-aliases/KanjiSVGMap.md) | readonly `string`[]
|
|
40
40
|
|
|
41
41
|
### noteTypeName?
|
|
42
42
|
|
|
@@ -54,4 +54,4 @@ The full Anki deck path
|
|
|
54
54
|
|
|
55
55
|
[`Kanji`](../interfaces/Kanji.md) \| `undefined`
|
|
56
56
|
|
|
57
|
-
The transformed [
|
|
57
|
+
The transformed [DictKanji](../interfaces/DictKanji.md) object or `undefined` if entry is not found
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **getKanjiExtended**(`info`, `kanji`, `dict?`, `useWords?`, `jmDict?`, `svgList?`, `noteTypeName?`, `deckPath?`, `sourceURL?`): [`Kanji`](../interfaces/Kanji.md) \| `undefined`
|
|
10
10
|
|
|
11
|
-
Defined in: [utils.ts:
|
|
11
|
+
Defined in: [utils.ts:2290](https://github.com/Ronokof/Henkan/blob/main/src/utils.ts#L2290)
|
|
12
12
|
|
|
13
13
|
Same as [getKanji](getKanji.md), but with possible extra info.
|
|
14
14
|
|
|
@@ -28,9 +28,9 @@ The kanji character or a [DictKanji](../interfaces/DictKanji.md) object
|
|
|
28
28
|
|
|
29
29
|
### dict?
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
An array of converted KANJIDIC entries or a [KanjiEntryMap](../type-aliases/KanjiEntryMap.md) *(not needed if [kanji](#getkanjiextended) is a [DictKanji](../interfaces/DictKanji.md) object)*
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
[`KanjiEntryMap`](../type-aliases/KanjiEntryMap.md) | readonly [`DictKanji`](../interfaces/DictKanji.md)[]
|
|
34
34
|
|
|
35
35
|
### useWords?
|
|
36
36
|
|
|
@@ -40,15 +40,15 @@ Whether or not to use the words provided in the `info` object (if present) inste
|
|
|
40
40
|
|
|
41
41
|
### jmDict?
|
|
42
42
|
|
|
43
|
-
An array
|
|
43
|
+
An array of converted `JMdict` entries or a [KanjiWordsMap](../type-aliases/KanjiWordsMap.md)
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
[`KanjiWordsMap`](../type-aliases/KanjiWordsMap.md) | readonly [`DictWord`](../interfaces/DictWord.md)[]
|
|
46
46
|
|
|
47
47
|
### svgList?
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
An array of SVG file names or a [KanjiSVGMap](../type-aliases/KanjiSVGMap.md)
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
[`KanjiSVGMap`](../type-aliases/KanjiSVGMap.md) | readonly `string`[]
|
|
52
52
|
|
|
53
53
|
### noteTypeName?
|
|
54
54
|
|
|
@@ -72,4 +72,4 @@ A link leading to the source of [info](#getkanjiextended)
|
|
|
72
72
|
|
|
73
73
|
[`Kanji`](../interfaces/Kanji.md) \| `undefined`
|
|
74
74
|
|
|
75
|
-
The transformed [
|
|
75
|
+
The transformed [DictKanji](../interfaces/DictKanji.md) object
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
[**henkan**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[henkan](../README.md) / getValidForms
|
|
6
|
+
|
|
7
|
+
# Function: getValidForms()
|
|
8
|
+
|
|
9
|
+
> **getValidForms**(`readings`, `kanjiForms?`, `wordIsCommon?`): [`ReadingsKanjiFormsPair`](../interfaces/ReadingsKanjiFormsPair.md)
|
|
10
|
+
|
|
11
|
+
Defined in: [utils.ts:126](https://github.com/Ronokof/Henkan/blob/main/src/utils.ts#L126)
|
|
12
|
+
|
|
13
|
+
Filters out all the old/rare or (if [wordIsCommon](#getvalidforms) is `true`) uncommon readings and kanji forms of a JMdict entry.
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
### readings
|
|
18
|
+
|
|
19
|
+
readonly [`DictReading`](../interfaces/DictReading.md)[]
|
|
20
|
+
|
|
21
|
+
The word's readings
|
|
22
|
+
|
|
23
|
+
### kanjiForms?
|
|
24
|
+
|
|
25
|
+
readonly [`DictKanjiForm`](../interfaces/DictKanjiForm.md)[]
|
|
26
|
+
|
|
27
|
+
The word's kanji forms
|
|
28
|
+
|
|
29
|
+
### wordIsCommon?
|
|
30
|
+
|
|
31
|
+
`true`
|
|
32
|
+
|
|
33
|
+
Whether or not the word is common
|
|
34
|
+
|
|
35
|
+
## Returns
|
|
36
|
+
|
|
37
|
+
[`ReadingsKanjiFormsPair`](../interfaces/ReadingsKanjiFormsPair.md)
|
|
38
|
+
|
|
39
|
+
An object containing the valid readings and kanji forms of the word
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **getWord**(`word`, `dict?`, `kanjiDic?`, `examples?`, `definitions?`, `noteTypeName?`, `deckPath?`): [`Word`](../interfaces/Word.md) \| `undefined`
|
|
10
10
|
|
|
11
|
-
Defined in: [utils.ts:
|
|
11
|
+
Defined in: [utils.ts:1716](https://github.com/Ronokof/Henkan/blob/main/src/utils.ts#L1716)
|
|
12
12
|
|
|
13
13
|
Transforms a converted `JMdict` entry into a more readable format, by providing either its JMdict entry ID or the [DictWord](../interfaces/DictWord.md) object directly.
|
|
14
14
|
|
|
@@ -16,33 +16,33 @@ Transforms a converted `JMdict` entry into a more readable format, by providing
|
|
|
16
16
|
|
|
17
17
|
### word
|
|
18
18
|
|
|
19
|
-
The ID of the `JMdict` entry or a [DictWord](../interfaces/DictWord.md) object
|
|
19
|
+
The ID of the `JMdict` entry (requires [dict](#getword)) or a [DictWord](../interfaces/DictWord.md) object
|
|
20
20
|
|
|
21
21
|
`` `${number}` `` | [`DictWord`](../interfaces/DictWord.md)
|
|
22
22
|
|
|
23
23
|
### dict?
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
An array converted `JMdict` entries or a [WordIDEntryMap](../type-aliases/WordIDEntryMap.md) *(not needed if [word](#getword) is a [DictWord](../interfaces/DictWord.md) object)*
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
[`WordIDEntryMap`](../type-aliases/WordIDEntryMap.md) | readonly [`DictWord`](../interfaces/DictWord.md)[]
|
|
28
28
|
|
|
29
29
|
### kanjiDic?
|
|
30
30
|
|
|
31
|
-
An array
|
|
31
|
+
An array of converted `KANJIDIC` entries or a [KanjiEntryMap](../type-aliases/KanjiEntryMap.md)
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
[`KanjiEntryMap`](../type-aliases/KanjiEntryMap.md) | readonly [`DictKanji`](../interfaces/DictKanji.md)[]
|
|
34
34
|
|
|
35
35
|
### examples?
|
|
36
36
|
|
|
37
|
-
An array of converted `Tanaka Corpus` examples
|
|
37
|
+
An array of converted `Tanaka Corpus` examples or a [WordExamplesMap](../type-aliases/WordExamplesMap.md)
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
[`WordExamplesMap`](../type-aliases/WordExamplesMap.md) | readonly [`TanakaExample`](../interfaces/TanakaExample.md)[]
|
|
40
40
|
|
|
41
41
|
### definitions?
|
|
42
42
|
|
|
43
|
-
An array
|
|
43
|
+
An array of `ja.wiktionary.org` word-definitions pairs or a [WordDefinitionsMap](../type-aliases/WordDefinitionsMap.md)
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
[`WordDefinitionsMap`](../type-aliases/WordDefinitionsMap.md) | readonly [`WordDefinitionPair`](../interfaces/WordDefinitionPair.md)[]
|
|
46
46
|
|
|
47
47
|
### noteTypeName?
|
|
48
48
|
|
|
@@ -60,4 +60,4 @@ The full Anki deck path
|
|
|
60
60
|
|
|
61
61
|
[`Word`](../interfaces/Word.md) \| `undefined`
|
|
62
62
|
|
|
63
|
-
The transformed [
|
|
63
|
+
The transformed [DictWord](../interfaces/DictWord.md) object or `undefined` if entry is not found
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **getWordDefinitions**(`entryList`, `jmDict`): [`WordDefinitionPair`](../interfaces/WordDefinitionPair.md)[]
|
|
10
10
|
|
|
11
|
-
Defined in: [utils.ts:
|
|
11
|
+
Defined in: [utils.ts:1040](https://github.com/Ronokof/Henkan/blob/main/src/utils.ts#L1040)
|
|
12
12
|
|
|
13
13
|
Pairs Japanese definitions with JMdict word entries
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **getWordDefinitionsWithFurigana**(`entryList`, `jmDict`): `Promise`\<[`WordDefinitionPair`](../interfaces/WordDefinitionPair.md)[]\>
|
|
10
10
|
|
|
11
|
-
Defined in: [utils.ts:
|
|
11
|
+
Defined in: [utils.ts:1638](https://github.com/Ronokof/Henkan/blob/main/src/utils.ts#L1638)
|
|
12
12
|
|
|
13
13
|
Pairs Japanese definitions with JMdict word entries (with furigana)
|
|
14
14
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[**henkan**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[henkan](../README.md) / isObjectArray
|
|
6
|
+
|
|
7
|
+
# Function: isObjectArray()
|
|
8
|
+
|
|
9
|
+
> **isObjectArray**(`arg`): `arg is any[]`
|
|
10
|
+
|
|
11
|
+
Defined in: [utils.ts:94](https://github.com/Ronokof/Henkan/blob/main/src/utils.ts#L94)
|
|
12
|
+
|
|
13
|
+
Checks if the argument is an array of object.
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
### arg
|
|
18
|
+
|
|
19
|
+
`unknown`
|
|
20
|
+
|
|
21
|
+
The argument
|
|
22
|
+
|
|
23
|
+
## Returns
|
|
24
|
+
|
|
25
|
+
`arg is any[]`
|
|
26
|
+
|
|
27
|
+
Whether or not [arg](#isobjectarray) is an array of objects
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **isStringArray**(`arg`): `arg is string[]`
|
|
10
10
|
|
|
11
|
-
Defined in: [utils.ts:
|
|
11
|
+
Defined in: [utils.ts:82](https://github.com/Ronokof/Henkan/blob/main/src/utils.ts#L82)
|
|
12
12
|
|
|
13
13
|
Checks if the argument is an array of strings.
|
|
14
14
|
|
|
@@ -16,7 +16,7 @@ Checks if the argument is an array of strings.
|
|
|
16
16
|
|
|
17
17
|
### arg
|
|
18
18
|
|
|
19
|
-
`
|
|
19
|
+
`unknown`
|
|
20
20
|
|
|
21
21
|
The argument
|
|
22
22
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **isValidArrayWithFirstElement**(`arg`): `arg is any[]`
|
|
10
10
|
|
|
11
|
-
Defined in: [utils.ts:
|
|
11
|
+
Defined in: [utils.ts:73](https://github.com/Ronokof/Henkan/blob/main/src/utils.ts#L73)
|
|
12
12
|
|
|
13
13
|
Checks if the argument is an array and has at least one element.
|
|
14
14
|
|
|
@@ -16,7 +16,7 @@ Checks if the argument is an array and has at least one element.
|
|
|
16
16
|
|
|
17
17
|
### arg
|
|
18
18
|
|
|
19
|
-
`
|
|
19
|
+
`unknown`
|
|
20
20
|
|
|
21
21
|
The argument
|
|
22
22
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **shuffleArray**\<`T`\>(`arr`): `T`[]
|
|
10
10
|
|
|
11
|
-
Defined in: [utils.ts:
|
|
11
|
+
Defined in: [utils.ts:106](https://github.com/Ronokof/Henkan/blob/main/src/utils.ts#L106)
|
|
12
12
|
|
|
13
13
|
Shuffles an array using the `Fisher–Yates shuffle` algorithm
|
|
14
14
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: DefaultNoteInfo
|
|
8
8
|
|
|
9
|
-
Defined in: [types.ts:
|
|
9
|
+
Defined in: [types.ts:965](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L965)
|
|
10
10
|
|
|
11
11
|
Default note ID, note type and deck name of a note
|
|
12
12
|
|
|
@@ -24,7 +24,7 @@ Setting any of the properties to:
|
|
|
24
24
|
|
|
25
25
|
> `optional` **deckPath**: `string` \| `true`
|
|
26
26
|
|
|
27
|
-
Defined in: [types.ts:
|
|
27
|
+
Defined in: [types.ts:979](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L979)
|
|
28
28
|
|
|
29
29
|
A default for [Result.deckPath](Grammar.md#deckpath)
|
|
30
30
|
|
|
@@ -34,7 +34,7 @@ A default for [Result.deckPath](Grammar.md#deckpath)
|
|
|
34
34
|
|
|
35
35
|
> `optional` **guid**: `true` \| `"main_information"`
|
|
36
36
|
|
|
37
|
-
Defined in: [types.ts:
|
|
37
|
+
Defined in: [types.ts:971](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L971)
|
|
38
38
|
|
|
39
39
|
A default for [Result.noteID](Grammar.md#noteid)
|
|
40
40
|
|
|
@@ -46,6 +46,6 @@ A default for [Result.noteID](Grammar.md#noteid)
|
|
|
46
46
|
|
|
47
47
|
> `optional` **noteType**: `string` \| `true`
|
|
48
48
|
|
|
49
|
-
Defined in: [types.ts:
|
|
49
|
+
Defined in: [types.ts:975](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L975)
|
|
50
50
|
|
|
51
51
|
A default for [Result.noteTypeName](Grammar.md#notetypename)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: Definition
|
|
8
8
|
|
|
9
|
-
Defined in: [types.ts:
|
|
9
|
+
Defined in: [types.ts:533](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L533)
|
|
10
10
|
|
|
11
11
|
A word definition
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ A word definition
|
|
|
16
16
|
|
|
17
17
|
> **definition**: `string`
|
|
18
18
|
|
|
19
|
-
Defined in: [types.ts:
|
|
19
|
+
Defined in: [types.ts:537](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L537)
|
|
20
20
|
|
|
21
21
|
The definition
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@ The definition
|
|
|
26
26
|
|
|
27
27
|
> `optional` **furigana**: `string`
|
|
28
28
|
|
|
29
|
-
Defined in: [types.ts:
|
|
29
|
+
Defined in: [types.ts:541](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L541)
|
|
30
30
|
|
|
31
31
|
The definition with furigana attached
|
|
32
32
|
|
|
@@ -36,6 +36,6 @@ The definition with furigana attached
|
|
|
36
36
|
|
|
37
37
|
> `optional` **mayNotBeAccurate**: `true`
|
|
38
38
|
|
|
39
|
-
Defined in: [types.ts:
|
|
39
|
+
Defined in: [types.ts:545](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L545)
|
|
40
40
|
|
|
41
41
|
Whether or not the definition is associated with other words
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: DictKanji
|
|
8
8
|
|
|
9
|
-
Defined in: [types.ts:
|
|
9
|
+
Defined in: [types.ts:309](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L309)
|
|
10
10
|
|
|
11
11
|
KANJIDIC2 entry (kanji)
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ Equivalent to the `character` KANJIDIC2 element *(excluding some subelements)*
|
|
|
18
18
|
|
|
19
19
|
> `optional` **isKokuji**: `true`
|
|
20
20
|
|
|
21
|
-
Defined in: [types.ts:
|
|
21
|
+
Defined in: [types.ts:325](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L325)
|
|
22
22
|
|
|
23
23
|
Whether or not the kanji is kokuji
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@ Whether or not the kanji is kokuji
|
|
|
28
28
|
|
|
29
29
|
> `readonly` **kanji**: `string`
|
|
30
30
|
|
|
31
|
-
Defined in: [types.ts:
|
|
31
|
+
Defined in: [types.ts:313](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L313)
|
|
32
32
|
|
|
33
33
|
The kanji character
|
|
34
34
|
|
|
@@ -38,7 +38,7 @@ The kanji character
|
|
|
38
38
|
|
|
39
39
|
> `optional` **misc**: [`DictKanjiMisc`](DictKanjiMisc.md)
|
|
40
40
|
|
|
41
|
-
Defined in: [types.ts:
|
|
41
|
+
Defined in: [types.ts:317](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L317)
|
|
42
42
|
|
|
43
43
|
The miscellaneous information about the kanji
|
|
44
44
|
|
|
@@ -48,6 +48,6 @@ The miscellaneous information about the kanji
|
|
|
48
48
|
|
|
49
49
|
> `optional` **readingMeaning**: [`DictKanjiReadingMeaning`](DictKanjiReadingMeaning.md)[]
|
|
50
50
|
|
|
51
|
-
Defined in: [types.ts:
|
|
51
|
+
Defined in: [types.ts:321](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L321)
|
|
52
52
|
|
|
53
53
|
The "readings-meanings" groups and nanori readings of the kanji
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: DictKanjiForm
|
|
8
8
|
|
|
9
|
-
Defined in: [types.ts:
|
|
9
|
+
Defined in: [types.ts:62](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L62)
|
|
10
10
|
|
|
11
11
|
Word kanji form information
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ Equivalent to the `k_ele` JMdict element
|
|
|
18
18
|
|
|
19
19
|
> `optional` **commonness**: `string`[]
|
|
20
20
|
|
|
21
|
-
Defined in: [types.ts:
|
|
21
|
+
Defined in: [types.ts:78](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L78)
|
|
22
22
|
|
|
23
23
|
Priority codes
|
|
24
24
|
|
|
@@ -32,7 +32,7 @@ Priority codes
|
|
|
32
32
|
|
|
33
33
|
> `readonly` **form**: `string`
|
|
34
34
|
|
|
35
|
-
Defined in: [types.ts:
|
|
35
|
+
Defined in: [types.ts:66](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L66)
|
|
36
36
|
|
|
37
37
|
The kanji form of the word
|
|
38
38
|
|
|
@@ -42,7 +42,7 @@ The kanji form of the word
|
|
|
42
42
|
|
|
43
43
|
> `optional` **notes**: `string`[]
|
|
44
44
|
|
|
45
|
-
Defined in: [types.ts:
|
|
45
|
+
Defined in: [types.ts:72](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L72)
|
|
46
46
|
|
|
47
47
|
Other information about the kanji form
|
|
48
48
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: DictKanjiMisc
|
|
8
8
|
|
|
9
|
-
Defined in: [types.ts:
|
|
9
|
+
Defined in: [types.ts:231](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L231)
|
|
10
10
|
|
|
11
11
|
Miscellaneous information about the kanji
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ Equivalent to the `misc` KANJIDIC2 element *(excluding some subelements)*
|
|
|
18
18
|
|
|
19
19
|
> `optional` **frequency**: `string`
|
|
20
20
|
|
|
21
|
-
Defined in: [types.ts:
|
|
21
|
+
Defined in: [types.ts:251](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L251)
|
|
22
22
|
|
|
23
23
|
The frequency-of-use ranking
|
|
24
24
|
|
|
@@ -30,7 +30,7 @@ A number from `1` to `2500`
|
|
|
30
30
|
|
|
31
31
|
> `optional` **grade**: `string`
|
|
32
32
|
|
|
33
|
-
Defined in: [types.ts:
|
|
33
|
+
Defined in: [types.ts:245](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L245)
|
|
34
34
|
|
|
35
35
|
The kanji grade level
|
|
36
36
|
|
|
@@ -46,7 +46,7 @@ The kanji grade level
|
|
|
46
46
|
|
|
47
47
|
> `optional` **jlpt**: [`JLPT`](../type-aliases/JLPT.md)
|
|
48
48
|
|
|
49
|
-
Defined in: [types.ts:
|
|
49
|
+
Defined in: [types.ts:255](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L255)
|
|
50
50
|
|
|
51
51
|
The [pre-2010 JLPT](https://en.wikipedia.org/wiki/Japanese-Language_Proficiency_Test#Previous_format_(1984%E2%80%932009)) level
|
|
52
52
|
|
|
@@ -56,6 +56,6 @@ The [pre-2010 JLPT](https://en.wikipedia.org/wiki/Japanese-Language_Proficiency_
|
|
|
56
56
|
|
|
57
57
|
> `optional` **strokeNumber**: `string`
|
|
58
58
|
|
|
59
|
-
Defined in: [types.ts:
|
|
59
|
+
Defined in: [types.ts:235](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L235)
|
|
60
60
|
|
|
61
61
|
The stroke count of the kanji, including the radical
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: DictKanjiReading
|
|
8
8
|
|
|
9
|
-
Defined in: [types.ts:
|
|
9
|
+
Defined in: [types.ts:261](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L261)
|
|
10
10
|
|
|
11
11
|
Kanji reading information
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ Kanji reading information
|
|
|
16
16
|
|
|
17
17
|
> `readonly` **reading**: `string`
|
|
18
18
|
|
|
19
|
-
Defined in: [types.ts:
|
|
19
|
+
Defined in: [types.ts:265](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L265)
|
|
20
20
|
|
|
21
21
|
The kanji reading (hiragana or katakana)
|
|
22
22
|
|
|
@@ -26,6 +26,6 @@ The kanji reading (hiragana or katakana)
|
|
|
26
26
|
|
|
27
27
|
> **type**: `"ja_on"` \| `"ja_kun"`
|
|
28
28
|
|
|
29
|
-
Defined in: [types.ts:
|
|
29
|
+
Defined in: [types.ts:269](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L269)
|
|
30
30
|
|
|
31
31
|
The type of reading (onyomi or kunyomi)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: DictKanjiReadingMeaning
|
|
8
8
|
|
|
9
|
-
Defined in: [types.ts:
|
|
9
|
+
Defined in: [types.ts:293](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L293)
|
|
10
10
|
|
|
11
11
|
Kanji "readings-meanings" groups and nanori readings
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ Equivalent to the `reading_meaning` KANJIDIC2 element
|
|
|
18
18
|
|
|
19
19
|
> `optional` **groups**: [`DictKanjiReadingMeaningGroup`](DictKanjiReadingMeaningGroup.md)[]
|
|
20
20
|
|
|
21
|
-
Defined in: [types.ts:
|
|
21
|
+
Defined in: [types.ts:297](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L297)
|
|
22
22
|
|
|
23
23
|
The Kanji "readings-meanings" pairs
|
|
24
24
|
|
|
@@ -28,6 +28,6 @@ The Kanji "readings-meanings" pairs
|
|
|
28
28
|
|
|
29
29
|
> `optional` **nanori**: `string`[]
|
|
30
30
|
|
|
31
|
-
Defined in: [types.ts:
|
|
31
|
+
Defined in: [types.ts:301](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L301)
|
|
32
32
|
|
|
33
33
|
The kanji nanori readings
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: DictKanjiReadingMeaningGroup
|
|
8
8
|
|
|
9
|
-
Defined in: [types.ts:
|
|
9
|
+
Defined in: [types.ts:277](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L277)
|
|
10
10
|
|
|
11
11
|
Kanji "readings-meanings" pair
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ Equivalent to the `rmgroup` KANJIDIC2 element
|
|
|
18
18
|
|
|
19
19
|
> `optional` **meanings**: `string`[]
|
|
20
20
|
|
|
21
|
-
Defined in: [types.ts:
|
|
21
|
+
Defined in: [types.ts:285](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L285)
|
|
22
22
|
|
|
23
23
|
The kanji meanings
|
|
24
24
|
|
|
@@ -28,6 +28,6 @@ The kanji meanings
|
|
|
28
28
|
|
|
29
29
|
> `optional` **readings**: [`DictKanjiReading`](DictKanjiReading.md)[]
|
|
30
30
|
|
|
31
|
-
Defined in: [types.ts:
|
|
31
|
+
Defined in: [types.ts:281](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L281)
|
|
32
32
|
|
|
33
33
|
The kanji readings
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: DictKanjiWithRadicals
|
|
8
8
|
|
|
9
|
-
Defined in: [types.ts:
|
|
9
|
+
Defined in: [types.ts:349](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L349)
|
|
10
10
|
|
|
11
11
|
KRADFILE2 entry (kanji with its radicals/components)
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ KRADFILE2 entry (kanji with its radicals/components)
|
|
|
16
16
|
|
|
17
17
|
> `readonly` **kanji**: `string`
|
|
18
18
|
|
|
19
|
-
Defined in: [types.ts:
|
|
19
|
+
Defined in: [types.ts:353](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L353)
|
|
20
20
|
|
|
21
21
|
The kanji character
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@ The kanji character
|
|
|
26
26
|
|
|
27
27
|
> **radicals**: [`DictKanji`](DictKanji.md)[]
|
|
28
28
|
|
|
29
|
-
Defined in: [types.ts:
|
|
29
|
+
Defined in: [types.ts:359](https://github.com/Ronokof/Henkan/blob/main/src/types.ts#L359)
|
|
30
30
|
|
|
31
31
|
The radicals/components that make up the kanji
|
|
32
32
|
|