Library
core
src
analyzer
detectDeclarations
Readme

Lawtext core references


Lawtext core references / core/src/analyzer/detectDeclarations

core/src/analyzer/detectDeclarations

Functions

detectDeclarations()

detectDeclarations(sentenceEnvsStruct, pointerEnvsStruct, lawTitleLength): WithErrorValue<{ declarations: Declarations; lawRefByDeclarationID: Map<string, ____LawRef>; }>

Defined in: core/src/analyzer/detectDeclarations/index.ts:138 (opens in a new tab)

Parameters

sentenceEnvsStruct

SentenceEnvsStruct

pointerEnvsStruct

PointerEnvsStruct

lawTitleLength

(lawNum) => null | number

Returns

WithErrorValue<{ declarations: Declarations; lawRefByDeclarationID: Map<string, ____LawRef>; }>


detectDeclarationsByEL()

detectDeclarationsByEL(elToBeModified, sentenceEnv, sentenceEnvsStruct, pointerEnvsStruct, lawTitleLength): WithErrorValue<{ declarations: ____Declaration[]; lawRefs: ____LawRef[]; }>

Defined in: core/src/analyzer/detectDeclarations/index.ts:17 (opens in a new tab)

Parameters

elToBeModified

StdEL | __EL

sentenceEnv

SentenceEnv

sentenceEnvsStruct

SentenceEnvsStruct

pointerEnvsStruct

PointerEnvsStruct

lawTitleLength

(lawNum) => null | number

Returns

WithErrorValue<{ declarations: ____Declaration[]; lawRefs: ____LawRef[]; }>


detectDeclarationsBySentence()

detectDeclarationsBySentence(sentenceEnv, sentenceEnvsStruct, pointerEnvsStruct, lawTitleLength): WithErrorValue<{ declarations: ____Declaration[]; lawRefs: ____LawRef[]; }>

Defined in: core/src/analyzer/detectDeclarations/index.ts:92 (opens in a new tab)

Parameters

sentenceEnv

SentenceEnv

sentenceEnvsStruct

SentenceEnvsStruct

pointerEnvsStruct

PointerEnvsStruct

lawTitleLength

(lawNum) => null | number

Returns

WithErrorValue<{ declarations: ____Declaration[]; lawRefs: ____LawRef[]; }>

References

default

Renames and re-exports detectDeclarations