Companion

object Companion

Functions

Link copied to clipboard
fun fromJson(name: String, json: String): GuardCorpus

Loads a corpus from JSON of the shape kmemo's own corpora use.

Link copied to clipboard
fun fromResource(name: String, resource: String): GuardCorpus

Loads a corpus from a classpath resource, for a corpus you ship beside your own tests.

Link copied to clipboard

Written after the built-in guards existed, by an adversarial review given the guard sources and asked to break them. Out of sample for the built-ins, and fully out of sample for yours.

Link copied to clipboard

All three shipped splits, in the order kmemo reports them.

Link copied to clipboard

The corpus kmemo's guards were written against. In sample: every built-in guard was tuned with these pairs in view, so its numbers here measure the fitting rather than the guard. Useful to a third party as a source of hard general-English pairs, not as evidence.

Link copied to clipboard

Written blind, by an author shown no guard source and no other corpus, and nine tenths lowercase because real users type that way. The number kmemo quotes, and the one to quote.