Decisions

class authorityspoke.decisions.DecisionReading(**data)

An interpretation of what Holdings are supported by the Opinions of a Decision.

__str__()

Return str(self).

property majority

Return the majority OpinionReading, or None if it doesn’t exist.

Return type

Optional[OpinionReading]

property opinions

Get the Opinions for this DecisionReading’s Decision.

Return type

List[Opinion]

find_matching_opinion(opinion_type='', opinion_author='')

Find an Opinion described by the given attributes.

Return type

Optional[Opinion]

find_opinion_matching_reading(opinion_reading)

Find the Opinion corresponding to an OpinionReading.

Return type

Optional[Opinion]

select_text(selector, opinion_type='', opinion_author='')

Get text using a TextQuoteSelector.

Parameters

selector (Union[bool, str, TextPositionSelector, TextQuoteSelector, Sequence[Union[str, Tuple[int, int], TextQuoteSelector, TextPositionSelector]]]) – a selector referencing a text passage in the Opinion.

Return type

Optional[str]

Returns

the text referenced by the selector, or None if the text can’t be found.

add_opinion_reading(opinion_reading)

Add an OpinionReading for an existing Opinion of the Decision.

Return type

None

get_majority()

Return the majority OpinionReading, creating it if needed.

Return type

Optional[OpinionReading]

property holdings

Get the holdings of this Decision’s majority Opinion.

Return type

HoldingGroup

add_opinion(opinion)

Link an Opinion document to this Decision.

Return type

None

contradicts(other)

Check if a holding attributed to this decision contradicts a holding attributed in “other”.

explain_contradiction(other)

Get the first generated explanation of how a Holding of self contradicts a Holding of other.

Return type

Optional[Explanation]

explanations_contradiction(other)

Generate explanations of how a Holding of self contradicts a Holding of other.

Return type

Iterator[Explanation]

explain_implication(other)

Get the first generated explanation of how a Holding of self implies a Holding of other.

Return type

Optional[Explanation]

explanations_implication(other)

Generate explanation of how self’s Holdings can imply other.

Return type

Iterator[Explanation]

posit(holdings, holding_anchors=None, named_anchors=None, enactment_anchors=None, context=None)

Add one or more Holdings to the majority Opinion of this Decision.

Return type

None

__ge__(other)

Return self>=value.

Return type

bool

__gt__(other)

Return self>value.

Return type

bool

implied_by_holding(other, context=None)

Check if a Holding implies all the Holdings of self.

Return type

Iterator[Explanation]

explanations_implied_by(other, context=None)

Generate explanation of how other can imply all the Holdings of self.

Return type

Iterator[Explanation]

implied_by(other, context=None)

Check if other implies all the Holdings of self.

Return type

bool

implies_holding(other, context=None)

Check if a Holding of self implies a Holding made from other.

Return type

bool

implies_rule(other, context=None)

Check if a Holding of self implies a Holding made from other Rule.

Return type

bool

implies(other, context=None)

Check if the Holdings of self imply other.

Return type

bool

__weakref__

list of weak references to the object (if defined)