GuardComplianceReport

class GuardComplianceReport(val guard: String, val scores: List<CorpusScore>)

A guard measured across every corpus it was run against, as data and as a printable table.

The same confusion matrix kmemo publishes for its own eleven guards, computed by the same code, so an outside guard arrives with a measured number attached rather than with a claim.

Constructors

Link copied to clipboard
constructor(guard: String, scores: List<CorpusScore>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The guard's MatchGuard.name.

Link copied to clipboard

One score per corpus, in the order they were given.

Functions

Link copied to clipboard
fun toJson(): JsonObject

The report as JSON, for CI to diff across commits the way kmemo diffs its own.

Link copied to clipboard
Link copied to clipboard
open override fun toString(): String

The human table, one line per corpus, under a heading naming the guard.