Class: DictionaryEntry
Defined in: Data/Models/Dictionary/DictionaryEntry.ts:6
Dictionary entry entity from a dictionary module database
Constructors
Constructor
new DictionaryEntry(
data):DictionaryEntry
Defined in: Data/Models/Dictionary/DictionaryEntry.ts:32
Parameters
data
contentFile?
string
definition
string
entryId?
number
entryKey
string
etymology?
string
exampleVerses?
metadata?
partOfSpeech?
string
pronunciation?
string
relatedWords?
string[]
semanticRange?
string
transliteration?
string
usageNotes?
string
word?
string
Returns
DictionaryEntry
Properties
contentFile?
optionalcontentFile?:string
Defined in: Data/Models/Dictionary/DictionaryEntry.ts:29
definition
definition:
string
Defined in: Data/Models/Dictionary/DictionaryEntry.ts:13
entryId?
optionalentryId?:number
Defined in: Data/Models/Dictionary/DictionaryEntry.ts:7
entryKey
entryKey:
string
Defined in: Data/Models/Dictionary/DictionaryEntry.ts:8
etymology?
optionaletymology?:string
Defined in: Data/Models/Dictionary/DictionaryEntry.ts:14
exampleVerses
exampleVerses:
ExampleVerse[]
Defined in: Data/Models/Dictionary/DictionaryEntry.ts:28
Illustrative verses cited by this entry.
Deprecated
Use IDictionaryRepository.getVerseLinksForEntry() (or
getExampleVerses() for a version-agnostic read). The JSON
example_verses column is removed in Module Format v2 — these are
verse_link rows there — but the repository keeps this field populated so
consumers outside @bible/core (desktop/web dictionary IPC handlers)
compile and behave unchanged. TODO(pass-2): delete once those move over.
metadata?
optionalmetadata?:Metadata
Defined in: Data/Models/Dictionary/DictionaryEntry.ts:30
partOfSpeech?
optionalpartOfSpeech?:string
Defined in: Data/Models/Dictionary/DictionaryEntry.ts:12
pronunciation?
optionalpronunciation?:string
Defined in: Data/Models/Dictionary/DictionaryEntry.ts:11
relatedWords
relatedWords:
string[]
Defined in: Data/Models/Dictionary/DictionaryEntry.ts:17
semanticRange?
optionalsemanticRange?:string
Defined in: Data/Models/Dictionary/DictionaryEntry.ts:16
transliteration?
optionaltransliteration?:string
Defined in: Data/Models/Dictionary/DictionaryEntry.ts:10
usageNotes?
optionalusageNotes?:string
Defined in: Data/Models/Dictionary/DictionaryEntry.ts:15
word?
optionalword?:string
Defined in: Data/Models/Dictionary/DictionaryEntry.ts:9
Methods
addExampleVerse()
addExampleVerse(
verse):void
Defined in: Data/Models/Dictionary/DictionaryEntry.ts:92
Add an example verse
Parameters
verse
Returns
void
addRelatedWord()
addRelatedWord(
entryKey):void
Defined in: Data/Models/Dictionary/DictionaryEntry.ts:83
Add a related word
Parameters
entryKey
string
Returns
void
getDefinitionExcerpt()
getDefinitionExcerpt(
maxLength?):string
Defined in: Data/Models/Dictionary/DictionaryEntry.ts:99
Get definition excerpt
Parameters
maxLength?
number = 100
Returns
string
getStrongsLanguage()
getStrongsLanguage():
"Greek"|"Hebrew"|null
Defined in: Data/Models/Dictionary/DictionaryEntry.ts:74
Get the language for Strong's entries
Returns
"Greek" | "Hebrew" | null
isStrongsEntry()
isStrongsEntry():
boolean
Defined in: Data/Models/Dictionary/DictionaryEntry.ts:67
Check if this is a Strong's number entry
Returns
boolean