RecognizerQuirks

Explicit spellings that one recognizer may return for particular written words.

Quirks repair a named build's repeatable transcription behavior; they are not general rules of pronunciation or language.

Constructors

Link copied to clipboard
constructor(allowances: Map<String, List<RecognizerQuirks.Allowance>>)

Types

Link copied to clipboard
class Allowance(heard: String, after: String? = null)

One permitted heard spelling, optionally limited by the preceding written word.

Link copied to clipboard
object Companion
Link copied to clipboard
data class WrongBuild(val requested: String, val published: String) : Exception

A published hearing table belongs to another recognizer build.

Properties

Link copied to clipboard

Whether this set permits no recognizer substitutions.

Functions

Link copied to clipboard
fun allows(heard: String, forWritten: String, after: String? = null): Boolean

Reports whether heard is an explicit allowance for forWritten after the written word after.