Skip to the content

Jisho documentation

Jisho API: every export

Every export of every entry point, each with its own page. This page keeps the addresses the old one-page reference had.

@johnmorrisdotca/jisho/deinflect

deinflectfunction

The dictionary forms a written word could be conjugated from, with the path from each to the word: the endings are taken off one at a time, outermost first, as a learner does, so 食べなかった is the past of 食べない, which is the negative of 食べる.

Deinflectiontype

One way a written word could be a conjugated dictionary word.

DeinflectKindtype

The kind of word a dictionary form must be, as the letters of a Word's kinds: g godan, i ichidan, a i-adjective, n na-adjective, s suru, k kuru.

@johnmorrisdotca/jisho/entries

Entrytype

The whole entry of a word, as loadEntry gives it.

EntryFormtype

The marks of a written form of an entry, such as ateji or rK (a rarely used form).

EntryGlosstype

A gloss, and what kind of gloss it is when JMdict says: lit a literal rendering, expl an explanation, fig a figurative one, tm a trademark.

EntryManifesttype

Where the pieces of the whole entries are: the first number of each, and how to fetch it.

EntryReadingtype

A reading of an entry, with its marks and the written forms it is limited to.

EntrySensetype

A sense of a whole entry: everything JMdict says of it.

loadEntryfunction

The whole entry of a word, or null when JMdict has no entry by that number.

LoanSourcetype

The word a loanword comes from, in the language it comes from.

readEntryfunction

An entry out of the line it is stored as.

Referencetype

A cross-reference in its parts, from referenceOf.

referenceOffunction

A cross-reference of a sense in its parts: JMdict writes one as the word, the reading and the number of the sense, apart by "・", each of them optional (神, 神・かみ, 天神・6).

@johnmorrisdotca/jisho/examples

Exampletype

An example sentence of a word.

exampleCreditfunction

The credit an example carries, as a line to show with it: the Tatoeba sentence, the authors of the Japanese and of the English, and the licence.

ExampleCredittype

Who a Tatoeba sentence is by: its number on tatoeba.org, and the authors of the Japanese sentence and of its English translation, where known.

furiganaOfExamplefunction

A sentence stored with its furigana marked |kanji《かな》 as pieces: the text and the kana over the kanji.

FuriganaParttype

One piece of a written word: its text, and, for a piece of kanji, the kana that read it.

loadExamplesfunction

The example sentences of a word, each with the number of the sense of the word it shows (Entry.senses[].number), its furigana, its English, the JLPT level of its kanji, the word as the sentence has it, and its credit.

readExamplesfunction

The examples of an entry as stored: its number in base 36, then each example, apart by tabs.

@johnmorrisdotca/jisho/grades

GRADESconstant

The school grades of 2999 kanji, as a string of kanji a grade.

@johnmorrisdotca/jisho/jlpt

JLPTconstant

2211 kanji by JLPT level, each level a string of kanji in the order of Waller's list.

@johnmorrisdotca/jisho/kanji

KANJIconstant

2999 kanji: every one with a school grade in KANJIDIC2, which holds every one on the JLPT lists.

@johnmorrisdotca/jisho/look-alike

LOOK_ALIKEconstant

10093 pairs of kanji that look alike, each with scores out of 100: by how few stroke edits separate them, and by the parts they share (0 where the measure did not rank the pair among either kanji's ten nearest).

@johnmorrisdotca/jisho/strokes

DrawingMatchtype

What findByDrawing gives for a kanji: the kanji, and how far its strokes are from the drawn ones (0 is the same, and about 0.1 a careful hand).

findByDrawingfunction

The kanji whose strokes are nearest to what was drawn, nearest first.

loadAllStrokesfunction

The strokes of every kanji the table has, about 1.1 MB gzipped in 57 pieces, as a search by drawing needs them.

loadStrokesfunction

The strokes of the kanji in a text, fetched: one piece of about 20 kB gzipped for each place they are in.

PackedStrokestype

The table of the strokes as the data file holds it: where it was made from, the release, and for each kanji its paths, apart by "|".

pathPointsfunction

Points along a path: its curves cut into steps straight pieces each.

Pointtype

A point of a drawing or of a stroke: x then y, in the units of whoever drew it.

STROKE_BOXconstant

The side of the square KanjiVG draws in.

strokeOrderSvgfunction

The strokes as an SVG, text a page can put in an element or a server can send: each stroke is a path, and with animate each is written in its turn with CSS that the SVG carries, so that it needs no script and works where an <img> does not.

strokesOffunction

The strokes of a kanji in the order they are written, each as an SVG path.

@johnmorrisdotca/jisho/words

allWordsfunction

Every word that has been loaded, once each, the commonest first for the common table.

commonestFirstfunction

The words with the commonest first, by their rank.

deinflectfunction

The dictionary forms a written word could be conjugated from, with the path from each to the word: the endings are taken off one at a time, outermost first, as a learner does, so 食べなかった is the past of 食べない, which is the negative of 食べる.

Deinflectiontype

One way a written word could be a conjugated dictionary word.

DeinflectKindtype

The kind of word a dictionary form must be, as the letters of a Word's kinds: g godan, i ichidan, a i-adjective, n na-adjective, s suru, k kuru.

findByMeaningfunction

Words found by what they mean in English, the best answers first.

findInflectedfunction

Looks a text up as it is written or as a conjugated form: 食べなかった finds 食べる, with the path "negative, past".

FindOptionstype

How findByMeaning and wordsWithKanji are asked: the mode and the lists, as for a lookup, and how many words to give.

foldKanafunction

A text folded to hiragana: the katakana move down, ー and everything else stay.

furiganaOffunction

The pieces of a written word with the kana that read each kanji: 食べる read たべる is 食 (た) and べる.

furiganaOfSurfacefunction

The pieces of a word as it is written in a text, which may be a conjugated form of the dictionary form it was found by: 食べなかった from 食べる (たべる) is 食 (た) and べなかった.

FuriganaParttype

One piece of a written word: its text, and, for a piece of kanji, the kana that read it.

hasMarksfunction

Whether a word has a sense that carries any of some marks.

IndexManifesttype

Where the pieces of the indexes are that find words by meaning and by kanji.

inflectedOffunction

The words for a text that is a word as it is written or a conjugated form of one, from words loaded with inflected: true: the words the dictionary has for the text itself first (path empty), then each word its ending could come from, and only those of the kind the ending needs, so 食べた finds 食べる (an ichidan verb) and never 食べた's other readings of the ending.

InflectedWordtype

A word found for a text, and how the text comes from it.

isLoadedfunction

Whether a text has been loaded, so that wordsOf can answer for it.

kanaFromRomajifunction

Every hiragana text a romaji can read as, the usual first: one, unless it writes a long vowel with a macron or a circumflex, which a reading writes more than one way.

KanjiFacttype

What the kanji tables say of one kanji in a text.

kanjiOfWordfunction

The entries of the kanji table for the kanji a word is written with, once each, in the order they appear: so a word can show its kanji with their grade, JLPT level, readings and meanings.

loadCommonWordsfunction

The common words, fetched in one piece: about 26,000 rows and some 800 kB gzipped, for a page that looks up many words, all of them common.

loadWordsfunction

Fetches what JMdict holds for some texts, and nothing else: the pieces of the table those texts are in, about 25 kB gzipped each, so that wordsOf can then answer for them with no waiting.

MAX_READ_LENGTHconstant

The most characters readText reads; the rest is left out and truncated says so.

meaningFromfunction

The short English meaning of some senses: up to two senses of up to three glosses, ", " between glosses and "; " between senses, cut at a whole gloss inside 60 characters.

meaningOffunction

The meaning of the commonest word a text has, or null: a text with no word, or none that the mode and the lists let through, has no meaning, and the answer is never a placeholder.

normalizeTextfunction

A text made plain for a lookup: composed and compatibility forms folded together (NFKC, so full-width letters and digits become half-width and half-width kana full-width), whitespace collapsed to single spaces and trimmed, spaces beside Japanese removed, invisible and control characters removed, and a dash between kana, or ending kana, made the long vowel mark ー.

onlyWordsfunction

Only the words named on a list.

PackedPatchtype

What to do to the common words that safe mode keeps to have every common word as JMdict has it: each edit is a position, then "r" to replace the row there or "i" to insert one before it, then the row, apart by tabs.

PackedWordstype

A table of words as an entry point exports it: where it was made from, the JMdict release, and one string a row.

PieceSettype

The pieces of one kind: the first key of each, in order, and how to fetch each.

priorityTagsfunction

The priority tags a row stores, as JMdict writes them.

rankOfTagsfunction

One number for how common a word is, lower being commoner, made from its priority tags the way JMdict's own bands go: the newspaper band if it has one (nf01 is 250, and each band adds 500), else 12,000 for the first grade of any list and 24,000 for the second, else 100,000 for a word with no priority.

readCommonWordsfunction

The common words as a table the caller already has, read into words: a lookup by reading or written form with no waiting.

readRowfunction

A row read out of the string it is stored as.

readTextfunction

Reads a text: it is cut into words by taking, from each place, the longest stretch that the dictionary has a word for, either as it stands or as a conjugated form (食べなかった is 食べる).

ReadTokentype

One piece of a text that readText cut out: a word of the dictionary, a stretch of Japanese no word was found for, or something that is not Japanese (spaces, punctuation, Latin letters, digits), which is kept so that the pieces put together are the text.

romajiToKanafunction

A romaji as the hiragana it usually reads as: kami is かみ, shinbun is しんぶん, Tōkyō is とうきょう.

SAFE_MARKSconstant

The marks that safe mode leaves out, which are those JMdict gives a sense that is vulgar (vulg), X-rated (X), sensitive (sens) or derogatory (derog).

searchMeaningsfunction

The words already loaded whose English meaning holds some words, the whole word at a time (water is a gloss with the word water in it, watermelon is not), the ones whose first gloss is exactly it first, then those with another gloss that is, then the commonest.

Sensetype

One sense of a word: the marks JMdict gives it, and its glosses, the plain one first.

studyListfunction

The words of a text that was read, once each in the order they came, each with how often it came and the form it first came in.

studyListTextfunction

A study list as text: csv has a header line and quotes what needs it, for a spreadsheet; tsv has no header and tabs, to paste into a spreadsheet or to import into a flashcard program.

Suggestiontype

A word suggestWords found, and how many slips from what was typed it is.

suggestWordsfunction

The common words nearest to a text that may have a typo in it, the exact ones first and then those one slip away, the commonest first.

withoutMarksfunction

The words with the senses that carry any of some marks left out.

withoutWordsfunction

The words with those named on a list left out.

Wordtype

One word as a lookup gives it.

WordRowtype

A row read from a table.

Wordstype

Words that have been loaded, ready for a lookup that waits for nothing.

WordsLoadErrorclass

What a lookup rejects with when a piece of the dictionary cannot be fetched, after one retry: a network that is down, a file the host does not serve, a bundler that left the piece out.

WordsModetype

Which words a lookup gives: "safe" (the default) leaves out every sense JMdict marks vulgar, X-rated, sensitive or derogatory, and the written forms, readings and words that only such senses give; "unfiltered" is everything JMdict has.

wordsOffunction

The words for a text that has been loaded, the commonest first.

WordsOptionstype

How words are looked up: the mode, and the consumer's own lists.

WordsPiecetype

One piece of the table: rows by reading, or written forms with their readings, whichever file it came from.

WordsPieceKindtype

Which set of pieces a WordsLoadError is about: readings and forms are the dictionary, extra-readings and extra-forms what safe mode leaves out, meanings and kanji the indexes (and their extra- kin), entries and examples the whole entries and the example sentences (and their extra- kin), common the table of common words, and manifest the small file that says where the pieces are.

wordsWithKanjifunction

Words written with a kanji, the commonest first, each shown by the written form that holds the kanji.

@johnmorrisdotca/jisho/words-common

COMMON_WORDSconstant

The 26,014 common words of JMdict that safe mode keeps, which tags a word common when any of its written forms or readings is in news1, ichi1, spec1, spec2 or gai1.

@johnmorrisdotca/jisho/words-common-extra

COMMON_EXTRAconstant

What to do to the common words to have every common word as JMdict has it: each line is a position, "r" to replace the row there or "i" to insert one before it, and the row.

@johnmorrisdotca/jisho

ELEMENTARY_GRADESconstant

The grades taught in Japanese elementary school: 1,026 kanji, the kyōiku kanji.

gradeOffunction

Which grade a kanji is taught in.

GradeTabletype

The shape of GRADES, from @johnmorrisdotca/jisho/grades.

JLPT_LEVELSconstant

Every JLPT level, the easiest first.

JlptTabletype

The shape of JLPT, from @johnmorrisdotca/jisho/jlpt.

JOYO_GRADESconstant

The grades that make up the jōyō kanji, the 2,136 for everyday use.

Kanjitype

One kanji in full.

kanjiInfunction

The kanji in a piece of text, once each, in the order they first appear.

kanjiOfLevelfunction

The kanji of one JLPT level, not counting the levels below it.

levelOffunction

Which JLPT level's list holds a kanji.

LookAliketype

A kanji that looks like another, and how much.

lookAlikesfunction

The kanji most like one kanji, the closest first.

PackedKanjitype

The shape of KANJI, from @johnmorrisdotca/jisho/kanji.

PackedLookAlikestype

The shape of LOOK_ALIKE, from @johnmorrisdotca/jisho/look-alike.

readKanjifunction

Reads the stored table into plain rows.

SchoolGradetype

A school grade as KANJIDIC2 numbers it: 1 to 6 are elementary school, 8 is the rest of the jōyō kanji, taught in secondary school, 9 is the kanji allowed in names (jinmeiyō), 10 is a jinmeiyō variant of a jōyō kanji.

searchKanjifunction

The kanji that hold a piece of text: the character itself, a reading or a meaning, in English or French, ignoring case.

VERSIONconstant

The package's version.