keenasr-web - v2.1.2
    Preparing search index...

    Type Alias AlignOp

    AlignOp: 0 | 1 | 2 | 3

    Alignment operation type constants.

    Use these values to interpret the op field in AlignmentItem.

    Value Name Description
    0 MATCH Tokens are identical
    1 SUBSTITUTION Different token was recognized
    2 INSERTION Extra token in recognized text
    3 DELETION Token missing from recognized text
    for (const item of result.trace) {
    switch (item.op) {
    case 0: console.log('Match:', item.refToken); break;
    case 1: console.log('Substitution:', item.refToken, '->', item.recToken); break;
    case 2: console.log('Insertion:', item.recToken); break;
    case 3: console.log('Deletion:', item.refToken); break;
    }
    }