Class

VinesHelper

VinesHelper()

VinesHelper provides functionality for indexing and querying the Vine's Expository Dictionary SWORD module by Strong's number.

The Vines module is keyed by English words (e.g. "ARMY", "DAWN"), and each entry may reference multiple Greek Strong's numbers. This helper builds a reverse index mapping each Strong's number to the Vines key(s) that reference it, enabling lookup of Vines content for a given Strong's number.

Only Greek Strong's numbers are supported (Vines covers the Greek NT).

Constructor

# new VinesHelper()

View Source backend/ipc/vines_index_helper.js, line 36

Methods

# _getIndex() → {object|null}

Loads the Vines index from cache or disk.

View Source backend/ipc/vines_index_helper.js, line 125

The index object or null if not found

object | null

# async buildIndex(nsi, progressCallbackopt) → {object}

Builds the Vines Strong's index by iterating all Vines dictionary keys, fetching each entry, and extracting Strong's number references.

The resulting index maps normalized Strong's numbers (e.g. "G3722") to arrays of Vines keys that reference them.

Parameters:
Name Type Attributes Description
nsi object

The node-sword-interface instance

progressCallback function <optional>

Optional callback receiving { totalPercent, message }

View Source backend/ipc/vines_index_helper.js, line 71

The generated index

object

# deleteIndex()

Deletes the Vines Strong's index from cache and disk.

View Source backend/ipc/vines_index_helper.js, line 145

# getVinesKeysForStrongs(strongsKey) → {Array.<string>|null}

Gets the Vines dictionary keys that reference a given Greek Strong's number.

Parameters:
Name Type Description
strongsKey string

The Strong's number (e.g. "G3722")

View Source backend/ipc/vines_index_helper.js, line 161

Array of Vines keys, or null if not found

Array.<string> | null

# indexExists() → {boolean}

Checks whether the Vines Strong's index exists (in cache or on disk).

View Source backend/ipc/vines_index_helper.js, line 51

boolean

VinesHelper()

The VinesHelper handles all Vine's Expository Dictionary related functionality for the WordStudyPanel, including index generation and rendering of Vines links.

Methods

# _getIndex() → {object|null}

Loads the Vines index from cache or disk.

View Source backend/ipc/vines_index_helper.js, line 125

The index object or null if not found

object | null

# async buildIndex(nsi, progressCallbackopt) → {object}

Builds the Vines Strong's index by iterating all Vines dictionary keys, fetching each entry, and extracting Strong's number references.

The resulting index maps normalized Strong's numbers (e.g. "G3722") to arrays of Vines keys that reference them.

Parameters:
Name Type Attributes Description
nsi object

The node-sword-interface instance

progressCallback function <optional>

Optional callback receiving { totalPercent, message }

View Source backend/ipc/vines_index_helper.js, line 71

The generated index

object

# deleteIndex()

Deletes the Vines Strong's index from cache and disk.

View Source backend/ipc/vines_index_helper.js, line 145

# getVinesKeysForStrongs(strongsKey) → {Array.<string>|null}

Gets the Vines dictionary keys that reference a given Greek Strong's number.

Parameters:
Name Type Description
strongsKey string

The Strong's number (e.g. "G3722")

View Source backend/ipc/vines_index_helper.js, line 161

Array of Vines keys, or null if not found

Array.<string> | null

# indexExists() → {boolean}

Checks whether the Vines Strong's index exists (in cache or on disk).

View Source backend/ipc/vines_index_helper.js, line 51

boolean