import { i32, Vec } from "./_commons"; /** Visual Error Event */ export interface TextVisualErrorData { /** Web-page lang (from html lang attr), used to determine stop-words dictionary */ lang: string; /** * The version of the stop-words dictionary that was used for the check * Renamed to dictionary_version in Metroplex */ dictionaryVersion: i32; /** List of stop word matches */ matches: Vec; } /** Visual Error Event */ export interface TextVisualErrorMatch { /** * Matches visual error * Renamed to stop_word in Metroplex */ stopWord: string; /** Text snippet that contains matched visual error message */ snippet: string; /** Start position of the error message in the text snippet */ start: i32; /** End position of the error message in the text snippet */ end: i32; }