TOC Toolkit API - v0.1.0
    Preparing search index...

    Interface PreparedRecognizer

    A compiled grammar with caches shared only by its own successive queries.

    interface PreparedRecognizer {
        recognize(word: Word, budget: Budget): Result<boolean, Exhaustion>;
        statistics(): RecognizerStatistics;
    }
    Index