Opinions¶
A document that resolves legal issues in a case and posits legal holdings.
Usually an opinion must have
position="majority"
to create holdings binding on any courts.- Parameters
Add attributes to store Holdings and Factors keyed to their text selectors.
The
holding_anchors
are text selectors for the wholeHolding
, not for any individualFactor
. Often select text used to indicate whether theRule
ismandatory
,universal
,valid
, ordecided
, or show theexclusive
way to reach the outputs.
Remove all
Holding
s from the opinion.
Test whether
other
is or contains aHolding
contradicted byself
.
Get all generic
Factor
s mentioned inself
.
Search recursively in holdings of
self
forFactor
withname
.
Record that this Opinion endorses specified
Holding
s.- Return type
None
Add
Holding
s to thisOpinion
from a sequence.- Parameters
holdings (
Union
[AnchoredHoldings
,Iterable
[Union
[Holding
,Rule
]]]) – a sequence ofHolding
s that thisOpinion
posits as valid in its own court or jurisdiction, regardless of whetherself
accepts that theinputs
correspond to the reality of the current case, and regardless of whether the court orders that theoutputs
be put into effect.text_links – mapping of
Factor
s to theOpinion
passages where they can be found. Can be obtained as the mentioned return value of one of the functions inauthorityspoke.io.readers
.context (
Optional
[Sequence
[Factor
]]) – an ordered sequence (probablydict
) of genericFactor
objects fromself
which will provide the context for the new holding in the present case.
Add one or more
Holding
s to thisOpinion
.This method passes its values to
posit_holding()
orposit_holdings()
depending on whether the holding parameter is oneHolding
or alist
.- Parameters
holdings (
Union
[AnchoredHoldings
,Holding
,Iterable
[Union
[Holding
,Rule
]]]) – aHolding
that theOpinion
self
posits as valid in its own court or jurisdiction, regardless of whetherself
accepts that theinputs
of theHolding
correspond to the reality of the current case, and regardless of whether the court orders that theoutputs
of theHolding
be put into effect.text_links – list of lists of
Opinion
passages where references to eachHolding
can be found.context (
Optional
[Sequence
[Factor
]]) – an ordered sequence (probablydict
) of genericFactor
objects fromself
which will provide the context for the new holding in the present case.
- Return type
None
Get text passages where a
Holding
is linked toself
.
Find whether
self
’s holdings imply all the holdings ofother
.
Find whether
self
’s holdings implyother
’s but self != other.This actually tests for inequality because
Opinion
does not have ameans
method.- Return type
- Returns
self >= other and self != other.
Get text using a
TextQuoteSelector
.
Return str(self).
list of weak references to the object (if defined)