Reference · The whole entry of a word: every sense, and everything JMdict says of it
LoanSourcetype
The word a loanword comes from, in the language it comes from.
Import it
import type { LoanSource } from "@johnmorrisdotca/jisho/entries";
Definition
type LoanSource = {
readonly lang: string;
readonly text: string;
readonly partial: boolean;
readonly wasei: boolean;
};
Members
| Name | Type | Description |
|---|---|---|
lang | string | The language, as a three-letter code ( |
text | string | The word in that language; empty when JMdict names the language only. |
partial | boolean | Whether the Japanese word is made from only a part of it. |
wasei | boolean | Whether it is a word made in Japan from foreign parts (和製英語). |
Examples
import type { LoanSource } from "@johnmorrisdotca/jisho/entries";
const source: LoanSource = { lang: "eng", text: "paper", partial: false, wasei: false };
console.log(source.lang);engWhat it prints (run when this page was built)