Reference · The whole entry of a word: every sense, and everything JMdict says of it
readEntryfunction
An entry out of the line it is stored as. The entry and every list in it are frozen.
Import it
import { readEntry } from "@johnmorrisdotca/jisho/entries";
Definition
function readEntry(line: string): Entry
Parameters
| Name | Type | Description |
|---|---|---|
line | string | One string of an entry piece: its number in base 36, its written forms, its readings, then one field for each sense. |
Returns
Entry
The entry.
Examples
import { readEntry } from "@johnmorrisdotca/jisho/entries";
console.log(readEntry("0000z\t紙\tかみ\tn¦¦paper").senses[0]?.glosses[0]?.text); // paperpaperWhat it prints (run when this page was built)