Reference
Example sentences of a word, with furigana and their credit
import { … } from "@johnmorrisdotca/jisho/examples";
2907.5 kB minified and gzipped, with everything it imports (measured with esbuild)
The example sentences of a word, in an entry point of their own so that a page that looks words up never carries them. Fetched in pieces,
one for a word, when loadExamples is called.
Exports
| Name | Kind | What it is |
|---|---|---|
Example | type | An example sentence of a word. |
exampleCredit | function | 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. |
ExampleCredit | type | 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. |
furiganaOfExample | function | A sentence stored with its furigana marked |kanji《かな》 as pieces: the text and the kana over the kanji. |
FuriganaPart | type | One piece of a written word: its text, and, for a piece of kanji, the kana that read it. |
loadExamples | function | 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. |
readExamples | function | The examples of an entry as stored: its number in base 36, then each example, apart by tabs. |