score

abstract fun score(proposition: Proposition, authorityTier: AuthorityTier?, conflictType: ConflictType?): Double

Score the trustworthiness of a proposition.

This is the single abstract method of the SAM interface and so takes all arguments explicitly; the score extension overloads supply null defaults for the optional authorityTier and conflictType at call sites.

Return

a trust score in [0.0, 1.0] (1.0 == fully trusted)

Parameters

proposition

The proposition to score

authorityTier

Source-authority tier for the proposition, or null if authority is not being considered

conflictType

Classification of any conflict this proposition was involved in, or null if it was not in conflict


open fun score(proposition: Proposition): Double

Score a proposition when you have no authority or conflict context to pass.

Declared as a default method rather than an extension function so Java callers can invoke it as a normal instance method.

Return

a trust score in [0.0, 1.0]

Parameters

proposition

The proposition to score


open fun score(proposition: Proposition, authorityTier: AuthorityTier?): Double

Score a proposition given its authority tier but no conflict context.

Declared as a default method rather than an extension function so Java callers can invoke it as a normal instance method.

Return

a trust score in [0.0, 1.0]

Parameters

proposition

The proposition to score

authorityTier

Source-authority tier, or null