> ## Documentation Index
> Fetch the complete documentation index at: https://docs.simular.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# ScoreAnswer

> A Score answer.

A Score answer. `score` is a number and can sit between two levels.
\[`ScoreAnswer.probabilities`], \[`ScoreAnswer.nearest`], and
\[`ScoreAnswer.bounds`] use the level string you passed in.

## Constructor

```typescript
ScoreAnswer(): ScoreAnswer
```

### Returns

<code>[ScoreAnswer](/simulang-js/api/v14.0.0/classes/ScoreAnswer)</code>

## Properties

<ResponseField name={"confidence"} type={"number"} required>
  0–1 summary of how peaked \[`ScoreAnswer.probabilities`] is.
</ResponseField>

<ResponseField name={"probabilities"} type={"Record<string, number>"} required>
  Probability per level, keyed by the level texts the caller supplied.
</ResponseField>

<ResponseField name={"score"} type={"number"} required>
  Continuous position on the level spectrum (`0.0` = first level).
</ResponseField>

## Methods

### bounds()

```typescript
bounds(): [string, string]
```

The levels flanking \[`ScoreAnswer.score`] (equal when the score sits on a
level exactly).

#### Returns

`[string, string]`

### nearest()

```typescript
nearest(): string
```

The level closest to \[`ScoreAnswer.score`].

#### Returns

`string`
