Types
Dictionary + tokenizer types (kotobase / fugashi), matching the server's serialized shapes.
Interfaces¶
EnrichedJapaneseWord¶
Defined in: src/shared/dict/types.ts:147
A JapaneseWord paired with its dictionary data (GET /dict/analyze,
and the focus of a breakdown).
Properties¶
| Property | Type | Defined in |
|---|---|---|
kotobase_data |
KotobaseData |
src/shared/dict/types.ts:149 |
word |
JapaneseWord |
src/shared/dict/types.ts:148 |
Example¶
Defined in: src/shared/dict/types.ts:70
A Tatoeba example sentence with its English translations.
Properties¶
| Property | Type | Defined in |
|---|---|---|
text |
string |
src/shared/dict/types.ts:71 |
translations |
string[] |
src/shared/dict/types.ts:72 |
FuriganaSegment¶
Defined in: src/shared/dict/types.ts:64
One furigana segment (JmdictFurigana). ruby is the written run and rt
the kana annotation above it; kana-only runs carry no rt and render as
plain text.
Properties¶
| Property | Type | Defined in |
|---|---|---|
rt? |
string | null |
src/shared/dict/types.ts:66 |
ruby |
string |
src/shared/dict/types.ts:65 |
JapaneseWord¶
Defined in: src/shared/dict/types.ts:135
A useful word stitched from one or more UniDic short-unit tokens
(GET /dict/tokenize). surface/reading are the pieces joined; lemma is
the dictionary-lookup form; tokens keeps the original short units.
Properties¶
| Property | Type | Defined in |
|---|---|---|
lemma |
string |
src/shared/dict/types.ts:138 |
pos |
string |
src/shared/dict/types.ts:139 |
reading |
string |
src/shared/dict/types.ts:137 |
surface |
string |
src/shared/dict/types.ts:136 |
tokens |
Token[] |
src/shared/dict/types.ts:140 |
JMEntry¶
Defined in: src/shared/dict/types.ts:27
A JMdict entry.
Properties¶
| Property | Type | Defined in |
|---|---|---|
freq_rank? |
number | null |
src/shared/dict/types.ts:29 |
is_common |
boolean |
src/shared/dict/types.ts:28 |
kana |
string[] |
src/shared/dict/types.ts:30 |
kanji |
string[] |
src/shared/dict/types.ts:31 |
senses |
WordSense[] |
src/shared/dict/types.ts:32 |
JMNEntry¶
Defined in: src/shared/dict/types.ts:36
A JMnedict (proper noun) entry.
Properties¶
| Property | Type | Defined in |
|---|---|---|
gloss |
string[] |
src/shared/dict/types.ts:40 |
kana |
string[] |
src/shared/dict/types.ts:37 |
kanji |
string[] |
src/shared/dict/types.ts:38 |
name_types |
string[] |
src/shared/dict/types.ts:39 |
KanjiAudio¶
Defined in: src/shared/dict/types.ts:85
Pronunciation clips available for a kanji (Kanji Alive). Each clip id names one recorded example word, playable via the clip endpoint.
Properties¶
| Property | Type | Defined in |
|---|---|---|
attribution? |
string | null |
src/shared/dict/types.ts:89 |
clips |
string[] |
src/shared/dict/types.ts:87 |
fmt |
string |
src/shared/dict/types.ts:88 |
kanji |
string |
src/shared/dict/types.ts:86 |
KanjiInfo¶
Defined in: src/shared/dict/types.ts:44
A kanji profile (KANJIDIC2 + KRADFILE + KanjiVG).
Properties¶
| Property | Type | Defined in |
|---|---|---|
freq? |
number | null |
src/shared/dict/types.ts:48 |
grade? |
number | null |
src/shared/dict/types.ts:46 |
has_stroke_order |
boolean |
src/shared/dict/types.ts:56 |
is_joyo |
boolean |
src/shared/dict/types.ts:50 |
jlpt? |
number | null |
src/shared/dict/types.ts:49 |
kunyomi |
string[] |
src/shared/dict/types.ts:53 |
literal |
string |
src/shared/dict/types.ts:45 |
meanings |
string[] |
src/shared/dict/types.ts:51 |
nanori |
string[] |
src/shared/dict/types.ts:54 |
onyomi |
string[] |
src/shared/dict/types.ts:52 |
radicals |
string[] |
src/shared/dict/types.ts:55 |
stroke_count? |
number | null |
src/shared/dict/types.ts:47 |
KotobaseData¶
Defined in: src/shared/dict/types.ts:93
Dictionary data for a single query (/dict/query).
Properties¶
| Property | Type | Defined in |
|---|---|---|
examples |
Example[] |
src/shared/dict/types.ts:101 |
furigana |
FuriganaSegment[] |
src/shared/dict/types.ts:98 |
jlpt |
string |
src/shared/dict/types.ts:100 |
jmentries |
JMEntry[] |
src/shared/dict/types.ts:95 |
jmnentries |
JMNEntry[] |
src/shared/dict/types.ts:96 |
kanji |
KanjiInfo[] |
src/shared/dict/types.ts:97 |
meanings |
string[] |
src/shared/dict/types.ts:99 |
query |
string |
src/shared/dict/types.ts:94 |
RadicalInfo¶
Defined in: src/shared/dict/types.ts:76
A search radical (RADKFILE).
Properties¶
| Property | Type | Defined in |
|---|---|---|
radical |
string |
src/shared/dict/types.ts:77 |
stroke_count? |
number | null |
src/shared/dict/types.ts:78 |
Token¶
Defined in: src/shared/dict/types.ts:108
A morphological short-unit token from the server tokenizer (fugashi /
UniDic). Keys match the API's serialized aliases (kana = katakana reading).
Properties¶
| Property | Type | Defined in |
|---|---|---|
cForm |
string |
src/shared/dict/types.ts:117 |
cType |
string |
src/shared/dict/types.ts:116 |
fForm |
string |
src/shared/dict/types.ts:127 |
fType |
string |
src/shared/dict/types.ts:126 |
goshu |
string |
src/shared/dict/types.ts:123 |
iForm |
string |
src/shared/dict/types.ts:125 |
iType |
string |
src/shared/dict/types.ts:124 |
kana |
string |
src/shared/dict/types.ts:111 |
lemma |
string |
src/shared/dict/types.ts:110 |
lForm |
string |
src/shared/dict/types.ts:118 |
orth |
string |
src/shared/dict/types.ts:119 |
orthBase |
string |
src/shared/dict/types.ts:121 |
pos1 |
string |
src/shared/dict/types.ts:112 |
pos2 |
string |
src/shared/dict/types.ts:113 |
pos3 |
string |
src/shared/dict/types.ts:114 |
pos4 |
string |
src/shared/dict/types.ts:115 |
pron |
string |
src/shared/dict/types.ts:120 |
pronBase |
string |
src/shared/dict/types.ts:122 |
surface |
string |
src/shared/dict/types.ts:109 |
WordSense¶
Defined in: src/shared/dict/types.ts:17
A single sense within a JMdict entry. pos/field/misc carry
human-readable labels (expanded server-side), never raw JMdict codes.
Properties¶
| Property | Type | Defined in |
|---|---|---|
antonyms |
string[] |
src/shared/dict/types.ts:22 |
field |
string[] |
src/shared/dict/types.ts:20 |
glosses |
string[] |
src/shared/dict/types.ts:18 |
misc |
string[] |
src/shared/dict/types.ts:21 |
pos |
string[] |
src/shared/dict/types.ts:19 |
xrefs |
string[] |
src/shared/dict/types.ts:23 |
Type Aliases¶
BundleMode¶
Defined in: src/shared/dict/types.ts:11
Token bundling granularity, mirroring the server BundleMode. words merges
into whole dictionary words, grammar (default) splits into learning blocks,
morphemes is one word per raw UniDic unit.