---
library: "bootstrap"
slug: "ScoringFunction"
name: "ScoringFunction"
ref: "ScoringFunction#c604"
hash: "sema:ScoringFunction#mh:SHA-256:c6042940db8c3238b948c7851aa315defbe31e1639dba718fcce0e38523e8d50"
type: "Data Structures"
layer: "Infrastructure"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/ScoringFunction"
---

# ScoringFunction

Deterministic valuation logic

Infrastructure · Data Structures

## Mechanism

A deterministic logical unit that maps an input artifact to a scalar [Value](https://semahash.org/vocabularies/bootstrap/patterns/Value.md) (Score). Encapsulates ranking and evaluation criteria as a first-class Noun, so callers can pass the scoring logic as an input rather than embed it inline in their own mechanism.

## Invariants

- Determinism: same input always yields the same score.
- Output falls within the declared `output_range`.

## Where this came from

—

## Builds on

- [Value](https://semahash.org/vocabularies/bootstrap/patterns/Value.md) (references)

## Used by

- [Judge](https://semahash.org/vocabularies/bootstrap/patterns/Judge.md) (accepts)
- [Rank](https://semahash.org/vocabularies/bootstrap/patterns/Rank.md) (accepts)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: ScoringFunction#c604
- Hash: sema:ScoringFunction#mh:SHA-256:c6042940db8c3238b948c7851aa315defbe31e1639dba718fcce0e38523e8d50

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/ScoringFunction
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/ScoringFunction.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
