Skip to main content

Class: WordOccurrence

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

Word occurrence entity (for concordances).

WS-4: the Bible a word was counted in is identified by moduleUuid — a stable cross-database key. v1 modules instead carry bibleModule, a bare abbreviation, which is unstable (abbreviations collide and change between releases). Use getModuleReference to read whichever is available.

Constructors

Constructor

new WordOccurrence(data): WordOccurrence

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

Parameters

data
bibleModule?

string

entryKey

string

metadata?

Metadata

moduleUuid?

string

occurrenceId?

number

translationWord?

string

verseId

number

Returns

WordOccurrence

Properties

bibleModule?

optional bibleModule?: string

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

Reference to the source Bible module.

Deprecated

Use moduleUuid (or getModuleReference). v1 stored a bare abbreviation in word_occurrence.bible_module; v2 stores bible_module_uuid. The repository keeps this field populated — resolving it from the UUID on a v2 module — so the desktop and web dictionary IPC handlers compile and behave unchanged. TODO(pass-2): delete once those read moduleUuid.


entryKey

entryKey: string

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


metadata?

optional metadata?: Metadata

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


moduleUuid?

optional moduleUuid?: string

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

v2: stable identity of the source Bible module.


occurrenceId?

optional occurrenceId?: number

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


translationWord?

optional translationWord?: string

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


verseId

verseId: number

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

Methods

getModuleReference()

getModuleReference(): string | undefined

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

The reference to the source Bible module: the UUID when present, otherwise the legacy abbreviation. Callers that need to know which they got should check moduleUuid directly.

Returns

string | undefined