Skip to main content

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?

ExampleVerse[]

metadata?

Metadata

partOfSpeech?

string

pronunciation?

string

relatedWords?

string[]

semanticRange?

string

transliteration?

string

usageNotes?

string

word?

string

Returns

DictionaryEntry

Properties

contentFile?

optional contentFile?: string

Defined in: Data/Models/Dictionary/DictionaryEntry.ts:29


definition

definition: string

Defined in: Data/Models/Dictionary/DictionaryEntry.ts:13


entryId?

optional entryId?: number

Defined in: Data/Models/Dictionary/DictionaryEntry.ts:7


entryKey

entryKey: string

Defined in: Data/Models/Dictionary/DictionaryEntry.ts:8


etymology?

optional etymology?: 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?

optional metadata?: Metadata

Defined in: Data/Models/Dictionary/DictionaryEntry.ts:30


partOfSpeech?

optional partOfSpeech?: string

Defined in: Data/Models/Dictionary/DictionaryEntry.ts:12


pronunciation?

optional pronunciation?: string

Defined in: Data/Models/Dictionary/DictionaryEntry.ts:11


relatedWords

relatedWords: string[]

Defined in: Data/Models/Dictionary/DictionaryEntry.ts:17


semanticRange?

optional semanticRange?: string

Defined in: Data/Models/Dictionary/DictionaryEntry.ts:16


transliteration?

optional transliteration?: string

Defined in: Data/Models/Dictionary/DictionaryEntry.ts:10


usageNotes?

optional usageNotes?: string

Defined in: Data/Models/Dictionary/DictionaryEntry.ts:15


word?

optional word?: 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

ExampleVerse

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