Interface: MapDictionarySource
A dictionary built from entries computed at runtime, such as per-document reading overrides.
Use this instead of compiling a TSV file with gukhanmun-mkdict when the
entries do not exist on disk, for example in a browser, an edge runtime, or a
site generator that derives entries per document.
A source is distinguished from a FileDictionarySource by the presence
of an entries property.
Example
Properties
entries
readonlyentries: readonlyDictionaryEntry[]
The entries of this dictionary.
Repeated hanja keys append competing readings instead of replacing each
other, and DictionaryEntry.preference decides which reading is the
context-free default. Several readings for one key also let the engine
pick a reading from a following particle (東京을 versus 東京를).
An empty list contributes nothing, which is a convenient way to express "this document has no overrides".
role?
readonlyoptionalrole?:SourceRole
Defaults to an authored override; set a role to opt into cooperation.