Skip to main content

Interface: ReferenceParseOptions

Defined in: Services/ReferenceParser.ts:51

Per-call parsing options.

Separate from ReferenceParserConfig, which configures a parser instance's book-name tables. These change what counts as a reference, and so must be decided by each caller rather than shared.

Properties

allowWholeBook?

optional allowWholeBook?: boolean

Defined in: Services/ReferenceParser.ts:65

Accept a bare book name — "John", "I John", "Gen" — as a reference to the whole book.

Off by default, and it must stay that way for the search box: "John" typed there is someone looking for the word John, and "love" fuzzy-matches a book name (see ReferenceClassifier). Callers that have no keyword mode to be confused with — the copy/export dialog, which only ever takes a reference — opt in.

Whole-book matching is deliberately exact: no fuzzy fallback, or every mistyped word in the box would resolve to some book.