EU Parliament Monitor - API Documentation - v0.8.2
    Preparing search index...

    Interface TranslationValidationMetrics

    Quality metrics collected during translation completeness validation

    interface TranslationValidationMetrics {
        asciiRatio: number;
        cjkCharRatio: number;
        hasRtlDir: boolean;
        hasBidiMarkers: boolean;
        untranslatedPhrases: readonly string[];
    }
    Index

    Properties

    asciiRatio: number

    Ratio of ASCII printable characters to total text (0–1). High values in CJK articles suggest untranslated content.

    cjkCharRatio: number

    Ratio of CJK characters to total text (0–1). Low values in ja/ko/zh articles suggest untranslated content.

    hasRtlDir: boolean

    Whether the dir="rtl" attribute is present on the <html> element

    hasBidiMarkers: boolean

    Whether Unicode bidi control characters or &lrm;/&rlm; markers are present

    untranslatedPhrases: readonly string[]

    English phrases found in non-English articles that likely should have been translated