Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.
Python calibrationclassificationdecision-modelhuggingfacejevmodernbertmultilingualnlppythonpytorchroutingtyped-decisionszero-shot
fix(rust): follow Python 0.4.11 language detection, routing and email
kevin-gatimu79ad1b76d3c9
diff --git a/laya-rust/CHANGELOG.md b/laya-rust/CHANGELOG.mdindex 12cb1515..a7318462 100644--- a/laya-rust/CHANGELOG.md+++ b/laya-rust/CHANGELOG.md@@ -6,11 +6,22 @@ All notable changes to the `laya-onnx` crate are documented here. The format fol## [0.1.0] - unreleased-First release: a port of the Laya Python SDK, checked against regenerated laya (Python) 0.4.0-goldens for the supported paths (see the known gaps below).+First release: a port of the Laya Python SDK, checked against goldens and routing probes+regenerated from laya (Python) 0.4.11 for the supported paths (see the known gaps below).### Added+- `LangGuess` and `LayaRouter::{route_with_lang_guess, predict_with_lang_guess,+ predict_long_with_lang_guess, with_lang_guess}`: Python's `lang_guess` hint (a language code or a+ callback taking the state), per call or installed on the router, checked after an explicit `lang`+ and before detection. A hint that names no language falls through to detection.+- `LanguageAnalysis::mixed_segment`, the line or field the segment scan singled out in a state that+ reads English as a whole, and the matching routing reason ("Latin script, mostly English, but a+ line or field reads as ..."). `LanguageAnalysis` is now `#[non_exhaustive]`, so a field added+ later does not break callers again; read it, do not construct it.+- `LayaEmail::{clean_body_signed, state_with_max_chars}`: `max_chars` as Python takes it, including+ the `max_chars * 4` pre-cut and the specified results for `0` and negative budgets. `clean_body`+ and `state` are unchanged and keep the 3000-character default.- `LayaEngine::predict_long` and `LayaRouter::predict_long` (`aggregate="auto"`): scan a statelonger than one sequence in overlapping token windows and keep the most confident window perquestion, with `Answer::window()` attribution, `LayaResult::scan_usage()` and summed@@ -44,10 +55,27 @@ goldens for the supported paths (see the known gaps below).- `LayaRouterOptions::max_loaded` defaults to 2, as Python's `Router(max_loaded=2)` does, so arouter that alternates two languages no longer reloads a checkpoint on every request.+- Language detection follows Python 0.4.11: the line-by-line and field-by-field scan of a state that+ reads English as a whole, the Swedish and Nordic rules (Swedish, Banglish and Azerbaijani word+ lists, short Swedish requests, the Swedish-Danish overlap marker), the English rescue of a single+ accented loanword, acronym-shaped and all-caps lines no longer named foreign, identifier and code+ lines skipped, fullwidth and IPA letters counted as Latin (cutoff U+02B0) and letters no script+ range claims counted as "other". Python's `\w`, `\s`, `isupper` and `unicodedata.combining` are+ reproduced character for character rather than through the `regex` crate.+- A `lang` of `C`, `POSIX`, `C.UTF-8`, `und`, `zxx`, `mul` or a blank string no longer pins a+ checkpoint: it falls through to `lang_guess` and detection. `en_US` and `en_US.UTF-8` now read as+ English instead of routing to the multilingual checkpoint.+- Routing reasons quote caller text like Python's `%r`, escaping non-printable characters.+- Email cleaning follows Python 0.4.11: nine quote-header patterns (Portuguese, Spanish and French+ attributions that carry a date, Outlook headers in four languages, bare `From:`/`De:` headers+ confirmed by the `Sent:`/`Enviado:`/`Date:` line after them), the wrapped-attribution tail,+ Portuguese/Spanish/French sign-offs, the English sign-off name rule, device and mail-app footers,+ and Portuguese/Spanish/French disclaimers. A bare `From:` line that opens a sentence is kept.+- Dependency: `unicode-normalization` (canonical combining classes for `unicodedata.combining`).### Known gaps-- Routing, script counting and fused-line email disclaimers follow the regenerated Python 0.4.0- probes. New mixed-field language heuristics are not yet ported.+- Language detection, routing and email cleaning follow the regenerated Python 0.4.11 probes; a+ later Python change needs the probes regenerated.- Not yet ported: abstention (`min_confidence`, including per-bucket thresholds),histogram-binning calibration and `lang_temperatures`.diff --git a/laya-rust/Cargo.lock b/laya-rust/Cargo.lockindex 33178e54..6d34f643 100644--- a/laya-rust/Cargo.lock+++ b/laya-rust/Cargo.lock@@ -528,6 +528,7 @@ dependencies = ["thiserror","tokenizers","unicode-general-category",+ "unicode-normalization","ureq",]@@ -1309,6 +1310,12 @@ dependencies = ["syn 3.0.6",]+[[package]]+name = "tinyvec"+version = "1.13.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee"+[[package]]name = "tokenizers"version = "0.23.2"@@ -1380,6 +1387,15 @@ version = "1.0.26"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954"+[[package]]+name = "unicode-normalization"+version = "0.1.26"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "75cd3fb03d5288b3ba9a1ee103ac7e9cbb59f0b03d64f8ddfcc04dd42758a85d"+dependencies = [+ "tinyvec",+]+[[package]]name = "unicode-normalization-alignments"version = "0.1.12"diff --git a/laya-rust/Cargo.toml b/laya-rust/Cargo.tomlindex 2e2a1a1e..38c78b92 100644--- a/laya-rust/Cargo.toml+++ b/laya-rust/Cargo.toml@@ -41,6 +41,9 @@ ort = "2.0.0-rc.13"# L* only, which `char::is_alphabetic` does not match (it also accepts combining marks). This# crate gives a direct category lookup instead of hand-rolling Unicode tables.unicode-general-category = "1.1.0"+# Routing port (`language_detection.rs`): `unicodedata.combining` (canonical combining class) decides+# which characters never split a non-Latin word, and it is not derivable from the general category.+unicode-normalization = "0.1"# Routing port (`laya_email.rs`): quote-header, signature and disclaimer detection. `regex` has no# lookbehind, so `email.py`'s one lookbehind pattern (`_SENTENCE`) is hand-written instead of# pulling in a second, heavier engine (`fancy-regex`) for a single pattern.diff --git a/laya-rust/README.md b/laya-rust/README.mdindex 4711ab4c..57e4f8f8 100644--- a/laya-rust/README.md+++ b/laya-rust/README.md@@ -527,6 +527,27 @@ println!("{}", result.routing().unwrap().reason); // "English Latin text"`router.route(state, Some(&questions), None, None, None)` decides without loading or runninganything. `router.preload(None)` builds every checkpoint up front for a server or demo.+A state that reads English as a whole is still checked line by line and field by field, so a+Portuguese message under an English stack trace goes to the multilingual checkpoint+(`LanguageAnalysis::mixed_segment` names the line). An explicit `lang` that names no language+(blank, `C`, `POSIX`, `C.UTF-8`, `und`, `zxx`, `mul`) falls through to detection instead of pinning a+checkpoint. If you already run a language-identification model, hand its answer to the router as a+`LangGuess` -- a code or a callback, checked after an explicit `lang` and before detection, and+abstaining (`None`, blank, `C`, ...) falls through:++```rust,no_run+use laya::laya_router::{LangGuess, LayaRouter, LayaRouterOptions};+use serde_json::json;++// one hint for every request ...+let router = LayaRouter::new(LayaRouterOptions::default())?.with_lang_guess("ro");+// ... or per call, as a function of the state+let hint = LangGuess::callback(|state| my_language_id_model(state));+let decision = router.route_with_lang_guess(&json!("Care este ora in Tokyo?"), None, None, None, None, Some(&hint))?;+# fn my_language_id_model(_: &serde_json::Value) -> Option<String> { None }+# Ok::<(), laya::LayaError>(())+```+**Email cleaning** strips quoted history, signatures and disclaimers before you ask any questions:```rust,no_run@@ -536,6 +557,12 @@ let cleaned = LayaEmail::clean_body(raw_body, laya::laya_email::DEFAULT_MAX_CHARlet state = LayaEmail::state(subject, raw_body, Some("[email protected]"), true, std::iter::empty());```+It reads English, Portuguese, Spanish and French mail (Gmail's `Em ... escreveu:` / `Le ... a écrit :`,+Outlook's `-----Mensagem original-----`, `Atenciosamente` / `Cordialement`, `Envoyé depuis mon+iPhone`, confidentiality footers). `max_chars` is a slice budget: raise it for a long message+(`LayaEmail::state_with_max_chars`, `clean_body_signed`). `0` gives an empty body and a negative value+trims from the end, exactly as in Python, so "no limit" means a budget larger than the body.+**Embedding shortlist** narrows a high-cardinality choice question before the model sees it, usinga caller-supplied embedding function (bring your own bi-encoder — this SDK does not include one):@@ -718,9 +745,10 @@ Rust port groups the corresponding functions into a unit struct with associated## Known gaps-- **Python 0.4.0's routing defaults, script counting and fused-line disclaimer fixes are ported**- and checked against freshly regenerated probes. New mixed-field language heuristics remain- a follow-up; these probes are not a claim of full coverage of every new Python feature.+- **Language detection, routing and email cleaning follow Python 0.4.11** and are checked against+ routing probes regenerated at that version (mixed-segment scan, Nordic/Swedish rules, English+ rescue, all-caps rules, `lang_guess`, multilingual quote headers and sign-offs, `max_chars`).+ The probes are a corpus, not a proof: a Python change after 0.4.11 needs the probes regenerated.- **Opt-in features are not ported yet:** abstention (`min_confidence`, including per-bucketthresholds), histogram-binning calibration, and per-language temperaturesdiff --git a/laya-rust/src/language_detection.rs b/laya-rust/src/language_detection.rsindex b980a08e..e4af5ad0 100644--- a/laya-rust/src/language_detection.rs+++ b/laya-rust/src/language_detection.rs@@ -21,16 +21,24 @@//! Python's `[^\W\d_]+` word pattern (`\w` = `isalnum()` + `_`, in Unicode mode) is likewise//! reproduced with a general-category check rather than a regex crate: `\w` minus digits (`\d` =//! category `Nd` only) minus `_` leaves letters plus `Nl`/`No` (a numeric-letter or other-number-//! character, but not a plain decimal digit).+//! character, but not a plain decimal digit). The other Python patterns this module uses+//! (`_IDENTIFIER`, `_CODE_LINE`, `_JOINED`, `_LETTER_RUN`) and `unicodedata.combining` are+//! hand-written for the same reason, so they agree with Python on every character rather than+//! with the `regex` crate's definition of `\w`.-use std::collections::HashMap;+use std::collections::{HashMap, HashSet};+use std::sync::LazyLock;use unicode_general_category::{GeneralCategory, get_general_category};+use unicode_normalization::char::canonical_combining_class;/// Namespace for language/script detection. See the module docs for the source this ports.pub struct LanguageDetection;/// The full detection result for one piece of state. See [`LanguageDetection::analyse`].+///+/// Marked `#[non_exhaustive]` so a field Python adds later does not break callers again.#[derive(Debug, Clone, PartialEq)]+#[non_exhaustive]pub struct LanguageAnalysis {/// The dominant script: `"latin"`, `"han"`, `"devanagari"`, ... or `"unknown"` when the text/// has no letters at all.@@ -49,6 +57,10 @@ pub struct LanguageAnalysis {pub diacritic_rate: f64,/// `1.0 - script_profile["latin"]`, or `0.0` when there is no script profile at all.pub non_latin_fraction: f64,+ /// The line or field the segment scan singled out as non-English inside a state that reads+ /// English as a whole, else `None`. A state flipped non-English by the per-value read that+ /// follows the segment scan is reported with this still `None`, exactly as Python does.+ pub mixed_segment: Option<String>,}// Unicode blocks that the English (ModernBERT-large, 50k English BPE) checkpoint cannot read.@@ -108,6 +120,27 @@ const SCRIPT_RANGES: &[(&str, &[(u32, u32)])] = &[/// stopword list matches it.const NON_EN_DIACRITIC_RATE: f64 = 0.02;+/// One accented loanword or proper noun (`café`, `résumé`, `José`) must not alone pull otherwise+/// plain English off the English checkpoint: the rate is measured over every character, so a+/// single `é` in a short sentence clears the floor above. English function words keep their say+/// only through the rescue in [`english_rescued_by_words`]; a rate this high vetoes it.+const ENGLISH_RESCUE_DIACRITIC_RATE: f64 = 0.06;++/// Non-Latin text is not for the English checkpoint even when Latin letters are the plurality: a+/// brand name or order code outvotes the CJK request around it letter for letter. A short+/// message needs a large share to count; a long payload dilutes the share, so there a sentence's+/// worth of letters counts too.+const NON_LATIN_FRACTION: f64 = 0.2;+const NON_LATIN_MIN_FRACTION: f64 = 0.1;+const NON_LATIN_MIN_LETTERS: i64 = 10;++/// An all-caps line must show a matched stopword at least this long before it is believed: the+/// shouted bar of `lang.py` (`_SHOUTED_MIN_STOPWORD`), chosen against three measured corpora.+const SHOUTED_MIN_STOPWORD: usize = 4;+/// ...and a token at least this long (`_SHOUTED_MIN_WORD`): a word rather than an acronym. Also+/// decides whether an all-caps run inside mixed-case text is an acronym worth blanking.+const SHOUTED_MIN_WORD: usize = 5;+/// Letters that ordinary English does not use. This catches a Latin-script language with no/// stopword list at all (Romanian, Polish, Czech, Turkish, Baltic, ...), which is the difference/// between routing it to the multilingual checkpoint and silently handing it to the English one.@@ -121,124 +154,572 @@ const NON_EN_DIACRITICS: &str = concat!("ğı", // Turkish"āēģīķļņūž", // Baltic"đ", // Serbo-Croatian / Vietnamese+ "ə", // Azerbaijani);-/// Function words. Latin-script languages overlap heavily (de/la/le/un/e/que), so each hit is-/// weighted and a margin is required before calling something non-English.-///-/// The Romance lists (fr/es/pt/it) deliberately carry the *unaccented* function words as well as-/// the accented ones. A state that lost its accents -- mail clients, ticket systems and any-/// pipeline that normalises to ASCII strip them -- keeps no diacritic rate for the non-English-/// signal to read, so `la`, `un`, `y`, `e`, `et`, `deux` and friends are the only evidence left.-/// With a list of mostly accented words such a state produced one hit or none, fell under the-/// two-hit margin below, and was handed to the English checkpoint as undecided-but-not-non-English-/// text.-///-/// Order is load-bearing for `latin_profile`'s tie-break (`_STOP` iteration order: en, fr, de, es,-/// pt, it, nl, ro), so this stays a `Vec` of `(code, words)` pairs rather than a `HashMap`.-fn stop_lists() -> &'static [&'static str] {- // Order is load-bearing (see the doc comment above): en, fr, de, es, pt, it, nl, ro.- &["en", "fr", "de", "es", "pt", "it", "nl", "ro"]-}--// Slices (not fixed-size arrays) throughout, so splitting a long list across several `const`s-// for readability never needs a manually counted length.+// Function words. Latin-script languages overlap heavily (de/la/le/un/e/que), so each hit is+// weighted and a margin is required before calling something non-English. Generated from the+// `_STOP` sets of `laya/lang.py` (sets, so order within a list carries no meaning; the order of+// the lists, in `TABLES`, does).+//+// The Romance lists (fr/es/pt/it) deliberately carry the *unaccented* function words as well as+// the accented ones: a state that lost its accents keeps no diacritic rate for the non-English+// signal to read. `de`/`en` stay out of Spanish and `no` out of Portuguese because they are+// common English tokens. The Swedish list holds words that survive ASCII-normalising ticket+// pipelines, the Bangla list is romanized ("Banglish") and leaves out words that are also+// English, and the Azerbaijani list leaves out `her`, `ne`, `men`, `de` and `ki` (collisions).const EN_STOP: &[&str] = &[- "the", "and", "is", "are", "was", "were", "to", "of", "in", "for", "with", "that", "this",- "it", "you", "have", "has", "not", "but", "on", "at", "be", "as", "from", "will", "can",- "would", "there", "their", "what", "which", "please", "we", "i",+ "and", "are", "as", "at", "be", "but", "can", "for", "from", "has", "have", "i", "in", "is",+ "it", "not", "of", "on", "please", "that", "the", "their", "there", "this", "to", "was", "we",+ "were", "what", "which", "will", "with", "would", "you",];const FR_STOP: &[&str] = &[- "le", "la", "les", "des", "une", "est", "pour", "dans", "que", "qui", "avec", "sur", "pas",- "plus", "nous", "vous", "être", "cette", "mais", "sont", "ont", "aux", "ce", "et", "du", "au",- "ou", "je", "tu", "il", "elle", "ils", "elles", "mon", "ton", "ma", "ta", "sa", "mes", "tes",- "ses", "ces", "deux", "trois", "très", "bien", "tout", "tous", "toute", "fait", "veux", "veut",- "peux", "peut", "dois", "doit", "merci", "bonjour", "jour", "jours", "mois", "fois", "quand",- "comment", "pourquoi", "alors", "donc",+ "alors", "au", "aux", "avec", "bien", "bonjour", "ce", "ces", "cette", "comment", "dans",+ "des", "deux", "dois", "doit", "donc", "du", "elle", "elles", "est", "et", "fait", "fois",+ "il", "ils", "je", "jour", "jours", "la", "le", "les", "ma", "mais", "merci", "mes", "mois",+ "mon", "nous", "ont", "ou", "pas", "peut", "peux", "plus", "pour", "pourquoi", "quand", "que",+ "qui", "sa", "ses", "sont", "sur", "ta", "tes", "ton", "tous", "tout", "toute", "trois",+ "très", "tu", "une", "veut", "veux", "vous", "être",];const DE_STOP: &[&str] = &[- "der", "die", "das", "und", "ist", "ein", "eine", "den", "dem", "nicht", "mit", "für", "auf",- "von", "zu", "sich", "auch", "werden", "wurde", "haben", "sind", "oder", "aber",+ "aber", "auch", "auf", "aus", "bei", "bitte", "das", "dem", "den", "der", "dich", "die",+ "diese", "diesen", "dieser", "dieses", "dir", "ein", "eine", "einem", "einen", "einer", "für",+ "gibt", "habe", "haben", "heute", "ich", "im", "in", "ist", "jetzt", "kann", "kannst", "mein",+ "meine", "meinem", "meinen", "meiner", "mich", "mir", "mit", "nach", "nicht", "noch", "oder",+ "sich", "sind", "und", "uns", "von", "wann", "was", "welche", "werden", "wie", "wir", "wird",+ "wo", "wurde", "zu", "zum", "zur",];const ES_STOP: &[&str] = &[- "el", "los", "las", "que", "por", "con", "para", "una", "es", "se", "del", "como", "pero",- "son", "está", "este", "esta", "todo", "más", "muy", "hay", "sus", "la", "un", "y", "al", "lo",- "le", "les", "su", "mi", "tu", "nos", "ni", "dos", "tres", "fue", "fueron", "ser", "tiene",- "tienen", "tengo", "puede", "pueden", "quiero", "necesito", "hemos", "han", "sobre", "entre",- "cuando", "donde", "porque", "aunque", "también", "ya", "eso", "esto", "esa", "ese", "nada",- "algo", "aquí", "hoy", "gracias",+ "al", "algo", "aquí", "aunque", "como", "con", "cuando", "del", "donde", "dos", "el", "entre",+ "es", "esa", "ese", "eso", "esta", "este", "esto", "está", "fue", "fueron", "gracias", "han",+ "hay", "hemos", "hoy", "la", "las", "le", "les", "lo", "los", "mi", "muy", "más", "nada",+ "necesito", "ni", "nos", "para", "pero", "por", "porque", "puede", "pueden", "que", "quiero",+ "se", "ser", "sobre", "son", "su", "sus", "también", "tengo", "tiene", "tienen", "todo",+ "tres", "tu", "un", "una", "y", "ya",];const PT_STOP: &[&str] = &[- "os", "as", "que", "em", "um", "uma", "para", "com", "não", "é", "se", "do", "da", "dos",- "das", "mas", "são", "está", "este", "esta", "muito", "pelo", "pela", "o", "e", "na", "nas",- "nos", "ao", "aos", "por", "foi", "era", "ser", "sou", "tem", "tenho", "pode", "podem",- "quero", "preciso", "eu", "meu", "minha", "seu", "sua", "isso", "isto", "aqui", "ali", "como",- "quando", "onde", "porque", "mais", "já", "ainda", "agora", "hoje", "ontem", "dois", "três",- "tudo", "nada", "obrigado", "olá",+ "agora", "ainda", "alguem", "alguém", "ali", "antes", "ao", "aos", "aqui", "as", "até", "boa",+ "cadê", "com", "como", "consigo", "da", "das", "depois", "deu", "do", "dois", "dos", "e", "em",+ "entao", "então", "era", "esta", "estamos", "estava", "este", "estou", "está", "eu", "ficou",+ "fiz", "foi", "gostaria", "hoje", "isso", "isto", "ja", "já", "mais", "mas", "meu", "meus",+ "minha", "minhas", "muito", "na", "nada", "nao", "nas", "nenhum", "nenhuma", "ninguem",+ "ninguém", "noite", "nos", "nossa", "nosso", "não", "o", "obrigada", "obrigado", "olá", "onde",+ "ontem", "os", "para", "pela", "pelo", "pode", "podem", "por", "porque", "pra", "preciso",+ "quando", "que", "quero", "sao", "se", "ser", "seu", "sou", "sua", "são", "tambem", "também",+ "tarde", "tem", "tenho", "três", "tudo", "tá", "um", "uma", "vc", "vcs", "voce", "voces",+ "você", "vocês", "é",];const IT_STOP: &[&str] = &[- "il", "lo", "gli", "che", "di", "per", "con", "non", "è", "si", "del", "della", "sono",- "questo", "questa", "anche", "come", "più", "nella", "alla", "la", "le", "un", "uno", "una",- "e", "ed", "o", "da", "su", "tra", "fra", "mi", "ci", "ne", "ho", "hai", "ha", "abbiamo",- "avete", "hanno", "era", "stato", "stata", "devo", "deve", "devono", "voglio", "vorrei", "mio",- "mia", "tuo", "sua", "quando", "dove", "perche", "molto", "poco", "sempre", "mai", "già",- "ancora", "adesso", "oggi", "ieri", "grazie", "ciao", "scusa", "nel", "nell", "negli", "sul",- "sulla", "sulle", "dal", "dalla", "dallo", "dagli", "dei", "delle", "dello", "degli", "agli",- "alle", "col",+ "abbiamo", "adesso", "agli", "alla", "alle", "anche", "ancora", "avete", "che", "ci", "ciao",+ "col", "come", "con", "da", "dagli", "dal", "dalla", "dallo", "degli", "dei", "del", "della",+ "delle", "dello", "deve", "devo", "devono", "di", "dove", "e", "ed", "era", "fra", "già",+ "gli", "grazie", "ha", "hai", "hanno", "ho", "ieri", "il", "la", "le", "lo", "mai", "mi",+ "mia", "mio", "molto", "ne", "negli", "nel", "nell", "nella", "non", "o", "oggi", "per",+ "perche", "più", "poco", "quando", "questa", "questo", "scusa", "sempre", "si", "sono",+ "stata", "stato", "su", "sua", "sul", "sulla", "sulle", "tra", "tuo", "un", "una", "uno",+ "voglio", "vorrei", "è",];const NL_STOP: &[&str] = &[- "het", "een", "van", "is", "op", "te", "dat", "niet", "met", "voor", "zijn", "aan", "door",- "maar", "ook", "worden", "deze", "naar", "wordt",+ "aan", "dat", "deze", "door", "een", "het", "is", "maar", "met", "naar", "niet", "ook", "op",+ "te", "van", "voor", "worden", "wordt", "zijn",+];++const SV_STOP: &[&str] = &[+ "appen",+ "aterbetala",+ "aterbetalning",+ "att",+ "behover",+ "behöver",+ "blivit",+ "debiterade",+ "dessa",+ "detta",+ "faktura",+ "fel",+ "från",+ "får",+ "ganger",+ "gång",+ "gånger",+ "gör",+ "göra",+ "hittar",+ "hjalp",+ "hjalpa",+ "hjälp",+ "hjälpa",+ "här",+ "installningarna",+ "installningen",+ "inställningarna",+ "inställningen",+ "inte",+ "jag",+ "kommer",+ "kraschar",+ "kvittot",+ "losenord",+ "lösenord",+ "mig",+ "min",+ "mitt",+ "måste",+ "nar",+ "när",+ "nästa",+ "och",+ "också",+ "om",+ "oppnar",+ "paket",+ "ska",+ "skicka",+ "skulle",+ "sparningen",+ "spårningen",+ "säger",+ "till",+ "tva",+ "två",+ "upp",+ "uppdaterats",+ "utan",+ "vi",+ "vill",+ "är",+ "återbetala",+ "återbetalning",+ "öppnar",];const RO_STOP: &[&str] = &[- "și", "să", "este", "sunt", "care", "pentru", "din", "dar", "după", "până", "fără", "ale",- "lui", "în", "fost", "acum", "vreau", "trebuie", "foarte", "acest", "această", "acesta",- "aceasta", "mi", "ți", "vă", "nu",+ "aceasta", "această", "acest", "acesta", "acum", "ale", "care", "dar", "din", "după", "este",+ "foarte", "fost", "fără", "lui", "mi", "nu", "pentru", "până", "sunt", "să", "trebuie",+ "vreau", "vă", "în", "și", "ți",];-fn words_for(code: &str) -> &'static [&'static str] {- match code {- "en" => EN_STOP,- "fr" => FR_STOP,- "de" => DE_STOP,- "es" => ES_STOP,- "pt" => PT_STOP,- "it" => IT_STOP,- "nl" => NL_STOP,- "ro" => RO_STOP,- other => unreachable!("no stop list for {other:?}"),+const BN_STOP: &[&str] = &[+ "abar",+ "ajke",+ "akhon",+ "amader",+ "amake",+ "amar",+ "ami",+ "amra",+ "apnake",+ "apnar",+ "apnara",+ "apni",+ "ar",+ "asbe",+ "bhai",+ "bhalo",+ "bolte",+ "bolun",+ "chai",+ "chaina",+ "dhonnobad",+ "dilam",+ "dite",+ "diye",+ "diyechi",+ "dorkar",+ "duibar",+ "ei",+ "eita",+ "ekbar",+ "ekhon",+ "ekhono",+ "ekta",+ "ferot",+ "geche",+ "gese",+ "hobe",+ "hocche",+ "hoise",+ "hoye",+ "hoyeche",+ "hoyni",+ "jabe",+ "jodi",+ "jonno",+ "kalke",+ "keno",+ "keu",+ "kharap",+ "khub",+ "ki",+ "kibhabe",+ "kichu",+ "kintu",+ "kivabe",+ "kobe",+ "kokhon",+ "korbo",+ "korchi",+ "kore",+ "koreche",+ "korechi",+ "koren",+ "korlam",+ "korsi",+ "korte",+ "korun",+ "kothay",+ "koto",+ "lagbe",+ "moddhe",+ "nai",+ "niye",+ "oi",+ "oita",+ "onek",+ "ota",+ "pabo",+ "paini",+ "parben",+ "parbo",+ "parchi",+ "parchina",+ "peyechi",+ "sathe",+ "shathe",+ "shob",+ "shomossa",+ "somossa",+ "tader",+ "tahole",+ "taka",+ "theke",+ "tomake",+ "tomar",+ "tomra",+ "tumi",+ "valo",+];++const AZ_STOP: &[&str] = &[+ "amma", "ancaq", "artiq", "artıq", "bir", "biz", "bu", "cox", "daha", "deyil", "də", "eger",+ "görə", "həm", "hər", "ile", "ilə", "isə", "kimi", "lakin", "mən", "nə", "olan", "olmasa",+ "olub", "onlar", "siz", "sonra", "sən", "ucun", "var", "ve", "və", "yalniz", "yalnız", "yox",+ "yoxdur", "çox", "üçün", "əgər",+];++const SHORT_SWEDISH_WORDS: &[&str] = &[+ "abonnemanget",+ "aterbetalning",+ "atkomst",+ "behover",+ "behöver",+ "betalningen",+ "fakturan",+ "felmeddelande",+ "glomt",+ "glömt",+ "inloggningen",+ "installningen",+ "inställningen",+ "kvitto",+ "kvittot",+ "losenord",+ "lösenord",+ "sparningen",+ "spårningen",+ "återbetalning",+ "åtkomst",+];++const NORDIC_OVERLAP_WORDS: &[&str] = &[+ "får", "hej", "ja", "jo", "kommer", "mig", "min", "nej", "om", "skulle", "tack", "vi",+];++/// The stop lists in `_STOP` iteration order (`en` first): the order is load-bearing for+/// `latin_profile`'s tie-break, which keeps the earlier language.+struct StopTables {+ lists: Vec<(&'static str, HashSet<&'static str>)>,+ /// Words that more than one list claims (plus the Swedish-Danish overlap words): a shared+ /// word may not name a winner by itself, though it still counts toward the total of a+ /// language that also matched a word of its own.+ shared: HashSet<&'static str>,+ /// English function words no other list holds. They alone carry the English rescue.+ en_only: HashSet<&'static str>,+ /// Function words of another language that are also ordinary English words: a repeat is+ /// evidence of the foreign language exactly once.+ collision: HashSet<&'static str>,+ nordic_overlap: HashSet<&'static str>,+ short_swedish: HashSet<&'static str>,+}++static TABLES: LazyLock<StopTables> = LazyLock::new(|| {+ let raw: [(&'static str, &'static [&'static str]); 11] = [+ ("en", EN_STOP),+ ("fr", FR_STOP),+ ("de", DE_STOP),+ ("es", ES_STOP),+ ("pt", PT_STOP),+ ("it", IT_STOP),+ ("nl", NL_STOP),+ ("sv", SV_STOP),+ ("ro", RO_STOP),+ ("bn", BN_STOP),+ ("az", AZ_STOP),+ ];+ let lists: Vec<(&'static str, HashSet<&'static str>)> = raw+ .iter()+ .map(|(code, words)| (*code, words.iter().copied().collect()))+ .collect();+ let mut membership: HashMap<&'static str, usize> = HashMap::new();+ for (_, set) in &lists {+ for word in set {+ *membership.entry(word).or_insert(0) += 1;+ }+ }+ let nordic_overlap: HashSet<&'static str> = NORDIC_OVERLAP_WORDS.iter().copied().collect();+ let mut shared: HashSet<&'static str> = membership+ .into_iter()+ .filter(|&(_, n)| n > 1)+ .map(|(w, _)| w)+ .collect();+ shared.extend(nordic_overlap.iter().copied());+ let en_only = lists[0].1.difference(&shared).copied().collect();+ let foreign: HashSet<&'static str> = lists[1..]+ .iter()+ .flat_map(|(_, set)| set.iter().copied())+ .collect();+ let collision = ["come", "son", "do", "care", "todo", "im", "per", "plus"]+ .into_iter()+ .filter(|w| foreign.contains(w))+ .collect();+ StopTables {+ lists,+ shared,+ en_only,+ collision,+ nordic_overlap,+ short_swedish: SHORT_SWEDISH_WORDS.iter().copied().collect(),}+});++fn stop_set(code: &str) -> Option<&'static HashSet<&'static str>> {+ TABLES+ .lists+ .iter()+ .find(|(c, _)| *c == code)+ .map(|(_, set)| set)}-impl LanguageDetection {- /// Whether `ch` is alphabetic under Python's `str.isalpha()` rule: Unicode general category- /// `Lu`, `Ll`, `Lt`, `Lm` or `Lo`. Unlike `char::is_alphabetic`, this excludes combining- /// marks.- pub(crate) fn is_alpha(ch: char) -> bool {- matches!(+// ---------------------------------------------------------------------------------------------+// Python-compatible character classes. `regex`'s `\w`, `\s` and `\b` differ from `re`'s on marks,+// joiners and a few control characters, so the patterns `lang.py` runs are hand-written over+// these predicates.+// ---------------------------------------------------------------------------------------------++/// `str.isspace()`: Unicode White_Space plus U+001C..U+001F (bidi class B/S), which `re`'s `\s`+/// accepts and the `regex` crate's does not.+pub(crate) fn py_is_space(ch: char) -> bool {+ ch.is_whitespace() || ('\u{1c}'..='\u{1f}').contains(&ch)+}++/// `str.strip()`.+pub(crate) fn py_strip(s: &str) -> &str {+ s.trim_matches(py_is_space)+}++/// `\d`: decimal digits (`Nd`) only.+fn is_decimal(ch: char) -> bool {+ get_general_category(ch) == GeneralCategory::DecimalNumber+}++/// `[^\W_]`: `isalnum()` -- letters and every kind of number, but not the underscore.+fn is_alnum(ch: char) -> bool {+ LanguageDetection::is_alpha(ch)+ || matches!(get_general_category(ch),- GeneralCategory::UppercaseLetter- | GeneralCategory::LowercaseLetter- | GeneralCategory::TitlecaseLetter- | GeneralCategory::ModifierLetter- | GeneralCategory::OtherLetter+ GeneralCategory::DecimalNumber+ | GeneralCategory::LetterNumber+ | GeneralCategory::OtherNumber)- }+}++/// `\w`: [`is_alnum`] plus the underscore.+pub(crate) fn is_word_char(ch: char) -> bool {+ ch == '_' || is_alnum(ch)+}++/// `[^\W\d_]`: a letter, or a numeral that is not a plain decimal digit.+pub(crate) fn is_letter_word(ch: char) -> bool {+ is_alnum(ch) && !is_decimal(ch)+}- /// Whether `ch` matches Python's `[^\W\d_]` character class: a `\w` character (letter, `Nl`,- /// `No` or `_`) that is neither a decimal digit (`\d` = category `Nd`) nor `_`. In practice- /// this is "a letter, or a numeral that is not a plain decimal digit".- fn is_word_not_digit_or_underscore(ch: char) -> bool {- if ch == '_' {+fn is_titlecase(ch: char) -> bool {+ get_general_category(ch) == GeneralCategory::TitlecaseLetter+}++/// `ch.isupper()` for a one-character string.+pub(crate) fn char_is_upper(ch: char) -> bool {+ ch.is_uppercase() && !ch.is_lowercase() && !is_titlecase(ch)+}++/// `ch.islower()` for a one-character string.+fn char_is_lower(ch: char) -> bool {+ ch.is_lowercase() && !ch.is_uppercase() && !is_titlecase(ch)+}++/// `s.isupper()`: at least one uppercase letter and no lowercase or titlecase one.+fn str_is_upper(s: &str) -> bool {+ let mut cased = false;+ for ch in s.chars() {+ if ch.is_lowercase() || is_titlecase(ch) {return false;}+ if ch.is_uppercase() {+ cased = true;+ }+ }+ cased+}++/// The first `n` characters of `s` (Python's `s[:n]`).+pub(crate) fn prefix_chars(s: &str, n: usize) -> &str {+ match s.char_indices().nth(n) {+ Some((idx, _)) => &s[..idx],+ None => s,+ }+}++/// Maximal runs of `[^\W\d_]` in `text` (`_WORD.findall`).+fn word_runs(text: &str) -> Vec<&str> {+ let mut words = Vec::new();+ let mut start: Option<usize> = None;+ for (idx, ch) in text.char_indices() {+ if is_letter_word(ch) {+ if start.is_none() {+ start = Some(idx);+ }+ } else if let Some(s) = start.take() {+ words.push(&text[s..idx]);+ }+ }+ if let Some(s) = start {+ words.push(&text[s..]);+ }+ words+}++/// `_IDENTIFIER.sub(" ", text)`: `(?<![\w-])[\w-]*(?:[.@][\w-]+)+`. A token whose dot or `@` joins+/// word characters is an identifier, not prose (`github.com`, `[email protected]`, `v1.2.3`). A+/// sentence-final period keeps its word: the pattern needs word characters on both sides.+fn replace_identifiers(text: &str) -> String {+ let is_ident = |c: char| is_word_char(c) || c == '-';+ let chars: Vec<char> = text.chars().collect();+ let n = chars.len();+ let mut out = String::with_capacity(text.len());+ let mut i = 0;+ while i < n {+ // The lookbehind only lets a match start at the head of a run, which is also what keeps+ // this linear: a shorter `[\w-]*` could never be followed by `[.@]`.+ if i == 0 || !is_ident(chars[i - 1]) {+ let mut j = i;+ while j < n && is_ident(chars[j]) {+ j += 1;+ }+ let mut groups = 0;+ while j < n && (chars[j] == '.' || chars[j] == '@') {+ let mut k = j + 1;+ while k < n && is_ident(chars[k]) {+ k += 1;+ }+ if k == j + 1 {+ break;+ }+ j = k;+ groups += 1;+ }+ if groups > 0 {+ out.push(' ');+ i = j;+ continue;+ }+ }+ out.push(chars[i]);+ i += 1;+ }+ out+}++/// `_CODE_LINE.search`: `[=;{}\[\]]|\w\(` -- a line carrying code syntax is not prose.+fn has_code_syntax(line: &str) -> bool {+ let mut prev_word = false;+ for ch in line.chars() {+ if matches!(ch, '=' | ';' | '{' | '}' | '[' | ']') || (ch == '(' && prev_word) {+ return true;+ }+ prev_word = is_word_char(ch);+ }+ false+}++/// `_JOINED.search(token)`: `[^\W_][._/\\][^\W_]` -- a name, path or compound (`Nav/Com`, `OS/2`,+/// `C:\DOS\mode`), not a sentence.+fn is_joined_token(token: &str) -> bool {+ let chars: Vec<char> = token.chars().collect();+ chars+ .windows(3)+ .any(|w| is_alnum(w[0]) && matches!(w[1], '.' | '_' | '/' | '\\') && is_alnum(w[2]))+}++/// `_LETTER_RUN.finditer`: maximal runs of at least two `[^\W\d_]` characters, as byte ranges.+fn letter_runs(text: &str) -> Vec<(usize, usize)> {+ let mut runs = Vec::new();+ let mut start: Option<(usize, usize)> = None; // (byte offset, char count so far)+ for (idx, ch) in text.char_indices() {+ if is_letter_word(ch) {+ start = Some(match start {+ Some((s, n)) => (s, n + 1),+ None => (idx, 1),+ });+ } else if let Some((s, n)) = start.take()+ && n >= 2+ {+ runs.push((s, idx));+ }+ }+ if let Some((s, n)) = start+ && n >= 2+ {+ runs.push((s, text.len()));+ }+ runs+}++/// `_LETTER_RUN.sub(lambda m: " " if m.group().isupper() else m.group(), text)`.+fn blank_upper_runs(text: &str) -> String {+ let mut out = String::with_capacity(text.len());+ let mut last = 0;+ for (s, e) in letter_runs(text) {+ if str_is_upper(&text[s..e]) {+ out.push_str(&text[last..s]);+ out.push(' ');+ last = e;+ }+ }+ out.push_str(&text[last..]);+ out+}++impl LanguageDetection {+ /// Whether `ch` is alphabetic under Python's `str.isalpha()` rule: Unicode general category+ /// `Lu`, `Ll`, `Lt`, `Lm` or `Lo`. Unlike `char::is_alphabetic`, this excludes combining+ /// marks.+ pub(crate) fn is_alpha(ch: char) -> bool {matches!(get_general_category(ch),GeneralCategory::UppercaseLetter@@ -246,8 +727,6 @@ impl LanguageDetection {| GeneralCategory::TitlecaseLetter| GeneralCategory::ModifierLetter| GeneralCategory::OtherLetter- | GeneralCategory::LetterNumber- | GeneralCategory::OtherNumber)}@@ -261,21 +740,23 @@ impl LanguageDetection {None}- /// Whether `cp` falls in the Latin block (Basic Latin through Latin-1 Supplement and the- /// Latin Extended blocks below Latin Extended Additional, plus Latin Extended Additional- /// itself) that `detect_script`/`script_profile` treat as "latin".+ /// Whether `cp` counts as Latin: Basic Latin through the IPA Extensions (below U+02B0),+ /// Latin Extended Additional, and the fullwidth Latin letters.fn is_latin_codepoint(cp: u32) -> bool {- cp < 0x0250 || (0x1E00..=0x1EFF).contains(&cp)+ cp < 0x02B0+ || (0x1E00..=0x1EFF).contains(&cp)+ || (0xFF21..=0xFF3A).contains(&cp)+ || (0xFF41..=0xFF5A).contains(&cp)}/// Collect the string leaves of a state (str / object / array), so detection sees real/// content. Depths beyond 6 are dropped, and keys are ignored (they are usually English).- fn iter_text(state: &serde_json::Value, depth: u32, out: &mut Vec<String>) {+ fn iter_text<'a>(state: &'a serde_json::Value, depth: u32, out: &mut Vec<&'a str>) {if depth > 6 {return;}match state {- serde_json::Value::String(s) => out.push(s.clone()),+ serde_json::Value::String(s) => out.push(s),serde_json::Value::Object(map) => {for v in map.values() {Self::iter_text(v, depth + 1, out);@@ -290,13 +771,33 @@ impl LanguageDetection {}}+ fn leaves(state: &serde_json::Value) -> Vec<&str> {+ let mut out = Vec::new();+ Self::iter_text(state, 0, &mut out);+ out+ }+/// Flatten a state into the text used for detection (keys are ignored: they are usually/// English). `max_chars` truncates by Unicode scalar value, matching Python's `[:max_chars]`/// string slice.pub fn state_text(state: &serde_json::Value, max_chars: usize) -> String {- let mut parts = Vec::new();- Self::iter_text(state, 0, &mut parts);- parts.join(" ").chars().take(max_chars).collect()+ // lang.py:state_text stops adding leaves once the budget (which counts each joining+ // space) is spent, so a leaf that ends exactly at the budget gets no trailing space.+ let mut parts: Vec<&str> = Vec::new();+ let mut budget = max_chars as i64;+ for leaf in Self::leaves(state) {+ if budget <= 0 {+ break;+ }+ let len = leaf.chars().count() as i64;+ if len > budget {+ parts.push(prefix_chars(leaf, budget as usize));+ break;+ }+ parts.push(leaf);+ budget -= len + 1;+ }+ prefix_chars(&parts.join(" "), max_chars).to_string()}/// [`Self::state_text`] with Python's default `max_chars=4000`.@@ -308,84 +809,15 @@ impl LanguageDetection {/// are no letters.////// Ties are broken by first-inserted order: the non-Latin scripts in the order they first- /// appear in `text`, then `"latin"` last (it is only ever added to the tally after the scan,- /// so it never wins a tie against a non-Latin script present in the same text).+ /// appear in `text`, then `"latin"` last, so Latin never wins a tie against a non-Latin+ /// script present in the same text.pub fn detect_script(text: &str) -> String {- let mut counts: Vec<(&'static str, i64)> = Vec::new();- let mut latin: i64 = 0;- for ch in text.chars() {- if !Self::is_alpha(ch) {- continue;- }- let cp = ch as u32;- if Self::is_latin_codepoint(cp) {- latin += 1;- continue;- }- let name = Self::script_for_codepoint(cp).unwrap_or("other");- match counts.iter_mut().find(|(n, _)| *n == name) {- Some(entry) => entry.1 += 1,- None => counts.push((name, 1)),- }- }- counts.push(("latin", latin));-- let total: i64 = counts.iter().map(|(_, c)| c).sum();- if total == 0 {- return "unknown".to_string();- }- let mut best = 0usize;- for i in 1..counts.len() {- if counts[i].1 > counts[best].1 {- best = i;- }- }- counts[best].0.to_string()+ ScriptCounts::of(text).dominant().to_string()}/// Fraction of alphabetic characters belonging to each detected script.pub fn script_profile(text: &str) -> HashMap<String, f64> {- let mut counts: HashMap<&'static str, i64> = HashMap::new();- counts.insert("latin", 0);- for ch in text.chars() {- if !Self::is_alpha(ch) {- continue;- }- let cp = ch as u32;- if Self::is_latin_codepoint(cp) {- *counts.get_mut("latin").unwrap() += 1;- continue;- }- let name = Self::script_for_codepoint(cp).unwrap_or("other");- *counts.entry(name).or_insert(0) += 1;- }- let total: i64 = counts.values().sum();- if total == 0 {- return HashMap::new();- }- counts- .into_iter()- .filter(|&(_, v)| v != 0)- .map(|(k, v)| (k.to_string(), v as f64 / total as f64))- .collect()- }-- /// Words in `text`, split on runs of Python's `[^\W\d_]` character class and lowercased with- /// full Unicode case mapping.- fn words(text: &str) -> Vec<String> {- let mut words = Vec::new();- let mut current = String::new();- for ch in text.chars() {- if Self::is_word_not_digit_or_underscore(ch) {- current.push(ch);- } else if !current.is_empty() {- words.push(std::mem::take(&mut current).to_lowercase());- }- }- if !current.is_empty() {- words.push(current.to_lowercase());- }- words+ ScriptCounts::of(text).profile()}/// Evidence behind the Latin-script language guess: `language` (may be `None` when@@ -395,95 +827,15 @@ impl LanguageDetection {////// A non-English language is only named when it matched at least one word that no other list/// claims: shared function words alone (`la`, `e`, `o`) identify no particular language.+ /// `looks_non_english` can be true for non-English diacritics or an overlapping+ /// Swedish-Danish marker even when no language is named.pub fn latin_profile(text: &str) -> LatinProfile {- let words = Self::words(text);- let lowered = text.to_lowercase();- let diac = lowered- .chars()- .filter(|c| NON_EN_DIACRITICS.contains(*c))- .count();- let diac_rate = diac as f64 / (lowered.chars().count().max(1) as f64);- let non_english = diac_rate >= NON_EN_DIACRITIC_RATE;-- if words.len() < 4 {- return LatinProfile {- language: None,- english_hits: 0,- diacritic_rate: diac_rate,- looks_non_english: non_english,- };- }-- let word_set: std::collections::HashSet<&str> = words.iter().map(String::as_str).collect();-- let lists = stop_lists();- // Word counted more than once across the stop lists: a word may not name a language by- // itself, though it still counts toward that language's score.- let mut membership: HashMap<&str, i32> = HashMap::new();- for &code in lists {- for w in words_for(code) {- *membership.entry(w).or_insert(0) += 1;- }- }- let shared_words: std::collections::HashSet<&str> = membership- .into_iter()- .filter(|&(_, count)| count > 1)- .map(|(w, _)| w)- .collect();-- let mut scores: HashMap<&str, i64> = HashMap::new();- for &code in lists {- let set: std::collections::HashSet<&str> = words_for(code).iter().copied().collect();- let score = words.iter().filter(|w| set.contains(w.as_str())).count() as i64;- scores.insert(code, score);- }- let en = *scores.get("en").unwrap_or(&0);-- // Only a language that matched at least one word no other list claims may be named.- // Evaluated (and the winner picked) in `stop_lists()` order, so ties keep the earlier- // language, matching Python's dict iteration + `max()`.- let mut best_lg: Option<&str> = None;- let mut best: i64 = 0;- for &code in lists {- if code == "en" {- continue;- }- let list_set: std::collections::HashSet<&str> =- words_for(code).iter().copied().collect();- let has_own_word = word_set- .intersection(&list_set)- .any(|w| !shared_words.contains(w));- if !has_own_word {- continue;- }- let score = scores[code];- if best_lg.is_none() || score > best {- best_lg = Some(code);- best = score;- }- }-- let mut language = None;- if let Some(lg) = best_lg {- if best >= 2i64.max(en + 2) {- // A non-English language needs a clear margin over English function words.- language = Some(lg.to_string());- } else if non_english && best >= 2i64.max(en) {- // Needs two hits here too: one shared function word ("para" in Turkish text)- // named Spanish on the strength of the diacritics alone, which is a guess dressed- // as a detection.- language = Some(lg.to_string());- }- }- if language.is_none() && en > 0 && !non_english {- language = Some("en".to_string());- }-+ let p = latin_profile_inner(text);LatinProfile {- language,- english_hits: en,- diacritic_rate: diac_rate,- looks_non_english: non_english,+ language: p.language.map(str::to_string),+ english_hits: p.english_hits,+ diacritic_rate: p.diacritic_rate,+ looks_non_english: p.looks_non_english,}}@@ -497,116 +849,56 @@ impl LanguageDetection {Self::latin_profile(text).language}- /// Non-Latin words, excluding one-letter symbols and capitalised proper names.- fn has_non_latin_words(text: &str) -> bool {- let mut current = String::new();- let mut script = None;- let is_word = |word: &str| {- word.chars().count() >= 2 && word.chars().next().is_some_and(|c| !c.is_uppercase())- };- for ch in text.chars() {- if matches!(- get_general_category(ch),- GeneralCategory::NonspacingMark- | GeneralCategory::SpacingMark- | GeneralCategory::EnclosingMark- ) {- continue;- }- let next = if Self::is_alpha(ch) && !Self::is_latin_codepoint(ch as u32) {- Self::script_for_codepoint(ch as u32)- } else {- None- };- if next.is_some() && next == script {- current.push(ch);- continue;- }- if is_word(¤t) {- return true;- }- current.clear();- script = next;- if next.is_some() {- current.push(ch);- }- }- is_word(¤t)- }-/// Full detection result for a state. See [`LanguageAnalysis`].+ ///+ /// String values are what get read. A state that reads English as a whole is then checked+ /// line by line and field by field, because the English part is usually the longer one and+ /// outvotes a short message in another language (a Portuguese ticket with an English stack+ /// trace); one non-English value is enough to move the state to the multilingual checkpoint.pub fn analyse(state: &serde_json::Value) -> LanguageAnalysis {- let text = Self::state_text_default(state);- let prof = Self::script_profile(&text);- let mut script = Self::detect_script(&text);- let non_latin = if prof.is_empty() {- 0.0- } else {- crate::calibration::Calibration::round4(1.0 - prof.get("latin").copied().unwrap_or(0.0))- };- let n_non_latin = (non_latin * text.chars().filter(|&c| Self::is_alpha(c)).count() as f64)- .round_ties_even();- if script == "latin"- && Self::has_non_latin_words(&text)- && (non_latin >= 0.2 || (non_latin >= 0.1 && n_non_latin >= 10.0))+ let leaves = Self::leaves(state);+ let mut result = analyse_text(&Self::state_text_default(state));+ // a single line has no other part to be outvoted by, and was just read whole+ if result.script == "latin"+ && result.is_english+ && (leaves.len() > 1 || leaves.iter().any(|leaf| leaf.contains('\n')))+ && let Some((lang, mixed)) = non_english_segment(&leaves, 4000){- // Preserve Python's first-seen tie order, rather than HashMap iteration order.- let mut best = 0.0;- for ch in text.chars().filter(|&c| Self::is_alpha(c)) {- if Self::is_latin_codepoint(ch as u32) {- continue;- }- let name = Self::script_for_codepoint(ch as u32).unwrap_or("other");- let fraction = prof.get(name).copied().unwrap_or(0.0);- if fraction > best {- script = name.to_string();- best = fraction;- }- }+ result.language = Some(lang.to_string());+ result.is_english = false;+ result.language_undecided = false;+ result.mixed_segment = Some(mixed);}-- if script == "unknown" {- return LanguageAnalysis {- script: "unknown".to_string(),- script_profile: prof,- language: None,- is_english: true,- language_undecided: true,- diacritic_rate: 0.0,- non_latin_fraction: 0.0,- };+ // A plain string was just read whole. A structured state can still hide a message past+ // the segment cap, or in a script `latin_profile` does not name.+ if matches!(+ state,+ serde_json::Value::String(_) | serde_json::Value::Null+ ) || !result.is_english+ {+ return result;}- if script != "latin" {- return LanguageAnalysis {- script,- script_profile: prof,- language: None,- is_english: false,- language_undecided: true,- diacritic_rate: 0.0,- non_latin_fraction: non_latin,+ let mut best_n: i64 = -1;+ let mut best: Option<LanguageAnalysis> = None;+ for leaf in &leaves {+ let Some(det) = leaf_non_english(leaf) else {+ continue;};+ let n_alpha = prefix_chars(leaf, 4000)+ .chars()+ .filter(|&c| Self::is_alpha(c))+ .count() as i64;+ if n_alpha > best_n {+ best_n = n_alpha;+ best = Some(det);+ }}-- let prof_lat = Self::latin_profile(&text);- let lang = prof_lat.language.clone();- // Undecided is not English. Treating it as English sent every Latin-script language with- // no stopword list here to the checkpoint that cannot read it, silently. When nothing- // identifies the language, non-English letters are enough to prefer the multilingual- // checkpoint; text with no such letters (including short English) still goes to the- // English one.- let undecided = lang.is_none();- let english = lang.as_deref() == Some("en") || (undecided && !prof_lat.looks_non_english);-- LanguageAnalysis {- script: "latin".to_string(),- script_profile: prof,- language: lang,- is_english: english,- language_undecided: undecided,- diacritic_rate: crate::calibration::Calibration::round4(prof_lat.diacritic_rate),- non_latin_fraction: non_latin,+ if let Some(best) = best {+ result.language = best.language;+ result.is_english = false;+ result.language_undecided = best.language_undecided;}+ result}/// True when the English checkpoint can be expected to read this state.@@ -624,6 +916,501 @@ pub struct LatinProfile {pub english_hits: i64,/// Fraction of (lowercased) characters that are non-English Latin diacritics.pub diacritic_rate: f64,- /// Whether the diacritic rate alone is high enough to call the text non-English.+ /// Whether the text looks non-English on its own evidence: a diacritic rate at or above the+ /// threshold, or a Swedish-Danish overlap marker with no language named.pub looks_non_english: bool,}++struct LatinProfileInner {+ language: Option<&'static str>,+ english_hits: i64,+ diacritic_rate: f64,+ looks_non_english: bool,+}++/// Per-script letter counts of one text, in `lang.py`'s `_script_counts` insertion order.+struct ScriptCounts {+ /// Named scripts (and `"other"`, for letters no range claims) in first-seen order.+ named: Vec<(&'static str, i64)>,+ latin: i64,+}++impl ScriptCounts {+ fn of(text: &str) -> Self {+ let mut named: Vec<(&'static str, i64)> = Vec::new();+ let mut latin = 0;+ for ch in text.chars() {+ if !LanguageDetection::is_alpha(ch) {+ continue;+ }+ let cp = ch as u32;+ if LanguageDetection::is_latin_codepoint(cp) {+ latin += 1; // Latin, IPA Extensions, Extended Additional, fullwidth+ continue;+ }+ // A letter no range claims is counted under "other": text in an unlisted script must+ // stay visible and non-Latin, never be reported as "unknown" and handed to English.+ let name = LanguageDetection::script_for_codepoint(cp).unwrap_or("other");+ match named.iter_mut().find(|(n, _)| *n == name) {+ Some(entry) => entry.1 += 1,+ None => named.push((name, 1)),+ }+ }+ Self { named, latin }+ }++ fn total(&self) -> i64 {+ self.latin + self.named.iter().map(|(_, c)| c).sum::<i64>()+ }++ /// `_script_from_counts`: the first script with the highest count; Latin is last, so a named+ /// script wins a tie against it.+ fn dominant(&self) -> &'static str {+ if self.total() == 0 {+ return "unknown";+ }+ let mut best: Option<(&'static str, i64)> = None;+ for &(name, count) in self+ .named+ .iter()+ .chain(std::iter::once(&("latin", self.latin)))+ {+ if best.is_none_or(|(_, b)| count > b) {+ best = Some((name, count));+ }+ }+ best.map_or("unknown", |(name, _)| name)+ }++ fn profile(&self) -> HashMap<String, f64> {+ let total = self.total();+ if total == 0 {+ return HashMap::new();+ }+ let mut out = HashMap::new();+ if self.latin != 0 {+ out.insert("latin".to_string(), self.latin as f64 / total as f64);+ }+ for &(name, count) in &self.named {+ if count != 0 {+ out.insert(name.to_string(), count as f64 / total as f64);+ }+ }+ out+ }++ /// `max(s for s in prof if s != "latin", key=prof.get)`: the first non-Latin script with the+ /// highest count.+ fn dominant_non_latin(&self) -> Option<&'static str> {+ let mut best: Option<(&'static str, i64)> = None;+ for &(name, count) in &self.named {+ if best.is_none_or(|(_, b)| count > b) {+ best = Some((name, count));+ }+ }+ best.map(|(name, _)| name)+ }+}++fn round4(x: f64) -> f64 {+ crate::calibration::Calibration::round4(x)+}++/// Whether the non-Latin letters of a Latin-plurality text are enough to carry the state.+fn non_latin_carries(non_latin: f64, n_non_latin: i64) -> bool {+ non_latin >= NON_LATIN_FRACTION+ || (non_latin >= NON_LATIN_MIN_FRACTION && n_non_latin >= NON_LATIN_MIN_LETTERS)+}++/// `_script_of`: the named non-Latin script of one character, or `None` for Latin and for+/// characters no range claims. (Not restricted to letters: script punctuation joins its run.)+fn script_of(ch: char) -> Option<&'static str> {+ let cp = ch as u32;+ if cp < 0x0250+ || (0x1E00..=0x1EFF).contains(&cp)+ || (0xFF21..=0xFF3A).contains(&cp)+ || (0xFF41..=0xFF5A).contains(&cp)+ {+ return None;+ }+ LanguageDetection::script_for_codepoint(cp)+}++/// `_non_latin_words`: non-Latin runs that read as words rather than as annotation inside+/// English prose. A symbol (`Set α to 0.05`, one letter), a proper name (`Дмитрий Петрович`,+/// capitalised) and a pronunciation (`[vlɐˈdʲimʲɪr]`, which no range claims) are excluded. A+/// character with a canonical combining class belongs to the letter before it and never splits a+/// word.+fn non_latin_words(text: &str) -> Vec<String> {+ let mut runs: Vec<String> = Vec::new();+ let mut cur = String::new();+ let mut script: Option<&'static str> = None;+ for ch in text.chars() {+ if canonical_combining_class(ch) != 0 {+ continue;+ }+ let s = script_of(ch);+ if s.is_some() && s == script {+ cur.push(ch);+ continue;+ }+ if !cur.is_empty() {+ runs.push(std::mem::take(&mut cur));+ }+ if s.is_some() {+ cur.push(ch);+ }+ script = s;+ }+ if !cur.is_empty() {+ runs.push(cur);+ }+ runs.into_iter()+ .filter(|w| w.chars().count() >= 2 && !w.chars().next().is_some_and(char_is_upper))+ .collect()+}++/// `_english_rescued_by_words`: whether plain-English function words outvote a marginal+/// diacritic rate. English still wins when it shows at least two distinct function words no+/// other list holds and at most one word carrying a non-English letter. A rate well above+/// [`ENGLISH_RESCUE_DIACRITIC_RATE`] vetoes regardless.+fn english_rescued_by_words(word_set: &HashSet<&str>, diac_rate: f64) -> bool {+ if diac_rate >= ENGLISH_RESCUE_DIACRITIC_RATE {+ return false;+ }+ if word_set.intersection(&TABLES.en_only).count() < 2 {+ return false;+ }+ word_set+ .iter()+ .filter(|w| w.chars().any(|c| NON_EN_DIACRITICS.contains(c)))+ .count()+ <= 1+}++fn latin_profile_inner(text: &str) -> LatinProfileInner {+ // 'İ'.lower() is 'i' + a combining dot, which matches no word list.+ let cleaned = replace_identifiers(text).replace('İ', "i").to_lowercase();+ let words = word_runs(&cleaned);+ let lowered = text.to_lowercase();+ let diac = lowered+ .chars()+ .filter(|c| NON_EN_DIACRITICS.contains(*c))+ .count();+ let diac_rate = diac as f64 / (lowered.chars().count().max(1) as f64);+ let non_english = diac_rate >= NON_EN_DIACRITIC_RATE;+ let word_set: HashSet<&str> = words.iter().copied().collect();+ let tables = &*TABLES;+ let nordic_overlap =+ !word_set.is_disjoint(&tables.nordic_overlap) && word_set.is_disjoint(&tables.en_only);+ if words.len() > 1 && words.len() < 4 && !word_set.is_disjoint(&tables.short_swedish) {+ return LatinProfileInner {+ language: Some("sv"),+ english_hits: 0,+ diacritic_rate: diac_rate,+ looks_non_english: non_english,+ };+ }+ if words.len() < 4 {+ return LatinProfileInner {+ language: None,+ english_hits: 0,+ diacritic_rate: diac_rate,+ looks_non_english: non_english || nordic_overlap,+ };+ }++ // A collision word counts once however often it repeats; every other word counts its hits.+ let mut counts: HashMap<&str, i64> = HashMap::new();+ for w in &words {+ *counts.entry(w).or_insert(0) += 1;+ }+ let score_of = |set: &HashSet<&'static str>| -> i64 {+ counts+ .iter()+ .filter(|(w, _)| set.contains(*w))+ .map(|(w, n)| if tables.collision.contains(w) { 1 } else { *n })+ .sum()+ };+ let en = score_of(&tables.lists[0].1);++ // Only a language that matched at least one word no other list claims may be named. Without+ // that the top score can be pure overlap -- `la` and `e` in Romanian text made Italian the+ // winner -- which is a guess dressed as a detection. Such a language is dropped from the+ // running rather than merely losing the tie. Ties keep the earlier language (`max()` returns+ // the first maximum in `_STOP` order).+ let mut best_lg: Option<&'static str> = None;+ let mut best: i64 = 0;+ for (code, set) in tables.lists.iter().skip(1) {+ if !word_set+ .iter()+ .any(|w| set.contains(w) && !tables.shared.contains(w))+ {+ continue;+ }+ let score = score_of(set);+ if best_lg.is_none() || score > best {+ best_lg = Some(code);+ best = score;+ }+ }++ let mut language: Option<&'static str> = None;+ if best_lg.is_some() && best >= 2i64.max(en + 2) {+ // a non-English language needs a clear margin over English function words+ language = best_lg;+ } else if best_lg == Some("sv")+ && word_set.contains("inte")+ && word_set.contains("kan")+ && matches!(words[0], "kan" | "jag" | "vi")+ && en <= 1+ {+ // Short login requests such as "kan inte logga in" carry a distinctive Swedish phrase+ // but also one English-shaped token (`in`). `kan` alone is not Swedish: it is common in+ // Danish and Norwegian too.+ language = best_lg;+ } else if best_lg.is_some() && non_english && best >= 2i64.max(en) {+ // Needs two hits here too: one shared function word ("para" in Turkish text) named+ // Spanish on the strength of the diacritics alone, which is a guess dressed as a+ // detection.+ language = best_lg;+ } else if en > 0 && (!non_english || english_rescued_by_words(&word_set, diac_rate)) {+ language = Some("en");+ }+ LatinProfileInner {+ language,+ english_hits: en,+ diacritic_rate: diac_rate,+ looks_non_english: non_english || (language.is_none() && nordic_overlap),+ }+}++/// `_shouted`: true for a *cased* segment written entirely in capitals. The `isupper` half is+/// not redundant: a caseless script (Devanagari, Bengali, CJK) has no lowercase either, and the+/// bar belongs to cased text.+fn shouted(text: &str) -> bool {+ text.chars().any(char_is_upper) && !text.chars().any(char_is_lower)+}++/// `_shouted_evidence`: whether an all-caps line's evidence for `lang` is more than+/// acronym-shaped tokens.+fn shouted_evidence(tokens: &[&str], lang: &str, diacritic_rate: f64) -> bool {+ if !tokens.iter().any(|t| t.chars().count() >= SHOUTED_MIN_WORD) {+ return false;+ }+ if diacritic_rate >= NON_EN_DIACRITIC_RATE {+ return true;+ }+ let Some(stop) = stop_set(lang) else {+ return false;+ };+ tokens+ .iter()+ .map(|t| t.to_lowercase())+ .any(|w| stop.contains(w.as_str()) && w.chars().count() >= SHOUTED_MIN_STOPWORD)+}++/// `_named_prose_language`: the language code for one non-code line, or `None` when it does not+/// name a foreign language. Four words, a language `latin_profile` will name, and two+/// *different* words of that language; acronyms and slash compounds are not words, and a segment+/// in all capitals must also clear [`shouted_evidence`].+fn named_prose_language(segment: &str) -> Option<&'static str> {+ if py_strip(segment).is_empty() || has_code_syntax(segment) {+ return None;+ }+ let mut prose = segment+ .split(py_is_space)+ .filter(|tok| !tok.is_empty() && !is_joined_token(tok))+ .collect::<Vec<_>>()+ .join(" ");+ let is_shouted = shouted(&prose);+ if !is_shouted {+ prose = blank_upper_runs(&prose);+ }+ let tokens = word_runs(&prose);+ if tokens.len() < 4 {+ return None;+ }+ let prof = latin_profile_inner(&prose);+ let lang = prof.language?;+ if lang == "en" {+ return None;+ }+ if is_shouted && !shouted_evidence(&tokens, lang, prof.diacritic_rate) {+ return None;+ }+ let stop = stop_set(lang)?;+ let distinct: HashSet<String> = tokens.iter().map(|t| t.to_lowercase()).collect();+ if distinct+ .iter()+ .filter(|w| stop.contains(w.as_str()))+ .count()+ < 2+ {+ return None;+ }+ Some(lang)+}++/// `_non_english_segment`: the first line or field that, read on its own, is named a non-English+/// language -- `(language, segment)`. Reads at most `max_chars` characters in all.+fn non_english_segment(leaves: &[&str], max_chars: usize) -> Option<(&'static str, String)> {+ let mut seen = 0usize;+ for leaf in leaves {+ for seg in leaf.split('\n') {+ if seen >= max_chars {+ return None;+ }+ let seg = prefix_chars(seg, max_chars - seen);+ seen += seg.chars().count();+ if let Some(lang) = named_prose_language(seg) {+ return Some((lang, py_strip(seg).to_string()));+ }+ }+ }+ None+}++/// `_analyse_text`: the detection result for one already-flattened string. Does not look for a+/// foreign line inside mostly-English text; [`LanguageDetection::analyse`] does that.+fn analyse_text(text: &str) -> LanguageAnalysis {+ let counts = ScriptCounts::of(text);+ let total = counts.total();+ let prof = counts.profile();+ let mut script = counts.dominant();+ let non_latin = if total > 0 {+ round4(1.0 - counts.latin as f64 / total as f64)+ } else {+ 0.0+ };+ let n_non_latin = (non_latin * total as f64).round_ties_even() as i64;+ if script == "latin"+ && !non_latin_words(text).is_empty()+ && non_latin_carries(non_latin, n_non_latin)+ && let Some(promoted) = counts.dominant_non_latin()+ {+ script = promoted;+ }+ if script == "unknown" {+ return LanguageAnalysis {+ script: "unknown".to_string(),+ script_profile: prof,+ language: None,+ is_english: true,+ language_undecided: true,+ diacritic_rate: 0.0,+ non_latin_fraction: 0.0,+ mixed_segment: None,+ };+ }+ if script != "latin" {+ return LanguageAnalysis {+ script: script.to_string(),+ script_profile: prof,+ language: None,+ is_english: false,+ language_undecided: true,+ diacritic_rate: 0.0,+ non_latin_fraction: non_latin,+ mixed_segment: None,+ };+ }+ let prof_lat = latin_profile_inner(text);+ let mut lang = prof_lat.language;+ // The acronym bar belongs here too, not only in the segment scan: a state that is nothing+ // but an acronym line (`MON DES EST LA`) must not be named foreign outright. Vetoing leaves+ // the text undecided, so `looks_non_english` still decides it. Neither bar applies when the+ // state is carried by a caseless script: they take evidence away from the Latin letters, and+ // `looks_non_english` reads Latin diacritics only.+ if let Some(named) = lang+ && named != "en"+ && !non_latin_carries(non_latin, n_non_latin)+ {+ if shouted(text) {+ if !shouted_evidence(&word_runs(text), named, prof_lat.diacritic_rate) {+ lang = None;+ }+ } else {+ // Mixed-case text: re-take the verdict without the all-caps runs, but only while+ // every one of them is short enough to be an acronym -- a run of+ // `SHOUTED_MIN_WORD` letters is a word, and a word is not blanked out of its own+ // sentence. `looks_non_english` and `diacritic_rate` stay measured on the original+ // text.+ let caps: Vec<&str> = letter_runs(text)+ .into_iter()+ .map(|(s, e)| &text[s..e])+ .filter(|run| str_is_upper(run))+ .collect();+ if !caps.is_empty() && !caps.iter().any(|c| c.chars().count() >= SHOUTED_MIN_WORD) {+ let blanked = blank_upper_runs(text);+ if blanked != text {+ lang = latin_profile_inner(&blanked).language;+ }+ }+ }+ }+ // Undecided is not English. Treating it as English sent every Latin-script language with no+ // stopword list here to the checkpoint that cannot read it, silently. When nothing+ // identifies the language, non-English letters or a shared Swedish-Danish marker can still+ // prefer the multilingual checkpoint; text with neither signal goes to the English one.+ let undecided = lang.is_none();+ let english = lang == Some("en") || (undecided && !prof_lat.looks_non_english);+ LanguageAnalysis {+ script: "latin".to_string(),+ script_profile: prof,+ language: lang.map(str::to_string),+ is_english: english,+ language_undecided: undecided,+ diacritic_rate: round4(prof_lat.diacritic_rate),+ non_latin_fraction: non_latin,+ mixed_segment: None,+ }+}++/// `_leaf_non_english`: a string value that is itself not safe for the English checkpoint, else+/// `None`. A one-word name and a capitalised non-Latin name stay out, as do code lines,+/// acronyms and slash compounds. Each line is capped at 4000 characters; a long earlier field+/// does not consume the budget of the next one.+fn leaf_non_english(leaf: &str) -> Option<LanguageAnalysis> {+ let mut best_n: i64 = -1;+ let mut best: Option<LanguageAnalysis> = None;+ for line in leaf.split('\n') {+ // A line this short cannot be selected: each branch below needs four words (three+ // separators, seven characters) or `NON_LATIN_MIN_LETTERS` letters.+ if line.chars().count() < 7 {+ continue;+ }+ let sample = prefix_chars(line, 4000);+ if py_strip(sample).is_empty() || has_code_syntax(sample) {+ continue;+ }+ let det = analyse_text(sample);+ if det.is_english {+ continue;+ }+ // A named language still has to survive `named_prose_language`, but a veto is not a+ // verdict of English: a line carrying non-English letters that no stopword list can+ // name falls through to the diacritic branch.+ let named = det.language.as_deref().is_some_and(|l| l != "en")+ && named_prose_language(sample).is_some();+ let n_alpha = sample+ .chars()+ .filter(|&c| LanguageDetection::is_alpha(c))+ .count() as i64;+ if !named {+ if det.script != "latin" && det.script != "unknown" {+ if non_latin_words(sample).is_empty() || n_alpha < NON_LATIN_MIN_LETTERS {+ continue;+ }+ } else if !(det.diacritic_rate >= NON_EN_DIACRITIC_RATE && word_runs(sample).len() >= 4)+ {+ continue;+ }+ }+ if n_alpha > best_n {+ best_n = n_alpha;+ best = Some(det);+ }+ }+ best+}diff --git a/laya-rust/src/laya_email.rs b/laya-rust/src/laya_email.rsindex c543eb32..b2d1cb94 100644--- a/laya-rust/src/laya_email.rs+++ b/laya-rust/src/laya_email.rs@@ -1,79 +1,388 @@//! Email utilities for cleaning and structuring email inputs. Ports `laya/email.py`.//!-//! `_SENTENCE` (`(?<=[.!?])\s+`, a lookbehind) has no `regex`-crate equivalent — that crate has no-//! look-around support at all — so [`split_after_sentence`] is a small hand-written splitter-//! instead of pulling in a second regex engine (`fancy-regex`) for one pattern. Every other-//! pattern here (`_QUOTE_HEADERS`, `_SIGNATURE_MARKERS`, `_DISCLAIMER`, the paragraph splitter,-//! and the `[ \t]+` collapse) uses `regex`, whose Unicode support is on by default, so `(?i)`-//! case-folding and `\s` here are Unicode-aware the same way Python's `re.I` is.--use regex::Regex;+//! The markers cover English, Portuguese, Spanish and French mail clients: Gmail's `Em ...+//! escreveu:` / `Le ... a écrit :`, Outlook's `-----Mensagem original-----`, the `Atenciosamente`+//! and `Cordialement` sign-offs, `Envoyé depuis mon iPhone` and the confidentiality footers.+//! With English-only markers cleaning was a no-op for those mails and the quoted history (often+//! a *different* request) weighed on the answer as much as the new message did.+//!+//! The `regex` crate has no look-around, so the three lookaheads of `email.py` (`(?=.*\d)` on+//! the dated attributions) are a separate "the line holds a digit" test next to a pattern without+//! them, and `_SENTENCE` (`(?<=[.!?])\s+`, a lookbehind) is the small hand-written+//! [`split_after_sentence`]. The English sign-off (`_is_english_signoff`) is hand-written too:+//! its name rule is a Unicode category test on each token's first letter. Every other pattern+//! uses `regex`, whose Unicode support is on by default, so `(?i)` case-folding and `\b` are+//! Unicode-aware the same way Python's `re.I` is; `\s` is widened by [`py_regex`] to cover the+//! U+001C..U+001F that Python's `\s` accepts and the crate's does not.++use crate::language_detection::{+ LanguageDetection, char_is_upper, is_letter_word, is_word_char, prefix_chars, py_is_space,+ py_strip,+};+use regex::{Regex, RegexBuilder};use serde_json::{Map, Value};use std::sync::LazyLock;+use unicode_general_category::{GeneralCategory, get_general_category};/// `clean_email_body`'s default `max_chars`.pub const DEFAULT_MAX_CHARS: usize = 3000;-static QUOTE_HEADERS: LazyLock<Vec<Regex>> = LazyLock::new(|| {+/// Compile a pattern the way Python's `re` reads it: `\s` / `\S` also cover U+001C..U+001F. The+/// size limit is raised because the disclaimer pattern repeats Unicode classes (`[^.]{0,80}`).+fn py_regex(pattern: &str) -> Regex {+ let widened = pattern+ .replace(r"\s", r"[\s\x1c-\x1f]")+ .replace(r"\S", r"[^\s\x1c-\x1f]");+ RegexBuilder::new(&widened)+ .size_limit(256 * 1024 * 1024)+ .build()+ .expect("email pattern is valid")+}++/// A quote-header pattern, plus the rule `(?=.*\d)` that `regex` cannot express: the dated+/// attribution of a mail client always carries a date, so a line without a digit is body text+/// ("Em resposta ao que você escreveu:").+struct QuoteHeader {+ pattern: Regex,+ needs_digit: bool,+}++impl QuoteHeader {+ fn new(pattern: &str, needs_digit: bool) -> Self {+ Self {+ pattern: py_regex(pattern),+ needs_digit,+ }+ }++ fn matches(&self, line: &str) -> bool {+ self.pattern.is_match(line) && (!self.needs_digit || has_decimal_digit(line))+ }+}++/// Python's `\d`: a decimal digit (`Nd`) in any script.+fn is_decimal(ch: char) -> bool {+ get_general_category(ch) == GeneralCategory::DecimalNumber+}++fn has_decimal_digit(line: &str) -> bool {+ line.chars().any(is_decimal)+}++static QUOTE_HEADERS: LazyLock<Vec<QuoteHeader>> = LazyLock::new(|| {vec![- Regex::new(r"(?i)^\s*On .{0,300}wrote:\s*$").unwrap(),- Regex::new(r"(?i)^\s*-{2,}\s*(Original|Forwarded) Message\s*-{2,}").unwrap(),- Regex::new(r"^\s*_{8,}\s*$").unwrap(),- Regex::new(r"(?i)^\s*From:\s.+$").unwrap(),+ QuoteHeader::new(r"(?i)^\s*On .{0,300}wrote:\s*$", false),+ // "Em resposta ao que você escreveu:" is body text; a client's attribution always+ // carries a date.+ QuoteHeader::new(r"(?i)^\s*Em .{0,300}escreveu:\s*$", true),+ QuoteHeader::new(r"(?i)^\s*El .{0,300}escribi[óo]:\s*$", true),+ // Gmail's French attribution always carries a date too ("Le lun. ... a écrit :"); a+ // bare "Le rapport que vous avez écrit :" is body text. French typography puts a space+ // before the colon, so the verb allows one (`a écrit :`, never `a écrit:`).+ QuoteHeader::new(r"(?i)^\s*Le .{0,300}a [eé]crit\s*:\s*$", true),+ QuoteHeader::new(+ r"(?i)^\s*-{2,}\s*(Original|Forwarded) Message\s*-{2,}",+ false,+ ),+ QuoteHeader::new(+ concat!(+ r"(?i)^\s*-{2,}\s*(Mensagem (original|encaminhada)|Mensaje (original|reenviado)|",+ r"Message d'origine)\s*-{2,}",+ ),+ false,+ ),+ QuoteHeader::new(r"^\s*_{8,}\s*$", false),+ // `From:` opens ordinary prose too ("From: my side the integration works, but please+ // refund..."), and a reply header always carries the sender, so the header is only+ // recognised when an address follows -- the same rule as `De:` below. A bare+ // `From: Name` header is caught by HEADER_FROM_NAME/HEADER_NEXT instead, which need the+ // header's own `Sent:`/`Date:` line to tell it apart from a sentence.+ QuoteHeader::new(r"(?i)^\s*From:\s.*[@<]", false),+ // `De:` also opens ordinary Portuguese/Spanish lines ("De: 10/09 a 15/09"), so the+ // Outlook header is only recognised when it carries an address. French Outlook writes+ // `De :` with a space, so the marker allows one; the address rule is unchanged.+ QuoteHeader::new(r"(?i)^\s*De\s*:\s.*[@<]", false),]});-static SIGNATURE_MARKERS: LazyLock<Vec<Regex>> = LazyLock::new(|| {- vec![- Regex::new(r"^\s*--\s*$").unwrap(),- Regex::new(- r"(?i)^\s*(best|kind|warm|many thanks|thanks|thank you|regards|cheers|sincerely)[\w ,!.]*$",- )- .unwrap(),- Regex::new(r"(?i)^\s*sent from my (iphone|android|mobile|ipad)").unwrap(),- ]+/// Gmail wraps a long attribution line, leaving `[email protected]> escreveu:` alone on the next+/// line. That tail cuts too, and takes the `On/Em/El/Le ...` head it belongs to with it. The+/// French tail keeps its spaced colon (`[email protected]> a écrit :`).+static ATTRIBUTION_TAIL: LazyLock<Regex> = LazyLock::new(|| {+ py_regex(r"(?i)^.{0,120}\S@\S+\s+(wrote|escreveu|escribi[óo]|a [eé]crit)\s*:\s*$")+});+/// The head the tail belongs to: `On|Em|El|Le`, then a date (`(?=.*\d)`, checked separately).+static ATTRIBUTION_HEAD: LazyLock<Regex> = LazyLock::new(|| py_regex(r"(?i)^\s*(On|Em|El|Le) "));++/// Exchange often leaves the address out of Outlook's reply header ("De: Maria Souza"), so a+/// bare `De:` only cuts when the header's own `Enviado:` line, or a dated `Data:`/`Fecha:` line,+/// follows it. `Para:` is not enough: "De: 10/09 / Para: 15/09" is how a leave request reads. The+/// same is true of a bare English `From: Maria Souza`; French Outlook writes `De : Marie Dupont`+/// with `Envoyé :` underneath. Both allow the French spaced colon; the neighbours still do the+/// telling apart.+static HEADER_FROM_NAME: LazyLock<Regex> =+ LazyLock::new(|| py_regex(r"(?i)^\s*(De|From)\s*:\s+\S"));+static HEADER_NEXT: LazyLock<Regex> = LazyLock::new(|| {+ py_regex(concat!(+ r"(?i)^\s*(Enviad[oa]( em| el)?:\s|Envoy[ée]( le)?\s*:\s|Sent:\s|",+ r"(Data|Fecha|Date):\s.*\d{4})",+ ))+});++/// Closing words of an English sign-off, with the optional suffix a closing may carry.+static SIGNOFF_HEAD: LazyLock<Regex> = LazyLock::new(|| {+ py_regex(concat!(+ r"^\s*(?i:best|kind|warmest|warm|many thanks|thanks|thank you|regards|cheers|sincerely)",+ r"(?i:\s+(?:and|&)\s+regards|\s+(?:regards|wishes|again|in advance|a lot|so much|very much))?",+ ))+});++static SIGNATURE_DASHES: LazyLock<Regex> = LazyLock::new(|| py_regex(r"^\s*--\s*$"));++/// Portuguese/Spanish/French sign-offs match only on their own: "Obrigado pelo retorno, mas ..."+/// is a request, not a signature, so unlike the English marker no trailing words are allowed.+/// "Merci pour votre aide, mais ..." stays, while a bare "Cordialement," or "Merci," goes with+/// the name underneath it.+static SIGNOFF_TRANSLATED: LazyLock<Regex> = LazyLock::new(|| {+ py_regex(concat!(+ r"(?i)^\s*(atenciosamente|att|abraços?|abs|um abraço|cordialmente|grat[oa]|",+ r"(muito )?obrigad[oa]s?( desde já| pela atenção)?|(com os melhores )?cumprimentos|",+ r"saudações|(un )?saludos?( cordiales)?|atentamente|(muchas )?gracias( de antemano)?|",+ r"(bien )?cordialement|salutations( distinguées)?|bien à vous|merci( d'avance)?|",+ r"bonne journée)[\s,!.]*$",+ ))+});++/// Mobile and mail-app footers. Only a line that is nothing *but* the footer matches -- "Enviado+/// do meu celular o comprovante ontem." is a request -- and such a line may run to 60+/// characters, since Samsung's default ("Enviado do meu smartphone Samsung Galaxy.") is longer+/// than a sign-off's 40. Apple's French default ("Envoyé depuis mon iPhone") reads the same way.+const DEVICE: &str = concat!(+ "iphone|ipad|android|ios|mobile|celular|telemóvel|móvil|galaxy|smartphone|samsung|tablet|",+ "outlook|yahoo|mail|e-?mail|gmail|windows",+);+static DEVICE_FOOTER: LazyLock<Regex> = LazyLock::new(|| {+ py_regex(&format!(+ concat!(+ r"(?i)^\s*((enviad[oa] (do|pelo|pela|via|desde|a partir do)( meu| minha| mi)?|",+ r"sent from( my)?|envoy[ée] (depuis|de)( mon| ma| mes)?)",+ r" ({d})( ({d}|para|for|no|na|\d+|phone|device|pro|max|mini|plus|using [a-z][a-z0-9_.+-]*))*",+ r"|(obter o|get) outlook (para|for) (ios|android))[\s.!]*$",+ ),+ d = DEVICE+ ))});static DISCLAIMER: LazyLock<Regex> = LazyLock::new(|| {- // Two adjacent raw string literals (not one string with a trailing backslash-newline): a raw- // string does not process escapes, so a `\` immediately before a real line break would stay- // in the compiled pattern as a literal backslash followed by a newline, not a continuation.- Regex::new(concat!(- r"(?i)(confidential|intended (solely )?for the (use of the )?(named )?(addressee|recipient)|",- r"if you (have )?received this (e-?mail|message) in error)",+ py_regex(concat!(+ // English: tied to a disclaimer noun and a disclaimer tail, the way the Portuguese+ // branches below are. The bare word matched any sentence that merely mentioned it, so+ // "Is this confidential?" and "Confidential: I need a refund." were deleted whole.+ // `[^.]` rather than `[^.\n]`: a footer wraps, so "are\nconfidential" must still match.+ r"(?i)(\b(e-?mail|message|information|communication|transmission|contents?)\b[^.]{0,60}",+ r"\bconfidential\b[^.]{0,60}\b(intended|solely|addressee|recipient|privileged|",+ r"disclos|unauthori[sz]ed)|",+ r"\bconfidential\b[^.]{0,60}\b(and (may|is) (also )?privileged)|",+ r"if you (have )?received this (e-?mail|message) in error|",+ // Portuguese/Spanish: tied to "this message/e-mail" rather than the bare word+ // `confidencial`, which a sender's own request ("preciso do contrato confidencial")+ // uses just as often.+ r"\b(esta|este) (mensagem|e-?mail|mensaje|correo)\b[^.]{0,80}(confidencia|sigilos|privilegiad)|",+ r"\b(uso exclusivo|exclusivamente|únicamente|unicamente)\b[^.]{0,30}",+ r"(destinatári|destinatari|pessoa|persona|entidade|entidad)|",+ r"\b(recebeu|recebido|receber) (esta|este) (mensagem|e-?mail)\b[^.]{0,20} por (engano|erro)|",+ r"\b(ha recibido|recibió|recibe) (este|esta) (mensaje|correo)\b[^.]{0,20} por error|",+ // the "think before printing" footer, tied to its environmental ending rather than to+ // `antes de imprimir`, which a request uses too ("antes de imprimir o boleto, confira+ // o valor")+ r"\bantes de imprimir\b[^.]{0,100}(meio ambiente|medio ambiente|natureza|planeta|realmente necess)|",+ r"\b(meio|medio) ambiente\b[^.]{0,30}antes de imprimir|",+ // French: tied to "ce message/cet e-mail" rather than the bare word `confidentiel`,+ // which a sender's own request ("le contrat confidentiel") uses just as often.+ r"\b(ce|cet|cette) (message|e-?mail|mail|courriel)\b[^.]{0,80}(confidentiel|privil[eé]gi)|",+ r"\bavez re[çc]u (ce|cet|cette) (message|e-?mail|mail)\b[^.]{0,20} par erreur|",+ r"\b(usage exclusif|exclusivement|uniquement)\b[^.]{0,30}destinataire)",))- .unwrap()});-static PARAGRAPH_BREAK: LazyLock<Regex> = LazyLock::new(|| Regex::new(r"\n\s*\n").unwrap());+static PARAGRAPH_BREAK: LazyLock<Regex> = LazyLock::new(|| py_regex(r"\n\s*\n"));static SPACE_TAB_RUN: LazyLock<Regex> = LazyLock::new(|| Regex::new(r"[ \t]+").unwrap());+/// `_drop_marks`: remove combining marks (`Mn`/`Mc`/`Me`, which the TS port spells `\p{M}`) that+/// ride on a preceding character. A mark that opens the string or follows a space has no base to+/// ride on and stays, so it still separates tokens.+fn drop_marks(text: &str) -> Vec<char> {+ let mut kept: Vec<char> = Vec::with_capacity(text.len());+ for ch in text.chars() {+ let is_mark = matches!(+ get_general_category(ch),+ GeneralCategory::NonspacingMark+ | GeneralCategory::SpacingMark+ | GeneralCategory::EnclosingMark+ );+ if is_mark && kept.last().is_some_and(|&last| !py_is_space(last)) {+ continue;+ }+ kept.push(ch);+ }+ kept+}++/// `_SIGNOFF_TAIL`: `^[\s,;:!.]*(?:[^\W\d_][\w'-]*[\s,.]*){0,3}$` -- punctuation, then at most+/// three name tokens. A token is a letter, then word characters, apostrophes and hyphens, then+/// separators; splitting a word differently can only add tokens, so the word-level reading is+/// the one that decides.+fn signoff_tail_matches(tail: &[char]) -> bool {+ let n = tail.len();+ let mut i = 0;+ while i < n && (py_is_space(tail[i]) || matches!(tail[i], ',' | ';' | ':' | '!' | '.')) {+ i += 1;+ }+ let mut tokens = 0;+ while i < n {+ if !is_letter_word(tail[i]) {+ return false;+ }+ tokens += 1;+ if tokens > 3 {+ return false;+ }+ i += 1;+ while i < n && (is_word_char(tail[i]) || matches!(tail[i], '\'' | '-')) {+ i += 1;+ }+ while i < n && (py_is_space(tail[i]) || matches!(tail[i], ',' | '.')) {+ i += 1;+ }+ }+ true+}++/// `_is_english_signoff`: a closing word followed by nothing but punctuation and a short name.+///+/// A closing line is the closing word plus punctuation and at most a name. Anything else on the+/// line is a sentence, and the case of the next word is what separates the two: a name is+/// capitalised, "for" in "Thanks for the quick reply." is not. A name starts with a letter that+/// is not lowercase -- capitalised in any script (`Łukasz`, `Дмитрий`) or caseless (`山田`) -- so+/// each token's first letter is judged by category (`Lu`, `Lt`, `Lo`). Combining marks ride along+/// with the letter before them (`Jose\u0301` is `José`).+fn is_english_signoff(line: &str) -> bool {+ let Some(head) = SIGNOFF_HEAD.find(line) else {+ return false;+ };+ let tail = drop_marks(&line[head.end()..]);+ if !signoff_tail_matches(&tail) {+ return false;+ }+ // `_SIGNOFF_TOKEN.findall(tail)`: `[^\W\d_][\w'-]*`+ let mut i = 0;+ while i < tail.len() {+ if is_letter_word(tail[i]) {+ if !matches!(+ get_general_category(tail[i]),+ GeneralCategory::UppercaseLetter+ | GeneralCategory::TitlecaseLetter+ | GeneralCategory::OtherLetter+ ) {+ return false;+ }+ i += 1;+ while i < tail.len() && (is_word_char(tail[i]) || matches!(tail[i], '\'' | '-')) {+ i += 1;+ }+ } else {+ i += 1;+ }+ }+ true+}++/// Whether `line` is a signature marker: `--`, an English sign-off, or a Portuguese/Spanish/+/// French one.+fn is_signature_marker(line: &str) -> bool {+ SIGNATURE_DASHES.is_match(line) || is_english_signoff(line) || SIGNOFF_TRANSLATED.is_match(line)+}++/// Python's `s[:n]` for a possibly negative `n`: a negative `n` drops that many characters from+/// the end (everything, once it reaches the length).+fn py_prefix(s: &str, n: i64) -> String {+ if n >= 0 {+ return prefix_chars(s, usize::try_from(n).unwrap_or(usize::MAX)).to_string();+ }+ let drop = usize::try_from(n.unsigned_abs()).unwrap_or(usize::MAX);+ let len = s.chars().count();+ prefix_chars(s, len.saturating_sub(drop)).to_string()+}+/// Namespace for email cleaning and state construction. See the module docs for the source this/// ports.pub struct LayaEmail;impl LayaEmail {/// Remove quoted email history, signatures and disclaimers to keep input focused. Ports- /// `clean_email_body`.+ /// `clean_email_body`; see [`Self::clean_body_signed`] for the budget arithmetic.pub fn clean_body(body: &str, max_chars: usize) -> String {+ Self::clean_body_signed(body, i64::try_from(max_chars).unwrap_or(i64::MAX))+ }++ /// [`Self::clean_body`] with Python's signed `max_chars`, whose edge cases are specified+ /// behaviour (the `budget-zero` and `budget-negative-*` cases every port is tested against).+ ///+ /// `max_chars` is a slice budget, not a floor, and it is applied twice: as the+ /// `max_chars * 4` pre-cut that bounds the regex work below, and as the `text[:max_chars]`+ /// that returns the result. The pre-cut runs first, so the quote, signature and disclaimer+ /// rules see only the first `4 * max_chars` characters -- a footer that begins past that+ /// window is never recognized, and the paragraph holding it survives to the final cut. So `0`+ /// answers with the empty string, and a negative value trims from the end: the pre-cut+ /// always fires and removes `4 * |max_chars|`, and the final slice removes `|max_chars|`+ /// more, which is `5 * |max_chars|` off the body and empty once that reaches the body's+ /// length. "No limit" means a budget larger than the body -- never `0` and never negative.+ pub fn clean_body_signed(body: &str, max_chars: i64) -> String {let text = body.replace("\r\n", "\n").replace('\r', "\n")// A literal two-character backslash-n (as opposed to an actual newline byte), which// some upstream systems send instead of a real line break..replace("\\n", "\n");+ // Bound regex work before the expensive patterns below: the disclaimer pattern uses+ // `[^.]{0,60/80/100}` alternations whose cost grows with input length, and only+ // `max_chars` are ever returned.+ let pre_cut = max_chars.saturating_mul(4);+ let text = if i64::try_from(text.chars().count()).unwrap_or(i64::MAX) > pre_cut {+ py_prefix(&text, pre_cut)+ } else {+ text+ };let mut lines: Vec<String> = Vec::new();- for line in text.split('\n') {- // The break needs `lines` (what has been kept so far) to be non-empty: a quote header- // as the very first line is ordinary body text, not a reply separator, and is kept.- if !lines.is_empty() && QUOTE_HEADERS.iter().any(|re| re.is_match(line)) {+ let source: Vec<&str> = text.split('\n').collect();+ for (i, line) in source.iter().enumerate() {+ // The breaks need `lines` (what has been kept so far) to be non-empty: a quote+ // header as the very first line is ordinary body text, not a reply separator.+ if !lines.is_empty() && QUOTE_HEADERS.iter().any(|header| header.matches(line)) {break;}- if line.trim_start().starts_with('>') {+ if !lines.is_empty()+ && HEADER_FROM_NAME.is_match(line)+ && source+ .get(i + 1)+ .is_some_and(|next| HEADER_NEXT.is_match(next))+ {+ break;+ }+ if !lines.is_empty() && ATTRIBUTION_TAIL.is_match(line) {+ if lines+ .last()+ .is_some_and(|last| ATTRIBUTION_HEAD.is_match(last) && has_decimal_digit(last))+ {+ lines.pop();+ }+ break;+ }+ if line.trim_start_matches(py_is_space).starts_with('>') {continue;}- lines.push(line.trim_end().to_string());+ lines.push(line.trim_end_matches(py_is_space).to_string());}let cut = signature_cut(&lines);@@ -86,15 +395,16 @@ impl LayaEmail {.collect();let kept: Vec<&str> = paragraphs.iter()- .map(|p| p.trim())+ .map(|p| py_strip(p)).filter(|p| !p.is_empty()).collect();let joined_paragraphs = kept.join("\n\n");let collapsed = SPACE_TAB_RUN.replace_all(&joined_paragraphs, " ");- collapsed.chars().take(max_chars).collect()+ py_prefix(&collapsed, max_chars)}- /// Construct a clean state object for email classification. Ports `email_state`.+ /// Construct a clean state object for email classification. Ports `email_state` at its+ /// default `max_chars` (3000).////// `extra` mirrors Python's `**extra`: only entries whose value is not `Value::Null` are/// included, and they are added after `subject`/`body`/`from` in the order given.@@ -104,14 +414,40 @@ impl LayaEmail {sender: Option<&str>,clean: bool,extra: impl IntoIterator<Item = (String, Value)>,+ ) -> Value {+ Self::state_with_max_chars(+ subject,+ body,+ sender,+ clean,+ i64::try_from(DEFAULT_MAX_CHARS).unwrap_or(i64::MAX),+ extra,+ )+ }++ /// [`Self::state`] with Python's `max_chars`, the budget [`Self::clean_body_signed`] cuts the+ /// body to. It is worth raising for a long message: at the default the body stops after 3000+ /// characters, so a request in the last paragraphs never reaches the model -- including+ /// through `predict_long`. Lowering it does the same thing more surely: `0` gives the model a+ /// subject and an empty body, and a negative value cuts from the end, which is where that+ /// late request lives. Pass a budget larger than the body when the message is long, never+ /// `0` or a negative to mean "no limit". Ignored when `clean` is false, which passes the+ /// body through whole.+ pub fn state_with_max_chars(+ subject: &str,+ body: &str,+ sender: Option<&str>,+ clean: bool,+ max_chars: i64,+ extra: impl IntoIterator<Item = (String, Value)>,) -> Value {let mut map = Map::new();map.insert("subject".to_string(),- Value::String(subject.trim().to_string()),+ Value::String(py_strip(subject).to_string()),);let cleaned_body = if clean {- Self::clean_body(body, DEFAULT_MAX_CHARS)+ Self::clean_body_signed(body, max_chars)} else {body.to_string()};@@ -141,31 +477,14 @@ impl LayaEmail {}let parts: Vec<String> = split_after_sentence(paragraph).into_iter()- .map(|p| p.trim().to_string())+ .map(|p| py_strip(&p).to_string()).filter(|p| !p.is_empty()).flat_map(|part| {- if !DISCLAIMER.is_match(&part) || !part.contains('\n') {- return vec![part];- }- let mut pieces = Vec::new();- let mut buf = String::new();- for line in part.lines().map(str::trim).filter(|l| !l.is_empty()) {- let starts_sentence = line- .chars()- .find(|&c| crate::language_detection::LanguageDetection::is_alpha(c))- .is_some_and(char::is_uppercase);- if !buf.is_empty() && starts_sentence {- pieces.push(std::mem::take(&mut buf));- }- if !buf.is_empty() {- buf.push(' ');- }- buf.push_str(line);+ if DISCLAIMER.is_match(&part) {+ split_fused_lines(&part)+ } else {+ vec![part]}- if !buf.is_empty() {- pieces.push(buf);- }- pieces}).collect();parts@@ -176,6 +495,42 @@ impl LayaEmail {}}+/// `_starts_new_sentence`: the first letter is uppercase, a fresh sentence rather than a wrapped+/// line. Lines in uncased scripts (CJK, Devanagari, ...) never start a new piece, so wrapped+/// boilerplate in those scripts still drops whole.+fn starts_new_sentence(line: &str) -> bool {+ line.chars()+ .find(|&c| LanguageDetection::is_alpha(c))+ .is_some_and(char_is_upper)+}++/// `_split_fused_lines`: split a fused boilerplate-positive sentence at sentence-starting+/// newlines. An unpunctuated request line glued to a disclaimer line ("locked\nThis ...") splits+/// at the newline because the next line starts uppercase; a lowercase continuation+/// ("are\nconfidential") belongs to the same sentence, so a wrapped footer still drops whole.+fn split_fused_lines(sentence: &str) -> Vec<String> {+ if !sentence.contains('\n') {+ return vec![sentence.to_string()];+ }+ let mut pieces = Vec::new();+ let mut buf = String::new();+ for line in sentence.split('\n').map(py_strip).filter(|l| !l.is_empty()) {+ if !buf.is_empty() && starts_new_sentence(line) {+ pieces.push(std::mem::take(&mut buf));+ buf = line.to_string();+ } else {+ if !buf.is_empty() {+ buf.push(' ');+ }+ buf.push_str(line);+ }+ }+ if !buf.is_empty() {+ pieces.push(buf);+ }+ pieces+}+/// Where to cut `lines` for a trailing signature block. Ports the `for i in range(...)` scan in/// `clean_email_body`: only the last ~40% of lines (but always at least the last 8, and never/// before line 1) are searched, so a short, sign-off-shaped line near the top of a genuine body@@ -189,8 +544,8 @@ fn signature_cut(lines: &[String]) -> usize {let scan_from = scan_from.max(0) as usize;for (i, line) in lines.iter().enumerate().skip(scan_from) {- let trimmed = line.trim();- if trimmed.chars().count() <= 40 && SIGNATURE_MARKERS.iter().any(|re| re.is_match(line)) {+ let n = py_strip(line).chars().count();+ if (n <= 40 && is_signature_marker(line)) || (n <= 60 && DEVICE_FOOTER.is_match(line)) {return i;}}@@ -207,9 +562,9 @@ fn split_after_sentence(text: &str) -> Vec<String> {let mut start = 0usize;let mut i = 0usize;while i < chars.len() {- if i > 0 && chars[i].is_whitespace() && matches!(chars[i - 1], '.' | '!' | '?') {+ if i > 0 && py_is_space(chars[i]) && matches!(chars[i - 1], '.' | '!' | '?') {result.push(chars[start..i].iter().collect::<String>());- while i < chars.len() && chars[i].is_whitespace() {+ while i < chars.len() && py_is_space(chars[i]) {i += 1;}start = i;diff --git a/laya-rust/src/laya_router.rs b/laya-rust/src/laya_router.rsindex 88b36866..007c13e5 100644--- a/laya-rust/src/laya_router.rs+++ b/laya-rust/src/laya_router.rs@@ -38,7 +38,7 @@use crate::answers::LayaResult;use crate::error::{LayaError, Result};-use crate::language_detection::{LanguageAnalysis, LanguageDetection};+use crate::language_detection::{LanguageAnalysis, LanguageDetection, prefix_chars, py_strip};use crate::laya_engine::LayaEngine;use crate::laya_options::{LayaCheckpoint, LayaOptions};use crate::long_prediction::LongOptions;@@ -137,6 +137,85 @@ const TYPED_DECISION_WORKFLOWS: &[(&str, &[&str])] = &[),];+/// The callback form of [`LangGuess`]: reads the state, answers with a language code or `None`.+type GuessFn = dyn Fn(&Value) -> Option<String> + Send + Sync;++/// A caller-supplied answer to "can the English checkpoint read this state?", Python's+/// `lang_guess`: a language code, or a callback taking the state. Any code that is not English+/// routes to the multilingual checkpoint; a code that names no language (blank, `C`, `POSIX`,+/// `C.UTF-8`, `und`, `zxx`, `mul`) or a callback returning `None` abstains, and routing falls+/// through to detection.+#[derive(Clone)]+#[non_exhaustive]+pub enum LangGuess {+ /// A language code such as `"en"`, `"en-US"`, `"en_US.UTF-8"` or `"pt-BR"`.+ Code(String),+ /// A function of the state that returns a language code, or `None` to abstain (for example+ /// a language-identification model that is not confident).+ Callback(Arc<GuessFn>),+}++impl LangGuess {+ /// A hint that reads the state and answers with a code, or `None` to abstain.+ pub fn callback(f: impl Fn(&Value) -> Option<String> + Send + Sync + 'static) -> Self {+ Self::Callback(Arc::new(f))+ }++ /// `_resolve_hint`: `Some(true)` when the hint says English, `Some(false)` when it names+ /// another language, `None` when it identifies nothing.+ fn resolve(&self, state: &Value) -> Option<bool> {+ match self {+ Self::Code(code) => english_from_code(code),+ Self::Callback(f) => f(state).and_then(|code| english_from_code(&code)),+ }+ }+}++impl std::fmt::Debug for LangGuess {+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {+ match self {+ Self::Code(code) => f.debug_tuple("Code").field(code).finish(),+ Self::Callback(_) => f.write_str("Callback(..)"),+ }+ }+}++impl From<&str> for LangGuess {+ fn from(code: &str) -> Self {+ Self::Code(code.to_string())+ }+}++impl From<String> for LangGuess {+ fn from(code: String) -> Self {+ Self::Code(code)+ }+}++/// Codes that are valid `$LANG` values but name no language, so they answer nothing about the+/// state: `C`, `POSIX` and `C.UTF-8` (what minimal images ship) and the ISO 639-2 special codes+/// `und` (undetermined), `zxx` (no linguistic content) and `mul` (multiple languages).+const LANGUAGE_AGNOSTIC_CODES: [&str; 5] = ["c", "posix", "und", "zxx", "mul"];++/// `_english_from_code`: `Some(true)` for an English code, `Some(false)` for any other language+/// code, `None` when the code identifies nothing.+///+/// Accepts the forms a caller is likely to have to hand: `"en"`, `"EN"`, `"en-US"`, the POSIX+/// `"en_US"` (which `$LANG` holds), and `"en_US.UTF-8"`.+pub(crate) fn english_from_code(value: &str) -> Option<bool> {+ let code = py_strip(value).to_lowercase();+ if code.is_empty() {+ return None;+ }+ let code = code.split('.').next().unwrap_or("");+ let primary = code.replace('_', "-");+ let primary = primary.split('-').next().unwrap_or("");+ if primary.is_empty() || LANGUAGE_AGNOSTIC_CODES.contains(&primary) {+ return None;+ }+ Some(matches!(primary, "en" | "eng" | "english"))+}+/// The routing outcome: which checkpoint, why, and what was detected. Serializes into/// `LayaResult::routing` (`answers.rs`). Python's `RouteDecision` also carries a `repo` field/// (the resolved HuggingFace repo/subfolder string); it is intentionally not ported, since this@@ -235,6 +314,7 @@ pub struct LayaRouter {engine_options: LayaOptions,default: LayaCheckpoint,auto_task_detection: bool,+ lang_guess: Option<LangGuess>,factory: Factory,state: Mutex<RouterState>,}@@ -271,6 +351,7 @@ impl LayaRouter {engine_options: options.engine_options,default: options.default,auto_task_detection: options.auto_task_detection,+ lang_guess: None,factory: Box::new(factory),state: Mutex::new(RouterState {loaded: HashMap::new(),@@ -284,6 +365,15 @@ impl LayaRouter {Ok(router)}+ /// Install a language hint that applies to every request, as Python's+ /// `Router(lang_guess=...)` does: checked after an explicit `lang` and a per-call hint, and+ /// before the built-in detection. See [`Self::route_with_lang_guess`].+ #[must_use]+ pub fn with_lang_guess(mut self, lang_guess: impl Into<LangGuess>) -> Self {+ self.lang_guess = Some(lang_guess.into());+ self+ }+// ------------------------------------------------------------------ name resolution/// Aliases people are likely to type, resolved to the canonical checkpoint name before@@ -449,7 +539,8 @@ impl LayaRouter {/// Decide which checkpoint to use, without loading or running anything.////// Precedence: explicit `model` > explicit `task` > detected workflow (opt-in) > explicit- /// `lang` > detected script/language > [`LayaRouterOptions::default`].+ /// `lang` > `lang_guess` (see [`Self::route_with_lang_guess`]) > detected script/language >+ /// [`LayaRouterOptions::default`].pub fn route(&self,state: &Value,@@ -457,6 +548,27 @@ impl LayaRouter {model: Option<&str>,task: Option<&str>,lang: Option<&str>,+ ) -> Result<RouteDecision> {+ self.route_with_lang_guess(state, questions, model, task, lang, None)+ }++ /// [`Self::route`] with Python's per-call `lang_guess` hint.+ ///+ /// `lang_guess` is an opt-in hint -- a language code or a callback taking the state --+ /// checked after an explicit `lang` and before the built-in detection. It only answers "can+ /// the English checkpoint read this?", so any non-English code routes to the multilingual+ /// checkpoint. A hint that resolves to nothing (a blank code, `C`, `POSIX`, `und`, ... or a+ /// callback returning `None`) falls through to detection, which lets a language-identification+ /// model abstain. A hint installed with [`Self::with_lang_guess`] applies to every request,+ /// after this per-call one.+ pub fn route_with_lang_guess(+ &self,+ state: &Value,+ questions: Option<&QuestionSet>,+ model: Option<&str>,+ task: Option<&str>,+ lang: Option<&str>,+ lang_guess: Option<&LangGuess>,) -> Result<RouteDecision> {if let Some(model) = model {let key = Self::normalise_name(model)?;@@ -500,19 +612,45 @@ impl LayaRouter {}if let Some(lang) = lang {- let lowered = lang.to_lowercase();- let head = lowered.split('-').next().unwrap_or("");- let key = if matches!(head, "en" | "eng" | "english") {- LayaCheckpoint::English- } else {- LayaCheckpoint::Multilingual- };- return Ok(RouteDecision {- model: key,- reason: format!("explicit lang={}", python_repr_str(lang)),- detection: None,- workflow,- });+ // An explicit `lang` is decisive only when the code names a language. Blank or+ // whitespace, and `C`/`POSIX`/`und`/`zxx`/`mul`, resolve to no usable hint, so they+ // fall through to `lang_guess`/detection exactly as an abstaining hint does.+ if let Some(english) = english_from_code(lang) {+ return Ok(RouteDecision {+ model: if english {+ LayaCheckpoint::English+ } else {+ LayaCheckpoint::Multilingual+ },+ reason: format!("explicit lang={}", python_repr_str(lang)),+ detection: None,+ workflow,+ });+ }+ }++ // Caller-supplied hint, per-call first, then the one installed on the router. Only a hint+ // that actually answers the question routes here; anything else falls through.+ let hints = [+ ("lang_guess", lang_guess),+ ("Router(lang_guess=...)", self.lang_guess.as_ref()),+ ];+ for (source, hint) in hints {+ if let Some(english) = hint.and_then(|h| h.resolve(state)) {+ return Ok(RouteDecision {+ model: if english {+ LayaCheckpoint::English+ } else {+ LayaCheckpoint::Multilingual+ },+ reason: format!(+ "{source}: the caller identified this as {} text",+ if english { "English" } else { "non-English" }+ ),+ detection: None,+ workflow,+ });+ }}let det = LanguageDetection::analyse(state);@@ -534,7 +672,19 @@ impl LayaRouter {),)} else if !det.is_english {- if let Some(lang) = &det.language {+ if let (Some(lang), Some(mixed)) = (&det.language, det.mixed_segment.as_deref())+ && !mixed.is_empty()+ {+ (+ LayaCheckpoint::Multilingual,+ format!(+ "Latin script, mostly English, but a line or field reads as {} ({}); \+ the English checkpoint cannot read it",+ python_repr_str(lang),+ python_repr_str(prefix_chars(mixed, 60))+ ),+ )+ } else if let Some(lang) = &det.language {(LayaCheckpoint::Multilingual,format!(@@ -584,9 +734,23 @@ impl LayaRouter {model: Option<&str>,task: Option<&str>,lang: Option<&str>,+ ) -> Result<LayaResult> {+ self.predict_with_lang_guess(state, questions, model, task, lang, None)+ }++ /// [`Self::predict`] with a per-call `lang_guess` hint; see [`Self::route_with_lang_guess`].+ pub fn predict_with_lang_guess(+ &self,+ state: impl Into<Value>,+ questions: &QuestionSet,+ model: Option<&str>,+ task: Option<&str>,+ lang: Option<&str>,+ lang_guess: Option<&LangGuess>,) -> Result<LayaResult> {let state = state.into();- let decision = self.route(&state, Some(questions), model, task, lang)?;+ let decision =+ self.route_with_lang_guess(&state, Some(questions), model, task, lang, lang_guess)?;let engine = self.load_checkpoint(decision.model)?;// Inference deliberately runs after the `Arc<dyn LayaPredictor>` clone above and outside// any lock: see the module docs on eviction safety.@@ -607,9 +771,26 @@ impl LayaRouter {model: Option<&str>,task: Option<&str>,lang: Option<&str>,+ ) -> Result<LayaResult> {+ self.predict_long_with_lang_guess(state, questions, options, model, task, lang, None)+ }++ /// [`Self::predict_long`] with a per-call `lang_guess` hint; see+ /// [`Self::route_with_lang_guess`].+ #[allow(clippy::too_many_arguments)]+ pub fn predict_long_with_lang_guess(+ &self,+ state: impl Into<Value>,+ questions: &QuestionSet,+ options: &LongOptions,+ model: Option<&str>,+ task: Option<&str>,+ lang: Option<&str>,+ lang_guess: Option<&LangGuess>,) -> Result<LayaResult> {let state = state.into();- let decision = self.route(&state, Some(questions), model, task, lang)?;+ let decision =+ self.route_with_lang_guess(&state, Some(questions), model, task, lang, lang_guess)?;let engine = self.load_checkpoint(decision.model)?;let scanner = engine.as_long_predictor().ok_or_else(|| {LayaError::NotSupported(format!(@@ -649,9 +830,9 @@ impl LayaLongPredictor for LayaRouter {/// Python `repr()` for a string: single-quoted unless the string itself contains a `'` and no/// `"`, in which case double quotes are used instead; backslash, the chosen quote character, and-/// the common control characters are escaped. Every model/task/lang name recorded in the routing-/// golden vectors is plain ASCII, so this covers the cases that matter without attempting a full-/// `repr()` (which would also need to classify every Unicode character as printable or not).+/// the control characters are escaped, as is every character Python does not consider printable+/// (`\xNN`, `\uNNNN`, `\UNNNNNNNN`). The routing reasons embed caller text in this form (the+/// `lang` code and the mixed-language line), so the quoting has to agree with Python's.pub(crate) fn python_repr_str(s: &str) -> String {let quote = if s.contains('\'') && !s.contains('"') {'"'@@ -670,8 +851,15 @@ pub(crate) fn python_repr_str(s: &str) -> String {'\n' => out.push_str("\\n"),'\r' => out.push_str("\\r"),'\t' => out.push_str("\\t"),- c if (c as u32) < 0x20 || (c as u32) == 0x7f => {- out.push_str(&format!("\\x{:02x}", c as u32));+ c if !python_is_printable(c) => {+ let cp = c as u32;+ if cp < 0x100 {+ out.push_str(&format!("\\x{cp:02x}"));+ } else if cp < 0x10000 {+ out.push_str(&format!("\\u{cp:04x}"));+ } else {+ out.push_str(&format!("\\U{cp:08x}"));+ }}c => out.push(c),}@@ -679,3 +867,22 @@ pub(crate) fn python_repr_str(s: &str) -> String {out.push(quote);out}++/// `str.isprintable()` for one character: everything except the "Other" and "Separator"+/// categories (control, format, surrogate, private use, unassigned, line/paragraph/space+/// separators), with the ASCII space as the one printable separator.+fn python_is_printable(c: char) -> bool {+ use unicode_general_category::{GeneralCategory as G, get_general_category};+ c == ' '+ || !matches!(+ get_general_category(c),+ G::Control+ | G::Format+ | G::Surrogate+ | G::PrivateUse+ | G::Unassigned+ | G::LineSeparator+ | G::ParagraphSeparator+ | G::SpaceSeparator+ )+}diff --git a/laya-rust/src/lib.rs b/laya-rust/src/lib.rsindex 00ce9093..45e029bb 100644--- a/laya-rust/src/lib.rs+++ b/laya-rust/src/lib.rs@@ -73,7 +73,7 @@ pub use laya_options::{};pub use laya_presets::LayaPresets;pub use laya_router::{- LayaLongPredictor, LayaPredictor, LayaRouter, LayaRouterOptions, RouteDecision,+ LangGuess, LayaLongPredictor, LayaPredictor, LayaRouter, LayaRouterOptions, RouteDecision,};pub use laya_shortlist::{DEFAULT_SHORTLIST_K, LayaShortlist, ShortlistInfo};pub use long_prediction::LongOptions;diff --git a/laya-rust/tests/golden/routing/email_probe.json b/laya-rust/tests/golden/routing/email_probe.jsonindex 9d25b1d9..04f5d6e1 100644--- a/laya-rust/tests/golden/routing/email_probe.json+++ b/laya-rust/tests/golden/routing/email_probe.json@@ -1,5 +1,143 @@{"clean": [+ {+ "label": "upstream/confidential_request",+ "body": "Confidential: I need a refund.",+ "max_chars": 3000,+ "result": "Confidential: I need a refund."+ },+ {+ "label": "upstream/from_prose",+ "body": "Hello.\nFrom: my side the integration works, but please refund it.",+ "max_chars": 3000,+ "result": "Hello.\nFrom: my side the integration works, but please refund it."+ },+ {+ "label": "upstream/from_header",+ "body": "Please refund it.\nFrom: Jane Smith\nSent: Monday\nOld request.",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "upstream/thanks_prose",+ "body": "Hello.\nThanks for the quick reply, but I need a refund.",+ "max_chars": 3000,+ "result": "Hello.\nThanks for the quick reply, but I need a refund."+ },+ {+ "label": "upstream/english_signoff",+ "body": "Please refund it.\nWarmest regards, Łukasz",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "upstream/lowercase_name_is_prose",+ "body": "Please refund it.\nThanks, żaneta needs help.",+ "max_chars": 3000,+ "result": "Please refund it.\nThanks, żaneta needs help."+ },+ {+ "label": "upstream/marked_name",+ "body": "Please refund it.\nRegards, José",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "upstream/astral_signoff_name",+ "body": "Please refund it.\nRegards, 𐐀𐐨",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "upstream/unattached_mark",+ "body": "Please refund it.\nRegards, ́Jose",+ "max_chars": 3000,+ "result": "Please refund it.\nRegards, ́Jose"+ },+ {+ "label": "upstream/portuguese_quote",+ "body": "Preciso de ajuda.\nEm 10/09 João escreveu:\nOld request.",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "upstream/spanish_quote",+ "body": "Necesito ayuda.\nEl 10/09 Juan escribió:\nOld request.",+ "max_chars": 3000,+ "result": "Necesito ayuda."+ },+ {+ "label": "upstream/french_quote",+ "body": "Je demande un remboursement.\nLe 10/09 Jean a écrit :\nOld request.",+ "max_chars": 3000,+ "result": "Je demande un remboursement."+ },+ {+ "label": "upstream/wrapped_attribution",+ "body": "Please refund it.\nOn 10/09 Jane Smith\[email protected]> wrote:\nOld request.",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "upstream/french_signoff",+ "body": "Je demande un remboursement.\nCordialement,\nMarie",+ "max_chars": 3000,+ "result": "Je demande un remboursement."+ },+ {+ "label": "upstream/portuguese_signoff",+ "body": "Preciso de ajuda.\nAtenciosamente,\nMaria",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "upstream/spanish_signoff",+ "body": "Necesito ayuda.\nSaludos cordiales,\nJuan",+ "max_chars": 3000,+ "result": "Necesito ayuda."+ },+ {+ "label": "upstream/device_footer",+ "body": "Please refund it.\nSent from my Samsung Galaxy.",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "upstream/device_mention_prose",+ "body": "Please refund it.\nSent from my iPhone yesterday to support.",+ "max_chars": 3000,+ "result": "Please refund it.\nSent from my iPhone yesterday to support."+ },+ {+ "label": "upstream/french_disclaimer",+ "body": "Je demande un remboursement.\n\nCe message est confidentiel et réservé au destinataire.",+ "max_chars": 3000,+ "result": "Je demande un remboursement."+ },+ {+ "label": "upstream/french_device_footer",+ "body": "Merci de rembourser la facture.\n\nEnvoyé depuis mon iPhone",+ "max_chars": 3000,+ "result": "Merci de rembourser la facture."+ },+ {+ "label": "upstream/french_device_footer_de_mon",+ "body": "Merci de rembourser la facture.\n\nEnvoyé de mon iPad.",+ "max_chars": 3000,+ "result": "Merci de rembourser la facture."+ },+ {+ "label": "upstream/french_device_footer_no_possessive",+ "body": "Merci de rembourser la facture.\n\nEnvoyé depuis Outlook",+ "max_chars": 3000,+ "result": "Merci de rembourser la facture."+ },+ {+ "label": "upstream/french_device_mention_prose",+ "body": "Bonjour,\nEnvoyé depuis mon iPhone par erreur.\nMerci de rembourser la facture.",+ "max_chars": 3000,+ "result": "Bonjour,\nEnvoyé depuis mon iPhone par erreur.\nMerci de rembourser la facture."+ },{"label": "inline_footer_no_blank_line","body": "My account is locked.\nThis email is confidential and intended solely for the named addressee.\nPlease unlock it.",@@ -281,114 +419,1197 @@"body": "Hi team,\n\nMy account was charged twice for the Pro plan this month and the refund has not arrived yet. Could you please look into this today?\n\nBest regards,\nPriya Sharma\nSent from my iPhone\n\nThis email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender.\n\nOn Tue, Sep 22, 2026 at 9:14 AM, Support <[email protected]> wrote:\n> Hi Priya, thanks for reaching out, we are looking into it.\n> - Support Team\n","max_chars": 3000,"result": "Hi team,\n\nMy account was charged twice for the Pro plan this month and the refund has not arrived yet. Could you please look into this today?"- }- ],- "state": [+ },{- "label": "basic_clean_true",- "subject": "Locked out",- "body": "My account is locked. This email is confidential and intended solely for the named addressee.",- "sender": null,- "clean": true,- "extra": {},- "result": {- "subject": "Locked out",- "body": "My account is locked."- }+ "label": "p0411/budget_default_cut",+ "body": "word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word ",+ "max_chars": 3000,+ "result": "word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word "},{- "label": "basic_clean_false_keeps_raw_body",- "subject": "Locked out",- "body": "My account is locked.\nThis email is confidential and intended solely for the named addressee.",- "sender": null,- "clean": false,- "extra": {},- "result": {- "subject": "Locked out",- "body": "My account is locked.\nThis email is confidential and intended solely for the named addressee."- }+ "label": "p0411/budget_small",+ "body": "Please refund the duplicate charge on invoice 4411 today.",+ "max_chars": 10,+ "result": "Please ref"},{- "label": "with_sender",- "subject": "Refund request",- "body": "Please refund invoice 4411.",- "sender": "[email protected]",- "clean": true,- "extra": {},- "result": {- "subject": "Refund request",- "body": "Please refund invoice 4411.",- "from": "[email protected]"- }+ "label": "p0411/budget_one",+ "body": "Hello",+ "max_chars": 1,+ "result": "H"},{- "label": "subject_whitespace_stripped",- "subject": " Refund request ",- "body": "Please help.",- "sender": null,- "clean": true,- "extra": {},- "result": {- "subject": "Refund request",- "body": "Please help."- }+ "label": "p0411/budget_zero",+ "body": "Please refund it.",+ "max_chars": 0,+ "result": ""},{- "label": "extra_fields_kept_when_not_none",- "subject": "Ticket",- "body": "Body text.",- "sender": "[email protected]",- "clean": true,- "extra": {- "priority": "high",- "ticket_id": 4411- },- "result": {- "subject": "Ticket",- "body": "Body text.",- "from": "[email protected]",- "priority": "high",- "ticket_id": 4411- }+ "label": "p0411/budget_zero_empty_body",+ "body": "",+ "max_chars": 0,+ "result": ""},{- "label": "extra_none_values_dropped",- "subject": "Ticket",- "body": "Body text.",- "sender": null,- "clean": true,- "extra": {- "nullable": null,- "kept": "value"- },- "result": {- "subject": "Ticket",- "body": "Body text.",- "kept": "value"- }+ "label": "p0411/budget_negative_one",+ "body": "Please refund it today and thanks for the help.",+ "max_chars": -1,+ "result": "Please refund it today and thanks for the "},{- "label": "empty_subject_and_body",- "subject": "",- "body": "",- "sender": null,- "clean": true,- "extra": {},- "result": {- "subject": "",- "body": ""- }+ "label": "p0411/budget_negative_ten",+ "body": "Please refund it today and thanks for the help with the invoice.",+ "max_chars": -10,+ "result": "Please refund "},{- "label": "hindi_subject_and_body",- "subject": "सहायता चाहिए",- "body": "मुझसे दो बार शुल्क लिया गया, कृपया रिफंड करें।",- "sender": null,- "clean": true,- "extra": {},- "result": {- "subject": "सहायता चाहिए",- "body": "मुझसे दो बार शुल्क लिया गया, कृपया रिफंड करें।"+ "label": "p0411/budget_negative_beyond_body",+ "body": "Please refund it.",+ "max_chars": -100,+ "result": ""+ },+ {+ "label": "p0411/budget_larger_than_body",+ "body": "Please refund it.",+ "max_chars": 100000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/budget_pre_cut_hides_footer",+ "body": "Request line.\nfiller line that is not a footer.\nfiller line that is not a footer.\nfiller line that is not a footer.\n\n\nThis email is confidential and intended solely for the named addressee.",+ "max_chars": 25,+ "result": "Request line.\nfiller line"+ },+ {+ "label": "p0411/budget_pre_cut_hides_quote",+ "body": "Short request.\nMore detail here.\nOn Mon, Jan 1, 2024 at 9:00 AM Jane <[email protected]> wrote:\nOld text.",+ "max_chars": 12,+ "result": "Short reques"+ },+ {+ "label": "p0411/budget_pre_cut_multibyte",+ "body": "退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 ",+ "max_chars": 30,+ "result": "退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 "+ },+ {+ "label": "p0411/budget_boundary_exact",+ "body": "abcde",+ "max_chars": 5,+ "result": "abcde"+ },+ {+ "label": "p0411/budget_negative_multiline",+ "body": "line one\nline two\nline three\nline four",+ "max_chars": -2,+ "result": "line one\nline two\nline three"+ },+ {+ "label": "p0411/quote_first_line_kept",+ "body": "On Mon, Jan 1, 2024 Jane wrote:\nPlease refund it.",+ "max_chars": 3000,+ "result": "On Mon, Jan 1, 2024 Jane wrote:\nPlease refund it."+ },+ {+ "label": "p0411/quote_en_wrote",+ "body": "Please refund it.\nOn Mon, Jan 1, 2024 at 9:00 AM Jane <[email protected]> wrote:\nOld request.",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/quote_en_wrote_trailing_space",+ "body": "Please refund it.\nON TUE, SEP 22 JANE WROTE: \nOld request.",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/quote_pt_no_date_is_body",+ "body": "Preciso de ajuda.\nEm resposta ao que você escreveu:\nMais detalhes aqui.",+ "max_chars": 3000,+ "result": "Preciso de ajuda.\nEm resposta ao que você escreveu:\nMais detalhes aqui."+ },+ {+ "label": "p0411/quote_pt_date",+ "body": "Preciso de ajuda.\nEm 10/09/2024 às 10:00, João escreveu:\nOld request.",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/quote_pt_unicode_digits",+ "body": "Preciso de ajuda.\nEm ١٠/٠٩ João escreveu:\nOld request.",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/quote_es_no_date_is_body",+ "body": "Necesito ayuda.\nComo usted escribió:\nEl resto del texto.",+ "max_chars": 3000,+ "result": "Necesito ayuda.\nComo usted escribió:\nEl resto del texto."+ },+ {+ "label": "p0411/quote_es_no_date_el",+ "body": "Necesito ayuda.\nEl cliente que escribió:\nEl resto del texto.",+ "max_chars": 3000,+ "result": "Necesito ayuda.\nEl cliente que escribió:\nEl resto del texto."+ },+ {+ "label": "p0411/quote_es_date_ascii_o",+ "body": "Necesito ayuda.\nEl 10/09 Juan escribio:\nOld request.",+ "max_chars": 3000,+ "result": "Necesito ayuda."+ },+ {+ "label": "p0411/quote_fr_no_date_is_body",+ "body": "Je demande de l'aide.\nLe rapport que vous avez écrit :\nLe reste du texte.",+ "max_chars": 3000,+ "result": "Je demande de l'aide.\nLe rapport que vous avez écrit :\nLe reste du texte."+ },+ {+ "label": "p0411/quote_fr_no_space_before_colon",+ "body": "Je demande de l'aide.\nLe 10/09 Jean a écrit:\nOld request.",+ "max_chars": 3000,+ "result": "Je demande de l'aide."+ },+ {+ "label": "p0411/quote_fr_ecrit_ascii",+ "body": "Je demande de l'aide.\nLe 10/09 Jean a ecrit :\nOld request.",+ "max_chars": 3000,+ "result": "Je demande de l'aide."+ },+ {+ "label": "p0411/quote_original_message",+ "body": "Please refund it.\n-----Original Message-----\nOld request.",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/quote_forwarded_message",+ "body": "Please refund it.\n---- Forwarded Message ----\nOld request.",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/quote_mensagem_original",+ "body": "Preciso de ajuda.\n-----Mensagem original-----\nOld request.",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/quote_mensagem_encaminhada",+ "body": "Preciso de ajuda.\n----- Mensagem encaminhada -----\nOld request.",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/quote_mensaje_original",+ "body": "Necesito ayuda.\n-----Mensaje original-----\nOld request.",+ "max_chars": 3000,+ "result": "Necesito ayuda."+ },+ {+ "label": "p0411/quote_mensaje_reenviado",+ "body": "Necesito ayuda.\n-----Mensaje reenviado-----\nOld request.",+ "max_chars": 3000,+ "result": "Necesito ayuda."+ },+ {+ "label": "p0411/quote_message_d_origine",+ "body": "Je demande de l'aide.\n-----Message d'origine-----\nOld request.",+ "max_chars": 3000,+ "result": "Je demande de l'aide."+ },+ {+ "label": "p0411/quote_underscores",+ "body": "Please refund it.\n________\nOld request.",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/quote_underscores_seven",+ "body": "Please refund it.\n_______\nStill here.",+ "max_chars": 3000,+ "result": "Please refund it.\n_______\nStill here."+ },+ {+ "label": "p0411/quote_from_address",+ "body": "Please refund it.\nFrom: Jane <[email protected]>\nOld request.",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/quote_from_prose_with_at",+ "body": "Please refund it.\nFrom: the desk at 5pm we meet\nStill here.",+ "max_chars": 3000,+ "result": "Please refund it.\nFrom: the desk at 5pm we meet\nStill here."+ },+ {+ "label": "p0411/quote_de_address",+ "body": "Preciso de ajuda.\nDe: Maria <[email protected]>\nOld request.",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/quote_de_french_spaced",+ "body": "Je demande de l'aide.\nDe : Marie <[email protected]>\nOld request.",+ "max_chars": 3000,+ "result": "Je demande de l'aide."+ },+ {+ "label": "p0411/quote_de_dates_is_body",+ "body": "Quero folga.\nDe: 10/09 a 15/09\nPara: 20/09\nObrigada.",+ "max_chars": 3000,+ "result": "Quero folga.\nDe: 10/09 a 15/09\nPara: 20/09"+ },+ {+ "label": "p0411/quote_de_name_enviado",+ "body": "Preciso de ajuda.\nDe: Maria Souza\nEnviado: segunda-feira\nOld request.",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/quote_de_name_enviada_em",+ "body": "Preciso de ajuda.\nDe: Maria Souza\nEnviada em: segunda\nOld request.",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/quote_de_name_fecha",+ "body": "Necesito ayuda.\nDe: Maria Souza\nFecha: 10 de septiembre de 2024\nOld request.",+ "max_chars": 3000,+ "result": "Necesito ayuda."+ },+ {+ "label": "p0411/quote_de_name_data_no_year",+ "body": "Preciso de ajuda.\nDe: Maria Souza\nData: 10/09\nStill here.",+ "max_chars": 3000,+ "result": "Preciso de ajuda.\nDe: Maria Souza\nData: 10/09\nStill here."+ },+ {+ "label": "p0411/quote_de_name_para_only",+ "body": "Quero folga.\nDe: 10/09\nPara: 15/09\nObrigada.",+ "max_chars": 3000,+ "result": "Quero folga.\nDe: 10/09\nPara: 15/09"+ },+ {+ "label": "p0411/quote_de_french_envoye",+ "body": "Je demande de l'aide.\nDe : Marie Dupont\nEnvoyé : lundi 10 septembre\nOld request.",+ "max_chars": 3000,+ "result": "Je demande de l'aide."+ },+ {+ "label": "p0411/quote_from_name_date",+ "body": "Please refund it.\nFrom: Jane Smith\nDate: Mon, 10 Sep 2018 10:00\nOld request.",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/quote_from_name_last_line",+ "body": "Please refund it.\nFrom: Jane Smith",+ "max_chars": 3000,+ "result": "Please refund it.\nFrom: Jane Smith"+ },+ {+ "label": "p0411/quote_from_name_first_line",+ "body": "From: Jane Smith\nSent: Monday\nOld request.",+ "max_chars": 3000,+ "result": "From: Jane Smith\nSent: Monday\nOld request."+ },+ {+ "label": "p0411/quote_gt_lines_dropped",+ "body": "Please refund it.\n> quoted one\n > quoted two\nStill mine.",+ "max_chars": 3000,+ "result": "Please refund it.\nStill mine."+ },+ {+ "label": "p0411/quote_attribution_tail_en",+ "body": "Please refund it.\nOn Mon, 10/09/2018, Jane Smith\[email protected]> wrote:\nOld request.",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/quote_attribution_tail_pt",+ "body": "Preciso de ajuda.\nEm 10/09/2018, Fulano de Tal\[email protected]> escreveu:\nOld request.",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/quote_attribution_tail_es",+ "body": "Necesito ayuda.\nEl 10/09/2018, Fulano de Tal\[email protected]> escribió:\nOld request.",+ "max_chars": 3000,+ "result": "Necesito ayuda."+ },+ {+ "label": "p0411/quote_attribution_tail_fr",+ "body": "Je demande de l'aide.\nLe 10/09/2018, Fulano\[email protected]> a écrit :\nOld request.",+ "max_chars": 3000,+ "result": "Je demande de l'aide."+ },+ {+ "label": "p0411/quote_attribution_tail_no_head_date",+ "body": "Please refund it.\nOn the other hand\[email protected]> wrote:\nOld request.",+ "max_chars": 3000,+ "result": "Please refund it.\nOn the other hand"+ },+ {+ "label": "p0411/quote_attribution_tail_unrelated_head",+ "body": "Please refund it.\nWith thanks 10/09\[email protected]> wrote:\nOld request.",+ "max_chars": 3000,+ "result": "Please refund it.\nWith thanks 10/09"+ },+ {+ "label": "p0411/quote_attribution_tail_first_line",+ "body": "[email protected]> wrote:\nOld request.",+ "max_chars": 3000,+ "result": "[email protected]> wrote:\nOld request."+ },+ {+ "label": "p0411/quote_attribution_tail_too_long",+ "body": "Please refund it.\nOn 10/09\nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@y.com> wrote:\nOld request.",+ "max_chars": 3000,+ "result": "Please refund it.\nOn 10/09\nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@y.com> wrote:\nOld request."+ },+ {+ "label": "p0411/quote_crlf",+ "body": "Please refund it.\r\nOn Mon, Jan 1, 2024 Jane wrote:\r\nOld request.",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/quote_lone_cr",+ "body": "Please refund it.\rOn Mon, Jan 1, 2024 Jane wrote:\rOld request.",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/quote_literal_backslash_n",+ "body": "Please refund it.\\nOn Mon, Jan 1, 2024 Jane wrote:\\nOld request.",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/sig_dashes",+ "body": "Line one.\nLine two.\nLine three.\nLine four.\nLine five.\n--\nJohn Smith\nCEO",+ "max_chars": 3000,+ "result": "Line one.\nLine two.\nLine three.\nLine four.\nLine five."+ },+ {+ "label": "p0411/sig_dashes_trailing_space",+ "body": "Line one.\nLine two.\nLine three.\nLine four.\nLine five.\n-- \nJohn Smith",+ "max_chars": 3000,+ "result": "Line one.\nLine two.\nLine three.\nLine four.\nLine five."+ },+ {+ "label": "p0411/sig_best_regards",+ "body": "Please refund it.\nBest regards,\nJohn Smith",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/sig_kind_regards_name",+ "body": "Please refund it.\nKind regards, John",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/sig_thanks_and_regards",+ "body": "Please refund it.\nThanks and regards, José",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/sig_thanks_ampersand_regards",+ "body": "Please refund it.\nThanks & regards,\nJosé",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/sig_warmest_wishes",+ "body": "Please refund it.\nWarmest wishes, Pat",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/sig_many_thanks_in_advance",+ "body": "Please refund it.\nMany thanks in advance!",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/sig_thank_you_so_much",+ "body": "Please refund it.\nThank you so much, Priya Sharma",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/sig_three_name_tokens",+ "body": "Please refund it.\nThanks, Anna Maria Lopez",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/sig_four_name_tokens_is_prose",+ "body": "Please refund it.\nThanks, Anna Maria Lopez Garcia",+ "max_chars": 3000,+ "result": "Please refund it.\nThanks, Anna Maria Lopez Garcia"+ },+ {+ "label": "p0411/sig_thanks_for_is_prose",+ "body": "Please refund it.\nThanks for the quick reply",+ "max_chars": 3000,+ "result": "Please refund it.\nThanks for the quick reply"+ },+ {+ "label": "p0411/sig_thanks_digits",+ "body": "Please refund it.\nThanks, Anna 2",+ "max_chars": 3000,+ "result": "Please refund it.\nThanks, Anna 2"+ },+ {+ "label": "p0411/sig_apostrophe_hyphen_name",+ "body": "Please refund it.\nRegards, D'Arcy-Smith",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/sig_lowercase_name_is_prose",+ "body": "Please refund it.\nThanks, anna",+ "max_chars": 3000,+ "result": "Please refund it.\nThanks, anna"+ },+ {+ "label": "p0411/sig_caseless_name",+ "body": "Please refund it.\nRegards, 山田",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/sig_cyrillic_name",+ "body": "Please refund it.\nSincerely, Дмитрий",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/sig_name_with_semicolon_is_prose",+ "body": "Please refund it.\nThanks; Anna",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/sig_cheers_bang",+ "body": "Please refund it.\nCheers!!",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/sig_too_long_is_not_cut",+ "body": "Please refund it.\nBest regards, Averyveryverylongnamethatgoes",+ "max_chars": 3000,+ "result": "Please refund it.\nBest regards, Averyveryverylongnamethatgoes"+ },+ {+ "label": "p0411/sig_pt_atenciosamente",+ "body": "Preciso de ajuda.\nAtenciosamente,\nMaria",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/sig_pt_att",+ "body": "Preciso de ajuda.\nAtt.\nMaria",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/sig_pt_abraco",+ "body": "Preciso de ajuda.\nAbraços!\nMaria",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/sig_pt_um_abraco",+ "body": "Preciso de ajuda.\nUm abraço\nMaria",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/sig_pt_obrigado_desde_ja",+ "body": "Preciso de ajuda.\nObrigado desde já!\nMaria",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/sig_pt_muito_obrigada_atencao",+ "body": "Preciso de ajuda.\nMuito obrigada pela atenção.\nMaria",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/sig_pt_obrigado_request_is_prose",+ "body": "Preciso de ajuda.\nObrigado pelo retorno, mas ainda preciso do boleto.",+ "max_chars": 3000,+ "result": "Preciso de ajuda.\nObrigado pelo retorno, mas ainda preciso do boleto."+ },+ {+ "label": "p0411/sig_pt_cumprimentos",+ "body": "Preciso de ajuda.\nCom os melhores cumprimentos,\nMaria",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/sig_es_saludos_cordiales",+ "body": "Necesito ayuda.\nSaludos cordiales,\nJuan",+ "max_chars": 3000,+ "result": "Necesito ayuda."+ },+ {+ "label": "p0411/sig_es_un_saludo",+ "body": "Necesito ayuda.\nUn saludo\nJuan",+ "max_chars": 3000,+ "result": "Necesito ayuda."+ },+ {+ "label": "p0411/sig_es_gracias_de_antemano",+ "body": "Necesito ayuda.\nMuchas gracias de antemano.\nJuan",+ "max_chars": 3000,+ "result": "Necesito ayuda."+ },+ {+ "label": "p0411/sig_es_atentamente",+ "body": "Necesito ayuda.\nAtentamente,\nJuan",+ "max_chars": 3000,+ "result": "Necesito ayuda."+ },+ {+ "label": "p0411/sig_fr_cordialement",+ "body": "Je demande de l'aide.\nCordialement,\nMarie",+ "max_chars": 3000,+ "result": "Je demande de l'aide."+ },+ {+ "label": "p0411/sig_fr_bien_cordialement",+ "body": "Je demande de l'aide.\nBien cordialement\nMarie",+ "max_chars": 3000,+ "result": "Je demande de l'aide."+ },+ {+ "label": "p0411/sig_fr_salutations_distinguees",+ "body": "Je demande de l'aide.\nSalutations distinguées,\nMarie",+ "max_chars": 3000,+ "result": "Je demande de l'aide."+ },+ {+ "label": "p0411/sig_fr_bien_a_vous",+ "body": "Je demande de l'aide.\nBien à vous\nMarie",+ "max_chars": 3000,+ "result": "Je demande de l'aide."+ },+ {+ "label": "p0411/sig_fr_merci_d_avance",+ "body": "Je demande de l'aide.\nMerci d'avance !\nMarie",+ "max_chars": 3000,+ "result": "Je demande de l'aide."+ },+ {+ "label": "p0411/sig_fr_bonne_journee",+ "body": "Je demande de l'aide.\nBonne journée.\nMarie",+ "max_chars": 3000,+ "result": "Je demande de l'aide."+ },+ {+ "label": "p0411/sig_fr_merci_request_is_prose",+ "body": "Je demande de l'aide.\nMerci pour votre aide, mais il reste un problème.",+ "max_chars": 3000,+ "result": "Je demande de l'aide.\nMerci pour votre aide, mais il reste un problème."+ },+ {+ "label": "p0411/sig_scan_starts_late",+ "body": "Cheers,\nJohn\nBody line 0.\nBody line 1.\nBody line 2.\nBody line 3.\nBody line 4.\nBody line 5.\nBody line 6.\nBody line 7.\nBody line 8.\nBody line 9.\nBody line 10.\nBody line 11.",+ "max_chars": 3000,+ "result": "Cheers,\nJohn\nBody line 0.\nBody line 1.\nBody line 2.\nBody line 3.\nBody line 4.\nBody line 5.\nBody line 6.\nBody line 7.\nBody line 8.\nBody line 9.\nBody line 10.\nBody line 11."+ },+ {+ "label": "p0411/sig_scan_window_ten_lines",+ "body": "Body line 0.\nBody line 1.\nBody line 2.\nBody line 3.\nBody line 4.\nThanks,\nMore 0.\nMore 1.\nMore 2.\nMore 3.",+ "max_chars": 3000,+ "result": "Body line 0.\nBody line 1.\nBody line 2.\nBody line 3.\nBody line 4."+ },+ {+ "label": "p0411/sig_in_short_body_first_line_never_cut",+ "body": "Thanks,\nPlease refund it.",+ "max_chars": 3000,+ "result": "Thanks,\nPlease refund it."+ },+ {+ "label": "p0411/sig_longer_than_forty_is_not_cut",+ "body": "Line one.\nLine two.\nLine three.\nLine four.\nLine five.\nRegards, Someone With A Very Long Name Indeed Yes",+ "max_chars": 3000,+ "result": "Line one.\nLine two.\nLine three.\nLine four.\nLine five.\nRegards, Someone With A Very Long Name Indeed Yes"+ },+ {+ "label": "p0411/device_sent_from_iphone",+ "body": "Please refund it.\nSent from my iPhone",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/device_sent_from_galaxy",+ "body": "Please refund it.\nSent from my Samsung Galaxy S21 Ultra 5G.",+ "max_chars": 3000,+ "result": "Please refund it.\nSent from my Samsung Galaxy S21 Ultra 5G."+ },+ {+ "label": "p0411/device_sent_from_using",+ "body": "Please refund it.\nSent from Outlook using mail-client_1.2",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/device_samsung_pt",+ "body": "Preciso de ajuda.\nEnviado do meu smartphone Samsung Galaxy.",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/device_pt_celular_request",+ "body": "Preciso de ajuda.\nEnviado do meu celular o comprovante ontem.",+ "max_chars": 3000,+ "result": "Preciso de ajuda.\nEnviado do meu celular o comprovante ontem."+ },+ {+ "label": "p0411/device_get_outlook_ios",+ "body": "Please refund it.\nGet Outlook for iOS",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/device_obter_outlook_android",+ "body": "Preciso de ajuda.\nObter o Outlook para Android",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/device_fr_iphone",+ "body": "Je demande de l'aide.\nEnvoyé depuis mon iPhone",+ "max_chars": 3000,+ "result": "Je demande de l'aide."+ },+ {+ "label": "p0411/device_fr_de_ipad",+ "body": "Je demande de l'aide.\nEnvoyé de mon iPad.",+ "max_chars": 3000,+ "result": "Je demande de l'aide."+ },+ {+ "label": "p0411/device_fr_mentioned_in_prose",+ "body": "Bonjour,\nEnvoyé depuis mon iPhone par erreur.\nMerci de rembourser la facture.",+ "max_chars": 3000,+ "result": "Bonjour,\nEnvoyé depuis mon iPhone par erreur.\nMerci de rembourser la facture."+ },+ {+ "label": "p0411/device_es_movil",+ "body": "Necesito ayuda.\nEnviado desde mi móvil",+ "max_chars": 3000,+ "result": "Necesito ayuda."+ },+ {+ "label": "p0411/device_pt_mi",+ "body": "Preciso de ajuda.\nEnviado via mi Android",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/device_longer_than_sixty",+ "body": "Please refund it.\nSent from my iPhone phone phone phone phone phone phone phone phone phone phone phone phone ",+ "max_chars": 3000,+ "result": "Please refund it.\nSent from my iPhone phone phone phone phone phone phone phone phone phone phone phone phone"+ },+ {+ "label": "p0411/disclaimer_en_standard",+ "body": "Please refund it.\n\nThis email is confidential and intended solely for the named addressee.",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/disclaimer_en_wrapped",+ "body": "Please refund it.\n\nThis email and its contents are\nconfidential and intended solely for the addressee.",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/disclaimer_en_privileged",+ "body": "Please refund it.\n\nThis information is confidential and may be privileged.",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/disclaimer_en_received_in_error",+ "body": "Please refund it.\n\nIf you have received this email in error please delete it.",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/disclaimer_en_question_is_body",+ "body": "Is this confidential?",+ "max_chars": 3000,+ "result": "Is this confidential?"+ },+ {+ "label": "p0411/disclaimer_en_fused_lines",+ "body": "My account is locked\nThis email is confidential and intended solely for the addressee.",+ "max_chars": 3000,+ "result": "My account is locked"+ },+ {+ "label": "p0411/disclaimer_en_inline",+ "body": "My account is locked. This email is confidential and intended solely for the addressee. Please help me.",+ "max_chars": 3000,+ "result": "My account is locked. Please help me."+ },+ {+ "label": "p0411/disclaimer_pt",+ "body": "Preciso de ajuda.\n\nEsta mensagem é confidencial e destinada exclusivamente ao destinatário.",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/disclaimer_pt_request_confidencial",+ "body": "Preciso do contrato confidencial.",+ "max_chars": 3000,+ "result": "Preciso do contrato confidencial."+ },+ {+ "label": "p0411/disclaimer_pt_print",+ "body": "Preciso de ajuda.\n\nAntes de imprimir, pense no meio ambiente.",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/disclaimer_pt_print_request",+ "body": "Antes de imprimir o boleto, confira o valor.",+ "max_chars": 3000,+ "result": "Antes de imprimir o boleto, confira o valor."+ },+ {+ "label": "p0411/disclaimer_pt_ambiente_first",+ "body": "Preciso de ajuda.\n\nPense no meio ambiente antes de imprimir.",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/disclaimer_pt_recebeu_engano",+ "body": "Preciso de ajuda.\n\nSe você recebeu esta mensagem por engano, apague-a.",+ "max_chars": 3000,+ "result": "Preciso de ajuda."+ },+ {+ "label": "p0411/disclaimer_es",+ "body": "Necesito ayuda.\n\nEste mensaje es confidencial y de uso exclusivo del destinatario.",+ "max_chars": 3000,+ "result": "Necesito ayuda."+ },+ {+ "label": "p0411/disclaimer_es_recibido_error",+ "body": "Necesito ayuda.\n\nSi ha recibido este mensaje por error, bórrelo.",+ "max_chars": 3000,+ "result": "Necesito ayuda."+ },+ {+ "label": "p0411/disclaimer_fr",+ "body": "Je demande de l'aide.\n\nCe message est confidentiel et réservé au destinataire.",+ "max_chars": 3000,+ "result": "Je demande de l'aide."+ },+ {+ "label": "p0411/disclaimer_fr_recu_erreur",+ "body": "Je demande de l'aide.\n\nSi vous avez reçu ce message par erreur, supprimez-le.",+ "max_chars": 3000,+ "result": "Je demande de l'aide."+ },+ {+ "label": "p0411/disclaimer_fr_request_confidentiel",+ "body": "Je veux le contrat confidentiel.",+ "max_chars": 3000,+ "result": "Je veux le contrat confidentiel."+ },+ {+ "label": "p0411/disclaimer_fr_usage_exclusif",+ "body": "Je demande de l'aide.\n\nUsage exclusif du destinataire.",+ "max_chars": 3000,+ "result": "Je demande de l'aide."+ },+ {+ "label": "p0411/disclaimer_mixed_paragraph",+ "body": "Please help me. The email is confidential and intended solely for you. Thanks!",+ "max_chars": 3000,+ "result": "Please help me. Thanks!"+ },+ {+ "label": "p0411/disclaimer_uppercase_split",+ "body": "Locked out\nThis email is confidential and intended solely for you.\nMore text.",+ "max_chars": 3000,+ "result": "Locked out More text."+ },+ {+ "label": "p0411/disclaimer_caseless_wrapped",+ "body": "退款请求\n\n这封邮件是机密的 This email is\nconfidential and intended solely for you.",+ "max_chars": 3000,+ "result": "退款请求"+ },+ {+ "label": "p0411/disclaimer_sentence_split_ws",+ "body": "Hello there. This email is confidential and intended solely for you. Bye!",+ "max_chars": 3000,+ "result": "Hello there. Bye!"+ },+ {+ "label": "p0411/whitespace_collapse",+ "body": "Please refund\t\tit.\n\n\n\nThanks a lot",+ "max_chars": 3000,+ "result": "Please refund it."+ },+ {+ "label": "p0411/empty_body",+ "body": "",+ "max_chars": 3000,+ "result": ""+ },+ {+ "label": "p0411/only_quoted",+ "body": "> a\n> b",+ "max_chars": 3000,+ "result": ""+ },+ {+ "label": "p0411/only_whitespace",+ "body": " \n\t\n ",+ "max_chars": 3000,+ "result": ""+ },+ {+ "label": "p0411/unit_separator_blank_line",+ "body": "First\n\u001f\nSecond",+ "max_chars": 3000,+ "result": "First\n\nSecond"+ },+ {+ "label": "p0411/unicode_whitespace_line",+ "body": "First\n \nSecond\n \n\nThird",+ "max_chars": 3000,+ "result": "First\n\nSecond\n\nThird"+ }+ ],+ "state": [+ {+ "label": "basic_clean_true",+ "subject": "Locked out",+ "body": "My account is locked. This email is confidential and intended solely for the named addressee.",+ "sender": null,+ "clean": true,+ "extra": {},+ "result": {+ "subject": "Locked out",+ "body": "My account is locked."+ }+ },+ {+ "label": "basic_clean_false_keeps_raw_body",+ "subject": "Locked out",+ "body": "My account is locked.\nThis email is confidential and intended solely for the named addressee.",+ "sender": null,+ "clean": false,+ "extra": {},+ "result": {+ "subject": "Locked out",+ "body": "My account is locked.\nThis email is confidential and intended solely for the named addressee."+ }+ },+ {+ "label": "with_sender",+ "subject": "Refund request",+ "body": "Please refund invoice 4411.",+ "sender": "[email protected]",+ "clean": true,+ "extra": {},+ "result": {+ "subject": "Refund request",+ "body": "Please refund invoice 4411.",+ "from": "[email protected]"+ }+ },+ {+ "label": "subject_whitespace_stripped",+ "subject": " Refund request ",+ "body": "Please help.",+ "sender": null,+ "clean": true,+ "extra": {},+ "result": {+ "subject": "Refund request",+ "body": "Please help."+ }+ },+ {+ "label": "extra_fields_kept_when_not_none",+ "subject": "Ticket",+ "body": "Body text.",+ "sender": "[email protected]",+ "clean": true,+ "extra": {+ "priority": "high",+ "ticket_id": 4411+ },+ "result": {+ "subject": "Ticket",+ "body": "Body text.",+ "from": "[email protected]",+ "priority": "high",+ "ticket_id": 4411+ }+ },+ {+ "label": "extra_none_values_dropped",+ "subject": "Ticket",+ "body": "Body text.",+ "sender": null,+ "clean": true,+ "extra": {+ "nullable": null,+ "kept": "value"+ },+ "result": {+ "subject": "Ticket",+ "body": "Body text.",+ "kept": "value"+ }+ },+ {+ "label": "empty_subject_and_body",+ "subject": "",+ "body": "",+ "sender": null,+ "clean": true,+ "extra": {},+ "result": {+ "subject": "",+ "body": ""+ }+ },+ {+ "label": "hindi_subject_and_body",+ "subject": "सहायता चाहिए",+ "body": "मुझसे दो बार शुल्क लिया गया, कृपया रिफंड करें।",+ "sender": null,+ "clean": true,+ "extra": {},+ "result": {+ "subject": "सहायता चाहिए",+ "body": "मुझसे दो बार शुल्क लिया गया, कृपया रिफंड करें।"+ }+ },+ {+ "label": "p0411/max_chars_extra_small",+ "subject": "Locked out",+ "body": "My account is locked and I need help right now.",+ "sender": null,+ "clean": true,+ "extra": {+ "max_chars": 10+ },+ "result": {+ "subject": "Locked out",+ "body": "My account"+ }+ },+ {+ "label": "p0411/max_chars_extra_zero",+ "subject": "Locked out",+ "body": "My account is locked.",+ "sender": null,+ "clean": true,+ "extra": {+ "max_chars": 0+ },+ "result": {+ "subject": "Locked out",+ "body": ""+ }+ },+ {+ "label": "p0411/max_chars_extra_negative",+ "subject": "Locked out",+ "body": "My account is locked and I need help right now.",+ "sender": null,+ "clean": true,+ "extra": {+ "max_chars": -5+ },+ "result": {+ "subject": "Locked out",+ "body": "My account is locked "+ }+ },+ {+ "label": "p0411/max_chars_extra_large",+ "subject": "Locked out",+ "body": "My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. ",+ "sender": null,+ "clean": true,+ "extra": {+ "max_chars": 100000+ },+ "result": {+ "subject": "Locked out",+ "body": "My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked."+ }+ },+ {+ "label": "p0411/max_chars_default_cut",+ "subject": "Locked out",+ "body": "My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. ",+ "sender": null,+ "clean": true,+ "extra": {},+ "result": {+ "subject": "Locked out",+ "body": "My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My account is locked. My accou"+ }+ },+ {+ "label": "p0411/max_chars_ignored_when_not_clean",+ "subject": "Locked out",+ "body": "My account is locked and I need help right now.",+ "sender": null,+ "clean": false,+ "extra": {+ "max_chars": 5+ },+ "result": {+ "subject": "Locked out",+ "body": "My account is locked and I need help right now."+ }+ },+ {+ "label": "p0411/max_chars_with_other_extra",+ "subject": "Locked out",+ "body": "My account is locked and I need help.",+ "sender": "[email protected]",+ "clean": true,+ "extra": {+ "max_chars": 7,+ "priority": "high"+ },+ "result": {+ "subject": "Locked out",+ "body": "My acco",+ "from": "[email protected]",+ "priority": "high"+ }+ },+ {+ "label": "p0411/sender_empty_dropped",+ "subject": "Locked out",+ "body": "My account is locked.",+ "sender": "",+ "clean": true,+ "extra": {},+ "result": {+ "subject": "Locked out",+ "body": "My account is locked."+ }+ },+ {+ "label": "p0411/extra_overrides_from",+ "subject": "Locked out",+ "body": "My account is locked.",+ "sender": "[email protected]",+ "clean": true,+ "extra": {+ "from": "[email protected]"+ },+ "result": {+ "subject": "Locked out",+ "body": "My account is locked.",+ "from": "[email protected]"+ }+ },+ {+ "label": "p0411/extra_non_string_values",+ "subject": "Locked out",+ "body": "My account is locked.",+ "sender": null,+ "clean": true,+ "extra": {+ "n": 1,+ "f": 1.5,+ "b": false,+ "l": [+ 1,+ "x"+ ],+ "d": {+ "k": "v"+ }+ },+ "result": {+ "subject": "Locked out",+ "body": "My account is locked.",+ "n": 1,+ "f": 1.5,+ "b": false,+ "l": [+ 1,+ "x"+ ],+ "d": {+ "k": "v"+ }+ }+ },+ {+ "label": "p0411/subject_none_like_empty",+ "subject": "",+ "body": "My account is locked.",+ "sender": null,+ "clean": true,+ "extra": {},+ "result": {+ "subject": "",+ "body": "My account is locked."+ }+ },+ {+ "label": "p0411/subject_unicode_whitespace",+ "subject": " Locked out ",+ "body": "My account is locked.",+ "sender": null,+ "clean": true,+ "extra": {},+ "result": {+ "subject": "Locked out",+ "body": "My account is locked."+ }+ },+ {+ "label": "p0411/state_quote_cleaned",+ "subject": "Locked out",+ "body": "Please unlock it.\nOn Mon, Jan 1, 2024 Jane wrote:\nOld text.",+ "sender": null,+ "clean": true,+ "extra": {},+ "result": {+ "subject": "Locked out",+ "body": "Please unlock it."+ }+ },+ {+ "label": "p0411/state_unclean_keeps_quote",+ "subject": "Locked out",+ "body": "Please unlock it.\nOn Mon, Jan 1, 2024 Jane wrote:\nOld text.",+ "sender": null,+ "clean": false,+ "extra": {},+ "result": {+ "subject": "Locked out",+ "body": "Please unlock it.\nOn Mon, Jan 1, 2024 Jane wrote:\nOld text."}}]diff --git a/laya-rust/tests/golden/routing/lang_probe.json b/laya-rust/tests/golden/routing/lang_probe.jsonindex 78b1dc2c..088d5e19 100644--- a/laya-rust/tests/golden/routing/lang_probe.json+++ b/laya-rust/tests/golden/routing/lang_probe.json@@ -1,120 +1,124 @@[{- "label": "script/english",- "state": "The customer was charged twice and wants a refund.",- "state_text": "The customer was charged twice and wants a refund.",+ "label": "upstream/swedish_short",+ "state": "glömt lösenord",+ "state_text": "glömt lösenord","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": "en",- "english_hits": 3,- "diacritic_rate": 0.0,- "looks_non_english": false+ "language": "sv",+ "english_hits": 0,+ "diacritic_rate": 0.14285714285714285,+ "looks_non_english": true},"analyse": {"script": "latin","script_profile": {"latin": 1.0},- "language": "en",- "is_english": true,+ "language": "sv",+ "is_english": false,"language_undecided": false,- "diacritic_rate": 0.0,+ "diacritic_rate": 0.1429,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "script/armenian",- "state": "Հայերեն",- "state_text": "Հայերեն",- "detect_script": "armenian",+ "label": "upstream/swedish_login",+ "state": "kan inte logga in",+ "state_text": "kan inte logga in",+ "detect_script": "latin","script_profile": {- "armenian": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "sv",+ "english_hits": 1,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "armenian",+ "script": "latin","script_profile": {- "armenian": 1.0+ "latin": 1.0},- "language": null,+ "language": "sv","is_english": false,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "script/armenian_uppercase",- "state": "ՀԱՅԵՐԵՆ",- "state_text": "ՀԱՅԵՐԵՆ",- "detect_script": "armenian",+ "label": "upstream/nordic_overlap",+ "state": "hej min vän",+ "state_text": "hej min vän",+ "detect_script": "latin","script_profile": {- "armenian": 1.0+ "latin": 1.0},"latin_profile": {"language": null,"english_hits": 0,- "diacritic_rate": 0.0,- "looks_non_english": false+ "diacritic_rate": 0.09090909090909091,+ "looks_non_english": true},"analyse": {- "script": "armenian",+ "script": "latin","script_profile": {- "armenian": 1.0+ "latin": 1.0},"language": null,"is_english": false,"language_undecided": true,- "diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "diacritic_rate": 0.0909,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "script/armenian_punctuation_only",- "state": "։֊",- "state_text": "։֊",- "detect_script": "unknown",- "script_profile": {},+ "label": "upstream/banglish",+ "state": "ami amar taka ferot chai",+ "state_text": "ami amar taka ferot chai",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },"latin_profile": {- "language": null,+ "language": "bn","english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "unknown",- "script_profile": {},- "language": null,- "is_english": true,- "language_undecided": true,+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "bn",+ "is_english": false,+ "language_undecided": false,"diacritic_rate": 0.0,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "script/french",- "state": "Le client a été facturé deux fois et demande un remboursement.",- "state_text": "Le client a été facturé deux fois et demande un remboursement.",+ "label": "upstream/azerbaijani",+ "state": "mən bu hesab üçün kömək istəyirəm",+ "state_text": "mən bu hesab üçün kömək istəyirəm","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": "fr",+ "language": "az","english_hits": 0,- "diacritic_rate": 0.04838709677419355,+ "diacritic_rate": 0.24242424242424243,"looks_non_english": true},"analyse": {@@ -122,158 +126,156 @@"script_profile": {"latin": 1.0},- "language": "fr",+ "language": "az","is_english": false,"language_undecided": false,- "diacritic_rate": 0.0484,+ "diacritic_rate": 0.2424,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "script/hindi",- "state": "ग्राहक से दो बार शुल्क लिया गया और वह धनवापसी चाहता है।",- "state_text": "ग्राहक से दो बार शुल्क लिया गया और वह धनवापसी चाहता है।",- "detect_script": "devanagari",+ "label": "upstream/german_ascii",+ "state": "ich habe mein paket noch nicht",+ "state_text": "ich habe mein paket noch nicht",+ "detect_script": "latin","script_profile": {- "devanagari": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,+ "language": "de","english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "devanagari",+ "script": "latin","script_profile": {- "devanagari": 1.0+ "latin": 1.0},- "language": null,+ "language": "de","is_english": false,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "script/japanese",- "state": "お客様は二重に請求されたため返金を希望しています。",- "state_text": "お客様は二重に請求されたため返金を希望しています。",- "detect_script": "kana",+ "label": "upstream/portuguese_ascii",+ "state": "eu nao consigo entrar na minha conta",+ "state_text": "eu nao consigo entrar na minha conta",+ "detect_script": "latin","script_profile": {- "kana": 0.5833333333333334,- "han": 0.4166666666666667+ "latin": 1.0},"latin_profile": {- "language": null,+ "language": "pt","english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "kana",+ "script": "latin","script_profile": {- "kana": 0.5833333333333334,- "han": 0.4166666666666667+ "latin": 1.0},- "language": null,+ "language": "pt","is_english": false,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "script/chinese",- "state": "客户被重复扣款要求退款",- "state_text": "客户被重复扣款要求退款",- "detect_script": "han",+ "label": "upstream/english_loanword",+ "state": "Please send me the café receipt.",+ "state_text": "Please send me the café receipt.",+ "detect_script": "latin","script_profile": {- "han": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,- "diacritic_rate": 0.0,- "looks_non_english": false+ "language": "en",+ "english_hits": 2,+ "diacritic_rate": 0.03125,+ "looks_non_english": true},"analyse": {- "script": "han",+ "script": "latin","script_profile": {- "han": 1.0+ "latin": 1.0},- "language": null,- "is_english": false,- "language_undecided": true,- "diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0312,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "script/korean",- "state": "고객이 두 번 청구되어 환불을 원합니다",- "state_text": "고객이 두 번 청구되어 환불을 원합니다",- "detect_script": "hangul",+ "label": "upstream/repeated_collision",+ "state": "come come come please send the receipt",+ "state_text": "come come come please send the receipt",+ "detect_script": "latin","script_profile": {- "hangul": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 2,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "hangul",+ "script": "latin","script_profile": {- "hangul": 1.0+ "latin": 1.0},- "language": null,- "is_english": false,- "language_undecided": true,+ "language": "en",+ "is_english": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "script/arabic",- "state": "تم خصم المبلغ مرتين من العميل ويريد استرداد الأموال",- "state_text": "تم خصم المبلغ مرتين من العميل ويريد استرداد الأموال",- "detect_script": "arabic",+ "label": "upstream/identifier_not_prose",+ "state": "Please check my error at os.path and [email protected]",+ "state_text": "Please check my error at os.path and [email protected]",+ "detect_script": "latin","script_profile": {- "arabic": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 3,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "arabic",+ "script": "latin","script_profile": {- "arabic": 1.0+ "latin": 1.0},- "language": null,- "is_english": false,- "language_undecided": true,+ "language": "en",+ "is_english": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "script/tamil",- "state": "வாடிக்கையாளரிடம் இருமுறை கட்டணம் வசூலிக்கப்பட்டது",- "state_text": "வாடிக்கையாளரிடம் இருமுறை கட்டணம் வசூலிக்கப்பட்டது",- "detect_script": "tamil",+ "label": "upstream/fullwidth_latin",+ "state": "ABCD hello",+ "state_text": "ABCD hello",+ "detect_script": "latin","script_profile": {- "tamil": 1.0+ "latin": 1.0},"latin_profile": {"language": null,@@ -282,25 +284,25 @@"looks_non_english": false},"analyse": {- "script": "tamil",+ "script": "latin","script_profile": {- "tamil": 1.0+ "latin": 1.0},"language": null,- "is_english": false,+ "is_english": true,"language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "script/russian",- "state": "С клиента дважды сняли деньги и он хочет возврат",- "state_text": "С клиента дважды сняли деньги и он хочет возврат",- "detect_script": "cyrillic",+ "label": "upstream/ipa_latin",+ "state": "ɐɪɲ hello",+ "state_text": "ɐɪɲ hello",+ "detect_script": "latin","script_profile": {- "cyrillic": 1.0+ "latin": 1.0},"latin_profile": {"language": null,@@ -309,25 +311,26 @@"looks_non_english": false},"analyse": {- "script": "cyrillic",+ "script": "latin","script_profile": {- "cyrillic": 1.0+ "latin": 1.0},"language": null,- "is_english": false,+ "is_english": true,"language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "script/thai",- "state": "ลูกค้าถูกเรียกเก็บเงินสองครั้งและต้องการเงินคืน",- "state_text": "ลูกค้าถูกเรียกเก็บเงินสองครั้งและต้องการเงินคืน",- "detect_script": "thai",+ "label": "upstream/cjk_brand",+ "state": "iPhone 用户无法登录账户请帮助",+ "state_text": "iPhone 用户无法登录账户请帮助",+ "detect_script": "han","script_profile": {- "thai": 1.0+ "latin": 0.35294117647058826,+ "han": 0.6470588235294118},"latin_profile": {"language": null,@@ -336,129 +339,148 @@"looks_non_english": false},"analyse": {- "script": "thai",+ "script": "han","script_profile": {- "thai": 1.0+ "latin": 0.35294117647058826,+ "han": 0.6470588235294118},"language": null,"is_english": false,"language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.6471,"mixed_segment": null}},{- "label": "script/greek",- "state": "Ο πελάτης χρεώθηκε δύο φορές και θέλει επιστροφή χρημάτων",- "state_text": "Ο πελάτης χρεώθηκε δύο φορές και θέλει επιστροφή χρημάτων",- "detect_script": "greek",+ "label": "upstream/cyrillic_name",+ "state": "Please send the receipt to Владимир Иванов today",+ "state_text": "Please send the receipt to Владимир Иванов today",+ "detect_script": "latin","script_profile": {- "greek": 1.0+ "latin": 0.6585365853658537,+ "cyrillic": 0.34146341463414637},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 3,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "greek",+ "script": "latin","script_profile": {- "greek": 1.0+ "latin": 0.6585365853658537,+ "cyrillic": 0.34146341463414637},- "language": null,- "is_english": false,- "language_undecided": true,+ "language": "en",+ "is_english": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.3415,"mixed_segment": null}},{- "label": "script/hebrew",- "state": "הלקוח חויב פעמיים ורוצה החזר כספי",- "state_text": "הלקוח חויב פעמיים ורוצה החזר כספי",- "detect_script": "hebrew",+ "label": "upstream/greek_symbol",+ "state": "Please set α to the correct value",+ "state_text": "Please set α to the correct value",+ "detect_script": "latin","script_profile": {- "hebrew": 1.0+ "latin": 0.9629629629629629,+ "greek": 0.037037037037037035},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 3,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "hebrew",+ "script": "latin","script_profile": {- "hebrew": 1.0+ "latin": 0.9629629629629629,+ "greek": 0.037037037037037035},- "language": null,- "is_english": false,- "language_undecided": true,+ "language": "en",+ "is_english": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.037,"mixed_segment": null}},{- "label": "script/empty",- "state": "",- "state_text": "",- "detect_script": "unknown",- "script_profile": {},+ "label": "upstream/mixed_foreign_line",+ "state": "Please review the error and send me the details.\nEu nao consigo entrar na minha conta.",+ "state_text": "Please review the error and send me the details.\nEu nao consigo entrar na minha conta.",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 4,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "unknown",- "script_profile": {},- "language": null,- "is_english": true,- "language_undecided": true,+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "pt",+ "is_english": false,+ "language_undecided": false,"diacritic_rate": 0.0,"non_latin_fraction": 0.0,- "mixed_segment": null+ "mixed_segment": "Eu nao consigo entrar na minha conta."}},{- "label": "script/digits_only",- "state": "12345 6789",- "state_text": "12345 6789",- "detect_script": "unknown",- "script_profile": {},+ "label": "upstream/mixed_foreign_field",+ "state": {+ "note": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. ",+ "body": "ich habe mein paket noch nicht"+ },+ "state_text": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and sen",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 327,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "unknown",- "script_profile": {},- "language": null,- "is_english": true,- "language_undecided": true,+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "de",+ "is_english": false,+ "language_undecided": false,"diacritic_rate": 0.0,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "is_english/plain_english",- "state": "Please refund the duplicate charge on invoice 4411 today.",- "state_text": "Please refund the duplicate charge on invoice 4411 today.",+ "label": "upstream/mixed_unknown_latin_field",+ "state": {+ "note": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. ",+ "body": "žluťoučký kůň úpěl ďábelské ódy"+ },+ "state_text": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and sen","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {"language": "en",- "english_hits": 3,+ "english_hits": 327,"diacritic_rate": 0.0,"looks_non_english": false},@@ -467,52 +489,55 @@"script_profile": {"latin": 1.0},- "language": "en",- "is_english": true,- "language_undecided": false,+ "language": null,+ "is_english": false,+ "language_undecided": true,"diacritic_rate": 0.0,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "is_english/armenian",- "state": "Հայերեն",- "state_text": "Հայերեն",- "detect_script": "armenian",+ "label": "upstream/mixed_nonlatin_field",+ "state": {+ "note": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. ",+ "body": "我的账户无法登录请帮助我"+ },+ "state_text": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and sen",+ "detect_script": "latin","script_profile": {- "armenian": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 327,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "armenian",+ "script": "latin","script_profile": {- "armenian": 1.0+ "latin": 1.0},"language": null,"is_english": false,"language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "is_english/english_short",- "state": "refund me",- "state_text": "refund me",+ "label": "upstream/mixed_code_line",+ "state": "Please review the error and send me the details.\nos.path = nao consigo entrar na minha conta",+ "state_text": "Please review the error and send me the details.\nos.path = nao consigo entrar na minha conta","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 4,"diacritic_rate": 0.0,"looks_non_english": false},@@ -521,49 +546,48 @@"script_profile": {"latin": 1.0},- "language": null,+ "language": "en","is_english": true,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "is_english/hindi",- "state": "ग्राहक से दो बार शुल्क लिया गया",- "state_text": "ग्राहक से दो बार शुल्क लिया गया",- "detect_script": "devanagari",+ "label": "script/english",+ "state": "The customer was charged twice and wants a refund.",+ "state_text": "The customer was charged twice and wants a refund.",+ "detect_script": "latin","script_profile": {- "devanagari": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 3,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "devanagari",+ "script": "latin","script_profile": {- "devanagari": 1.0+ "latin": 1.0},- "language": null,- "is_english": false,- "language_undecided": true,+ "language": "en",+ "is_english": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "is_english/japanese",- "state": "お客様は二重に請求されました",- "state_text": "お客様は二重に請求されました",- "detect_script": "kana",+ "label": "script/armenian",+ "state": "Հայերեն",+ "state_text": "Հայերեն",+ "detect_script": "armenian","script_profile": {- "kana": 0.5714285714285714,- "han": 0.42857142857142855+ "armenian": 1.0},"latin_profile": {"language": null,@@ -572,10 +596,9 @@"looks_non_english": false},"analyse": {- "script": "kana",+ "script": "armenian","script_profile": {- "kana": 0.5714285714285714,- "han": 0.42857142857142855+ "armenian": 1.0},"language": null,"is_english": false,@@ -586,12 +609,12 @@}},{- "label": "is_english/russian",- "state": "С клиента дважды сняли деньги",- "state_text": "С клиента дважды сняли деньги",- "detect_script": "cyrillic",+ "label": "script/armenian_uppercase",+ "state": "ՀԱՅԵՐԵՆ",+ "state_text": "ՀԱՅԵՐԵՆ",+ "detect_script": "armenian","script_profile": {- "cyrillic": 1.0+ "armenian": 1.0},"latin_profile": {"language": null,@@ -600,9 +623,9 @@"looks_non_english": false},"analyse": {- "script": "cyrillic",+ "script": "armenian","script_profile": {- "cyrillic": 1.0+ "armenian": 1.0},"language": null,"is_english": false,@@ -613,44 +636,40 @@}},{- "label": "is_english/french_long",- "state": "Le client a été facturé deux fois et il demande un remboursement pour la facture qui a été payée le mois dernier avec la carte de crédit",- "state_text": "Le client a été facturé deux fois et il demande un remboursement pour la facture qui a été payée le mois dernier avec la carte de crédit",- "detect_script": "latin",- "script_profile": {- "latin": 1.0- },+ "label": "script/armenian_punctuation_only",+ "state": "։֊",+ "state_text": "։֊",+ "detect_script": "unknown",+ "script_profile": {},"latin_profile": {- "language": "fr",+ "language": null,"english_hits": 0,- "diacritic_rate": 0.051470588235294115,- "looks_non_english": true+ "diacritic_rate": 0.0,+ "looks_non_english": false},"analyse": {- "script": "latin",- "script_profile": {- "latin": 1.0- },- "language": "fr",- "is_english": false,- "language_undecided": false,- "diacritic_rate": 0.0515,+ "script": "unknown",+ "script_profile": {},+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "is_english/german_long",- "state": "Der Kunde wurde zweimal belastet und möchte eine Rückerstattung für die Rechnung die nicht korrekt ist und auch nicht bezahlt wurde",- "state_text": "Der Kunde wurde zweimal belastet und möchte eine Rückerstattung für die Rechnung die nicht korrekt ist und auch nicht bezahlt wurde",+ "label": "script/french",+ "state": "Le client a été facturé deux fois et demande un remboursement.",+ "state_text": "Le client a été facturé deux fois et demande un remboursement.","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": "de",+ "language": "fr","english_hits": 0,- "diacritic_rate": 0.022900763358778626,+ "diacritic_rate": 0.04838709677419355,"looks_non_english": true},"analyse": {@@ -658,81 +677,3109 @@"script_profile": {"latin": 1.0},- "language": "de",+ "language": "fr","is_english": false,"language_undecided": false,- "diacritic_rate": 0.0229,+ "diacritic_rate": 0.0484,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "is_english/romanian",- "state": "Gătește-mi o rețetă de sarmale de post pentru mâine.",- "state_text": "Gătește-mi o rețetă de sarmale de post pentru mâine.",- "detect_script": "latin",+ "label": "script/hindi",+ "state": "ग्राहक से दो बार शुल्क लिया गया और वह धनवापसी चाहता है।",+ "state_text": "ग्राहक से दो बार शुल्क लिया गया और वह धनवापसी चाहता है।",+ "detect_script": "devanagari","script_profile": {- "latin": 1.0+ "devanagari": 1.0},"latin_profile": {- "language": "ro",+ "language": null,"english_hits": 0,- "diacritic_rate": 0.09615384615384616,- "looks_non_english": true+ "diacritic_rate": 0.0,+ "looks_non_english": false},"analyse": {- "script": "latin",+ "script": "devanagari","script_profile": {- "latin": 1.0+ "devanagari": 1.0},- "language": "ro",+ "language": null,"is_english": false,- "language_undecided": false,- "diacritic_rate": 0.0962,- "non_latin_fraction": 0.0,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,"mixed_segment": null}},{- "label": "is_english/romanian_invoice",- "state": "Am fost taxat de două ori pentru factura din luna martie și vreau banii",- "state_text": "Am fost taxat de două ori pentru factura din luna martie și vreau banii",- "detect_script": "latin",+ "label": "script/japanese",+ "state": "お客様は二重に請求されたため返金を希望しています。",+ "state_text": "お客様は二重に請求されたため返金を希望しています。",+ "detect_script": "kana","script_profile": {- "latin": 1.0+ "kana": 0.5833333333333334,+ "han": 0.4166666666666667},"latin_profile": {- "language": "ro",+ "language": null,"english_hits": 0,- "diacritic_rate": 0.028169014084507043,- "looks_non_english": true+ "diacritic_rate": 0.0,+ "looks_non_english": false},"analyse": {- "script": "latin",+ "script": "kana",+ "script_profile": {+ "kana": 0.5833333333333334,+ "han": 0.4166666666666667+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "script/chinese",+ "state": "客户被重复扣款要求退款",+ "state_text": "客户被重复扣款要求退款",+ "detect_script": "han",+ "script_profile": {+ "han": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "han",+ "script_profile": {+ "han": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "script/korean",+ "state": "고객이 두 번 청구되어 환불을 원합니다",+ "state_text": "고객이 두 번 청구되어 환불을 원합니다",+ "detect_script": "hangul",+ "script_profile": {+ "hangul": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "hangul",+ "script_profile": {+ "hangul": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "script/arabic",+ "state": "تم خصم المبلغ مرتين من العميل ويريد استرداد الأموال",+ "state_text": "تم خصم المبلغ مرتين من العميل ويريد استرداد الأموال",+ "detect_script": "arabic",+ "script_profile": {+ "arabic": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "arabic",+ "script_profile": {+ "arabic": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "script/tamil",+ "state": "வாடிக்கையாளரிடம் இருமுறை கட்டணம் வசூலிக்கப்பட்டது",+ "state_text": "வாடிக்கையாளரிடம் இருமுறை கட்டணம் வசூலிக்கப்பட்டது",+ "detect_script": "tamil",+ "script_profile": {+ "tamil": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "tamil",+ "script_profile": {+ "tamil": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "script/russian",+ "state": "С клиента дважды сняли деньги и он хочет возврат",+ "state_text": "С клиента дважды сняли деньги и он хочет возврат",+ "detect_script": "cyrillic",+ "script_profile": {+ "cyrillic": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "cyrillic",+ "script_profile": {+ "cyrillic": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "script/thai",+ "state": "ลูกค้าถูกเรียกเก็บเงินสองครั้งและต้องการเงินคืน",+ "state_text": "ลูกค้าถูกเรียกเก็บเงินสองครั้งและต้องการเงินคืน",+ "detect_script": "thai",+ "script_profile": {+ "thai": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "thai",+ "script_profile": {+ "thai": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "script/greek",+ "state": "Ο πελάτης χρεώθηκε δύο φορές και θέλει επιστροφή χρημάτων",+ "state_text": "Ο πελάτης χρεώθηκε δύο φορές και θέλει επιστροφή χρημάτων",+ "detect_script": "greek",+ "script_profile": {+ "greek": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "greek",+ "script_profile": {+ "greek": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "script/hebrew",+ "state": "הלקוח חויב פעמיים ורוצה החזר כספי",+ "state_text": "הלקוח חויב פעמיים ורוצה החזר כספי",+ "detect_script": "hebrew",+ "script_profile": {+ "hebrew": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "hebrew",+ "script_profile": {+ "hebrew": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "script/empty",+ "state": "",+ "state_text": "",+ "detect_script": "unknown",+ "script_profile": {},+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "unknown",+ "script_profile": {},+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "script/digits_only",+ "state": "12345 6789",+ "state_text": "12345 6789",+ "detect_script": "unknown",+ "script_profile": {},+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "unknown",+ "script_profile": {},+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "is_english/plain_english",+ "state": "Please refund the duplicate charge on invoice 4411 today.",+ "state_text": "Please refund the duplicate charge on invoice 4411 today.",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "en",+ "english_hits": 3,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "is_english/armenian",+ "state": "Հայերեն",+ "state_text": "Հայերեն",+ "detect_script": "armenian",+ "script_profile": {+ "armenian": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "armenian",+ "script_profile": {+ "armenian": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "is_english/english_short",+ "state": "refund me",+ "state_text": "refund me",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "is_english/hindi",+ "state": "ग्राहक से दो बार शुल्क लिया गया",+ "state_text": "ग्राहक से दो बार शुल्क लिया गया",+ "detect_script": "devanagari",+ "script_profile": {+ "devanagari": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "devanagari",+ "script_profile": {+ "devanagari": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "is_english/japanese",+ "state": "お客様は二重に請求されました",+ "state_text": "お客様は二重に請求されました",+ "detect_script": "kana",+ "script_profile": {+ "kana": 0.5714285714285714,+ "han": 0.42857142857142855+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "kana",+ "script_profile": {+ "kana": 0.5714285714285714,+ "han": 0.42857142857142855+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "is_english/russian",+ "state": "С клиента дважды сняли деньги",+ "state_text": "С клиента дважды сняли деньги",+ "detect_script": "cyrillic",+ "script_profile": {+ "cyrillic": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "cyrillic",+ "script_profile": {+ "cyrillic": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "is_english/french_long",+ "state": "Le client a été facturé deux fois et il demande un remboursement pour la facture qui a été payée le mois dernier avec la carte de crédit",+ "state_text": "Le client a été facturé deux fois et il demande un remboursement pour la facture qui a été payée le mois dernier avec la carte de crédit",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "fr",+ "english_hits": 0,+ "diacritic_rate": 0.051470588235294115,+ "looks_non_english": true+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "fr",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0515,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "is_english/german_long",+ "state": "Der Kunde wurde zweimal belastet und möchte eine Rückerstattung für die Rechnung die nicht korrekt ist und auch nicht bezahlt wurde",+ "state_text": "Der Kunde wurde zweimal belastet und möchte eine Rückerstattung für die Rechnung die nicht korrekt ist und auch nicht bezahlt wurde",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "de",+ "english_hits": 0,+ "diacritic_rate": 0.022900763358778626,+ "looks_non_english": true+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "de",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0229,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "is_english/romanian",+ "state": "Gătește-mi o rețetă de sarmale de post pentru mâine.",+ "state_text": "Gătește-mi o rețetă de sarmale de post pentru mâine.",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "ro",+ "english_hits": 0,+ "diacritic_rate": 0.09615384615384616,+ "looks_non_english": true+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "ro",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0962,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "is_english/romanian_invoice",+ "state": "Am fost taxat de două ori pentru factura din luna martie și vreau banii",+ "state_text": "Am fost taxat de două ori pentru factura din luna martie și vreau banii",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "ro",+ "english_hits": 0,+ "diacritic_rate": 0.028169014084507043,+ "looks_non_english": true+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "ro",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0282,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "is_english/polish",+ "state": "Klient został obciążony dwukrotnie i chce zwrot pieniędzy za fakturę",+ "state_text": "Klient został obciążony dwukrotnie i chce zwrot pieniędzy za fakturę",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 1,+ "diacritic_rate": 0.07352941176470588,+ "looks_non_english": true+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0735,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "is_english/czech",+ "state": "Zákazníkovi byla částka účtována dvakrát a žádá o vrácení peněz",+ "state_text": "Zákazníkovi byla částka účtována dvakrát a žádá o vrácení peněz",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.2222222222222222,+ "looks_non_english": true+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.2222,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "is_english/turkish",+ "state": "Müşteriden iki kez ücret alındı ve para iadesi istiyor lütfen yardım",+ "state_text": "Müşteriden iki kez ücret alındı ve para iadesi istiyor lütfen yardım",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.10294117647058823,+ "looks_non_english": true+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.1029,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "is_english/vietnamese",+ "state": "Khách hàng đã bị thu phí hai lần và muốn được hoàn tiền ngay",+ "state_text": "Khách hàng đã bị thu phí hai lần và muốn được hoàn tiền ngay",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.13333333333333333,+ "looks_non_english": true+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.1333,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "is_english/english_with_loanwords",+ "state": "We visited a cafe in Zurich and the naive assumption about the invoice was wrong, so please refund the duplicate charge",+ "state_text": "We visited a cafe in Zurich and the naive assumption about the invoice was wrong, so please refund the duplicate charge",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "en",+ "english_hits": 8,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "is_english/undecided_turkish",+ "state": "Müşteriden iki kez ücret alındı ve para iadesi istiyor",+ "state_text": "Müşteriden iki kez ücret alındı ve para iadesi istiyor",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.09259259259259259,+ "looks_non_english": true+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0926,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "is_english/english_not_undecided",+ "state": "Please refund the duplicate charge on the invoice",+ "state_text": "Please refund the duplicate charge on the invoice",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "en",+ "english_hits": 4,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "is_english/romanian_diacritics",+ "state": "Gătește-mi o rețetă de sarmale",+ "state_text": "Gătește-mi o rețetă de sarmale",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.13333333333333333,+ "looks_non_english": true+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.1333,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "is_english/no_diacritics",+ "state": "Please refund the duplicate charge today",+ "state_text": "Please refund the duplicate charge today",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "en",+ "english_hits": 2,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "is_english/zero_tie_romanian",+ "state": "Cât e ora acum la Tokyo",+ "state_text": "Cât e ora acum la Tokyo",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.043478260869565216,+ "looks_non_english": true+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0435,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "is_english/known_gap_romanian_no_diacritics",+ "state": "Care este ora in Tokyo?",+ "state_text": "Care este ora in Tokyo?",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "en",+ "english_hits": 1,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "latin_lang/english",+ "state": "The customer was charged twice and wants a refund for this invoice",+ "state_text": "The customer was charged twice and wants a refund for this invoice",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "en",+ "english_hits": 5,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "latin_lang/french",+ "state": "Le client a ete facture deux fois et il demande un remboursement pour la facture",+ "state_text": "Le client a ete facture deux fois et il demande un remboursement pour la facture",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "fr",+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "fr",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "latin_lang/german",+ "state": "Der Kunde wurde zweimal belastet und moechte eine Rueckerstattung fuer die Rechnung",+ "state_text": "Der Kunde wurde zweimal belastet und moechte eine Rueckerstattung fuer die Rechnung",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "de",+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "de",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "latin_lang/spanish",+ "state": "El cliente fue cobrado dos veces y quiere que le devuelvan el dinero por la factura",+ "state_text": "El cliente fue cobrado dos veces y quiere que le devuelvan el dinero por la factura",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "es",+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "es",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "latin_lang/too_short",+ "state": "refund",+ "state_text": "refund",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "latin_lang/long_english_stays_en",+ "state": "Please refund the duplicate charge on invoice 4411 today because we have been waiting for three days and nobody has replied to us",+ "state_text": "Please refund the duplicate charge on invoice 4411 today because we have been waiting for three days and nobody has replied to us",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "en",+ "english_hits": 9,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "state_text/dict",+ "state": {+ "body": "charged twice",+ "n": 3+ },+ "state_text": "charged twice",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "state_text/nested",+ "state": {+ "a": {+ "b": [+ "deep"+ ]+ }+ },+ "state_text": "deep",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "state_text/list",+ "state": [+ "x",+ {+ "y": "z"+ }+ ],+ "state_text": "x z",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "state_text/none",+ "state": null,+ "state_text": "",+ "detect_script": "unknown",+ "script_profile": {},+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "unknown",+ "script_profile": {},+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "state_text/keys_ignored",+ "state": {+ "subject": "नमस्ते",+ "body": "ग्राहक से दो बार शुल्क लिया गया"+ },+ "state_text": "नमस्ते ग्राहक से दो बार शुल्क लिया गया",+ "detect_script": "devanagari",+ "script_profile": {+ "devanagari": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "devanagari",+ "script_profile": {+ "devanagari": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "profile/armenian_pure",+ "state": "Հայերեն",+ "state_text": "Հայերեն",+ "detect_script": "armenian",+ "script_profile": {+ "armenian": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "armenian",+ "script_profile": {+ "armenian": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "profile/armenian_mixed_with_latin",+ "state": "Հայերեն abc",+ "state_text": "Հայերեն abc",+ "detect_script": "armenian",+ "script_profile": {+ "latin": 0.3,+ "armenian": 0.7+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "armenian",+ "script_profile": {+ "latin": 0.3,+ "armenian": 0.7+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.7,+ "mixed_segment": null+ }+ },+ {+ "label": "plain_ascii/es_1",+ "state": "El pedido llego roto y nadie responde cuando escribo al soporte",+ "state_text": "El pedido llego roto y nadie responde cuando escribo al soporte",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "es",+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "es",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "plain_ascii/es_2",+ "state": "Quiero cancelar mi plan y pedir un reembolso",+ "state_text": "Quiero cancelar mi plan y pedir un reembolso",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "es",+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "es",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "plain_ascii/es_3",+ "state": "La factura tiene un error en el importe total",+ "state_text": "La factura tiene un error en el importe total",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "es",+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "es",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "plain_ascii/es_4",+ "state": "Necesito que me devuelvan el dinero de la compra duplicada",+ "state_text": "Necesito que me devuelvan el dinero de la compra duplicada",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "es",+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "es",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "plain_ascii/it_1",+ "state": "Il cliente e stato addebitato due volte e vuole un rimborso",+ "state_text": "Il cliente e stato addebitato due volte e vuole un rimborso",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "it",+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "it",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "plain_ascii/it_2",+ "state": "Voglio cancellare il mio abbonamento e chiedere un rimborso",+ "state_text": "Voglio cancellare il mio abbonamento e chiedere un rimborso",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "it",+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "it",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "plain_ascii/it_3",+ "state": "La fattura contiene un errore nell importo totale",+ "state_text": "La fattura contiene un errore nell importo totale",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "it",+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "it",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "plain_ascii/pt_1",+ "state": "O cliente foi cobrado duas vezes e quer o dinheiro de volta",+ "state_text": "O cliente foi cobrado duas vezes e quer o dinheiro de volta",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "pt",+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "pt",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "plain_ascii/fr_1",+ "state": "Le client a ete facture deux fois et demande un remboursement",+ "state_text": "Le client a ete facture deux fois et demande un remboursement",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "fr",+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "fr",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "plain_ascii/fr_2",+ "state": "Je ne peux pas acceder a mon compte et j ai besoin d aide",+ "state_text": "Je ne peux pas acceder a mon compte et j ai besoin d aide",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "fr",+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "fr",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "accented/es",+ "state": "La facturación tiene un error y necesito una corrección urgente",+ "state_text": "La facturación tiene un error y necesito una corrección urgente",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "es",+ "english_hits": 0,+ "diacritic_rate": 0.031746031746031744,+ "looks_non_english": true+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "es",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0317,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "accented/it",+ "state": "La fattura è sbagliata, devo avere un rimborso per il pagamento",+ "state_text": "La fattura è sbagliata, devo avere un rimborso per il pagamento",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "it",+ "english_hits": 0,+ "diacritic_rate": 0.015873015873015872,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "it",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0159,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "accented/fr",+ "state": "La commande est arrivée cassée et personne ne répond au support",+ "state_text": "La commande est arrivée cassée et personne ne répond au support",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "fr",+ "english_hits": 0,+ "diacritic_rate": 0.047619047619047616,+ "looks_non_english": true+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "fr",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0476,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "romance_control/1",+ "state": "The customer was charged twice and wants a refund for this invoice",+ "state_text": "The customer was charged twice and wants a refund for this invoice",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "en",+ "english_hits": 5,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "romance_control/2",+ "state": "Please cancel my subscription and refund the duplicate charge today",+ "state_text": "Please cancel my subscription and refund the duplicate charge today",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "en",+ "english_hits": 3,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "romance_control/3",+ "state": "The report by Smith et al. shows the de facto standard, e.g. the LA office and Rio",+ "state_text": "The report by Smith et al. shows the de facto standard, e.g. the LA office and Rio",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "en",+ "english_hits": 4,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "romance_control/4",+ "state": "Our MI5 and UN contacts discussed the DOS attack in LA last month",+ "state_text": "Our MI5 and UN contacts discussed the DOS attack in LA last month",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "en",+ "english_hits": 3,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "romance_control/5",+ "state": "No refund was issued, so I am writing to you again about invoice 4411",+ "state_text": "No refund was issued, so I am writing to you again about invoice 4411",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "en",+ "english_hits": 4,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "romance_control/6",+ "state": "no refund no reply",+ "state_text": "no refund no reply",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "romance_control/7",+ "state": "The son of the director filed a complaint about the duplicate invoice",+ "state_text": "The son of the director filed a complaint about the duplicate invoice",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "en",+ "english_hits": 4,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "shared_words/names_nothing",+ "state": "Cât e ora acum la Tokyo",+ "state_text": "Cât e ora acum la Tokyo",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.043478260869565216,+ "looks_non_english": true+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0435,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "shared_words/distinctive_names_it",+ "state": "La fattura contiene un errore nell importo totale",+ "state_text": "La fattura contiene un errore nell importo totale",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "it",+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "it",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "shared_words/shared_hits_still_count_es",+ "state": "La factura tiene un error en el importe total",+ "state_text": "La factura tiene un error en el importe total",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "es",+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "es",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/greek",+ "state": "Γεια σου κόσμε, πώς είσαι σήμερα;",+ "state_text": "Γεια σου κόσμε, πώς είσαι σήμερα;",+ "detect_script": "greek",+ "script_profile": {+ "greek": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "greek",+ "script_profile": {+ "greek": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/cyrillic",+ "state": "Привет, как ты себя чувствуешь сегодня?",+ "state_text": "Привет, как ты себя чувствуешь сегодня?",+ "detect_script": "cyrillic",+ "script_profile": {+ "cyrillic": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "cyrillic",+ "script_profile": {+ "cyrillic": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/armenian",+ "state": "Բարեւ ձեզ, ինչպե՞ս եք այսօր",+ "state_text": "Բարեւ ձեզ, ինչպե՞ս եք այսօր",+ "detect_script": "armenian",+ "script_profile": {+ "armenian": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "armenian",+ "script_profile": {+ "armenian": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/hebrew",+ "state": "שלום, מה שלומך היום",+ "state_text": "שלום, מה שלומך היום",+ "detect_script": "hebrew",+ "script_profile": {+ "hebrew": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "hebrew",+ "script_profile": {+ "hebrew": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/arabic",+ "state": "مرحبا كيف حالك اليوم",+ "state_text": "مرحبا كيف حالك اليوم",+ "detect_script": "arabic",+ "script_profile": {+ "arabic": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "arabic",+ "script_profile": {+ "arabic": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/devanagari",+ "state": "नमस्ते आप कैसे हैं आज",+ "state_text": "नमस्ते आप कैसे हैं आज",+ "detect_script": "devanagari",+ "script_profile": {+ "devanagari": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "devanagari",+ "script_profile": {+ "devanagari": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/bengali",+ "state": "আমি ভালো আছি, আপনি কেমন আছেন",+ "state_text": "আমি ভালো আছি, আপনি কেমন আছেন",+ "detect_script": "bengali",+ "script_profile": {+ "bengali": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "bengali",+ "script_profile": {+ "bengali": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/gurmukhi",+ "state": "ਤੁਸੀਂ ਕਿਵੇਂ ਹੋ, ਮੈਂ ਠੀਕ ਹਾਂ",+ "state_text": "ਤੁਸੀਂ ਕਿਵੇਂ ਹੋ, ਮੈਂ ਠੀਕ ਹਾਂ",+ "detect_script": "gurmukhi",+ "script_profile": {+ "gurmukhi": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "gurmukhi",+ "script_profile": {+ "gurmukhi": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/gujarati",+ "state": "તમે કેમ છો, હું સારો છું",+ "state_text": "તમે કેમ છો, હું સારો છું",+ "detect_script": "gujarati",+ "script_profile": {+ "gujarati": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "gujarati",+ "script_profile": {+ "gujarati": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/oriya",+ "state": "ତୁମେ କେମିତି ଅଛ, ମୁଁ ଭଲ ଅଛି",+ "state_text": "ତୁମେ କେମିତି ଅଛ, ମୁଁ ଭଲ ଅଛି",+ "detect_script": "oriya",+ "script_profile": {+ "oriya": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "oriya",+ "script_profile": {+ "oriya": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/tamil",+ "state": "நீங்கள் எப்படி இருக்கிறீர்கள்",+ "state_text": "நீங்கள் எப்படி இருக்கிறீர்கள்",+ "detect_script": "tamil",+ "script_profile": {+ "tamil": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "tamil",+ "script_profile": {+ "tamil": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/telugu",+ "state": "మీరు ఎలా ఉన్నారు, నేను బాగున్నాను",+ "state_text": "మీరు ఎలా ఉన్నారు, నేను బాగున్నాను",+ "detect_script": "telugu",+ "script_profile": {+ "telugu": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "telugu",+ "script_profile": {+ "telugu": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/kannada",+ "state": "ನೀವು ಹೇಗಿದ್ದೀರಿ, ನಾನು ಚೆನ್ನಾಗಿದ್ದೇನೆ",+ "state_text": "ನೀವು ಹೇಗಿದ್ದೀರಿ, ನಾನು ಚೆನ್ನಾಗಿದ್ದೇನೆ",+ "detect_script": "kannada",+ "script_profile": {+ "kannada": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "kannada",+ "script_profile": {+ "kannada": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/malayalam",+ "state": "നിങ്ങൾക്ക് സുഖമാണോ, എനിക്ക് സുഖമാണ്",+ "state_text": "നിങ്ങൾക്ക് സുഖമാണോ, എനിക്ക് സുഖമാണ്",+ "detect_script": "malayalam",+ "script_profile": {+ "malayalam": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "malayalam",+ "script_profile": {+ "malayalam": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/sinhala",+ "state": "ඔබට කොහොමද, මට හොඳින්",+ "state_text": "ඔබට කොහොමද, මට හොඳින්",+ "detect_script": "sinhala",+ "script_profile": {+ "sinhala": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "sinhala",+ "script_profile": {+ "sinhala": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/thai",+ "state": "คุณเป็นอย่างไรบ้างวันนี้",+ "state_text": "คุณเป็นอย่างไรบ้างวันนี้",+ "detect_script": "thai",+ "script_profile": {+ "thai": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "thai",+ "script_profile": {+ "thai": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/lao",+ "state": "ສະບາຍດີ ທ່ານເປັນແນວໃດແດ່",+ "state_text": "ສະບາຍດີ ທ່ານເປັນແນວໃດແດ່",+ "detect_script": "lao",+ "script_profile": {+ "lao": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "lao",+ "script_profile": {+ "lao": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/tibetan",+ "state": "བཀྲ་ཤིས་བདེ་ལེགས་ཁྱེད་རང་ག་འདྲ་ཡོད",+ "state_text": "བཀྲ་ཤིས་བདེ་ལེགས་ཁྱེད་རང་ག་འདྲ་ཡོད",+ "detect_script": "tibetan",+ "script_profile": {+ "tibetan": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "tibetan",+ "script_profile": {+ "tibetan": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/myanmar",+ "state": "မင်္ဂလာပါ သင်နေကောင်းလား",+ "state_text": "မင်္ဂလာပါ သင်နေကောင်းလား",+ "detect_script": "myanmar",+ "script_profile": {+ "myanmar": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "myanmar",+ "script_profile": {+ "myanmar": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/georgian",+ "state": "გამარჯობა როგორ ხარ დღეს",+ "state_text": "გამარჯობა როგორ ხარ დღეს",+ "detect_script": "georgian",+ "script_profile": {+ "georgian": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "georgian",+ "script_profile": {+ "georgian": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/ethiopic",+ "state": "ሰላም እንዴት ነህ ዛሬ",+ "state_text": "ሰላም እንዴት ነህ ዛሬ",+ "detect_script": "ethiopic",+ "script_profile": {+ "ethiopic": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "ethiopic",+ "script_profile": {+ "ethiopic": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/khmer",+ "state": "សួស្តី តើអ្នកសុខសប្បាយទេ",+ "state_text": "សួស្តី តើអ្នកសុខសប្បាយទេ",+ "detect_script": "khmer",+ "script_profile": {+ "khmer": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "khmer",+ "script_profile": {+ "khmer": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/hangul",+ "state": "안녕하세요 오늘 기분이 어때요",+ "state_text": "안녕하세요 오늘 기분이 어때요",+ "detect_script": "hangul",+ "script_profile": {+ "hangul": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "hangul",+ "script_profile": {+ "hangul": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/kana",+ "state": "こんにちは、今日は元気ですか",+ "state_text": "こんにちは、今日は元気ですか",+ "detect_script": "kana",+ "script_profile": {+ "kana": 0.6923076923076923,+ "han": 0.3076923076923077+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "kana",+ "script_profile": {+ "kana": 0.6923076923076923,+ "han": 0.3076923076923077+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/han",+ "state": "你好,你今天过得怎么样",+ "state_text": "你好,你今天过得怎么样",+ "detect_script": "han",+ "script_profile": {+ "han": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "han",+ "script_profile": {+ "han": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "all_scripts/latin",+ "state": "Hello, how are you feeling today?",+ "state_text": "Hello, how are you feeling today?",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "en",+ "english_hits": 2,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "tie/greek_then_cyrillic_1v1",+ "state": "ΑА",+ "state_text": "ΑА",+ "detect_script": "greek",+ "script_profile": {+ "greek": 0.5,+ "cyrillic": 0.5+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "greek",+ "script_profile": {+ "greek": 0.5,+ "cyrillic": 0.5+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "tie/cyrillic_then_greek_1v1",+ "state": "АΑ",+ "state_text": "АΑ",+ "detect_script": "cyrillic",+ "script_profile": {+ "cyrillic": 0.5,+ "greek": 0.5+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "cyrillic",+ "script_profile": {+ "cyrillic": 0.5,+ "greek": 0.5+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "tie/han_then_latin_1v1",+ "state": "中 a",+ "state_text": "中 a",+ "detect_script": "han",+ "script_profile": {+ "latin": 0.5,+ "han": 0.5+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "han",+ "script_profile": {+ "latin": 0.5,+ "han": 0.5+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.5,+ "mixed_segment": null+ }+ },+ {+ "label": "tie/latin_then_han_1v1",+ "state": "a 中",+ "state_text": "a 中",+ "detect_script": "han",+ "script_profile": {+ "latin": 0.5,+ "han": 0.5+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "han",+ "script_profile": {+ "latin": 0.5,+ "han": 0.5+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.5,+ "mixed_segment": null+ }+ },+ {+ "label": "tie/three_way_greek_cyrillic_armenian",+ "state": "ΑАԱ",+ "state_text": "ΑАԱ",+ "detect_script": "greek",+ "script_profile": {+ "greek": 0.3333333333333333,+ "cyrillic": 0.3333333333333333,+ "armenian": 0.3333333333333333+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "greek",+ "script_profile": {+ "greek": 0.3333333333333333,+ "cyrillic": 0.3333333333333333,+ "armenian": 0.3333333333333333+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "mixed/latin_han_arabic",+ "state": "invoice 中文 فاتورة refund",+ "state_text": "invoice 中文 فاتورة refund",+ "detect_script": "latin",+ "script_profile": {+ "latin": 0.6190476190476191,+ "han": 0.09523809523809523,+ "arabic": 0.2857142857142857+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "arabic",+ "script_profile": {+ "latin": 0.6190476190476191,+ "han": 0.09523809523809523,+ "arabic": 0.2857142857142857+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.381,+ "mixed_segment": null+ }+ },+ {+ "label": "mixed/devanagari_latin_majority_devanagari",+ "state": "ग्राहक से दो बार शुल्क लिया गया refund",+ "state_text": "ग्राहक से दो बार शुल्क लिया गया refund",+ "detect_script": "devanagari",+ "script_profile": {+ "latin": 0.2857142857142857,+ "devanagari": 0.7142857142857143+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "devanagari",+ "script_profile": {+ "latin": 0.2857142857142857,+ "devanagari": 0.7142857142857143+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.7143,+ "mixed_segment": null+ }+ },+ {+ "label": "mixed/latin_majority_devanagari_minor",+ "state": "Please refund the customer today ग्राहक",+ "state_text": "Please refund the customer today ग्राहक",+ "detect_script": "latin",+ "script_profile": {+ "latin": 0.875,+ "devanagari": 0.125+ },+ "latin_profile": {+ "language": "en",+ "english_hits": 2,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 0.875,+ "devanagari": 0.125+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.125,+ "mixed_segment": null+ }+ },+ {+ "label": "latin_tie/fr_vs_de",+ "state": "être cette nicht sich",+ "state_text": "être cette nicht sich",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "fr",+ "english_hits": 0,+ "diacritic_rate": 0.047619047619047616,+ "looks_non_english": true+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "fr",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0476,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "latin_tie/de_vs_es",+ "state": "nicht sich el los",+ "state_text": "nicht sich el los",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "de",+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "de",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "latin_tie/es_vs_pt",+ "state": "está una dos tres o não está",+ "state_text": "está una dos tres o não está",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "es",+ "english_hits": 0,+ "diacritic_rate": 0.10714285714285714,+ "looks_non_english": true+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "es",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.1071,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "latin_tie/pt_vs_it",+ "state": "não está o della sono",+ "state_text": "não está o della sono",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": "pt",+ "english_hits": 0,+ "diacritic_rate": 0.09523809523809523,+ "looks_non_english": true+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "pt",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0952,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "astral/emoji_only",+ "state": "😀🚀❤️",+ "state_text": "😀🚀❤️",+ "detect_script": "unknown",+ "script_profile": {},+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "unknown",+ "script_profile": {},+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "astral/emoji_with_latin",+ "state": "refund please 😀 today",+ "state_text": "refund please 😀 today",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin","script_profile": {"latin": 1.0},- "language": "ro",+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "astral/deseret_letter_alone",+ "state": "𐐀𐐁𐐂",+ "state_text": "𐐀𐐁𐐂",+ "detect_script": "other",+ "script_profile": {+ "other": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "other",+ "script_profile": {+ "other": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "astral/deseret_mixed_with_latin",+ "state": "refund 𐐀 today",+ "state_text": "refund 𐐀 today",+ "detect_script": "latin",+ "script_profile": {+ "latin": 0.9166666666666666,+ "other": 0.08333333333333333+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 0.9166666666666666,+ "other": 0.08333333333333333+ },+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0833,+ "mixed_segment": null+ }+ },+ {+ "label": "astral/mathematical_bold_letters",+ "state": "𝐀𝐁𝐂",+ "state_text": "𝐀𝐁𝐂",+ "detect_script": "other",+ "script_profile": {+ "other": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "other",+ "script_profile": {+ "other": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ }+ },+ {+ "label": "combining/devanagari_with_virama",+ "state": "ग्राहक",+ "state_text": "ग्राहक",+ "detect_script": "devanagari",+ "script_profile": {+ "devanagari": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "devanagari",+ "script_profile": {+ "devanagari": 1.0+ },+ "language": null,"is_english": false,- "language_undecided": false,- "diacritic_rate": 0.0282,- "non_latin_fraction": 0.0,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,"mixed_segment": null}},{- "label": "is_english/polish",- "state": "Klient został obciążony dwukrotnie i chce zwrot pieniędzy za fakturę",- "state_text": "Klient został obciążony dwukrotnie i chce zwrot pieniędzy za fakturę",+ "label": "combining/latin_with_combining_acute",+ "state": "café résumé",+ "state_text": "café résumé","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {"language": null,- "english_hits": 1,- "diacritic_rate": 0.07352941176470588,- "looks_non_english": true+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false},"analyse": {"script": "latin",@@ -740,17 +3787,17 @@"latin": 1.0},"language": null,- "is_english": false,+ "is_english": true,"language_undecided": true,- "diacritic_rate": 0.0735,+ "diacritic_rate": 0.0,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "is_english/czech",- "state": "Zákazníkovi byla částka účtována dvakrát a žádá o vrácení peněz",- "state_text": "Zákazníkovi byla částka účtována dvakrát a žádá o vrácení peněz",+ "label": "turkish_i/capital_i_with_dot",+ "state": "İstanbul",+ "state_text": "İstanbul","detect_script": "latin","script_profile": {"latin": 1.0@@ -758,8 +3805,8 @@"latin_profile": {"language": null,"english_hits": 0,- "diacritic_rate": 0.2222222222222222,- "looks_non_english": true+ "diacritic_rate": 0.0,+ "looks_non_english": false},"analyse": {"script": "latin",@@ -767,17 +3814,17 @@"latin": 1.0},"language": null,- "is_english": false,+ "is_english": true,"language_undecided": true,- "diacritic_rate": 0.2222,+ "diacritic_rate": 0.0,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "is_english/turkish",- "state": "Müşteriden iki kez ücret alındı ve para iadesi istiyor lütfen yardım",- "state_text": "Müşteriden iki kez ücret alındı ve para iadesi istiyor lütfen yardım",+ "label": "turkish_i/mixed_case",+ "state": "İYİ GÜNLER İstanbul'da",+ "state_text": "İYİ GÜNLER İstanbul'da","detect_script": "latin","script_profile": {"latin": 1.0@@ -785,7 +3832,7 @@"latin_profile": {"language": null,"english_hits": 0,- "diacritic_rate": 0.10294117647058823,+ "diacritic_rate": 0.04,"looks_non_english": true},"analyse": {@@ -796,15 +3843,15 @@"language": null,"is_english": false,"language_undecided": true,- "diacritic_rate": 0.1029,+ "diacritic_rate": 0.04,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "is_english/vietnamese",- "state": "Khách hàng đã bị thu phí hai lần và muốn được hoàn tiền ngay",- "state_text": "Khách hàng đã bị thu phí hai lần và muốn được hoàn tiền ngay",+ "label": "turkish_i/lowercase_dotless",+ "state": "ıstanbul",+ "state_text": "ıstanbul","detect_script": "latin","script_profile": {"latin": 1.0@@ -812,7 +3859,7 @@"latin_profile": {"language": null,"english_hits": 0,- "diacritic_rate": 0.13333333333333333,+ "diacritic_rate": 0.125,"looks_non_english": true},"analyse": {@@ -823,22 +3870,45 @@"language": null,"is_english": false,"language_undecided": true,- "diacritic_rate": 0.1333,+ "diacritic_rate": 0.125,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "is_english/english_with_loanwords",- "state": "We visited a cafe in Zurich and the naive assumption about the invoice was wrong, so please refund the duplicate charge",- "state_text": "We visited a cafe in Zurich and the naive assumption about the invoice was wrong, so please refund the duplicate charge",+ "label": "numerics/ascii_digits_only",+ "state": "12345 67890",+ "state_text": "12345 67890",+ "detect_script": "unknown",+ "script_profile": {},+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "unknown",+ "script_profile": {},+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "numerics/roman_numeral_nl",+ "state": "chapter Ⅷ begins",+ "state_text": "chapter Ⅷ begins","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": "en",- "english_hits": 8,+ "language": null,+ "english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},@@ -847,18 +3917,18 @@"script_profile": {"latin": 1.0},- "language": "en",+ "language": null,"is_english": true,- "language_undecided": false,+ "language_undecided": true,"diacritic_rate": 0.0,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "is_english/undecided_turkish",- "state": "Müşteriden iki kez ücret alındı ve para iadesi istiyor",- "state_text": "Müşteriden iki kez ücret alındı ve para iadesi istiyor",+ "label": "numerics/fullwidth_digits",+ "state": "123 refund",+ "state_text": "123 refund","detect_script": "latin","script_profile": {"latin": 1.0@@ -866,8 +3936,8 @@"latin_profile": {"language": null,"english_hits": 0,- "diacritic_rate": 0.09259259259259259,- "looks_non_english": true+ "diacritic_rate": 0.0,+ "looks_non_english": false},"analyse": {"script": "latin",@@ -875,24 +3945,24 @@"latin": 1.0},"language": null,- "is_english": false,+ "is_english": true,"language_undecided": true,- "diacritic_rate": 0.0926,+ "diacritic_rate": 0.0,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "is_english/english_not_undecided",- "state": "Please refund the duplicate charge on the invoice",- "state_text": "Please refund the duplicate charge on the invoice",+ "label": "numerics/mixed_digits_and_words",+ "state": "invoice 4411 was paid twice on 2024-01-05",+ "state_text": "invoice 4411 was paid twice on 2024-01-05","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {"language": "en",- "english_hits": 4,+ "english_hits": 2,"diacritic_rate": 0.0,"looks_non_english": false},@@ -910,9 +3980,137 @@}},{- "label": "is_english/romanian_diacritics",- "state": "Gătește-mi o rețetă de sarmale",- "state_text": "Gătește-mi o rețetă de sarmale",+ "label": "nesting/depth_6_kept",+ "state": {+ "a": {+ "b": {+ "c": {+ "d": {+ "e": {+ "f": "visible at depth 6"+ }+ }+ }+ }+ }+ },+ "state_text": "visible at depth 6",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "nesting/depth_7_dropped",+ "state": {+ "a": {+ "b": {+ "c": {+ "d": {+ "e": {+ "f": {+ "g": "invisible past depth 6"+ }+ }+ }+ }+ }+ }+ },+ "state_text": "",+ "detect_script": "unknown",+ "script_profile": {},+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "unknown",+ "script_profile": {},+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "nesting/list_depth_7_dropped",+ "state": [+ [+ [+ [+ [+ [+ [+ "invisible list depth 7"+ ]+ ]+ ]+ ]+ ]+ ]+ ],+ "state_text": "",+ "detect_script": "unknown",+ "script_profile": {},+ "latin_profile": {+ "language": null,+ "english_hits": 0,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "unknown",+ "script_profile": {},+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ }+ },+ {+ "label": "nesting/mixed_depth_boundary",+ "state": {+ "a": {+ "b": {+ "c": {+ "d": {+ "e": [+ "kept depth 6",+ {+ "f": "dropped depth 7"+ }+ ]+ }+ }+ }+ }+ },+ "state_text": "kept depth 6","detect_script": "latin","script_profile": {"latin": 1.0@@ -920,8 +4118,8 @@"latin_profile": {"language": null,"english_hits": 0,- "diacritic_rate": 0.13333333333333333,- "looks_non_english": true+ "diacritic_rate": 0.0,+ "looks_non_english": false},"analyse": {"script": "latin",@@ -929,24 +4127,24 @@"latin": 1.0},"language": null,- "is_english": false,+ "is_english": true,"language_undecided": true,- "diacritic_rate": 0.1333,+ "diacritic_rate": 0.0,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "is_english/no_diacritics",- "state": "Please refund the duplicate charge today",- "state_text": "Please refund the duplicate charge today",+ "label": "long/ascii_over_4000",+ "state": "refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. ",+ "state_text": "refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund ple","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {"language": "en",- "english_hits": 2,+ "english_hits": 266,"diacritic_rate": 0.0,"looks_non_english": false},@@ -964,70 +4162,72 @@}},{- "label": "is_english/zero_tie_romanian",- "state": "Cât e ora acum la Tokyo",- "state_text": "Cât e ora acum la Tokyo",- "detect_script": "latin",+ "label": "long/multibyte_over_4000",+ "state": "退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 ",+ "state_text": "退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 ",+ "detect_script": "han","script_profile": {- "latin": 1.0+ "han": 1.0},"latin_profile": {"language": null,"english_hits": 0,- "diacritic_rate": 0.043478260869565216,- "looks_non_english": true+ "diacritic_rate": 0.0,+ "looks_non_english": false},"analyse": {- "script": "latin",+ "script": "han","script_profile": {- "latin": 1.0+ "han": 1.0},"language": null,"is_english": false,"language_undecided": true,- "diacritic_rate": 0.0435,- "non_latin_fraction": 0.0,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,"mixed_segment": null}},{- "label": "is_english/known_gap_romanian_no_diacritics",- "state": "Care este ora in Tokyo?",- "state_text": "Care este ora in Tokyo?",+ "label": "long/mixed_script_over_4000_boundary_near_switch",+ "state": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa客户被重复扣款要求退款客户被重复扣款要求退款客户被重复扣款要求退款客户被重复扣款要求退款客户被重复扣款要求退款",+ "state_text": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa客户被重复扣款要求退","detect_script": "latin","script_profile": {- "latin": 1.0+ "latin": 0.9975,+ "han": 0.0025},"latin_profile": {- "language": "en",- "english_hits": 1,+ "language": null,+ "english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {"script": "latin","script_profile": {- "latin": 1.0+ "latin": 0.9975,+ "han": 0.0025},- "language": "en",+ "language": null,"is_english": true,- "language_undecided": false,+ "language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 0.0,+ "non_latin_fraction": 0.0025,"mixed_segment": null}},{- "label": "latin_lang/english",- "state": "The customer was charged twice and wants a refund for this invoice",- "state_text": "The customer was charged twice and wants a refund for this invoice",+ "label": "long/english_over_1000",+ "state": "Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. ",+ "state_text": "Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. ","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {"language": "en",- "english_hits": 5,+ "english_hits": 60,"diacritic_rate": 0.0,"looks_non_english": false},@@ -1045,42 +4245,42 @@}},{- "label": "latin_lang/french",- "state": "Le client a ete facture deux fois et il demande un remboursement pour la facture",- "state_text": "Le client a ete facture deux fois et il demande un remboursement pour la facture",+ "label": "p0411/swedish_sentence",+ "state": "Hej, jag behöver hjälp med min faktura",+ "state_text": "Hej, jag behöver hjälp med min faktura","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": "fr",+ "language": "sv","english_hits": 0,- "diacritic_rate": 0.0,- "looks_non_english": false+ "diacritic_rate": 0.05263157894736842,+ "looks_non_english": true},"analyse": {"script": "latin","script_profile": {"latin": 1.0},- "language": "fr",+ "language": "sv","is_english": false,"language_undecided": false,- "diacritic_rate": 0.0,+ "diacritic_rate": 0.0526,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "latin_lang/german",- "state": "Der Kunde wurde zweimal belastet und moechte eine Rueckerstattung fuer die Rechnung",- "state_text": "Der Kunde wurde zweimal belastet und moechte eine Rueckerstattung fuer die Rechnung",+ "label": "p0411/swedish_ascii",+ "state": "jag behover hjalp med min faktura",+ "state_text": "jag behover hjalp med min faktura","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": "de",+ "language": "sv","english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false@@ -1090,7 +4290,7 @@"script_profile": {"latin": 1.0},- "language": "de",+ "language": "sv","is_english": false,"language_undecided": false,"diacritic_rate": 0.0,@@ -1099,36 +4299,36 @@}},{- "label": "latin_lang/spanish",- "state": "El cliente fue cobrado dos veces y quiere que le devuelvan el dinero por la factura",- "state_text": "El cliente fue cobrado dos veces y quiere que le devuelvan el dinero por la factura",+ "label": "p0411/swedish_two_words",+ "state": "lösenord fel",+ "state_text": "lösenord fel","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": "es",+ "language": "sv","english_hits": 0,- "diacritic_rate": 0.0,- "looks_non_english": false+ "diacritic_rate": 0.08333333333333333,+ "looks_non_english": true},"analyse": {"script": "latin","script_profile": {"latin": 1.0},- "language": "es",+ "language": "sv","is_english": false,"language_undecided": false,- "diacritic_rate": 0.0,+ "diacritic_rate": 0.0833,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "latin_lang/too_short",- "state": "refund",- "state_text": "refund",+ "label": "p0411/swedish_one_word",+ "state": "lösenord",+ "state_text": "lösenord","detect_script": "latin","script_profile": {"latin": 1.0@@ -1136,8 +4336,8 @@"latin_profile": {"language": null,"english_hits": 0,- "diacritic_rate": 0.0,- "looks_non_english": false+ "diacritic_rate": 0.125,+ "looks_non_english": true},"analyse": {"script": "latin",@@ -1145,54 +4345,51 @@"latin": 1.0},"language": null,- "is_english": true,+ "is_english": false,"language_undecided": true,- "diacritic_rate": 0.0,+ "diacritic_rate": 0.125,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "latin_lang/long_english_stays_en",- "state": "Please refund the duplicate charge on invoice 4411 today because we have been waiting for three days and nobody has replied to us",- "state_text": "Please refund the duplicate charge on invoice 4411 today because we have been waiting for three days and nobody has replied to us",+ "label": "p0411/swedish_inte_kan",+ "state": "kan inte logga in på appen idag",+ "state_text": "kan inte logga in på appen idag","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": "en",- "english_hits": 9,- "diacritic_rate": 0.0,- "looks_non_english": false+ "language": "sv",+ "english_hits": 1,+ "diacritic_rate": 0.03225806451612903,+ "looks_non_english": true},"analyse": {"script": "latin","script_profile": {"latin": 1.0},- "language": "en",- "is_english": true,+ "language": "sv",+ "is_english": false,"language_undecided": false,- "diacritic_rate": 0.0,+ "diacritic_rate": 0.0323,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "state_text/dict",- "state": {- "body": "charged twice",- "n": 3- },- "state_text": "charged twice",+ "label": "p0411/swedish_inte_kan_not_first",+ "state": "jag vet att kan inte logga in",+ "state_text": "jag vet att kan inte logga in","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "sv",+ "english_hits": 1,"diacritic_rate": 0.0,"looks_non_english": false},@@ -1201,24 +4398,18 @@"script_profile": {"latin": 1.0},- "language": null,- "is_english": true,- "language_undecided": true,+ "language": "sv",+ "is_english": false,+ "language_undecided": false,"diacritic_rate": 0.0,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "state_text/nested",- "state": {- "a": {- "b": [- "deep"- ]- }- },- "state_text": "deep",+ "label": "p0411/nordic_overlap_tack",+ "state": "tack så mycket",+ "state_text": "tack så mycket","detect_script": "latin","script_profile": {"latin": 1.0@@ -1226,8 +4417,8 @@"latin_profile": {"language": null,"english_hits": 0,- "diacritic_rate": 0.0,- "looks_non_english": false+ "diacritic_rate": 0.07142857142857142,+ "looks_non_english": true},"analyse": {"script": "latin",@@ -1235,29 +4426,24 @@"latin": 1.0},"language": null,- "is_english": true,+ "is_english": false,"language_undecided": true,- "diacritic_rate": 0.0,+ "diacritic_rate": 0.0714,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "state_text/list",- "state": [- "x",- {- "y": "z"- }- ],- "state_text": "x z",+ "label": "p0411/nordic_overlap_with_english",+ "state": "hej please send me the invoice",+ "state_text": "hej please send me the invoice","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 2,"diacritic_rate": 0.0,"looks_non_english": false},@@ -1266,242 +4452,187 @@"script_profile": {"latin": 1.0},- "language": null,- "is_english": true,- "language_undecided": true,- "diacritic_rate": 0.0,- "non_latin_fraction": 0.0,- "mixed_segment": null- }- },- {- "label": "state_text/none",- "state": null,- "state_text": "",- "detect_script": "unknown",- "script_profile": {},- "latin_profile": {- "language": null,- "english_hits": 0,- "diacritic_rate": 0.0,- "looks_non_english": false- },- "analyse": {- "script": "unknown",- "script_profile": {},- "language": null,+ "language": "en","is_english": true,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "state_text/keys_ignored",- "state": {- "subject": "नमस्ते",- "body": "ग्राहक से दो बार शुल्क लिया गया"- },- "state_text": "नमस्ते ग्राहक से दो बार शुल्क लिया गया",- "detect_script": "devanagari",- "script_profile": {- "devanagari": 1.0- },- "latin_profile": {- "language": null,- "english_hits": 0,- "diacritic_rate": 0.0,- "looks_non_english": false- },- "analyse": {- "script": "devanagari",- "script_profile": {- "devanagari": 1.0- },- "language": null,- "is_english": false,- "language_undecided": true,- "diacritic_rate": 0.0,- "non_latin_fraction": 1.0,- "mixed_segment": null- }- },- {- "label": "profile/armenian_pure",- "state": "Հայերեն",- "state_text": "Հայերեն",- "detect_script": "armenian",+ "label": "p0411/danish_sentence",+ "state": "jeg har brug for hjælp til min faktura",+ "state_text": "jeg har brug for hjælp til min faktura",+ "detect_script": "latin","script_profile": {- "armenian": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,- "diacritic_rate": 0.0,- "looks_non_english": false+ "language": "sv",+ "english_hits": 1,+ "diacritic_rate": 0.02631578947368421,+ "looks_non_english": true},"analyse": {- "script": "armenian",+ "script": "latin","script_profile": {- "armenian": 1.0+ "latin": 1.0},- "language": null,+ "language": "sv","is_english": false,- "language_undecided": true,- "diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "language_undecided": false,+ "diacritic_rate": 0.0263,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "profile/armenian_mixed_with_latin",- "state": "Հայերեն abc",- "state_text": "Հայերեն abc",- "detect_script": "armenian",+ "label": "p0411/norwegian_sentence",+ "state": "jeg trenger hjelp med fakturaen min",+ "state_text": "jeg trenger hjelp med fakturaen min",+ "detect_script": "latin","script_profile": {- "latin": 0.3,- "armenian": 0.7+ "latin": 1.0},"latin_profile": {"language": null,"english_hits": 0,"diacritic_rate": 0.0,- "looks_non_english": false+ "looks_non_english": true},"analyse": {- "script": "armenian",+ "script": "latin","script_profile": {- "latin": 0.3,- "armenian": 0.7+ "latin": 1.0},"language": null,"is_english": false,"language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 0.7,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "plain_ascii/es_1",- "state": "El pedido llego roto y nadie responde cuando escribo al soporte",- "state_text": "El pedido llego roto y nadie responde cuando escribo al soporte",+ "label": "p0411/rescue_loanword",+ "state": "Please send the café menu to the customer today",+ "state_text": "Please send the café menu to the customer today","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": "es",- "english_hits": 0,- "diacritic_rate": 0.0,- "looks_non_english": false+ "language": "en",+ "english_hits": 4,+ "diacritic_rate": 0.02127659574468085,+ "looks_non_english": true},"analyse": {"script": "latin","script_profile": {"latin": 1.0},- "language": "es",- "is_english": false,+ "language": "en",+ "is_english": true,"language_undecided": false,- "diacritic_rate": 0.0,+ "diacritic_rate": 0.0213,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "plain_ascii/es_2",- "state": "Quiero cancelar mi plan y pedir un reembolso",- "state_text": "Quiero cancelar mi plan y pedir un reembolso",+ "label": "p0411/rescue_two_accents",+ "state": "Please send the café and the résumé to the customer today",+ "state_text": "Please send the café and the résumé to the customer today","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": "es",- "english_hits": 0,- "diacritic_rate": 0.0,- "looks_non_english": false+ "language": null,+ "english_hits": 6,+ "diacritic_rate": 0.05263157894736842,+ "looks_non_english": true},"analyse": {"script": "latin","script_profile": {"latin": 1.0},- "language": "es",+ "language": null,"is_english": false,- "language_undecided": false,- "diacritic_rate": 0.0,+ "language_undecided": true,+ "diacritic_rate": 0.0526,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "plain_ascii/es_3",- "state": "La factura tiene un error en el importe total",- "state_text": "La factura tiene un error en el importe total",+ "label": "p0411/rescue_vetoed_by_rate",+ "state": "ñandú ñandú ñandú the please",+ "state_text": "ñandú ñandú ñandú the please","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": "es",- "english_hits": 0,- "diacritic_rate": 0.0,- "looks_non_english": false+ "language": null,+ "english_hits": 2,+ "diacritic_rate": 0.21428571428571427,+ "looks_non_english": true},"analyse": {"script": "latin","script_profile": {"latin": 1.0},- "language": "es",+ "language": null,"is_english": false,- "language_undecided": false,- "diacritic_rate": 0.0,+ "language_undecided": true,+ "diacritic_rate": 0.2143,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "plain_ascii/es_4",- "state": "Necesito que me devuelvan el dinero de la compra duplicada",- "state_text": "Necesito que me devuelvan el dinero de la compra duplicada",+ "label": "p0411/rescue_name",+ "state": "Please forward this to José and Zoë at the office",+ "state_text": "Please forward this to José and Zoë at the office","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": "es",- "english_hits": 0,- "diacritic_rate": 0.0,- "looks_non_english": false+ "language": null,+ "english_hits": 6,+ "diacritic_rate": 0.04081632653061224,+ "looks_non_english": true},"analyse": {"script": "latin","script_profile": {"latin": 1.0},- "language": "es",+ "language": null,"is_english": false,- "language_undecided": false,- "diacritic_rate": 0.0,+ "language_undecided": true,+ "diacritic_rate": 0.0408,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "plain_ascii/it_1",- "state": "Il cliente e stato addebitato due volte e vuole un rimborso",- "state_text": "Il cliente e stato addebitato due volte e vuole un rimborso",+ "label": "p0411/rescue_one_english_word",+ "state": "Der Kunde hat nicht please",+ "state_text": "Der Kunde hat nicht please","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": "it",- "english_hits": 0,+ "language": "en",+ "english_hits": 1,"diacritic_rate": 0.0,"looks_non_english": false},@@ -1510,8 +4641,8 @@"script_profile": {"latin": 1.0},- "language": "it",- "is_english": false,+ "language": "en",+ "is_english": true,"language_undecided": false,"diacritic_rate": 0.0,"non_latin_fraction": 0.0,@@ -1519,15 +4650,16 @@}},{- "label": "plain_ascii/it_2",- "state": "Voglio cancellare il mio abbonamento e chiedere un rimborso",- "state_text": "Voglio cancellare il mio abbonamento e chiedere un rimborso",+ "label": "p0411/modifier_letters",+ "state": "ʰʲʷ hello there",+ "state_text": "ʰʲʷ hello there","detect_script": "latin","script_profile": {- "latin": 1.0+ "latin": 0.7692307692307693,+ "other": 0.23076923076923078},"latin_profile": {- "language": "it",+ "language": null,"english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false@@ -1535,53 +4667,54 @@"analyse": {"script": "latin","script_profile": {- "latin": 1.0+ "latin": 0.7692307692307693,+ "other": 0.23076923076923078},- "language": "it",- "is_english": false,- "language_undecided": false,+ "language": null,+ "is_english": true,+ "language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 0.0,+ "non_latin_fraction": 0.2308,"mixed_segment": null}},{- "label": "plain_ascii/it_3",- "state": "La fattura contiene un errore nell importo totale",- "state_text": "La fattura contiene un errore nell importo totale",- "detect_script": "latin",+ "label": "p0411/modifier_only",+ "state": "ʰʲʷ",+ "state_text": "ʰʲʷ",+ "detect_script": "other","script_profile": {- "latin": 1.0+ "other": 1.0},"latin_profile": {- "language": "it",+ "language": null,"english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "latin",+ "script": "other","script_profile": {- "latin": 1.0+ "other": 1.0},- "language": "it",+ "language": null,"is_english": false,- "language_undecided": false,+ "language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 0.0,+ "non_latin_fraction": 1.0,"mixed_segment": null}},{- "label": "plain_ascii/pt_1",- "state": "O cliente foi cobrado duas vezes e quer o dinheiro de volta",- "state_text": "O cliente foi cobrado duas vezes e quer o dinheiro de volta",+ "label": "p0411/ipa_only",+ "state": "ɐɑɒɓ",+ "state_text": "ɐɑɒɓ","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": "pt",+ "language": null,"english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false@@ -1591,24 +4724,24 @@"script_profile": {"latin": 1.0},- "language": "pt",- "is_english": false,- "language_undecided": false,+ "language": null,+ "is_english": true,+ "language_undecided": true,"diacritic_rate": 0.0,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "plain_ascii/fr_1",- "state": "Le client a ete facture deux fois et demande un remboursement",- "state_text": "Le client a ete facture deux fois et demande un remboursement",+ "label": "p0411/fullwidth_only",+ "state": "HELLO world",+ "state_text": "HELLO world","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": "fr",+ "language": null,"english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false@@ -1618,261 +4751,273 @@"script_profile": {"latin": 1.0},- "language": "fr",- "is_english": false,- "language_undecided": false,+ "language": null,+ "is_english": true,+ "language_undecided": true,"diacritic_rate": 0.0,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "plain_ascii/fr_2",- "state": "Je ne peux pas acceder a mon compte et j ai besoin d aide",- "state_text": "Je ne peux pas acceder a mon compte et j ai besoin d aide",- "detect_script": "latin",+ "label": "p0411/bopomofo_only",+ "state": "ㄅㄆㄇㄈ",+ "state_text": "ㄅㄆㄇㄈ",+ "detect_script": "other","script_profile": {- "latin": 1.0+ "other": 1.0},"latin_profile": {- "language": "fr",+ "language": null,"english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "latin",+ "script": "other","script_profile": {- "latin": 1.0+ "other": 1.0},- "language": "fr",+ "language": null,"is_english": false,- "language_undecided": false,+ "language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 0.0,+ "non_latin_fraction": 1.0,"mixed_segment": null}},{- "label": "accented/es",- "state": "La facturación tiene un error y necesito una corrección urgente",- "state_text": "La facturación tiene un error y necesito una corrección urgente",- "detect_script": "latin",+ "label": "p0411/halfwidth_katakana",+ "state": "アイウエオ",+ "state_text": "アイウエオ",+ "detect_script": "other","script_profile": {- "latin": 1.0+ "other": 1.0},"latin_profile": {- "language": "es",+ "language": null,"english_hits": 0,- "diacritic_rate": 0.031746031746031744,- "looks_non_english": true+ "diacritic_rate": 0.0,+ "looks_non_english": false},"analyse": {- "script": "latin",+ "script": "other","script_profile": {- "latin": 1.0+ "other": 1.0},- "language": "es",+ "language": null,"is_english": false,- "language_undecided": false,- "diacritic_rate": 0.0317,- "non_latin_fraction": 0.0,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,"mixed_segment": null}},{- "label": "accented/it",- "state": "La fattura è sbagliata, devo avere un rimborso per il pagamento",- "state_text": "La fattura è sbagliata, devo avere un rimborso per il pagamento",- "detect_script": "latin",+ "label": "p0411/cjk_extension_b",+ "state": "𠀀𠀁𠀂",+ "state_text": "𠀀𠀁𠀂",+ "detect_script": "other","script_profile": {- "latin": 1.0+ "other": 1.0},"latin_profile": {- "language": "it",+ "language": null,"english_hits": 0,- "diacritic_rate": 0.015873015873015872,+ "diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "latin",+ "script": "other","script_profile": {- "latin": 1.0+ "other": 1.0},- "language": "it",+ "language": null,"is_english": false,- "language_undecided": false,- "diacritic_rate": 0.0159,- "non_latin_fraction": 0.0,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,"mixed_segment": null}},{- "label": "accented/fr",- "state": "La commande est arrivée cassée et personne ne répond au support",- "state_text": "La commande est arrivée cassée et personne ne répond au support",+ "label": "p0411/unclaimed_with_latin",+ "state": "please help ㄅㄆㄇㄈㄉㄊ today",+ "state_text": "please help ㄅㄆㄇㄈㄉㄊ today","detect_script": "latin","script_profile": {- "latin": 1.0+ "latin": 0.7142857142857143,+ "other": 0.2857142857142857},"latin_profile": {- "language": "fr",- "english_hits": 0,- "diacritic_rate": 0.047619047619047616,- "looks_non_english": true+ "language": "en",+ "english_hits": 1,+ "diacritic_rate": 0.0,+ "looks_non_english": false},"analyse": {"script": "latin","script_profile": {- "latin": 1.0+ "latin": 0.7142857142857143,+ "other": 0.2857142857142857},- "language": "fr",- "is_english": false,+ "language": "en",+ "is_english": true,"language_undecided": false,- "diacritic_rate": 0.0476,- "non_latin_fraction": 0.0,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.2857,"mixed_segment": null}},{- "label": "romance_control/1",- "state": "The customer was charged twice and wants a refund for this invoice",- "state_text": "The customer was charged twice and wants a refund for this invoice",- "detect_script": "latin",+ "label": "p0411/unclaimed_dominant",+ "state": "ok ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎ",+ "state_text": "ok ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎ",+ "detect_script": "other","script_profile": {- "latin": 1.0+ "latin": 0.16666666666666666,+ "other": 0.8333333333333334},"latin_profile": {- "language": "en",- "english_hits": 5,+ "language": null,+ "english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "latin",+ "script": "other","script_profile": {- "latin": 1.0+ "latin": 0.16666666666666666,+ "other": 0.8333333333333334},- "language": "en",- "is_english": true,- "language_undecided": false,+ "language": null,+ "is_english": false,+ "language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 0.0,+ "non_latin_fraction": 0.8333,"mixed_segment": null}},{- "label": "romance_control/2",- "state": "Please cancel my subscription and refund the duplicate charge today",- "state_text": "Please cancel my subscription and refund the duplicate charge today",- "detect_script": "latin",+ "label": "p0411/tie_named_vs_latin",+ "state": "abc αβγ",+ "state_text": "abc αβγ",+ "detect_script": "greek","script_profile": {- "latin": 1.0+ "latin": 0.5,+ "greek": 0.5},"latin_profile": {- "language": "en",- "english_hits": 3,+ "language": null,+ "english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "latin",+ "script": "greek","script_profile": {- "latin": 1.0+ "latin": 0.5,+ "greek": 0.5},- "language": "en",- "is_english": true,- "language_undecided": false,+ "language": null,+ "is_english": false,+ "language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 0.0,+ "non_latin_fraction": 0.5,"mixed_segment": null}},{- "label": "romance_control/3",- "state": "The report by Smith et al. shows the de facto standard, e.g. the LA office and Rio",- "state_text": "The report by Smith et al. shows the de facto standard, e.g. the LA office and Rio",- "detect_script": "latin",+ "label": "p0411/tie_two_scripts",+ "state": "αβγ абв",+ "state_text": "αβγ абв",+ "detect_script": "greek","script_profile": {- "latin": 1.0+ "greek": 0.5,+ "cyrillic": 0.5},"latin_profile": {- "language": "en",- "english_hits": 4,+ "language": null,+ "english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "latin",+ "script": "greek","script_profile": {- "latin": 1.0+ "greek": 0.5,+ "cyrillic": 0.5},- "language": "en",- "is_english": true,- "language_undecided": false,+ "language": null,+ "is_english": false,+ "language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 0.0,+ "non_latin_fraction": 1.0,"mixed_segment": null}},{- "label": "romance_control/4",- "state": "Our MI5 and UN contacts discussed the DOS attack in LA last month",- "state_text": "Our MI5 and UN contacts discussed the DOS attack in LA last month",+ "label": "p0411/devanagari_matras",+ "state": "please call मु मु मु मु मु मु now",+ "state_text": "please call मु मु मु मु मु मु now","detect_script": "latin","script_profile": {- "latin": 1.0+ "latin": 0.6842105263157895,+ "devanagari": 0.3157894736842105},"latin_profile": {"language": "en",- "english_hits": 3,+ "english_hits": 1,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "latin",+ "script": "devanagari","script_profile": {- "latin": 1.0+ "latin": 0.6842105263157895,+ "devanagari": 0.3157894736842105},- "language": "en",- "is_english": true,- "language_undecided": false,+ "language": null,+ "is_english": false,+ "language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 0.0,+ "non_latin_fraction": 0.3158,"mixed_segment": null}},{- "label": "romance_control/5",- "state": "No refund was issued, so I am writing to you again about invoice 4411",- "state_text": "No refund was issued, so I am writing to you again about invoice 4411",+ "label": "p0411/devanagari_single_letters",+ "state": "Please call क ख ग घ ङ च छ ज झ ञ now",+ "state_text": "Please call क ख ग घ ङ च छ ज झ ञ now","detect_script": "latin","script_profile": {- "latin": 1.0+ "latin": 0.5652173913043478,+ "devanagari": 0.43478260869565216},"latin_profile": {"language": "en",- "english_hits": 4,+ "english_hits": 1,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {"script": "latin","script_profile": {- "latin": 1.0+ "latin": 0.5652173913043478,+ "devanagari": 0.43478260869565216},"language": "en","is_english": true,"language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 0.0,+ "non_latin_fraction": 0.4348,"mixed_segment": null}},{- "label": "romance_control/6",- "state": "no refund no reply",- "state_text": "no refund no reply",+ "label": "p0411/devanagari_danda",+ "state": "Please read this ।।।।।।।।।।।।",+ "state_text": "Please read this ।।।।।।।।।।।।","detect_script": "latin","script_profile": {"latin": 1.0@@ -1897,147 +5042,185 @@}},{- "label": "romance_control/7",- "state": "The son of the director filed a complaint about the duplicate invoice",- "state_text": "The son of the director filed a complaint about the duplicate invoice",+ "label": "p0411/cyrillic_combining_name",+ "state": "Please send it to Влади́мир Петро́вич today",+ "state_text": "Please send it to Влади́мир Петро́вич today","detect_script": "latin","script_profile": {- "latin": 1.0+ "latin": 0.5428571428571428,+ "cyrillic": 0.45714285714285713},"latin_profile": {"language": "en",- "english_hits": 4,+ "english_hits": 3,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {"script": "latin","script_profile": {- "latin": 1.0+ "latin": 0.5428571428571428,+ "cyrillic": 0.45714285714285713},"language": "en","is_english": true,"language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 0.0,+ "non_latin_fraction": 0.4571,"mixed_segment": null}},{- "label": "shared_words/names_nothing",- "state": "Cât e ora acum la Tokyo",- "state_text": "Cât e ora acum la Tokyo",+ "label": "p0411/cyrillic_lower_word",+ "state": "Please send it to привет мир today ok",+ "state_text": "Please send it to привет мир today ok","detect_script": "latin","script_profile": {- "latin": 1.0+ "latin": 0.7,+ "cyrillic": 0.3},"latin_profile": {+ "language": "en",+ "english_hits": 3,+ "diacritic_rate": 0.0,+ "looks_non_english": false+ },+ "analyse": {+ "script": "cyrillic",+ "script_profile": {+ "latin": 0.7,+ "cyrillic": 0.3+ },"language": null,- "english_hits": 0,- "diacritic_rate": 0.043478260869565216,- "looks_non_english": true+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.3,+ "mixed_segment": null+ }+ },+ {+ "label": "p0411/arabic_harakat",+ "state": "Please read مَرْحَبًا بِكُمْ في الموقع today",+ "state_text": "Please read مَرْحَبًا بِكُمْ في الموقع today",+ "detect_script": "arabic",+ "script_profile": {+ "latin": 0.4838709677419355,+ "arabic": 0.5161290322580645+ },+ "latin_profile": {+ "language": "en",+ "english_hits": 1,+ "diacritic_rate": 0.0,+ "looks_non_english": false},"analyse": {- "script": "latin",+ "script": "arabic","script_profile": {- "latin": 1.0+ "latin": 0.4838709677419355,+ "arabic": 0.5161290322580645},"language": null,"is_english": false,"language_undecided": true,- "diacritic_rate": 0.0435,- "non_latin_fraction": 0.0,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.5161,"mixed_segment": null}},{- "label": "shared_words/distinctive_names_it",- "state": "La fattura contiene un errore nell importo totale",- "state_text": "La fattura contiene un errore nell importo totale",- "detect_script": "latin",+ "label": "p0411/thai_tone_marks",+ "state": "Please read สวัสดีครับ ขอบคุณมาก today",+ "state_text": "Please read สวัสดีครับ ขอบคุณมาก today",+ "detect_script": "thai","script_profile": {- "latin": 1.0+ "latin": 0.5,+ "thai": 0.5},"latin_profile": {- "language": "it",- "english_hits": 0,+ "language": "en",+ "english_hits": 1,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "latin",+ "script": "thai","script_profile": {- "latin": 1.0+ "latin": 0.5,+ "thai": 0.5},- "language": "it",+ "language": null,"is_english": false,- "language_undecided": false,+ "language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 0.0,+ "non_latin_fraction": 0.5,"mixed_segment": null}},{- "label": "shared_words/shared_hits_still_count_es",- "state": "La factura tiene un error en el importe total",- "state_text": "La factura tiene un error en el importe total",+ "label": "p0411/vietnamese_combining",+ "state": "Xin chào, tôi can̂ giúp đỡ về hoá đơn",+ "state_text": "Xin chào, tôi can̂ giúp đỡ về hoá đơn","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": "es",- "english_hits": 0,- "diacritic_rate": 0.0,- "looks_non_english": false+ "language": null,+ "english_hits": 3,+ "diacritic_rate": 0.10256410256410256,+ "looks_non_english": true},"analyse": {"script": "latin","script_profile": {"latin": 1.0},- "language": "es",+ "language": null,"is_english": false,- "language_undecided": false,- "diacritic_rate": 0.0,+ "language_undecided": true,+ "diacritic_rate": 0.1026,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "all_scripts/greek",- "state": "Γεια σου κόσμε, πώς είσαι σήμερα;",- "state_text": "Γεια σου κόσμε, πώς είσαι σήμερα;",- "detect_script": "greek",+ "label": "p0411/greek_final_sigma",+ "state": "Please check ΟΔΥΣΣΕΥΣ today",+ "state_text": "Please check ΟΔΥΣΣΕΥΣ today",+ "detect_script": "latin","script_profile": {- "greek": 1.0+ "latin": 0.6666666666666666,+ "greek": 0.3333333333333333},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 1,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "greek",+ "script": "latin","script_profile": {- "greek": 1.0+ "latin": 0.6666666666666666,+ "greek": 0.3333333333333333},- "language": null,- "is_english": false,- "language_undecided": true,+ "language": "en",+ "is_english": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.3333,"mixed_segment": null}},{- "label": "all_scripts/cyrillic",- "state": "Привет, как ты себя чувствуешь сегодня?",- "state_text": "Привет, как ты себя чувствуешь сегодня?",- "detect_script": "cyrillic",+ "label": "p0411/non_latin_promotion_min_letters",+ "state": "ok xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ありがとうございます",+ "state_text": "ok xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ありがとうございます",+ "detect_script": "latin","script_profile": {- "cyrillic": 1.0+ "latin": 0.8913043478260869,+ "kana": 0.10869565217391304},"latin_profile": {"language": null,@@ -2046,25 +5229,27 @@"looks_non_english": false},"analyse": {- "script": "cyrillic",+ "script": "kana","script_profile": {- "cyrillic": 1.0+ "latin": 0.8913043478260869,+ "kana": 0.10869565217391304},"language": null,"is_english": false,"language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.1087,"mixed_segment": null}},{- "label": "all_scripts/armenian",- "state": "Բարեւ ձեզ, ինչպե՞ս եք այսօր",- "state_text": "Բարեւ ձեզ, ինչպե՞ս եք այսօր",- "detect_script": "armenian",+ "label": "p0411/non_latin_fraction_edge",+ "state": "Please яя aaaaaaaa",+ "state_text": "Please яя aaaaaaaa",+ "detect_script": "latin","script_profile": {- "armenian": 1.0+ "latin": 0.875,+ "cyrillic": 0.125},"latin_profile": {"language": null,@@ -2073,25 +5258,26 @@"looks_non_english": false},"analyse": {- "script": "armenian",+ "script": "latin","script_profile": {- "armenian": 1.0+ "latin": 0.875,+ "cyrillic": 0.125},"language": null,- "is_english": false,+ "is_english": true,"language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.125,"mixed_segment": null}},{- "label": "all_scripts/hebrew",- "state": "שלום, מה שלומך היום",- "state_text": "שלום, מה שלומך היום",- "detect_script": "hebrew",+ "label": "p0411/identifier_domains",+ "state": "github.com acme.com v1.2.3 la o e un [email protected]",+ "state_text": "github.com acme.com v1.2.3 la o e un [email protected]",+ "detect_script": "latin","script_profile": {- "hebrew": 1.0+ "latin": 1.0},"latin_profile": {"language": null,@@ -2100,598 +5286,598 @@"looks_non_english": false},"analyse": {- "script": "hebrew",+ "script": "latin","script_profile": {- "hebrew": 1.0+ "latin": 1.0},"language": null,- "is_english": false,+ "is_english": true,"language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "all_scripts/arabic",- "state": "مرحبا كيف حالك اليوم",- "state_text": "مرحبا كيف حالك اليوم",- "detect_script": "arabic",+ "label": "p0411/identifier_trailing_dot",+ "state": "arrivato. la fattura. non e arrivata ancora.",+ "state_text": "arrivato. la fattura. non e arrivata ancora.",+ "detect_script": "latin","script_profile": {- "arabic": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,+ "language": "it","english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "arabic",+ "script": "latin","script_profile": {- "arabic": 1.0+ "latin": 1.0},- "language": null,+ "language": "it","is_english": false,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "all_scripts/devanagari",- "state": "नमस्ते आप कैसे हैं आज",- "state_text": "नमस्ते आप कैसे हैं आज",- "detect_script": "devanagari",+ "label": "p0411/identifier_double_dot",+ "state": "a..b la fattura non arrivata",+ "state_text": "a..b la fattura non arrivata",+ "detect_script": "latin","script_profile": {- "devanagari": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,+ "language": "it","english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "devanagari",+ "script": "latin","script_profile": {- "devanagari": 1.0+ "latin": 1.0},- "language": null,+ "language": "it","is_english": false,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "all_scripts/bengali",- "state": "আমি ভালো আছি, আপনি কেমন আছেন",- "state_text": "আমি ভালো আছি, আপনি কেমন আছেন",- "detect_script": "bengali",+ "label": "p0411/identifier_leading_at",+ "state": "@home la fattura non e arrivata ancora",+ "state_text": "@home la fattura non e arrivata ancora",+ "detect_script": "latin","script_profile": {- "bengali": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,+ "language": "it","english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "bengali",+ "script": "latin","script_profile": {- "bengali": 1.0+ "latin": 1.0},- "language": null,+ "language": "it","is_english": false,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "all_scripts/gurmukhi",- "state": "ਤੁਸੀਂ ਕਿਵੇਂ ਹੋ, ਮੈਂ ਠੀਕ ਹਾਂ",- "state_text": "ਤੁਸੀਂ ਕਿਵੇਂ ਹੋ, ਮੈਂ ਠੀਕ ਹਾਂ",- "detect_script": "gurmukhi",+ "label": "p0411/identifier_hyphen",+ "state": "e-mail la fattura non e arrivata ancora x-y.z",+ "state_text": "e-mail la fattura non e arrivata ancora x-y.z",+ "detect_script": "latin","script_profile": {- "gurmukhi": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,+ "language": "it","english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "gurmukhi",+ "script": "latin","script_profile": {- "gurmukhi": 1.0+ "latin": 1.0},- "language": null,+ "language": "it","is_english": false,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "all_scripts/gujarati",- "state": "તમે કેમ છો, હું સારો છું",- "state_text": "તમે કેમ છો, હું સારો છું",- "detect_script": "gujarati",+ "label": "p0411/dotted_I",+ "state": "İstanbul'da bir sorun var ve yardım istiyorum",+ "state_text": "İstanbul'da bir sorun var ve yardım istiyorum",+ "detect_script": "latin","script_profile": {- "gujarati": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,+ "language": "az","english_hits": 0,- "diacritic_rate": 0.0,- "looks_non_english": false+ "diacritic_rate": 0.021739130434782608,+ "looks_non_english": true},"analyse": {- "script": "gujarati",+ "script": "latin","script_profile": {- "gujarati": 1.0+ "latin": 1.0},- "language": null,+ "language": "az","is_english": false,- "language_undecided": true,- "diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "language_undecided": false,+ "diacritic_rate": 0.0217,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "all_scripts/oriya",- "state": "ତୁମେ କେମିତି ଅଛ, ମୁଁ ଭଲ ଅଛି",- "state_text": "ତୁମେ କେମିତି ଅଛ, ମୁଁ ଭଲ ଅଛି",- "detect_script": "oriya",+ "label": "p0411/dotted_I_english",+ "state": "I am in İstanbul and please send the receipt",+ "state_text": "I am in İstanbul and please send the receipt",+ "detect_script": "latin","script_profile": {- "oriya": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 5,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "oriya",+ "script": "latin","script_profile": {- "oriya": 1.0+ "latin": 1.0},- "language": null,- "is_english": false,- "language_undecided": true,+ "language": "en",+ "is_english": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "all_scripts/tamil",- "state": "நீங்கள் எப்படி இருக்கிறீர்கள்",- "state_text": "நீங்கள் எப்படி இருக்கிறீர்கள்",- "detect_script": "tamil",+ "label": "p0411/code_line_state",+ "state": "x = 5 el la los las para que no",+ "state_text": "x = 5 el la los las para que no",+ "detect_script": "latin","script_profile": {- "tamil": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,+ "language": "es","english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "tamil",+ "script": "latin","script_profile": {- "tamil": 1.0+ "latin": 1.0},- "language": null,+ "language": "es","is_english": false,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "all_scripts/telugu",- "state": "మీరు ఎలా ఉన్నారు, నేను బాగున్నాను",- "state_text": "మీరు ఎలా ఉన్నారు, నేను బాగున్నాను",- "detect_script": "telugu",+ "label": "p0411/call_syntax_state",+ "state": "foo(bar) para que no el la los",+ "state_text": "foo(bar) para que no el la los",+ "detect_script": "latin","script_profile": {- "telugu": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,+ "language": "es","english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "telugu",+ "script": "latin","script_profile": {- "telugu": 1.0+ "latin": 1.0},- "language": null,+ "language": "es","is_english": false,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "all_scripts/kannada",- "state": "ನೀವು ಹೇಗಿದ್ದೀರಿ, ನಾನು ಚೆನ್ನಾಗಿದ್ದೇನೆ",- "state_text": "ನೀವು ಹೇಗಿದ್ದೀರಿ, ನಾನು ಚೆನ್ನಾಗಿದ್ದೇನೆ",- "detect_script": "kannada",+ "label": "p0411/titlecase_digraph",+ "state": "Džungla and the please are here",+ "state_text": "Džungla and the please are here",+ "detect_script": "latin","script_profile": {- "kannada": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 4,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "kannada",+ "script": "latin","script_profile": {- "kannada": 1.0+ "latin": 1.0},- "language": null,- "is_english": false,- "language_undecided": true,+ "language": "en",+ "is_english": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "all_scripts/malayalam",- "state": "നിങ്ങൾക്ക് സുഖമാണോ, എനിക്ക് സുഖമാണ്",- "state_text": "നിങ്ങൾക്ക് സുഖമാണോ, എനിക്ക് സുഖമാണ്",- "detect_script": "malayalam",+ "label": "p0411/shouted_acronyms",+ "state": "MON DES EST LA",+ "state_text": "MON DES EST LA",+ "detect_script": "latin","script_profile": {- "malayalam": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,+ "language": "fr","english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "malayalam",+ "script": "latin","script_profile": {- "malayalam": 1.0+ "latin": 1.0},"language": null,- "is_english": false,+ "is_english": true,"language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "all_scripts/sinhala",- "state": "ඔබට කොහොමද, මට හොඳින්",- "state_text": "ඔබට කොහොමද, මට හොඳින්",- "detect_script": "sinhala",+ "label": "p0411/shouted_acronyms_under_english",+ "state": "Please look at this\nMON DES EST LA",+ "state_text": "Please look at this\nMON DES EST LA",+ "detect_script": "latin","script_profile": {- "sinhala": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 3,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "sinhala",+ "script": "latin","script_profile": {- "sinhala": 1.0+ "latin": 1.0},- "language": null,- "is_english": false,- "language_undecided": true,+ "language": "en",+ "is_english": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "all_scripts/thai",- "state": "คุณเป็นอย่างไรบ้างวันนี้",- "state_text": "คุณเป็นอย่างไรบ้างวันนี้",- "detect_script": "thai",+ "label": "p0411/shouted_acronyms_two_english_lines",+ "state": "Please look at this\nand send me the details.\nMON DES EST LA",+ "state_text": "Please look at this\nand send me the details.\nMON DES EST LA",+ "detect_script": "latin","script_profile": {- "thai": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 5,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "thai",+ "script": "latin","script_profile": {- "thai": 1.0+ "latin": 1.0},- "language": null,- "is_english": false,- "language_undecided": true,+ "language": "en",+ "is_english": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "all_scripts/lao",- "state": "ສະບາຍດີ ທ່ານເປັນແນວໃດແດ່",- "state_text": "ສະບາຍດີ ທ່ານເປັນແນວໃດແດ່",- "detect_script": "lao",+ "label": "p0411/shouted_address",+ "state": "STORES LOS ANGELES LAS VEGAS EL PASO CLOSED",+ "state_text": "STORES LOS ANGELES LAS VEGAS EL PASO CLOSED",+ "detect_script": "latin","script_profile": {- "lao": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,+ "language": "es","english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "lao",+ "script": "latin","script_profile": {- "lao": 1.0+ "latin": 1.0},"language": null,- "is_english": false,+ "is_english": true,"language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "all_scripts/tibetan",- "state": "བཀྲ་ཤིས་བདེ་ལེགས་ཁྱེད་རང་ག་འདྲ་ཡོད",- "state_text": "བཀྲ་ཤིས་བདེ་ལེགས་ཁྱེད་རང་ག་འདྲ་ཡོད",- "detect_script": "tibetan",+ "label": "p0411/shouted_german_umlaut",+ "state": "WIE SPÄT IST ES IN KÖLN",+ "state_text": "WIE SPÄT IST ES IN KÖLN",+ "detect_script": "latin","script_profile": {- "tibetan": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,- "diacritic_rate": 0.0,- "looks_non_english": false+ "language": "de",+ "english_hits": 1,+ "diacritic_rate": 0.08695652173913043,+ "looks_non_english": true},"analyse": {- "script": "tibetan",+ "script": "latin","script_profile": {- "tibetan": 1.0+ "latin": 1.0},"language": null,"is_english": false,"language_undecided": true,- "diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "diacritic_rate": 0.087,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "all_scripts/myanmar",- "state": "မင်္ဂလာပါ သင်နေကောင်းလား",- "state_text": "မင်္ဂလာပါ သင်နေကောင်းလား",- "detect_script": "myanmar",+ "label": "p0411/shouted_german_ascii",+ "state": "WIE SPAET IST ES IN KOELN",+ "state_text": "WIE SPAET IST ES IN KOELN",+ "detect_script": "latin","script_profile": {- "myanmar": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "de",+ "english_hits": 1,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "myanmar",+ "script": "latin","script_profile": {- "myanmar": 1.0+ "latin": 1.0},"language": null,- "is_english": false,+ "is_english": true,"language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}- },- {- "label": "all_scripts/georgian",- "state": "გამარჯობა როგორ ხარ დღეს",- "state_text": "გამარჯობა როგორ ხარ დღეს",- "detect_script": "georgian",+ },+ {+ "label": "p0411/shouted_portuguese_prose",+ "state": "EU NAO CONSIGO ENTRAR NA MINHA CONTA",+ "state_text": "EU NAO CONSIGO ENTRAR NA MINHA CONTA",+ "detect_script": "latin","script_profile": {- "georgian": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,+ "language": "pt","english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "georgian",+ "script": "latin","script_profile": {- "georgian": 1.0+ "latin": 1.0},- "language": null,+ "language": "pt","is_english": false,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "all_scripts/ethiopic",- "state": "ሰላም እንዴት ነህ ዛሬ",- "state_text": "ሰላም እንዴት ነህ ዛሬ",- "detect_script": "ethiopic",+ "label": "p0411/shouted_german_prose",+ "state": "ICH HABE MEIN PAKET NOCH NICHT BEKOMMEN",+ "state_text": "ICH HABE MEIN PAKET NOCH NICHT BEKOMMEN",+ "detect_script": "latin","script_profile": {- "ethiopic": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,+ "language": "de","english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "ethiopic",+ "script": "latin","script_profile": {- "ethiopic": 1.0+ "latin": 1.0},- "language": null,+ "language": "de","is_english": false,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "all_scripts/khmer",- "state": "សួស្តី តើអ្នកសុខសប្បាយទេ",- "state_text": "សួស្តី តើអ្នកសុខសប្បាយទេ",- "detect_script": "khmer",+ "label": "p0411/shouted_french_prose",+ "state": "JE VOUDRAIS UN REMBOURSEMENT POUR LA COMMANDE",+ "state_text": "JE VOUDRAIS UN REMBOURSEMENT POUR LA COMMANDE",+ "detect_script": "latin","script_profile": {- "khmer": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,+ "language": "fr","english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "khmer",+ "script": "latin","script_profile": {- "khmer": 1.0+ "latin": 1.0},- "language": null,+ "language": "fr","is_english": false,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "all_scripts/hangul",- "state": "안녕하세요 오늘 기분이 어때요",- "state_text": "안녕하세요 오늘 기분이 어때요",- "detect_script": "hangul",+ "label": "p0411/shouted_cyrillic_acronyms",+ "state": "ПРИВЕТ MON DES EST LA",+ "state_text": "ПРИВЕТ MON DES EST LA",+ "detect_script": "latin","script_profile": {- "hangul": 1.0+ "latin": 0.6470588235294118,+ "cyrillic": 0.35294117647058826},"latin_profile": {- "language": null,+ "language": "fr","english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "hangul",+ "script": "latin","script_profile": {- "hangul": 1.0+ "latin": 0.6470588235294118,+ "cyrillic": 0.35294117647058826},- "language": null,+ "language": "fr","is_english": false,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.3529,"mixed_segment": null}},{- "label": "all_scripts/kana",- "state": "こんにちは、今日は元気ですか",- "state_text": "こんにちは、今日は元気ですか",- "detect_script": "kana",+ "label": "p0411/emphasis_german",+ "state": "sag mir das HEUTIGE DATUM",+ "state_text": "sag mir das HEUTIGE DATUM",+ "detect_script": "latin","script_profile": {- "kana": 0.6923076923076923,- "han": 0.3076923076923077+ "latin": 1.0},"latin_profile": {- "language": null,+ "language": "de","english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "kana",+ "script": "latin","script_profile": {- "kana": 0.6923076923076923,- "han": 0.3076923076923077+ "latin": 1.0},- "language": null,+ "language": "de","is_english": false,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "all_scripts/han",- "state": "你好,你今天过得怎么样",- "state_text": "你好,你今天过得怎么样",- "detect_script": "han",+ "label": "p0411/emphasis_spanish",+ "state": "quiero cancelar mi PEDIDO POR FAVOR",+ "state_text": "quiero cancelar mi PEDIDO POR FAVOR",+ "detect_script": "latin","script_profile": {- "han": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,+ "language": "es","english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "han",+ "script": "latin","script_profile": {- "han": 1.0+ "latin": 1.0},- "language": null,+ "language": "es","is_english": false,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "all_scripts/latin",- "state": "Hello, how are you feeling today?",- "state_text": "Hello, how are you feeling today?",+ "label": "p0411/emphasis_acronym_mixed",+ "state": "quero cancelar o pedido MON DES EST LA por favor",+ "state_text": "quero cancelar o pedido MON DES EST LA por favor","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": "en",- "english_hits": 2,+ "language": "fr",+ "english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},@@ -2700,8 +5886,8 @@"script_profile": {"latin": 1.0},- "language": "en",- "is_english": true,+ "language": "pt",+ "is_english": false,"language_undecided": false,"diacritic_rate": 0.0,"non_latin_fraction": 0.0,@@ -2709,279 +5895,263 @@}},{- "label": "tie/greek_then_cyrillic_1v1",- "state": "ΑА",- "state_text": "ΑА",- "detect_script": "greek",+ "label": "p0411/emphasis_long_run",+ "state": "please cancel the order and send a REFUND for it",+ "state_text": "please cancel the order and send a REFUND for it",+ "detect_script": "latin","script_profile": {- "greek": 0.5,- "cyrillic": 0.5+ "latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 5,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "greek",+ "script": "latin","script_profile": {- "greek": 0.5,- "cyrillic": 0.5+ "latin": 1.0},- "language": null,- "is_english": false,- "language_undecided": true,+ "language": "en",+ "is_english": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "tie/cyrillic_then_greek_1v1",- "state": "АΑ",- "state_text": "АΑ",- "detect_script": "cyrillic",+ "label": "p0411/caseless_with_caps",+ "state": "ありがとう MON DES EST LA",+ "state_text": "ありがとう MON DES EST LA",+ "detect_script": "latin","script_profile": {- "cyrillic": 0.5,- "greek": 0.5+ "latin": 0.6875,+ "kana": 0.3125},"latin_profile": {- "language": null,+ "language": "fr","english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "cyrillic",+ "script": "kana","script_profile": {- "cyrillic": 0.5,- "greek": 0.5+ "latin": 0.6875,+ "kana": 0.3125},"language": null,"is_english": false,"language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.3125,"mixed_segment": null}},{- "label": "tie/han_then_latin_1v1",- "state": "中 a",- "state_text": "中 a",- "detect_script": "han",+ "label": "p0411/hindi_caps",+ "state": "मुझे MON DES EST LA चाहिए",+ "state_text": "मुझे MON DES EST LA चाहिए",+ "detect_script": "latin","script_profile": {- "latin": 0.5,- "han": 0.5+ "latin": 0.6875,+ "devanagari": 0.3125},"latin_profile": {- "language": null,+ "language": "fr","english_hits": 0,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "han",+ "script": "devanagari","script_profile": {- "latin": 0.5,- "han": 0.5+ "latin": 0.6875,+ "devanagari": 0.3125},"language": null,"is_english": false,"language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 0.5,+ "non_latin_fraction": 0.3125,"mixed_segment": null}},{- "label": "tie/latin_then_han_1v1",- "state": "a 中",- "state_text": "a 中",- "detect_script": "han",+ "label": "p0411/shouted_english",+ "state": "PLEASE SEND ME THE RECEIPT FOR THE ORDER",+ "state_text": "PLEASE SEND ME THE RECEIPT FOR THE ORDER",+ "detect_script": "latin","script_profile": {- "latin": 0.5,- "han": 0.5+ "latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 4,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "han",+ "script": "latin","script_profile": {- "latin": 0.5,- "han": 0.5+ "latin": 1.0},- "language": null,- "is_english": false,- "language_undecided": true,+ "language": "en",+ "is_english": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 0.5,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "tie/three_way_greek_cyrillic_armenian",- "state": "ΑАԱ",- "state_text": "ΑАԱ",- "detect_script": "greek",+ "label": "p0411/segment_after_cap",+ "state": "Please review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nEu nao consigo entrar na minha conta.",+ "state_text": "Please review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and sen",+ "detect_script": "latin","script_profile": {- "greek": 0.3333333333333333,- "cyrillic": 0.3333333333333333,- "armenian": 0.3333333333333333+ "latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 327,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "greek",+ "script": "latin","script_profile": {- "greek": 0.3333333333333333,- "cyrillic": 0.3333333333333333,- "armenian": 0.3333333333333333+ "latin": 1.0},- "language": null,- "is_english": false,- "language_undecided": true,+ "language": "en",+ "is_english": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "mixed/latin_han_arabic",- "state": "invoice 中文 فاتورة refund",- "state_text": "invoice 中文 فاتورة refund",+ "label": "p0411/segment_within_cap",+ "state": "Please review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nEu nao consigo entrar na minha conta.",+ "state_text": "Please review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nPlease review the error and send me the details.\nEu nao consigo entrar na minha conta.","detect_script": "latin","script_profile": {- "latin": 0.6190476190476191,- "han": 0.09523809523809523,- "arabic": 0.2857142857142857+ "latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 40,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "arabic",+ "script": "latin","script_profile": {- "latin": 0.6190476190476191,- "han": 0.09523809523809523,- "arabic": 0.2857142857142857+ "latin": 1.0},- "language": null,+ "language": "pt","is_english": false,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 0.381,- "mixed_segment": null+ "non_latin_fraction": 0.0,+ "mixed_segment": "Eu nao consigo entrar na minha conta."}},{- "label": "mixed/devanagari_latin_majority_devanagari",- "state": "ग्राहक से दो बार शुल्क लिया गया refund",- "state_text": "ग्राहक से दो बार शुल्क लिया गया refund",- "detect_script": "devanagari",+ "label": "p0411/segment_shouted_foreign",+ "state": "Please review the error and send me the details.\nEU NAO CONSIGO ENTRAR NA MINHA CONTA",+ "state_text": "Please review the error and send me the details.\nEU NAO CONSIGO ENTRAR NA MINHA CONTA",+ "detect_script": "latin","script_profile": {- "latin": 0.2857142857142857,- "devanagari": 0.7142857142857143+ "latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 4,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "devanagari",+ "script": "latin","script_profile": {- "latin": 0.2857142857142857,- "devanagari": 0.7142857142857143+ "latin": 1.0},- "language": null,+ "language": "pt","is_english": false,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 0.7143,- "mixed_segment": null+ "non_latin_fraction": 0.0,+ "mixed_segment": "EU NAO CONSIGO ENTRAR NA MINHA CONTA"}},{- "label": "mixed/latin_majority_devanagari_minor",- "state": "Please refund the customer today ग्राहक",- "state_text": "Please refund the customer today ग्राहक",+ "label": "p0411/segment_acronym_line",+ "state": "Please review the error and send me the details.\nMON DES EST LA",+ "state_text": "Please review the error and send me the details.\nMON DES EST LA","detect_script": "latin","script_profile": {- "latin": 0.875,- "devanagari": 0.125+ "latin": 1.0},"latin_profile": {"language": "en",- "english_hits": 2,+ "english_hits": 4,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {"script": "latin","script_profile": {- "latin": 0.875,- "devanagari": 0.125+ "latin": 1.0},"language": "en","is_english": true,"language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 0.125,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "latin_tie/fr_vs_de",- "state": "être cette nicht sich",- "state_text": "être cette nicht sich",+ "label": "p0411/segment_joined_tokens",+ "state": "Please review the error and send me the details.\nNav/Com OS/2 ESA/UN C:\\DOS\\mode radio listing",+ "state_text": "Please review the error and send me the details.\nNav/Com OS/2 ESA/UN C:\\DOS\\mode radio listing","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": "fr",- "english_hits": 0,- "diacritic_rate": 0.047619047619047616,- "looks_non_english": true+ "language": "en",+ "english_hits": 4,+ "diacritic_rate": 0.0,+ "looks_non_english": false},"analyse": {"script": "latin","script_profile": {"latin": 1.0},- "language": "fr",- "is_english": false,+ "language": "en",+ "is_english": true,"language_undecided": false,- "diacritic_rate": 0.0476,+ "diacritic_rate": 0.0,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "latin_tie/de_vs_es",- "state": "nicht sich el los",- "state_text": "nicht sich el los",+ "label": "p0411/segment_two_same_word",+ "state": "Please review the error and send me the details.\ncom com com com com com",+ "state_text": "Please review the error and send me the details.\ncom com com com com com","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": "de",- "english_hits": 0,+ "language": "pt",+ "english_hits": 4,"diacritic_rate": 0.0,"looks_non_english": false},@@ -2990,7 +6160,7 @@"script_profile": {"latin": 1.0},- "language": "de",+ "language": "pt","is_english": false,"language_undecided": false,"diacritic_rate": 0.0,@@ -2999,93 +6169,122 @@}},{- "label": "latin_tie/es_vs_pt",- "state": "está una dos tres o não está",- "state_text": "está una dos tres o não está",+ "label": "p0411/segment_call_syntax",+ "state": "Please review the error and send me the details.\nround(el, 2) para que no tengo el",+ "state_text": "Please review the error and send me the details.\nround(el, 2) para que no tengo el","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": "es",- "english_hits": 0,- "diacritic_rate": 0.10714285714285714,- "looks_non_english": true+ "language": "en",+ "english_hits": 4,+ "diacritic_rate": 0.0,+ "looks_non_english": false},"analyse": {"script": "latin","script_profile": {"latin": 1.0},- "language": "es",- "is_english": false,+ "language": "en",+ "is_english": true,"language_undecided": false,- "diacritic_rate": 0.1071,+ "diacritic_rate": 0.0,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "latin_tie/pt_vs_it",- "state": "não está o della sono",- "state_text": "não está o della sono",+ "label": "p0411/segment_list_state",+ "state": [+ "Please review the error and send me the details.",+ "Quiero cancelar mi pedido por favor ahora mismo"+ ],+ "state_text": "Please review the error and send me the details. Quiero cancelar mi pedido por favor ahora mismo","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": "pt",- "english_hits": 0,- "diacritic_rate": 0.09523809523809523,- "looks_non_english": true+ "language": "en",+ "english_hits": 4,+ "diacritic_rate": 0.0,+ "looks_non_english": false},"analyse": {"script": "latin","script_profile": {"latin": 1.0},- "language": "pt",+ "language": "es","is_english": false,"language_undecided": false,- "diacritic_rate": 0.0952,+ "diacritic_rate": 0.0,"non_latin_fraction": 0.0,- "mixed_segment": null+ "mixed_segment": "Quiero cancelar mi pedido por favor ahora mismo"}},{- "label": "astral/emoji_only",- "state": "😀🚀❤️",- "state_text": "😀🚀❤️",- "detect_script": "unknown",- "script_profile": {},+ "label": "p0411/segment_nested_dict",+ "state": {+ "ticket": {+ "note": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. ",+ "customer": {+ "msg": "ich habe mein paket noch nicht bekommen"+ }+ }+ },+ "state_text": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. ich habe mein paket noch nicht bekommen",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 12,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "unknown",- "script_profile": {},- "language": null,- "is_english": true,- "language_undecided": true,+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "de",+ "is_english": false,+ "language_undecided": false,"diacritic_rate": 0.0,"non_latin_fraction": 0.0,- "mixed_segment": null+ "mixed_segment": "ich habe mein paket noch nicht bekommen"}},{- "label": "astral/emoji_with_latin",- "state": "refund please 😀 today",- "state_text": "refund please 😀 today",+ "label": "p0411/segment_too_deep",+ "state": {+ "a": {+ "b": {+ "c": {+ "d": {+ "e": {+ "f": {+ "g": "ich habe mein paket noch nicht bekommen"+ }+ }+ }+ }+ }+ },+ "n": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. "+ },+ "state_text": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. ","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 12,"diacritic_rate": 0.0,"looks_non_english": false},@@ -3094,190 +6293,212 @@"script_profile": {"latin": 1.0},- "language": null,+ "language": "en","is_english": true,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "astral/deseret_letter_alone",- "state": "𐐀𐐁𐐂",- "state_text": "𐐀𐐁𐐂",- "detect_script": "other",+ "label": "p0411/segment_unicode_strip",+ "state": "Please review the error and send me the details.\n Eu nao consigo entrar na minha conta. ",+ "state_text": "Please review the error and send me the details.\n Eu nao consigo entrar na minha conta. ",+ "detect_script": "latin","script_profile": {- "other": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 4,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "other",+ "script": "latin","script_profile": {- "other": 1.0+ "latin": 1.0},- "language": null,+ "language": "pt","is_english": false,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,- "mixed_segment": null+ "non_latin_fraction": 0.0,+ "mixed_segment": "Eu nao consigo entrar na minha conta."}},{- "label": "astral/deseret_mixed_with_latin",- "state": "refund 𐐀 today",- "state_text": "refund 𐐀 today",+ "label": "p0411/leaf_name_field",+ "state": {+ "note": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. ",+ "name": "José"+ },+ "state_text": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. José","detect_script": "latin","script_profile": {- "latin": 0.9166666666666666,- "other": 0.08333333333333333+ "latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,- "diacritic_rate": 0.0,+ "language": "en",+ "english_hits": 20,+ "diacritic_rate": 0.004,"looks_non_english": false},"analyse": {"script": "latin","script_profile": {- "latin": 0.9166666666666666,- "other": 0.08333333333333333+ "latin": 1.0},- "language": null,+ "language": "en","is_english": true,- "language_undecided": true,- "diacritic_rate": 0.0,- "non_latin_fraction": 0.0833,+ "language_undecided": false,+ "diacritic_rate": 0.004,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "astral/mathematical_bold_letters",- "state": "𝐀𝐁𝐂",- "state_text": "𝐀𝐁𝐂",- "detect_script": "other",+ "label": "p0411/leaf_short_value",+ "state": {+ "note": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. ",+ "x": "žluť"+ },+ "state_text": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. žluť",+ "detect_script": "latin","script_profile": {- "other": 1.0+ "latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,- "diacritic_rate": 0.0,+ "language": "en",+ "english_hits": 20,+ "diacritic_rate": 0.008,"looks_non_english": false},"analyse": {- "script": "other",+ "script": "latin","script_profile": {- "other": 1.0+ "latin": 1.0},- "language": null,- "is_english": false,- "language_undecided": true,- "diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.008,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "combining/devanagari_with_virama",- "state": "ग्राहक",- "state_text": "ग्राहक",- "detect_script": "devanagari",+ "label": "p0411/leaf_nonlatin_short",+ "state": {+ "note": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. ",+ "x": "你好吗"+ },+ "state_text": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. 你好吗",+ "detect_script": "latin","script_profile": {- "devanagari": 1.0+ "latin": 0.9848484848484849,+ "han": 0.015151515151515152},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 20,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {- "script": "devanagari",+ "script": "latin","script_profile": {- "devanagari": 1.0+ "latin": 0.9848484848484849,+ "han": 0.015151515151515152},- "language": null,- "is_english": false,- "language_undecided": true,+ "language": "en",+ "is_english": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 1.0,+ "non_latin_fraction": 0.0152,"mixed_segment": null}},{- "label": "combining/latin_with_combining_acute",- "state": "café résumé",- "state_text": "café résumé",+ "label": "p0411/leaf_nonlatin_ten",+ "state": {+ "note": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. ",+ "x": "我的账户无法登录请帮助我吧"+ },+ "state_text": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. 我的账户无法登录请帮助我吧","detect_script": "latin","script_profile": {- "latin": 1.0+ "latin": 0.9375,+ "han": 0.0625},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 20,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {"script": "latin","script_profile": {- "latin": 1.0+ "latin": 0.9375,+ "han": 0.0625},"language": null,- "is_english": true,+ "is_english": false,"language_undecided": true,"diacritic_rate": 0.0,- "non_latin_fraction": 0.0,+ "non_latin_fraction": 0.0625,"mixed_segment": null}},{- "label": "turkish_i/capital_i_with_dot",- "state": "İstanbul",- "state_text": "İstanbul",+ "label": "p0411/leaf_cyrillic_name",+ "state": {+ "note": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. ",+ "x": "Дмитрий Петрович Савицкий"+ },+ "state_text": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Дмитрий Петрович Савицкий","detect_script": "latin","script_profile": {- "latin": 1.0+ "latin": 0.8944954128440367,+ "cyrillic": 0.10550458715596331},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 20,"diacritic_rate": 0.0,"looks_non_english": false},"analyse": {"script": "latin","script_profile": {- "latin": 1.0+ "latin": 0.8944954128440367,+ "cyrillic": 0.10550458715596331},- "language": null,+ "language": "en","is_english": true,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,- "non_latin_fraction": 0.0,+ "non_latin_fraction": 0.1055,"mixed_segment": null}},{- "label": "turkish_i/mixed_case",- "state": "İYİ GÜNLER İstanbul'da",- "state_text": "İYİ GÜNLER İstanbul'da",+ "label": "p0411/leaf_code_value",+ "state": {+ "note": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. ",+ "x": "x = żółć żółć żółć żółć"+ },+ "state_text": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. x = żółć żółć żółć żółć","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,- "diacritic_rate": 0.04,+ "language": "en",+ "english_hits": 20,+ "diacritic_rate": 0.05947955390334572,"looks_non_english": true},"analyse": {@@ -3285,26 +6506,29 @@"script_profile": {"latin": 1.0},- "language": null,- "is_english": false,- "language_undecided": true,- "diacritic_rate": 0.04,+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0595,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "turkish_i/lowercase_dotless",- "state": "ıstanbul",- "state_text": "ıstanbul",+ "label": "p0411/leaf_diacritics_four_words",+ "state": {+ "note": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. ",+ "x": "żółć gęślą jaźń łódź"+ },+ "state_text": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. żółć gęślą jaźń łódź","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {"language": null,- "english_hits": 0,- "diacritic_rate": 0.125,+ "english_hits": 20,+ "diacritic_rate": 0.045112781954887216,"looks_non_english": true},"analyse": {@@ -3315,45 +6539,56 @@"language": null,"is_english": false,"language_undecided": true,- "diacritic_rate": 0.125,+ "diacritic_rate": 0.0451,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "numerics/ascii_digits_only",- "state": "12345 67890",- "state_text": "12345 67890",- "detect_script": "unknown",- "script_profile": {},+ "label": "p0411/leaf_two_candidates",+ "state": {+ "note": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. ",+ "a": "Quiero cancelar mi pedido por favor",+ "b": "Ich habe mein Paket noch nicht bekommen und möchte es zurück"+ },+ "state_text": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Quiero cancelar mi pedido por favor Ich habe mein Paket noch nicht bekommen und möchte es zurück",+ "detect_script": "latin",+ "script_profile": {+ "latin": 1.0+ },"latin_profile": {- "language": null,- "english_hits": 0,- "diacritic_rate": 0.0,+ "language": "en",+ "english_hits": 20,+ "diacritic_rate": 0.005847953216374269,"looks_non_english": false},"analyse": {- "script": "unknown",- "script_profile": {},- "language": null,- "is_english": true,- "language_undecided": true,- "diacritic_rate": 0.0,+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "es",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0058,"non_latin_fraction": 0.0,- "mixed_segment": null+ "mixed_segment": "Quiero cancelar mi pedido por favor"}},{- "label": "numerics/roman_numeral_nl",- "state": "chapter Ⅷ begins",- "state_text": "chapter Ⅷ begins",+ "label": "p0411/leaf_shouted_foreign",+ "state": {+ "note": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. ",+ "x": "EU NAO CONSIGO ENTRAR NA MINHA CONTA"+ },+ "state_text": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. EU NAO CONSIGO ENTRAR NA MINHA CONTA","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 20,"diacritic_rate": 0.0,"looks_non_english": false},@@ -3362,25 +6597,28 @@"script_profile": {"latin": 1.0},- "language": null,- "is_english": true,- "language_undecided": true,+ "language": "pt",+ "is_english": false,+ "language_undecided": false,"diacritic_rate": 0.0,"non_latin_fraction": 0.0,- "mixed_segment": null+ "mixed_segment": "EU NAO CONSIGO ENTRAR NA MINHA CONTA"}},{- "label": "numerics/fullwidth_digits",- "state": "123 refund",- "state_text": "123 refund",+ "label": "p0411/leaf_shouted_acronyms",+ "state": {+ "note": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. ",+ "x": "MON DES EST LA"+ },+ "state_text": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. MON DES EST LA","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 20,"diacritic_rate": 0.0,"looks_non_english": false},@@ -3389,25 +6627,30 @@"script_profile": {"latin": 1.0},- "language": null,+ "language": "en","is_english": true,- "language_undecided": true,+ "language_undecided": false,"diacritic_rate": 0.0,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "numerics/mixed_digits_and_words",- "state": "invoice 4411 was paid twice on 2024-01-05",- "state_text": "invoice 4411 was paid twice on 2024-01-05",+ "label": "p0411/leaf_number_and_none",+ "state": {+ "n": 5,+ "m": null,+ "t": true,+ "s": "Please review the error and send me the details."+ },+ "state_text": "Please review the error and send me the details.","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {"language": "en",- "english_hits": 2,+ "english_hits": 4,"diacritic_rate": 0.0,"looks_non_english": false},@@ -3425,28 +6668,19 @@}},{- "label": "nesting/depth_6_kept",+ "label": "p0411/leaf_long_second_field","state": {- "a": {- "b": {- "c": {- "d": {- "e": {- "f": "visible at depth 6"- }- }- }- }- }+ "a": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. ",+ "b": "Quiero cancelar mi pedido por favor ahora mismo"},- "state_text": "visible at depth 6",+ "state_text": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and sen","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {- "language": null,- "english_hits": 0,+ "language": "en",+ "english_hits": 327,"diacritic_rate": 0.0,"looks_non_english": false},@@ -3455,31 +6689,17 @@"script_profile": {"latin": 1.0},- "language": null,- "is_english": true,- "language_undecided": true,+ "language": "es",+ "is_english": false,+ "language_undecided": false,"diacritic_rate": 0.0,"non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "nesting/depth_7_dropped",- "state": {- "a": {- "b": {- "c": {- "d": {- "e": {- "f": {- "g": "invisible past depth 6"- }- }- }- }- }- }- },+ "label": "p0411/empty_string",+ "state": "","state_text": "","detect_script": "unknown","script_profile": {},@@ -3501,23 +6721,9 @@}},{- "label": "nesting/list_depth_7_dropped",- "state": [- [- [- [- [- [- [- "invisible list depth 7"- ]- ]- ]- ]- ]- ]- ],- "state_text": "",+ "label": "p0411/whitespace_only",+ "state": " \n\t ",+ "state_text": " \n\t ","detect_script": "unknown","script_profile": {},"latin_profile": {@@ -3538,28 +6744,11 @@}},{- "label": "nesting/mixed_depth_boundary",- "state": {- "a": {- "b": {- "c": {- "d": {- "e": [- "kept depth 6",- {- "f": "dropped depth 7"- }- ]- }- }- }- }- },- "state_text": "kept depth 6",- "detect_script": "latin",- "script_profile": {- "latin": 1.0- },+ "label": "p0411/digits_only",+ "state": "12345 67890",+ "state_text": "12345 67890",+ "detect_script": "unknown",+ "script_profile": {},"latin_profile": {"language": null,"english_hits": 0,@@ -3567,10 +6756,8 @@"looks_non_english": false},"analyse": {- "script": "latin",- "script_profile": {- "latin": 1.0- },+ "script": "unknown",+ "script_profile": {},"language": null,"is_english": true,"language_undecided": true,@@ -3580,99 +6767,43 @@}},{- "label": "long/ascii_over_4000",- "state": "refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. ",- "state_text": "refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund please. refund ple",+ "label": "p0411/state_text_cap_multibyte",+ "state": "çççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççç",+ "state_text": "çççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççççç","detect_script": "latin","script_profile": {"latin": 1.0},- "latin_profile": {- "language": "en",- "english_hits": 266,- "diacritic_rate": 0.0,- "looks_non_english": false- },- "analyse": {- "script": "latin",- "script_profile": {- "latin": 1.0- },- "language": "en",- "is_english": true,- "language_undecided": false,- "diacritic_rate": 0.0,- "non_latin_fraction": 0.0,- "mixed_segment": null- }- },- {- "label": "long/multibyte_over_4000",- "state": "退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 ",- "state_text": "退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 退款请求 ",- "detect_script": "han",- "script_profile": {- "han": 1.0- },- "latin_profile": {- "language": null,- "english_hits": 0,- "diacritic_rate": 0.0,- "looks_non_english": false- },- "analyse": {- "script": "han",- "script_profile": {- "han": 1.0- },- "language": null,- "is_english": false,- "language_undecided": true,- "diacritic_rate": 0.0,- "non_latin_fraction": 1.0,- "mixed_segment": null- }- },- {- "label": "long/mixed_script_over_4000_boundary_near_switch",- "state": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa客户被重复扣款要求退款客户被重复扣款要求退款客户被重复扣款要求退款客户被重复扣款要求退款客户被重复扣款要求退款",- "state_text": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa客户被重复扣款要求退",- "detect_script": "latin",- "script_profile": {- "latin": 0.9975,- "han": 0.0025- },"latin_profile": {"language": null,"english_hits": 0,- "diacritic_rate": 0.0,- "looks_non_english": false+ "diacritic_rate": 1.0,+ "looks_non_english": true},"analyse": {"script": "latin","script_profile": {- "latin": 0.9975,- "han": 0.0025+ "latin": 1.0},"language": null,- "is_english": true,+ "is_english": false,"language_undecided": true,- "diacritic_rate": 0.0,- "non_latin_fraction": 0.0025,+ "diacritic_rate": 1.0,+ "non_latin_fraction": 0.0,"mixed_segment": null}},{- "label": "long/english_over_1000",- "state": "Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. ",- "state_text": "Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. Please refund the duplicate charge on invoice 4411 today. ",+ "label": "p0411/roman_numerals",+ "state": "Ⅳ Ⅴ Ⅵ Ⅶ please",+ "state_text": "Ⅳ Ⅴ Ⅵ Ⅶ please","detect_script": "latin","script_profile": {"latin": 1.0},"latin_profile": {"language": "en",- "english_hits": 60,+ "english_hits": 1,"diacritic_rate": 0.0,"looks_non_english": false},diff --git a/laya-rust/tests/golden/routing/meta.json b/laya-rust/tests/golden/routing/meta.jsonindex 01adc570..a05d1f08 100644--- a/laya-rust/tests/golden/routing/meta.json+++ b/laya-rust/tests/golden/routing/meta.json@@ -1,16 +1,16 @@{"generator": "tools/dump_routing_golden.py",- "laya_version": "0.4.0",+ "laya_version": "0.4.11","default_shortlist_k": 20,"notes": {"route_probe": "RouteDecision is serialized as {model, reason, detection, workflow}; 'repo' is intentionally omitted (not part of the ported RouteDecision).","shortlist_probe": "Non-finite floats (NaN, +Inf, -Inf) inside a case's 'vectors' matrix are encoded as the JSON strings \"nan\", \"inf\", \"-inf\" because JSON has no native literal for them; a case with vectors=null is a k>=n passthrough case where embed_fn must never be called."},"counts": {- "lang_probe": 134,- "route_probe": 72,- "email_probe_clean": 47,- "email_probe_state": 8,+ "lang_probe": 246,+ "route_probe": 142,+ "email_probe_clean": 216,+ "email_probe_state": 22,"shortlist_probe": 22,"hashing_embedder_probe": 22}diff --git a/laya-rust/tests/golden/routing/route_probe.json b/laya-rust/tests/golden/routing/route_probe.jsonindex 0593cd63..f914d4df 100644--- a/laya-rust/tests/golden/routing/route_probe.json+++ b/laya-rust/tests/golden/routing/route_probe.json@@ -1,4 +1,54 @@[+ {+ "label": "upstream/undetermined_latin_custom_default",+ "router_kwargs": {+ "default": "multilingual"+ },+ "route_kwargs": {+ "state": "Hello"+ },+ "decision": {+ "model": "multilingual",+ "reason": "Latin script, language not identified and no non-English letters; using default (multilingual)",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "upstream/mixed_foreign_line",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Please review the error and send me the details.\nEu nao consigo entrar na minha conta."+ },+ "decision": {+ "model": "multilingual",+ "reason": "Latin script, mostly English, but a line or field reads as 'pt' ('Eu nao consigo entrar na minha conta.'); the English checkpoint cannot read it",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "pt",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": "Eu nao consigo entrar na minha conta."+ },+ "workflow": null+ }+ },{"label": "english_text","router_kwargs": {},@@ -1986,5 +2036,1416 @@},"workflow": null}+ },+ {+ "label": "p0411/lang_blank",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Hello there",+ "lang": ""+ },+ "decision": {+ "model": "multilingual",+ "reason": "Latin script, language not identified and no non-English letters; using default (multilingual)",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/lang_blank_foreign_text",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Hindi मुझसे दो बार शुल्क लिया गया",+ "lang": " "+ },+ "decision": {+ "model": "multilingual",+ "reason": "non-Latin script (devanagari, 72% of letters); the English checkpoint cannot read it",+ "detection": {+ "script": "devanagari",+ "script_profile": {+ "latin": 0.2777777777777778,+ "devanagari": 0.7222222222222222+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.7222,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/lang_C",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Hello there my friend",+ "lang": "C"+ },+ "decision": {+ "model": "english",+ "reason": "English Latin text",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/lang_C_UTF8",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Hello there my friend",+ "lang": "C.UTF-8"+ },+ "decision": {+ "model": "english",+ "reason": "English Latin text",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/lang_POSIX",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "二重に請求されました",+ "lang": "POSIX"+ },+ "decision": {+ "model": "multilingual",+ "reason": "non-Latin script (kana, 100% of letters); the English checkpoint cannot read it",+ "detection": {+ "script": "kana",+ "script_profile": {+ "han": 0.4,+ "kana": 0.6+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 1.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/lang_und",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Hello there my friend",+ "lang": "und"+ },+ "decision": {+ "model": "english",+ "reason": "English Latin text",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/lang_zxx",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Hello there my friend",+ "lang": "zxx"+ },+ "decision": {+ "model": "english",+ "reason": "English Latin text",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/lang_mul",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Hello there my friend",+ "lang": "mul"+ },+ "decision": {+ "model": "english",+ "reason": "English Latin text",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/lang_only_dot",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Hello there my friend",+ "lang": "."+ },+ "decision": {+ "model": "english",+ "reason": "English Latin text",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/lang_posix_underscore",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "hola",+ "lang": "en_US"+ },+ "decision": {+ "model": "english",+ "reason": "explicit lang='en_US'",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/lang_posix_encoding",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "hola",+ "lang": "en_US.UTF-8"+ },+ "decision": {+ "model": "english",+ "reason": "explicit lang='en_US.UTF-8'",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/lang_en_dot_encoding",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "hola",+ "lang": "en.UTF-8"+ },+ "decision": {+ "model": "english",+ "reason": "explicit lang='en.UTF-8'",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/lang_uppercase_spaces",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "hola",+ "lang": " EN "+ },+ "decision": {+ "model": "english",+ "reason": "explicit lang=' EN '",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/lang_zh_CN",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "hello",+ "lang": "zh_CN"+ },+ "decision": {+ "model": "multilingual",+ "reason": "explicit lang='zh_CN'",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/lang_unknown_code",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "hello",+ "lang": "qq"+ },+ "decision": {+ "model": "multilingual",+ "reason": "explicit lang='qq'",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/lang_quote_in_code",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "hello",+ "lang": "it's"+ },+ "decision": {+ "model": "multilingual",+ "reason": "explicit lang=\"it's\"",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/lang_nonprintable_code",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "hello",+ "lang": "xy"+ },+ "decision": {+ "model": "multilingual",+ "reason": "explicit lang='x\\u200by'",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/lang_beats_lang_guess",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "hello",+ "lang": "en",+ "lang_guess": "ro"+ },+ "decision": {+ "model": "english",+ "reason": "explicit lang='en'",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/lang_blank_then_guess",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "hello",+ "lang": "",+ "lang_guess": "ro"+ },+ "decision": {+ "model": "multilingual",+ "reason": "lang_guess: the caller identified this as non-English text",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/lang_C_then_guess",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "hello",+ "lang": "C",+ "lang_guess": "ro"+ },+ "decision": {+ "model": "multilingual",+ "reason": "lang_guess: the caller identified this as non-English text",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/typed_workflow_beats_lang_guess",+ "router_kwargs": {+ "auto_task_detection": true+ },+ "route_kwargs": {+ "state": "x",+ "questions": {+ "action": {+ "type": "noul",+ "instructions": "x"+ },+ "category": {+ "type": "noul",+ "instructions": "x"+ },+ "churn_risk": {+ "type": "noul",+ "instructions": "x"+ },+ "needs_human": {+ "type": "noul",+ "instructions": "x"+ },+ "urgency": {+ "type": "noul",+ "instructions": "x"+ }+ },+ "lang_guess": "ro"+ },+ "decision": {+ "model": "typed-decisions",+ "reason": "question ids match the 'customer_service' typed-decisions workflow",+ "detection": null,+ "workflow": "customer_service"+ }+ },+ {+ "label": "p0411/task_beats_lang_guess",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "x",+ "task": "typed_decisions",+ "lang_guess": "ro"+ },+ "decision": {+ "model": "typed-decisions",+ "reason": "explicit task='typed_decisions'",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/model_beats_lang_guess",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "x",+ "model": "english",+ "lang_guess": "ro"+ },+ "decision": {+ "model": "english",+ "reason": "explicit model='english'",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/guess_ro",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Care este ora in Tokyo?",+ "lang_guess": "ro"+ },+ "decision": {+ "model": "multilingual",+ "reason": "lang_guess: the caller identified this as non-English text",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/guess_en",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Care este ora in Tokyo?",+ "lang_guess": "en"+ },+ "decision": {+ "model": "english",+ "reason": "lang_guess: the caller identified this as English text",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/guess_en_US",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Care este ora in Tokyo?",+ "lang_guess": "en_US"+ },+ "decision": {+ "model": "english",+ "reason": "lang_guess: the caller identified this as English text",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/guess_en_UTF8",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Care este ora in Tokyo?",+ "lang_guess": "en_US.UTF-8"+ },+ "decision": {+ "model": "english",+ "reason": "lang_guess: the caller identified this as English text",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/guess_de_DE",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Care este ora in Tokyo?",+ "lang_guess": "de-DE"+ },+ "decision": {+ "model": "multilingual",+ "reason": "lang_guess: the caller identified this as non-English text",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/guess_RO_upper",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Care este ora in Tokyo?",+ "lang_guess": "RO"+ },+ "decision": {+ "model": "multilingual",+ "reason": "lang_guess: the caller identified this as non-English text",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/guess_spaces_en",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Care este ora in Tokyo?",+ "lang_guess": " en "+ },+ "decision": {+ "model": "english",+ "reason": "lang_guess: the caller identified this as English text",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/guess_unknown_code",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Care este ora in Tokyo?",+ "lang_guess": "qq"+ },+ "decision": {+ "model": "multilingual",+ "reason": "lang_guess: the caller identified this as non-English text",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/guess_blank_abstains",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Care este ora in Tokyo?",+ "lang_guess": ""+ },+ "decision": {+ "model": "english",+ "reason": "English Latin text",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/guess_spaces_abstain",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Care este ora in Tokyo?",+ "lang_guess": " "+ },+ "decision": {+ "model": "english",+ "reason": "English Latin text",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/guess_C_abstains",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Care este ora in Tokyo?",+ "lang_guess": "C"+ },+ "decision": {+ "model": "english",+ "reason": "English Latin text",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/guess_CUTF8_abstains",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Care este ora in Tokyo?",+ "lang_guess": "C.UTF-8"+ },+ "decision": {+ "model": "english",+ "reason": "English Latin text",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/guess_POSIX_abstains",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Care este ora in Tokyo?",+ "lang_guess": "POSIX"+ },+ "decision": {+ "model": "english",+ "reason": "English Latin text",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/guess_und_abstains",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Hindi मुझसे दो बार",+ "lang_guess": "und"+ },+ "decision": {+ "model": "multilingual",+ "reason": "non-Latin script (devanagari, 55% of letters); the English checkpoint cannot read it",+ "detection": {+ "script": "devanagari",+ "script_profile": {+ "latin": 0.45454545454545453,+ "devanagari": 0.5454545454545454+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.5455,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/guess_dot_abstains",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Care este ora in Tokyo?",+ "lang_guess": "."+ },+ "decision": {+ "model": "english",+ "reason": "English Latin text",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/guess_dot_utf8",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Care este ora in Tokyo?",+ "lang_guess": ".UTF-8"+ },+ "decision": {+ "model": "english",+ "reason": "English Latin text",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/guess_overrides_script",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "二重に請求されました",+ "lang_guess": "en"+ },+ "decision": {+ "model": "english",+ "reason": "lang_guess: the caller identified this as English text",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/guess_overrides_default",+ "router_kwargs": {+ "default": "english"+ },+ "route_kwargs": {+ "state": "",+ "lang_guess": "fr"+ },+ "decision": {+ "model": "multilingual",+ "reason": "lang_guess: the caller identified this as non-English text",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/installed_guess_ro",+ "router_kwargs": {+ "lang_guess": "ro"+ },+ "route_kwargs": {+ "state": "Care este ora in Tokyo?"+ },+ "decision": {+ "model": "multilingual",+ "reason": "Router(lang_guess=...): the caller identified this as non-English text",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/installed_guess_en_script",+ "router_kwargs": {+ "lang_guess": "en"+ },+ "route_kwargs": {+ "state": "二重に請求されました"+ },+ "decision": {+ "model": "english",+ "reason": "Router(lang_guess=...): the caller identified this as English text",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/installed_guess_C_abstains",+ "router_kwargs": {+ "lang_guess": "C"+ },+ "route_kwargs": {+ "state": "Care este ora in Tokyo?"+ },+ "decision": {+ "model": "english",+ "reason": "English Latin text",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/installed_guess_overridden",+ "router_kwargs": {+ "lang_guess": "ro"+ },+ "route_kwargs": {+ "state": "Care este ora in Tokyo?",+ "lang_guess": "en"+ },+ "decision": {+ "model": "english",+ "reason": "lang_guess: the caller identified this as English text",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/installed_guess_after_abstaining_call",+ "router_kwargs": {+ "lang_guess": "ro"+ },+ "route_kwargs": {+ "state": "Care este ora in Tokyo?",+ "lang_guess": "C"+ },+ "decision": {+ "model": "multilingual",+ "reason": "Router(lang_guess=...): the caller identified this as non-English text",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/installed_guess_lang_wins",+ "router_kwargs": {+ "lang_guess": "ro"+ },+ "route_kwargs": {+ "state": "hello",+ "lang": "en"+ },+ "decision": {+ "model": "english",+ "reason": "explicit lang='en'",+ "detection": null,+ "workflow": null+ }+ },+ {+ "label": "p0411/reason_nordic_undecided",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "hej min vän"+ },+ "decision": {+ "model": "multilingual",+ "reason": "Latin script, language not identified but 9% non-English letters; not safe for the English checkpoint",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0909,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/reason_undecided_english_default",+ "router_kwargs": {+ "default": "english"+ },+ "route_kwargs": {+ "state": "Hello"+ },+ "decision": {+ "model": "english",+ "reason": "Latin script, language not identified and no non-English letters; using default (english)",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/reason_undecided_multilingual_default",+ "router_kwargs": {+ "default": "multilingual"+ },+ "route_kwargs": {+ "state": "Hello"+ },+ "decision": {+ "model": "multilingual",+ "reason": "Latin script, language not identified and no non-English letters; using default (multilingual)",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/reason_unknown_default_english",+ "router_kwargs": {+ "default": "english"+ },+ "route_kwargs": {+ "state": "12345"+ },+ "decision": {+ "model": "english",+ "reason": "no letters detected in state; using default (english)",+ "detection": {+ "script": "unknown",+ "script_profile": {},+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/reason_unknown_default_typed",+ "router_kwargs": {+ "default": "typed-decisions"+ },+ "route_kwargs": {+ "state": "12345"+ },+ "decision": {+ "model": "typed-decisions",+ "reason": "no letters detected in state; using default (typed-decisions)",+ "detection": {+ "script": "unknown",+ "script_profile": {},+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/reason_shouted_acronyms",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "MON DES EST LA"+ },+ "decision": {+ "model": "multilingual",+ "reason": "Latin script, language not identified and no non-English letters; using default (multilingual)",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/reason_unidentified_latin",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "žluťoučký kůň úpěl ďábelské ódy"+ },+ "decision": {+ "model": "multilingual",+ "reason": "Latin script, language not identified but 39% non-English letters; not safe for the English checkpoint",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.3871,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/reason_percent_rounding",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "ok ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎ"+ },+ "decision": {+ "model": "multilingual",+ "reason": "non-Latin script (other, 83% of letters); the English checkpoint cannot read it",+ "detection": {+ "script": "other",+ "script_profile": {+ "latin": 0.16666666666666666,+ "other": 0.8333333333333334+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.8333,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/reason_non_latin_promotion",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Please ありがとうありがとうありがとうありがとう"+ },+ "decision": {+ "model": "multilingual",+ "reason": "non-Latin script (kana, 77% of letters); the English checkpoint cannot read it",+ "detection": {+ "script": "kana",+ "script_profile": {+ "latin": 0.23076923076923078,+ "kana": 0.7692307692307693+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.7692,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/mixed_segment_long_line",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Please review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nEu nao consigo entrar na minha conta e depois eu nao sei mais o que fazer com isso tudo."+ },+ "decision": {+ "model": "multilingual",+ "reason": "Latin script, mostly English, but a line or field reads as 'pt' ('Eu nao consigo entrar na minha conta e depois eu nao sei mai'); the English checkpoint cannot read it",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "pt",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": "Eu nao consigo entrar na minha conta e depois eu nao sei mais o que fazer com isso tudo."+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/mixed_segment_quote_char",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Please review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nEu nao consigo entrar na minha conta, don't ask me e depois"+ },+ "decision": {+ "model": "multilingual",+ "reason": "Latin script, mostly English, but a line or field reads as 'pt' (\"Eu nao consigo entrar na minha conta, don't ask me e depois\"); the English checkpoint cannot read it",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "pt",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": "Eu nao consigo entrar na minha conta, don't ask me e depois"+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/mixed_segment_double_quotes",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Please review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nEu nao consigo entrar na \"minha\" conta, don't ask me e depois"+ },+ "decision": {+ "model": "multilingual",+ "reason": "Latin script, mostly English, but a line or field reads as 'pt' ('Eu nao consigo entrar na \"minha\" conta, don\\'t ask me e depoi'); the English checkpoint cannot read it",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "pt",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": "Eu nao consigo entrar na \"minha\" conta, don't ask me e depois"+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/mixed_segment_nonprintable",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Please review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nEu nao consigo entrar na minha\u0007 conta e depois eu nao sei mais o que fazer com isso"+ },+ "decision": {+ "model": "multilingual",+ "reason": "Latin script, mostly English, but a line or field reads as 'pt' ('Eu nao consigo\\u200b entrar na minha\\x07 conta e depois eu nao sei m'); the English checkpoint cannot read it",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "pt",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": "Eu nao consigo entrar na minha\u0007 conta e depois eu nao sei mais o que fazer com isso"+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/mixed_segment_astral",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Please review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nEu nao consigo 😀 entrar na minha conta e depois eu nao sei mais o que fazer com isso tudo"+ },+ "decision": {+ "model": "multilingual",+ "reason": "Latin script, mostly English, but a line or field reads as 'pt' ('Eu nao consigo 😀 entrar na minha conta e depois eu nao sei m'); the English checkpoint cannot read it",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "pt",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": "Eu nao consigo 😀 entrar na minha conta e depois eu nao sei mais o que fazer com isso tudo"+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/mixed_segment_field",+ "router_kwargs": {},+ "route_kwargs": {+ "state": {+ "note": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. ",+ "body": "Quiero cancelar mi pedido por favor ahora"+ }+ },+ "decision": {+ "model": "multilingual",+ "reason": "Latin script, mostly English, but a line or field reads as 'es' ('Quiero cancelar mi pedido por favor ahora'); the English checkpoint cannot read it",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "es",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": "Quiero cancelar mi pedido por favor ahora"+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/mixed_segment_shouted_rejected",+ "router_kwargs": {},+ "route_kwargs": {+ "state": "Please review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nMON DES EST LA"+ },+ "decision": {+ "model": "english",+ "reason": "English Latin text",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "en",+ "is_english": true,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/mixed_segment_customer_default",+ "router_kwargs": {+ "default": "english"+ },+ "route_kwargs": {+ "state": "Please review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nPlease review the error and send me the details of this and what you would like to do.\nEu nao consigo entrar na minha conta e depois eu nao sei mais o que fazer."+ },+ "decision": {+ "model": "multilingual",+ "reason": "Latin script, mostly English, but a line or field reads as 'pt' ('Eu nao consigo entrar na minha conta e depois eu nao sei mai'); the English checkpoint cannot read it",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": "pt",+ "is_english": false,+ "language_undecided": false,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": "Eu nao consigo entrar na minha conta e depois eu nao sei mais o que fazer."+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/leaf_flip_no_mixed_segment",+ "router_kwargs": {},+ "route_kwargs": {+ "state": {+ "note": "Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. Please review the error and send me the details. ",+ "x": "žluťoučký kůň úpěl ďábelské ódy"+ }+ },+ "decision": {+ "model": "multilingual",+ "reason": "Latin script, language not identified but 4% non-English letters; not safe for the English checkpoint",+ "detection": {+ "script": "latin",+ "script_profile": {+ "latin": 1.0+ },+ "language": null,+ "is_english": false,+ "language_undecided": true,+ "diacritic_rate": 0.0433,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/state_none",+ "router_kwargs": {},+ "route_kwargs": {+ "state": null+ },+ "decision": {+ "model": "multilingual",+ "reason": "no letters detected in state; using default (multilingual)",+ "detection": {+ "script": "unknown",+ "script_profile": {},+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/state_number",+ "router_kwargs": {},+ "route_kwargs": {+ "state": 5+ },+ "decision": {+ "model": "multilingual",+ "reason": "no letters detected in state; using default (multilingual)",+ "detection": {+ "script": "unknown",+ "script_profile": {},+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }+ },+ {+ "label": "p0411/state_empty_dict",+ "router_kwargs": {},+ "route_kwargs": {+ "state": {}+ },+ "decision": {+ "model": "multilingual",+ "reason": "no letters detected in state; using default (multilingual)",+ "detection": {+ "script": "unknown",+ "script_profile": {},+ "language": null,+ "is_english": true,+ "language_undecided": true,+ "diacritic_rate": 0.0,+ "non_latin_fraction": 0.0,+ "mixed_segment": null+ },+ "workflow": null+ }}]diff --git a/laya-rust/tests/language_detection_tests.rs b/laya-rust/tests/language_detection_tests.rsindex 6743ef89..4b884e7b 100644--- a/laya-rust/tests/language_detection_tests.rs+++ b/laya-rust/tests/language_detection_tests.rs@@ -241,6 +241,27 @@ fn guess_latin_language_matches_named_cases() {);}+#[test]+fn state_text_spends_the_budget_like_python() {+ // Values from Python lang.state_text: a leaf that ends exactly at the budget gets no+ // trailing space; a leaf that crosses it is cut.+ let exact = json!(["a".repeat(3999), "b"]);+ assert_eq!(+ LanguageDetection::state_text_default(&exact),+ "a".repeat(3999)+ );+ let crossing = json!(["a".repeat(3998), "bb"]);+ assert_eq!(+ LanguageDetection::state_text_default(&crossing),+ format!("{} b", "a".repeat(3998))+ );+ let long_leaf = json!({"x": "a".repeat(4000), "y": "b"});+ assert_eq!(+ LanguageDetection::state_text_default(&long_leaf),+ "a".repeat(4000)+ );+}+#[test]fn state_text_flattens_nested_state() {let dict_state = json!({"body": "charged twice", "n": 3});@@ -448,9 +469,100 @@ fn lang_probe_matches_every_entry() {actual.non_latin_fraction,a["non_latin_fraction"].as_f64().unwrap(),);+ assert_eq!(+ actual.mixed_segment.as_deref(),+ a["mixed_segment"].as_str(),+ "{label}: analyse.mixed_segment"+ );}eprintln!("lang_probe_matches_every_entry: checked {} cases",cases.len());}++// ---------------------------------------------------------------------- 0.4.11 behaviours++#[test]+fn mixed_segment_is_set_only_by_the_segment_scan() {+ let state = json!(+ "Please review the error and send me the details.\nEu nao consigo entrar na minha conta."+ );+ let det = LanguageDetection::analyse(&state);+ assert!(!det.is_english);+ assert_eq!(det.language.as_deref(), Some("pt"));+ assert_eq!(+ det.mixed_segment.as_deref(),+ Some("Eu nao consigo entrar na minha conta.")+ );+ // a value flipped by the per-value read keeps `mixed_segment` unset, as Python does+ let flipped = json!({+ "note": "Please review the error and send me the details. ".repeat(5),+ "x": "žluťoučký kůň úpěl ďábelské ódy",+ });+ let det = LanguageDetection::analyse(&flipped);+ assert!(!det.is_english);+ assert!(det.mixed_segment.is_none());+}++#[test]+fn shouted_acronym_lines_are_not_named_foreign() {+ for text in [+ "MON DES EST LA",+ "STORES LOS ANGELES LAS VEGAS EL PASO CLOSED",+ ] {+ let det = LanguageDetection::analyse(&json!(text));+ assert!(+ det.is_english,+ "{text}: an acronym line is not a foreign sentence"+ );+ assert!(det.language_undecided, "{text}");+ }+ // ...while shouted prose with a long matched stopword, or diacritics, still is+ for (text, lang) in [+ ("EU NAO CONSIGO ENTRAR NA MINHA CONTA", Some("pt")),+ ("ICH HABE MEIN PAKET NOCH NICHT BEKOMMEN", Some("de")),+ ] {+ let det = LanguageDetection::analyse(&json!(text));+ assert!(!det.is_english, "{text}");+ assert_eq!(det.language.as_deref(), lang, "{text}");+ }+ assert!(!LanguageDetection::is_english(&json!(+ "WIE SPÄT IST ES IN KÖLN"+ )));+}++#[test]+fn nordic_swedish_and_english_rescue_rules() {+ assert_eq!(+ LanguageDetection::guess_latin_language("glömt lösenord").as_deref(),+ Some("sv")+ );+ assert_eq!(+ LanguageDetection::guess_latin_language("kan inte logga in").as_deref(),+ Some("sv")+ );+ // a lone Swedish-Danish overlap word has no language but still is not English+ let overlap = LanguageDetection::latin_profile("hej min vän");+ assert_eq!(overlap.language, None);+ assert!(overlap.looks_non_english);+ // one accented loanword does not pull plain English off the English checkpoint+ assert!(LanguageDetection::is_english(&json!(+ "Please send me the café receipt today."+ )));+ assert!(!LanguageDetection::is_english(&json!(+ "ñandú ñandú ñandú the please"+ )));+}++#[test]+fn latin_cutoff_counts_ipa_and_fullwidth_as_latin_and_unclaimed_letters_as_other() {+ assert_eq!(LanguageDetection::detect_script("ABCD"), "latin");+ assert_eq!(LanguageDetection::detect_script("ɐɪɲ"), "latin");+ // modifier letters (U+02B0 and up) are alphabetic but claimed by no range+ assert_eq!(LanguageDetection::detect_script("\u{2b0}\u{2b2}"), "other");+ assert_eq!(LanguageDetection::detect_script("ㄅㄆㄇ"), "other");+ let profile = LanguageDetection::script_profile("ab ㄅㄆ");+ assert!((profile["latin"] - 0.5).abs() < 1e-12);+ assert!((profile["other"] - 0.5).abs() < 1e-12);+}diff --git a/laya-rust/tests/laya_email_tests.rs b/laya-rust/tests/laya_email_tests.rsindex 9513fa6a..3f8c1c77 100644--- a/laya-rust/tests/laya_email_tests.rs+++ b/laya-rust/tests/laya_email_tests.rs@@ -104,10 +104,11 @@ fn email_probe_clean_matches_every_entry() {for case in cases {let label = case["label"].as_str().unwrap();let body = case["body"].as_str().unwrap();- let max_chars = case["max_chars"].as_u64().unwrap() as usize;+ // Signed on purpose: zero and negative budgets are specified behaviour.+ let max_chars = case["max_chars"].as_i64().unwrap();let expected = case["result"].as_str().unwrap();assert_eq!(- LayaEmail::clean_body(body, max_chars),+ LayaEmail::clean_body_signed(body, max_chars),expected,"email_probe/clean/{label}");@@ -131,12 +132,21 @@ fn email_probe_state_matches_every_entry() {let body = case["body"].as_str().unwrap_or("");let sender = case["sender"].as_str();let clean = case["clean"].as_bool().unwrap();+ // `max_chars` is a named parameter of `email_state`, not a state field: it is taken out+ // of `extra` the way Python binds it.+ let max_chars = case["extra"]["max_chars"].as_i64().unwrap_or(3000);let extra: Vec<(String, Value)> = case["extra"].as_object()- .map(|m| m.iter().map(|(k, v)| (k.clone(), v.clone())).collect())+ .map(|m| {+ m.iter()+ .filter(|(k, _)| k.as_str() != "max_chars")+ .map(|(k, v)| (k.clone(), v.clone()))+ .collect()+ }).unwrap_or_default();- let actual = LayaEmail::state(subject, body, sender, clean, extra);+ let actual =+ LayaEmail::state_with_max_chars(subject, body, sender, clean, max_chars, extra);let expected = &case["result"];assert_eq!(&actual, expected, "email_probe/state/{label}");}@@ -145,3 +155,93 @@ fn email_probe_state_matches_every_entry() {cases.len());}++// ---------------------------------------------------------------------- max_chars budget++#[test]+fn unsigned_clean_body_is_the_signed_one() {+ let body = "Please refund the duplicate charge on invoice 4411 today.";+ for budget in [0usize, 1, 10, 3000] {+ assert_eq!(+ LayaEmail::clean_body(body, budget),+ LayaEmail::clean_body_signed(body, budget as i64)+ );+ }+}++#[test]+fn budget_zero_and_negative_follow_python_slicing() {+ // `text[:0]` is empty; a negative budget trims `5 * |n|` from the end (the `4 * |n|` pre-cut,+ // then the final `[:n]` slice).+ assert_eq!(LayaEmail::clean_body_signed("Please refund it.", 0), "");+ assert_eq!(LayaEmail::clean_body_signed("", 0), "");+ let body = "abcdefghij abcdefghij abcdefghij";+ assert_eq!(body.chars().count(), 32);+ assert_eq!(+ LayaEmail::clean_body_signed(body, -1),+ "abcdefghij abcdefghij abcde"+ );+ assert_eq!(LayaEmail::clean_body_signed(body, -7), "");+ assert_eq!(LayaEmail::clean_body_signed(body, i64::MIN), "");+ assert_eq!(LayaEmail::clean_body_signed(body, i64::MAX), body);+}++#[test]+fn state_with_max_chars_budgets_the_body_only_when_cleaning() {+ let body = "My account is locked and I need help right now.";+ let cleaned = LayaEmail::state_with_max_chars("Locked", body, None, true, 10, []);+ assert_eq!(cleaned["body"], "My account");+ let raw = LayaEmail::state_with_max_chars("Locked", body, None, false, 10, []);+ assert_eq!(raw["body"], body);+ let zero = LayaEmail::state_with_max_chars("Locked", body, None, true, 0, []);+ assert_eq!(zero["body"], "");+ assert_eq!(zero["subject"], "Locked");+ // the default entry point keeps the 3000-character budget+ let long = "word ".repeat(1000);+ let state = LayaEmail::state("s", &long, None, true, []);+ assert_eq!(state["body"].as_str().unwrap().chars().count(), 3000);+}++#[test]+fn dated_attribution_needs_a_digit_but_undated_ones_stay_body() {+ let undated = "Preciso de ajuda.\nEm resposta ao que voce escreveu:\nMais detalhes.";+ assert_eq!(+ LayaEmail::clean_body(undated, 3000),+ "Preciso de ajuda.\nEm resposta ao que voce escreveu:\nMais detalhes."+ );+ let dated = "Preciso de ajuda.\nEm 10/09 Joao escreveu:\nOld request.";+ assert_eq!(LayaEmail::clean_body(dated, 3000), "Preciso de ajuda.");+}++#[test]+fn wrapped_attribution_takes_its_dated_head_with_it() {+ let body = "Please refund it.\nOn 10/09 Jane Smith\[email protected]> wrote:\nOld request.";+ assert_eq!(LayaEmail::clean_body(body, 3000), "Please refund it.");+ // an undated head is ordinary body text: only the tail line is cut+ let body = "Please refund it.\nOn the other hand\[email protected]> wrote:\nOld request.";+ assert_eq!(+ LayaEmail::clean_body(body, 3000),+ "Please refund it.\nOn the other hand"+ );+}++#[test]+fn signoff_name_rule_is_judged_per_token() {+ for (line, cut) in [+ ("Regards, Łukasz", true),+ ("Thanks, Anna Maria Lopez", true),+ ("Thanks, Anna Maria Lopez Garcia", false),+ ("Thanks, żaneta needs help", false),+ ("Thanks for the quick reply", false),+ ("Best regards, D'Arcy-Smith", true),+ ("Regards, Jose\u{301}", true),+ ] {+ let body = format!("Please refund it.\n{line}");+ let expected = if cut {+ "Please refund it.".to_string()+ } else {+ body.clone()+ };+ assert_eq!(LayaEmail::clean_body(&body, 3000), expected, "{line:?}");+ }+}diff --git a/laya-rust/tests/laya_router_tests.rs b/laya-rust/tests/laya_router_tests.rsindex 1681cc01..4f9aed53 100644--- a/laya-rust/tests/laya_router_tests.rs+++ b/laya-rust/tests/laya_router_tests.rs@@ -10,7 +10,7 @@ use common::routing_golden;use laya::answers::{LayaResult, Usage};use laya::error::Result;use laya::laya_options::LayaCheckpoint;-use laya::laya_router::{LayaPredictor, LayaRouter, LayaRouterOptions};+use laya::laya_router::{LangGuess, LayaPredictor, LayaRouter, LayaRouterOptions};use laya::questions::QuestionSet;use serde_json::{Value, json};use std::collections::HashMap;@@ -456,7 +456,12 @@ fn router_from_kwargs(kwargs: &Value) -> LayaRouter {// RouteDecision carries; this port's RouteDecision has no `repo` field (see laya_router.rs),// so those two knobs have no observable effect on `model`/`reason`/`detection`/`workflow` and// are intentionally not threaded through here.- LayaRouter::new(options).expect("router construction never fails (preload is off)")+ let router =+ LayaRouter::new(options).expect("router construction never fails (preload is off)");+ match kwargs.get("lang_guess").and_then(Value::as_str) {+ Some(code) => router.with_lang_guess(code),+ None => router,+ }}#[test]@@ -479,8 +484,20 @@ fn route_probe_matches_every_entry() {let task = route_kwargs.get("task").and_then(Value::as_str);let lang = route_kwargs.get("lang").and_then(Value::as_str);+ let lang_guess = route_kwargs+ .get("lang_guess")+ .and_then(Value::as_str)+ .map(LangGuess::from);+let decision = router- .route(state, questions.as_ref(), model, task, lang)+ .route_with_lang_guess(+ state,+ questions.as_ref(),+ model,+ task,+ lang,+ lang_guess.as_ref(),+ ).unwrap_or_else(|e| panic!("{label}: route failed: {e}"));let expected = &case["decision"];@@ -518,6 +535,16 @@ fn route_probe_matches_every_entry() {want["is_english"].as_bool().unwrap(),"{label}: detection.is_english");+ assert_eq!(+ got.mixed_segment.as_deref(),+ want["mixed_segment"].as_str(),+ "{label}: detection.mixed_segment"+ );+ assert_eq!(+ got.language_undecided,+ want["language_undecided"].as_bool().unwrap(),+ "{label}: detection.language_undecided"+ );}(got, want) => {panic!("{label}: detection presence mismatch: got {got:?}, want {want:?}")@@ -529,3 +556,220 @@ fn route_probe_matches_every_entry() {cases.len());}++// ---------------------------------------------------------------------- lang_guess (callbacks)+//+// The golden can only carry string hints; callbacks (a language-identification model) are pinned+// here. Mirrors the callable cases of `tests/test_lang_guess.py`.++const ROMANIAN: &str = "Care este ora in Tokyo?";++fn route_model(router: &LayaRouter, state: &str, guess: Option<&LangGuess>) -> LayaCheckpoint {+ router+ .route_with_lang_guess(&json!(state), None, None, None, None, guess)+ .unwrap()+ .model+}++#[test]+fn lang_guess_callback_code_is_used_and_receives_the_state() {+ let router = LayaRouter::new(LayaRouterOptions::default()).unwrap();+ let to_romanian = LangGuess::callback(|_| Some("ro".to_string()));+ assert_eq!(+ route_model(&router, ROMANIAN, Some(&to_romanian)),+ LayaCheckpoint::Multilingual+ );+ let by_content = LangGuess::callback(|state| {+ Some(+ if state.as_str().is_some_and(|s| s.contains("Tokyo")) {+ "en"+ } else {+ "ro"+ }+ .to_string(),+ )+ });+ assert_eq!(+ route_model(&router, ROMANIAN, Some(&by_content)),+ LayaCheckpoint::English+ );+}++#[test]+fn lang_guess_callback_that_abstains_falls_through_to_detection() {+ let router = LayaRouter::new(LayaRouterOptions::default()).unwrap();+ let baseline = router+ .route(&json!(ROMANIAN), None, None, None, None)+ .unwrap();+ for abstain in [+ LangGuess::callback(|_| None),+ LangGuess::callback(|_| Some(String::new())),+ LangGuess::callback(|_| Some("C".to_string())),+ ] {+ let decision = router+ .route_with_lang_guess(&json!(ROMANIAN), None, None, None, None, Some(&abstain))+ .unwrap();+ assert_eq!(decision.model, baseline.model);+ assert_eq!(decision.reason, baseline.reason);+ assert!(+ decision.detection.is_some(),+ "an abstaining hint must leave detection intact"+ );+ }+}++#[test]+fn installed_lang_guess_applies_to_every_request_and_per_call_overrides_it() {+ let router = LayaRouter::new(LayaRouterOptions::default())+ .unwrap()+ .with_lang_guess("ro");+ assert_eq!(+ route_model(&router, ROMANIAN, None),+ LayaCheckpoint::Multilingual+ );+ let english = LangGuess::from("en");+ assert_eq!(+ route_model(&router, ROMANIAN, Some(&english)),+ LayaCheckpoint::English+ );+ // a per-call hint that abstains leaves the installed one in force+ let abstain = LangGuess::from("POSIX");+ assert_eq!(+ route_model(&router, ROMANIAN, Some(&abstain)),+ LayaCheckpoint::Multilingual+ );+ let decision = router+ .route(&json!(ROMANIAN), None, None, None, None)+ .unwrap();+ assert_eq!(+ decision.reason,+ "Router(lang_guess=...): the caller identified this as non-English text"+ );+ assert!(decision.detection.is_none());+}++#[test]+fn installed_callback_works_and_lang_guess_is_off_by_default() {+ let plain = LayaRouter::new(LayaRouterOptions::default()).unwrap();+ assert_eq!(route_model(&plain, ROMANIAN, None), LayaCheckpoint::English);+ let router = plain.with_lang_guess(LangGuess::callback(|_| Some("ro".into())));+ assert_eq!(+ route_model(&router, ROMANIAN, None),+ LayaCheckpoint::Multilingual+ );+}++#[test]+fn explicit_model_task_and_lang_beat_lang_guess() {+ let router = LayaRouter::new(LayaRouterOptions::default()).unwrap();+ let ro = LangGuess::from("ro");+ let by_model = router+ .route_with_lang_guess(+ &json!(ROMANIAN),+ None,+ Some("english"),+ None,+ None,+ Some(&ro),+ )+ .unwrap();+ assert_eq!(by_model.model, LayaCheckpoint::English);+ let by_task = router+ .route_with_lang_guess(+ &json!(ROMANIAN),+ None,+ None,+ Some("typed_decisions"),+ None,+ Some(&ro),+ )+ .unwrap();+ assert_eq!(by_task.model, LayaCheckpoint::TypedDecisions);+ let by_lang = router+ .route_with_lang_guess(&json!(ROMANIAN), None, None, None, Some("en"), Some(&ro))+ .unwrap();+ assert_eq!(by_lang.model, LayaCheckpoint::English);+ assert_eq!(by_lang.reason, "explicit lang='en'");+}++#[test]+fn lang_guess_is_forwarded_by_predict() {+ let log = Arc::new(Mutex::new(Vec::new()));+ let router = fake_router(2, log).with_lang_guess("ro");+ let questions = noul_question_set(&["a"]);+ let result = router+ .predict(json!(ROMANIAN), &questions, None, None, None)+ .unwrap();+ assert_eq!(result.model(), "multilingual");+ let english = LangGuess::from("en");+ let result = router+ .predict_with_lang_guess(+ json!(ROMANIAN),+ &questions,+ None,+ None,+ None,+ Some(&english),+ )+ .unwrap();+ assert_eq!(result.model(), "english");+}++#[test]+fn blank_and_language_agnostic_lang_codes_fall_through_to_detection() {+ let router = LayaRouter::new(LayaRouterOptions::default()).unwrap();+ for lang in [+ "", " ", "C", "c.utf-8", "POSIX", "und", "zxx", "mul", ".", ".UTF-8",+ ] {+ let decision = router+ .route(+ &json!("Hello there my friend"),+ None,+ None,+ None,+ Some(lang),+ )+ .unwrap();+ assert!(+ decision.detection.is_some(),+ "lang {lang:?} names no language, so detection must decide"+ );+ }+ for (lang, model) in [+ ("en_US.UTF-8", LayaCheckpoint::English),+ ("EN", LayaCheckpoint::English),+ (" english ", LayaCheckpoint::English),+ ("pt-BR", LayaCheckpoint::Multilingual),+ ("qq", LayaCheckpoint::Multilingual),+ ] {+ let decision = router+ .route(&json!("hola"), None, None, None, Some(lang))+ .unwrap();+ assert_eq!(decision.model, model, "lang {lang:?}");+ assert!(decision.detection.is_none());+ }+}++#[test]+fn mixed_segment_reason_truncates_to_sixty_characters() {+ let router = LayaRouter::new(LayaRouterOptions::default()).unwrap();+ // enough English that the whole-state read stays English and the segment scan decides+ let english =+ "Please review the error and send me the details of this and what you would like to do.\n"+ .repeat(6);+ let state = json!(format!(+ "{english}Eu nao consigo entrar na minha conta e depois eu nao sei mais o que fazer."+ ));+ let decision = router.route(&state, None, None, None, None).unwrap();+ assert_eq!(decision.model, LayaCheckpoint::Multilingual);+ let mixed = decision.detection.unwrap().mixed_segment.unwrap();+ assert!(mixed.chars().count() > 60);+ let expected: String = mixed.chars().take(60).collect();+ assert_eq!(+ decision.reason,+ format!(+ "Latin script, mostly English, but a line or field reads as 'pt' ('{expected}'); \+ the English checkpoint cannot read it"+ )+ );+}diff --git a/laya-rust/tools/routing_cases.py b/laya-rust/tools/routing_cases.pyindex a9a3ed34..a944d54a 100644--- a/laya-rust/tools/routing_cases.py+++ b/laya-rust/tools/routing_cases.py@@ -25,6 +25,34 @@ Plus the single source of truth for the combined routing sample's own fixed inpu# not this module's -- these three take plain text, not a full state).LANG_STATES = [+ ("upstream/swedish_short", "glömt lösenord"),+ ("upstream/swedish_login", "kan inte logga in"),+ ("upstream/nordic_overlap", "hej min vän"),+ ("upstream/banglish", "ami amar taka ferot chai"),+ ("upstream/azerbaijani", "mən bu hesab üçün kömək istəyirəm"),+ ("upstream/german_ascii", "ich habe mein paket noch nicht"),+ ("upstream/portuguese_ascii", "eu nao consigo entrar na minha conta"),+ ("upstream/english_loanword", "Please send me the café receipt."),+ ("upstream/repeated_collision", "come come come please send the receipt"),+ ("upstream/identifier_not_prose", "Please check my error at os.path and [email protected]"),+ ("upstream/fullwidth_latin", "ABCD hello"),+ ("upstream/ipa_latin", "ɐɪɲ hello"),+ ("upstream/cjk_brand", "iPhone 用户无法登录账户请帮助"),+ ("upstream/cyrillic_name", "Please send the receipt to Владимир Иванов today"),+ ("upstream/greek_symbol", "Please set α to the correct value"),+ ("upstream/mixed_foreign_line",+ "Please review the error and send me the details.\nEu nao consigo entrar na minha conta."),+ ("upstream/mixed_foreign_field",+ {"note": "Please review the error and send me the details. " * 100,+ "body": "ich habe mein paket noch nicht"}),+ ("upstream/mixed_unknown_latin_field",+ {"note": "Please review the error and send me the details. " * 100,+ "body": "žluťoučký kůň úpěl ďábelské ódy"}),+ ("upstream/mixed_nonlatin_field",+ {"note": "Please review the error and send me the details. " * 100,+ "body": "我的账户无法登录请帮助我"}),+ ("upstream/mixed_code_line",+ "Please review the error and send me the details.\nos.path = nao consigo entrar na minha conta"),# ---- straight from tests/test_router.py SCRIPTS (script detection) ----("script/english", "The customer was charged twice and wants a refund."),("script/armenian", "Հայերեն"),@@ -207,6 +235,126 @@ LANG_STATES = [# ---- English control long enough to stay decisively English despite length ----("long/english_over_1000","Please refund the duplicate charge on invoice 4411 today. " * 20),++ # ---- Python 0.4.11 behaviours neither SDK's upstream corpus pinned ----+ # Nordic / Swedish rules and the short-Swedish branch+ ("p0411/swedish_sentence", "Hej, jag behöver hjälp med min faktura"),+ ("p0411/swedish_ascii", "jag behover hjalp med min faktura"),+ ("p0411/swedish_two_words", "lösenord fel"),+ ("p0411/swedish_one_word", "lösenord"),+ ("p0411/swedish_inte_kan", "kan inte logga in på appen idag"),+ ("p0411/swedish_inte_kan_not_first", "jag vet att kan inte logga in"),+ ("p0411/nordic_overlap_tack", "tack så mycket"),+ ("p0411/nordic_overlap_with_english", "hej please send me the invoice"),+ ("p0411/danish_sentence", "jeg har brug for hjælp til min faktura"),+ ("p0411/norwegian_sentence", "jeg trenger hjelp med fakturaen min"),+ # English function words vs. one accented loanword (English rescue)+ ("p0411/rescue_loanword", "Please send the café menu to the customer today"),+ ("p0411/rescue_two_accents", "Please send the café and the résumé to the customer today"),+ ("p0411/rescue_vetoed_by_rate", "ñandú ñandú ñandú the please"),+ ("p0411/rescue_name", "Please forward this to José and Zoë at the office"),+ ("p0411/rescue_one_english_word", "Der Kunde hat nicht please"),+ # Latin cutoff (U+02B0), fullwidth Latin, modifier letters and unclaimed letters+ ("p0411/modifier_letters", "\u02b0\u02b2\u02b7 hello there"),+ ("p0411/modifier_only", "\u02b0\u02b2\u02b7"),+ ("p0411/ipa_only", "\u0250\u0251\u0252\u0253"),+ ("p0411/fullwidth_only", "HELLO world"),+ ("p0411/bopomofo_only", "ㄅㄆㄇㄈ"),+ ("p0411/halfwidth_katakana", "アイウエオ"),+ ("p0411/cjk_extension_b", "\U00020000\U00020001\U00020002"),+ ("p0411/unclaimed_with_latin", "please help ㄅㄆㄇㄈㄉㄊ today"),+ ("p0411/unclaimed_dominant", "ok ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎ"),+ ("p0411/tie_named_vs_latin", "abc αβγ"),+ ("p0411/tie_two_scripts", "αβγ абв"),+ # non-Latin words: combining classes, single letters, names, punctuation in script ranges+ ("p0411/devanagari_matras", "please call म\u0941 म\u0941 म\u0941 म\u0941 म\u0941 म\u0941 now"),+ ("p0411/devanagari_single_letters", "Please call क ख ग घ ङ च छ ज झ ञ now"),+ ("p0411/devanagari_danda", "Please read this \u0964\u0964\u0964\u0964\u0964\u0964\u0964\u0964\u0964\u0964\u0964\u0964"),+ ("p0411/cyrillic_combining_name", "Please send it to Влади\u0301мир Петро\u0301вич today"),+ ("p0411/cyrillic_lower_word", "Please send it to привет мир today ok"),+ ("p0411/arabic_harakat", "Please read مَرْحَبًا بِكُمْ في الموقع today"),+ ("p0411/thai_tone_marks", "Please read สวัสดีครับ ขอบคุณมาก today"),+ ("p0411/vietnamese_combining", "Xin cha\u0300o, to\u0302i can\u0302 gi\u00fap \u0111\u1ee1 v\u1ec1 ho\u00e1 \u0111\u01a1n"),+ ("p0411/greek_final_sigma", "Please check \u039f\u0394\u03a5\u03a3\u03a3\u0395\u03a5\u03a3 today"),+ ("p0411/non_latin_promotion_min_letters", "ok " + "x" * 80 + " " + "ありがとうございます"),+ ("p0411/non_latin_fraction_edge", "Please " + "я" * 2 + " " + "a" * 8),+ # identifiers, code, compounds+ ("p0411/identifier_domains", "github.com acme.com v1.2.3 la o e un [email protected]"),+ ("p0411/identifier_trailing_dot", "arrivato. la fattura. non e arrivata ancora."),+ ("p0411/identifier_double_dot", "a..b la fattura non arrivata"),+ ("p0411/identifier_leading_at", "@home la fattura non e arrivata ancora"),+ ("p0411/identifier_hyphen", "e-mail la fattura non e arrivata ancora x-y.z"),+ ("p0411/dotted_I", "\u0130stanbul'da bir sorun var ve yard\u0131m istiyorum"),+ ("p0411/dotted_I_english", "I am in \u0130stanbul and please send the receipt"),+ ("p0411/code_line_state", "x = 5 el la los las para que no"),+ ("p0411/call_syntax_state", "foo(bar) para que no el la los"),+ ("p0411/titlecase_digraph", "\u01c5ungla and the please are here"),+ # all-caps (shouted) handling and acronym lines+ ("p0411/shouted_acronyms", "MON DES EST LA"),+ ("p0411/shouted_acronyms_under_english", "Please look at this\nMON DES EST LA"),+ ("p0411/shouted_acronyms_two_english_lines", "Please look at this\nand send me the details.\nMON DES EST LA"),+ ("p0411/shouted_address", "STORES LOS ANGELES LAS VEGAS EL PASO CLOSED"),+ ("p0411/shouted_german_umlaut", "WIE SPÄT IST ES IN KÖLN"),+ ("p0411/shouted_german_ascii", "WIE SPAET IST ES IN KOELN"),+ ("p0411/shouted_portuguese_prose", "EU NAO CONSIGO ENTRAR NA MINHA CONTA"),+ ("p0411/shouted_german_prose", "ICH HABE MEIN PAKET NOCH NICHT BEKOMMEN"),+ ("p0411/shouted_french_prose", "JE VOUDRAIS UN REMBOURSEMENT POUR LA COMMANDE"),+ ("p0411/shouted_cyrillic_acronyms", "ПРИВЕТ MON DES EST LA"),+ ("p0411/emphasis_german", "sag mir das HEUTIGE DATUM"),+ ("p0411/emphasis_spanish", "quiero cancelar mi PEDIDO POR FAVOR"),+ ("p0411/emphasis_acronym_mixed", "quero cancelar o pedido MON DES EST LA por favor"),+ ("p0411/emphasis_long_run", "please cancel the order and send a REFUND for it"),+ ("p0411/caseless_with_caps", "ありがとう MON DES EST LA"),+ ("p0411/hindi_caps", "मुझे MON DES EST LA चाहिए"),+ ("p0411/shouted_english", "PLEASE SEND ME THE RECEIPT FOR THE ORDER"),+ # segment scan: field/line boundaries, 4000-character cap, code lines, shouted segments+ ("p0411/segment_after_cap",+ "Please review the error and send me the details.\n" * 100 + "Eu nao consigo entrar na minha conta."),+ ("p0411/segment_within_cap",+ "Please review the error and send me the details.\n" * 10 + "Eu nao consigo entrar na minha conta."),+ ("p0411/segment_shouted_foreign",+ "Please review the error and send me the details.\nEU NAO CONSIGO ENTRAR NA MINHA CONTA"),+ ("p0411/segment_acronym_line",+ "Please review the error and send me the details.\nMON DES EST LA"),+ ("p0411/segment_joined_tokens",+ "Please review the error and send me the details.\nNav/Com OS/2 ESA/UN C:\\DOS\\mode radio listing"),+ ("p0411/segment_two_same_word",+ "Please review the error and send me the details.\ncom com com com com com"),+ ("p0411/segment_call_syntax",+ "Please review the error and send me the details.\nround(el, 2) para que no tengo el"),+ ("p0411/segment_list_state",+ ["Please review the error and send me the details.", "Quiero cancelar mi pedido por favor ahora mismo"]),+ ("p0411/segment_nested_dict",+ {"ticket": {"note": "Please review the error and send me the details. " * 3,+ "customer": {"msg": "ich habe mein paket noch nicht bekommen"}}}),+ ("p0411/segment_too_deep",+ {"a": {"b": {"c": {"d": {"e": {"f": {"g": "ich habe mein paket noch nicht bekommen"}}}}}},+ "n": "Please review the error and send me the details. " * 3}),+ ("p0411/segment_unicode_strip", "Please review the error and send me the details.\n\u00a0\u00a0Eu nao consigo entrar na minha conta.\u00a0"),+ # leaf scan: names, short values, other scripts, diacritics without a named language+ ("p0411/leaf_name_field", {"note": "Please review the error and send me the details. " * 5, "name": "José"}),+ ("p0411/leaf_short_value", {"note": "Please review the error and send me the details. " * 5, "x": "žluť"}),+ ("p0411/leaf_nonlatin_short", {"note": "Please review the error and send me the details. " * 5, "x": "你好吗"}),+ ("p0411/leaf_nonlatin_ten", {"note": "Please review the error and send me the details. " * 5, "x": "我的账户无法登录请帮助我吧"}),+ ("p0411/leaf_cyrillic_name", {"note": "Please review the error and send me the details. " * 5, "x": "Дмитрий Петрович Савицкий"}),+ ("p0411/leaf_code_value", {"note": "Please review the error and send me the details. " * 5, "x": "x = żółć żółć żółć żółć"}),+ ("p0411/leaf_diacritics_four_words", {"note": "Please review the error and send me the details. " * 5, "x": "żółć gęślą jaźń łódź"}),+ ("p0411/leaf_two_candidates",+ {"note": "Please review the error and send me the details. " * 5,+ "a": "Quiero cancelar mi pedido por favor",+ "b": "Ich habe mein Paket noch nicht bekommen und möchte es zurück"}),+ ("p0411/leaf_shouted_foreign",+ {"note": "Please review the error and send me the details. " * 5, "x": "EU NAO CONSIGO ENTRAR NA MINHA CONTA"}),+ ("p0411/leaf_shouted_acronyms",+ {"note": "Please review the error and send me the details. " * 5, "x": "MON DES EST LA"}),+ ("p0411/leaf_number_and_none", {"n": 5, "m": None, "t": True, "s": "Please review the error and send me the details."}),+ ("p0411/leaf_long_second_field",+ {"a": "Please review the error and send me the details. " * 100, "b": "Quiero cancelar mi pedido por favor ahora mismo"}),+ ("p0411/empty_string", ""),+ ("p0411/whitespace_only", " \n\t "),+ ("p0411/digits_only", "12345 67890"),+ ("p0411/state_text_cap_multibyte", "ç" * 4100),+ ("p0411/roman_numerals", "Ⅳ Ⅴ Ⅵ Ⅶ please"),]@@ -233,7 +381,12 @@ def _td_questions(ids):return {i: {"type": "noul", "instructions": "x"} for i in ids}+_ENG6 = "Please review the error and send me the details of this and what you would like to do.\n" * 6+ROUTE_CASES = [+ ("upstream/undetermined_latin_custom_default", {"default": "multilingual"}, {"state": "Hello"}),+ ("upstream/mixed_foreign_line", {}, {"state":+ "Please review the error and send me the details.\nEu nao consigo entrar na minha conta."}),# ---- default router, precedence ladder ----("english_text", {}, {"state": {"body": "I was charged twice, please refund."}, "questions": Q_GENERIC}),("armenian_text", {}, {"state": {"body": "Հայերեն"}, "questions": Q_GENERIC}),@@ -336,6 +489,90 @@ ROUTE_CASES = [("payload_shape_hindi", {}, {"state": {"body": "मुझसे दो बार शुल्क लिया गया"}, "questions": Q_GENERIC}),("payload_shape_armenian_non_latin_percent", {}, {"state": "Հայերեն abc"}),("payload_shape_unidentified_latin_percent", {}, {"state": "Müşteriden iki kez ücret alındı ve para iadesi istiyor"}),++ # ---- Python 0.4.11 behaviours neither SDK's upstream corpus pinned ----+ # codes that name no language fall through to detection (_english_from_code)+ ("p0411/lang_blank", {}, {"state": "Hello there", "lang": ""}),+ ("p0411/lang_blank_foreign_text", {}, {"state": "Hindi मुझसे दो बार शुल्क लिया गया", "lang": " "}),+ ("p0411/lang_C", {}, {"state": "Hello there my friend", "lang": "C"}),+ ("p0411/lang_C_UTF8", {}, {"state": "Hello there my friend", "lang": "C.UTF-8"}),+ ("p0411/lang_POSIX", {}, {"state": "二重に請求されました", "lang": "POSIX"}),+ ("p0411/lang_und", {}, {"state": "Hello there my friend", "lang": "und"}),+ ("p0411/lang_zxx", {}, {"state": "Hello there my friend", "lang": "zxx"}),+ ("p0411/lang_mul", {}, {"state": "Hello there my friend", "lang": "mul"}),+ ("p0411/lang_only_dot", {}, {"state": "Hello there my friend", "lang": "."}),+ ("p0411/lang_posix_underscore", {}, {"state": "hola", "lang": "en_US"}),+ ("p0411/lang_posix_encoding", {}, {"state": "hola", "lang": "en_US.UTF-8"}),+ ("p0411/lang_en_dot_encoding", {}, {"state": "hola", "lang": "en.UTF-8"}),+ ("p0411/lang_uppercase_spaces", {}, {"state": "hola", "lang": " EN "}),+ ("p0411/lang_zh_CN", {}, {"state": "hello", "lang": "zh_CN"}),+ ("p0411/lang_unknown_code", {}, {"state": "hello", "lang": "qq"}),+ ("p0411/lang_quote_in_code", {}, {"state": "hello", "lang": "it's"}),+ ("p0411/lang_nonprintable_code", {}, {"state": "hello", "lang": "x\u200by"}),+ ("p0411/lang_beats_lang_guess", {}, {"state": "hello", "lang": "en", "lang_guess": "ro"}),+ ("p0411/lang_blank_then_guess", {}, {"state": "hello", "lang": "", "lang_guess": "ro"}),+ ("p0411/lang_C_then_guess", {}, {"state": "hello", "lang": "C", "lang_guess": "ro"}),+ ("p0411/typed_workflow_beats_lang_guess",+ {"auto_task_detection": True}, {"state": "x", "questions": {i: {"type": "noul", "instructions": "x"} for i in _TD_IDS["customer_service"]}, "lang_guess": "ro"}),+ ("p0411/task_beats_lang_guess", {}, {"state": "x", "task": "typed_decisions", "lang_guess": "ro"}),+ ("p0411/model_beats_lang_guess", {}, {"state": "x", "model": "english", "lang_guess": "ro"}),+ # lang_guess: per-call and installed on the Router+ ("p0411/guess_ro", {}, {"state": "Care este ora in Tokyo?", "lang_guess": "ro"}),+ ("p0411/guess_en", {}, {"state": "Care este ora in Tokyo?", "lang_guess": "en"}),+ ("p0411/guess_en_US", {}, {"state": "Care este ora in Tokyo?", "lang_guess": "en_US"}),+ ("p0411/guess_en_UTF8", {}, {"state": "Care este ora in Tokyo?", "lang_guess": "en_US.UTF-8"}),+ ("p0411/guess_de_DE", {}, {"state": "Care este ora in Tokyo?", "lang_guess": "de-DE"}),+ ("p0411/guess_RO_upper", {}, {"state": "Care este ora in Tokyo?", "lang_guess": "RO"}),+ ("p0411/guess_spaces_en", {}, {"state": "Care este ora in Tokyo?", "lang_guess": " en "}),+ ("p0411/guess_unknown_code", {}, {"state": "Care este ora in Tokyo?", "lang_guess": "qq"}),+ ("p0411/guess_blank_abstains", {}, {"state": "Care este ora in Tokyo?", "lang_guess": ""}),+ ("p0411/guess_spaces_abstain", {}, {"state": "Care este ora in Tokyo?", "lang_guess": " "}),+ ("p0411/guess_C_abstains", {}, {"state": "Care este ora in Tokyo?", "lang_guess": "C"}),+ ("p0411/guess_CUTF8_abstains", {}, {"state": "Care este ora in Tokyo?", "lang_guess": "C.UTF-8"}),+ ("p0411/guess_POSIX_abstains", {}, {"state": "Care este ora in Tokyo?", "lang_guess": "POSIX"}),+ ("p0411/guess_und_abstains", {}, {"state": "Hindi मुझसे दो बार", "lang_guess": "und"}),+ ("p0411/guess_dot_abstains", {}, {"state": "Care este ora in Tokyo?", "lang_guess": "."}),+ ("p0411/guess_dot_utf8", {}, {"state": "Care este ora in Tokyo?", "lang_guess": ".UTF-8"}),+ ("p0411/guess_overrides_script", {}, {"state": "二重に請求されました", "lang_guess": "en"}),+ ("p0411/guess_overrides_default", {"default": "english"}, {"state": "", "lang_guess": "fr"}),+ ("p0411/installed_guess_ro", {"lang_guess": "ro"}, {"state": "Care este ora in Tokyo?"}),+ ("p0411/installed_guess_en_script", {"lang_guess": "en"}, {"state": "二重に請求されました"}),+ ("p0411/installed_guess_C_abstains", {"lang_guess": "C"}, {"state": "Care este ora in Tokyo?"}),+ ("p0411/installed_guess_overridden", {"lang_guess": "ro"}, {"state": "Care este ora in Tokyo?", "lang_guess": "en"}),+ ("p0411/installed_guess_after_abstaining_call",+ {"lang_guess": "ro"}, {"state": "Care este ora in Tokyo?", "lang_guess": "C"}),+ ("p0411/installed_guess_lang_wins", {"lang_guess": "ro"}, {"state": "hello", "lang": "en"}),+ # detection reasons+ ("p0411/reason_nordic_undecided", {}, {"state": "hej min vän"}),+ ("p0411/reason_undecided_english_default", {"default": "english"}, {"state": "Hello"}),+ ("p0411/reason_undecided_multilingual_default", {"default": "multilingual"}, {"state": "Hello"}),+ ("p0411/reason_unknown_default_english", {"default": "english"}, {"state": "12345"}),+ ("p0411/reason_unknown_default_typed", {"default": "typed-decisions"}, {"state": "12345"}),+ ("p0411/reason_shouted_acronyms", {}, {"state": "MON DES EST LA"}),+ ("p0411/reason_unidentified_latin", {}, {"state": "žluťoučký kůň úpěl ďábelské ódy"}),+ ("p0411/reason_percent_rounding", {}, {"state": "ok ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎ"}),+ ("p0411/reason_non_latin_promotion", {}, {"state": "Please " + "ありがとう" * 4}),+ ("p0411/mixed_segment_long_line",+ {}, {"state": _ENG6 + "Eu nao consigo entrar na minha conta " + "e depois eu nao sei mais o que fazer com isso tudo."}),+ ("p0411/mixed_segment_quote_char",+ {}, {"state": _ENG6 + "Eu nao consigo entrar na minha conta, don't ask me e depois"}),+ ("p0411/mixed_segment_double_quotes",+ {}, {"state": _ENG6 + "Eu nao consigo entrar na \"minha\" conta, don't ask me e depois"}),+ ("p0411/mixed_segment_nonprintable",+ {}, {"state": _ENG6 + "Eu nao consigo\u200b entrar na minha\u0007 conta e depois eu nao sei mais o que fazer com isso"}),+ ("p0411/mixed_segment_astral",+ {}, {"state": _ENG6 + "Eu nao consigo \U0001f600 entrar na minha conta e depois eu nao sei mais o que fazer com isso tudo"}),+ ("p0411/mixed_segment_field",+ {}, {"state": {"note": "Please review the error and send me the details. " * 10, "body": "Quiero cancelar mi pedido por favor ahora"}}),+ ("p0411/mixed_segment_shouted_rejected",+ {}, {"state": _ENG6 + "MON DES EST LA"}),+ ("p0411/mixed_segment_customer_default",+ {"default": "english"}, {"state": _ENG6 + "Eu nao consigo entrar na minha conta e depois eu nao sei mais o que fazer."}),+ ("p0411/leaf_flip_no_mixed_segment",+ {}, {"state": {"note": "Please review the error and send me the details. " * 5, "x": "žluťoučký kůň úpěl ďábelské ódy"}}),+ ("p0411/state_none", {}, {"state": None}),+ ("p0411/state_number", {}, {"state": 5}),+ ("p0411/state_empty_dict", {}, {"state": {}}),]@@ -344,6 +581,32 @@ ROUTE_CASES = [_DISCLAIMER_TEXT = "This email is confidential and intended solely for the named addressee."EMAIL_CLEAN_CASES = [+ ("upstream/confidential_request", "Confidential: I need a refund.", 3000),+ ("upstream/from_prose", "Hello.\nFrom: my side the integration works, but please refund it.", 3000),+ ("upstream/from_header", "Please refund it.\nFrom: Jane Smith\nSent: Monday\nOld request.", 3000),+ ("upstream/thanks_prose", "Hello.\nThanks for the quick reply, but I need a refund.", 3000),+ ("upstream/english_signoff", "Please refund it.\nWarmest regards, Łukasz", 3000),+ ("upstream/lowercase_name_is_prose", "Please refund it.\nThanks, żaneta needs help.", 3000),+ ("upstream/marked_name", "Please refund it.\nRegards, Jose\u0301", 3000),+ ("upstream/astral_signoff_name", "Please refund it.\nRegards, \U00010400\U00010428", 3000),+ ("upstream/unattached_mark", "Please refund it.\nRegards, \u0301Jose", 3000),+ ("upstream/portuguese_quote", "Preciso de ajuda.\nEm 10/09 João escreveu:\nOld request.", 3000),+ ("upstream/spanish_quote", "Necesito ayuda.\nEl 10/09 Juan escribió:\nOld request.", 3000),+ ("upstream/french_quote", "Je demande un remboursement.\nLe 10/09 Jean a écrit :\nOld request.", 3000),+ ("upstream/wrapped_attribution",+ "Please refund it.\nOn 10/09 Jane Smith\[email protected]> wrote:\nOld request.", 3000),+ ("upstream/french_signoff", "Je demande un remboursement.\nCordialement,\nMarie", 3000),+ ("upstream/portuguese_signoff", "Preciso de ajuda.\nAtenciosamente,\nMaria", 3000),+ ("upstream/spanish_signoff", "Necesito ayuda.\nSaludos cordiales,\nJuan", 3000),+ ("upstream/device_footer", "Please refund it.\nSent from my Samsung Galaxy.", 3000),+ ("upstream/device_mention_prose", "Please refund it.\nSent from my iPhone yesterday to support.", 3000),+ ("upstream/french_disclaimer",+ "Je demande un remboursement.\n\nCe message est confidentiel et réservé au destinataire.", 3000),+ ("upstream/french_device_footer", "Merci de rembourser la facture.\n\nEnvoyé depuis mon iPhone", 3000),+ ("upstream/french_device_footer_de_mon", "Merci de rembourser la facture.\n\nEnvoyé de mon iPad.", 3000),+ ("upstream/french_device_footer_no_possessive", "Merci de rembourser la facture.\n\nEnvoyé depuis Outlook", 3000),+ ("upstream/french_device_mention_prose",+ "Bonjour,\nEnvoyé depuis mon iPhone par erreur.\nMerci de rembourser la facture.", 3000),# ---- straight from tests/test_email.py ----("inline_footer_no_blank_line", "My account is locked.\n%s\nPlease unlock it." % _DISCLAIMER_TEXT, 3000),("inline_footer_no_terminal_punctuation", "My account is locked\n%s\nPlease unlock it." % _DISCLAIMER_TEXT, 3000),@@ -450,6 +713,165 @@ EMAIL_CLEAN_CASES = ["On Tue, Sep 22, 2026 at 9:14 AM, Support <[email protected]> wrote:\n""> Hi Priya, thanks for reaching out, we are looking into it.\n""> - Support Team\n", 3000),++ # ---- Python 0.4.11 behaviours neither SDK's upstream corpus pinned ----+ # max_chars: budget, zero, negative, and the max_chars * 4 pre-cut+ ("p0411/budget_default_cut", "word " * 1000, 3000),+ ("p0411/budget_small", "Please refund the duplicate charge on invoice 4411 today.", 10),+ ("p0411/budget_one", "Hello", 1),+ ("p0411/budget_zero", "Please refund it.", 0),+ ("p0411/budget_zero_empty_body", "", 0),+ ("p0411/budget_negative_one", "Please refund it today and thanks for the help.", -1),+ ("p0411/budget_negative_ten", "Please refund it today and thanks for the help with the invoice.", -10),+ ("p0411/budget_negative_beyond_body", "Please refund it.", -100),+ ("p0411/budget_larger_than_body", "Please refund it.", 100000),+ ("p0411/budget_pre_cut_hides_footer",+ "Request line.\n" + ("filler line that is not a footer.\n" * 3) + "\n\nThis email is confidential and intended solely for the named addressee.",+ 25),+ ("p0411/budget_pre_cut_hides_quote",+ "Short request.\nMore detail here.\nOn Mon, Jan 1, 2024 at 9:00 AM Jane <[email protected]> wrote:\nOld text.", 12),+ ("p0411/budget_pre_cut_multibyte", "退款请求 " * 40, 30),+ ("p0411/budget_boundary_exact", "abcde", 5),+ ("p0411/budget_negative_multiline", "line one\nline two\nline three\nline four", -2),+ # quote headers+ ("p0411/quote_first_line_kept", "On Mon, Jan 1, 2024 Jane wrote:\nPlease refund it.", 3000),+ ("p0411/quote_en_wrote", "Please refund it.\nOn Mon, Jan 1, 2024 at 9:00 AM Jane <[email protected]> wrote:\nOld request.", 3000),+ ("p0411/quote_en_wrote_trailing_space", "Please refund it.\nON TUE, SEP 22 JANE WROTE: \nOld request.", 3000),+ ("p0411/quote_pt_no_date_is_body", "Preciso de ajuda.\nEm resposta ao que você escreveu:\nMais detalhes aqui.", 3000),+ ("p0411/quote_pt_date", "Preciso de ajuda.\nEm 10/09/2024 às 10:00, João escreveu:\nOld request.", 3000),+ ("p0411/quote_pt_unicode_digits", "Preciso de ajuda.\nEm ١٠/٠٩ João escreveu:\nOld request.", 3000),+ ("p0411/quote_es_no_date_is_body", "Necesito ayuda.\nComo usted escribió:\nEl resto del texto.", 3000),+ ("p0411/quote_es_no_date_el", "Necesito ayuda.\nEl cliente que escribió:\nEl resto del texto.", 3000),+ ("p0411/quote_es_date_ascii_o", "Necesito ayuda.\nEl 10/09 Juan escribio:\nOld request.", 3000),+ ("p0411/quote_fr_no_date_is_body", "Je demande de l'aide.\nLe rapport que vous avez écrit :\nLe reste du texte.", 3000),+ ("p0411/quote_fr_no_space_before_colon", "Je demande de l'aide.\nLe 10/09 Jean a écrit:\nOld request.", 3000),+ ("p0411/quote_fr_ecrit_ascii", "Je demande de l'aide.\nLe 10/09 Jean a ecrit :\nOld request.", 3000),+ ("p0411/quote_original_message", "Please refund it.\n-----Original Message-----\nOld request.", 3000),+ ("p0411/quote_forwarded_message", "Please refund it.\n---- Forwarded Message ----\nOld request.", 3000),+ ("p0411/quote_mensagem_original", "Preciso de ajuda.\n-----Mensagem original-----\nOld request.", 3000),+ ("p0411/quote_mensagem_encaminhada", "Preciso de ajuda.\n----- Mensagem encaminhada -----\nOld request.", 3000),+ ("p0411/quote_mensaje_original", "Necesito ayuda.\n-----Mensaje original-----\nOld request.", 3000),+ ("p0411/quote_mensaje_reenviado", "Necesito ayuda.\n-----Mensaje reenviado-----\nOld request.", 3000),+ ("p0411/quote_message_d_origine", "Je demande de l'aide.\n-----Message d'origine-----\nOld request.", 3000),+ ("p0411/quote_underscores", "Please refund it.\n________\nOld request.", 3000),+ ("p0411/quote_underscores_seven", "Please refund it.\n_______\nStill here.", 3000),+ ("p0411/quote_from_address", "Please refund it.\nFrom: Jane <[email protected]>\nOld request.", 3000),+ ("p0411/quote_from_prose_with_at", "Please refund it.\nFrom: the desk at 5pm we meet\nStill here.", 3000),+ ("p0411/quote_de_address", "Preciso de ajuda.\nDe: Maria <[email protected]>\nOld request.", 3000),+ ("p0411/quote_de_french_spaced", "Je demande de l'aide.\nDe : Marie <[email protected]>\nOld request.", 3000),+ ("p0411/quote_de_dates_is_body", "Quero folga.\nDe: 10/09 a 15/09\nPara: 20/09\nObrigada.", 3000),+ ("p0411/quote_de_name_enviado", "Preciso de ajuda.\nDe: Maria Souza\nEnviado: segunda-feira\nOld request.", 3000),+ ("p0411/quote_de_name_enviada_em", "Preciso de ajuda.\nDe: Maria Souza\nEnviada em: segunda\nOld request.", 3000),+ ("p0411/quote_de_name_fecha", "Necesito ayuda.\nDe: Maria Souza\nFecha: 10 de septiembre de 2024\nOld request.", 3000),+ ("p0411/quote_de_name_data_no_year", "Preciso de ajuda.\nDe: Maria Souza\nData: 10/09\nStill here.", 3000),+ ("p0411/quote_de_name_para_only", "Quero folga.\nDe: 10/09\nPara: 15/09\nObrigada.", 3000),+ ("p0411/quote_de_french_envoye", "Je demande de l'aide.\nDe : Marie Dupont\nEnvoyé : lundi 10 septembre\nOld request.", 3000),+ ("p0411/quote_from_name_date", "Please refund it.\nFrom: Jane Smith\nDate: Mon, 10 Sep 2018 10:00\nOld request.", 3000),+ ("p0411/quote_from_name_last_line", "Please refund it.\nFrom: Jane Smith", 3000),+ ("p0411/quote_from_name_first_line", "From: Jane Smith\nSent: Monday\nOld request.", 3000),+ ("p0411/quote_gt_lines_dropped", "Please refund it.\n> quoted one\n > quoted two\nStill mine.", 3000),+ ("p0411/quote_attribution_tail_en", "Please refund it.\nOn Mon, 10/09/2018, Jane Smith\[email protected]> wrote:\nOld request.", 3000),+ ("p0411/quote_attribution_tail_pt", "Preciso de ajuda.\nEm 10/09/2018, Fulano de Tal\[email protected]> escreveu:\nOld request.", 3000),+ ("p0411/quote_attribution_tail_es", "Necesito ayuda.\nEl 10/09/2018, Fulano de Tal\[email protected]> escribió:\nOld request.", 3000),+ ("p0411/quote_attribution_tail_fr", "Je demande de l'aide.\nLe 10/09/2018, Fulano\[email protected]> a écrit :\nOld request.", 3000),+ ("p0411/quote_attribution_tail_no_head_date", "Please refund it.\nOn the other hand\[email protected]> wrote:\nOld request.", 3000),+ ("p0411/quote_attribution_tail_unrelated_head", "Please refund it.\nWith thanks 10/09\[email protected]> wrote:\nOld request.", 3000),+ ("p0411/quote_attribution_tail_first_line", "[email protected]> wrote:\nOld request.", 3000),+ ("p0411/quote_attribution_tail_too_long", "Please refund it.\nOn 10/09\n" + "x" * 130 + "@y.com> wrote:\nOld request.", 3000),+ ("p0411/quote_crlf", "Please refund it.\r\nOn Mon, Jan 1, 2024 Jane wrote:\r\nOld request.", 3000),+ ("p0411/quote_lone_cr", "Please refund it.\rOn Mon, Jan 1, 2024 Jane wrote:\rOld request.", 3000),+ ("p0411/quote_literal_backslash_n", "Please refund it.\\nOn Mon, Jan 1, 2024 Jane wrote:\\nOld request.", 3000),+ # signatures+ ("p0411/sig_dashes", "Line one.\nLine two.\nLine three.\nLine four.\nLine five.\n--\nJohn Smith\nCEO", 3000),+ ("p0411/sig_dashes_trailing_space", "Line one.\nLine two.\nLine three.\nLine four.\nLine five.\n-- \nJohn Smith", 3000),+ ("p0411/sig_best_regards", "Please refund it.\nBest regards,\nJohn Smith", 3000),+ ("p0411/sig_kind_regards_name", "Please refund it.\nKind regards, John", 3000),+ ("p0411/sig_thanks_and_regards", "Please refund it.\nThanks and regards, José", 3000),+ ("p0411/sig_thanks_ampersand_regards", "Please refund it.\nThanks & regards,\nJosé", 3000),+ ("p0411/sig_warmest_wishes", "Please refund it.\nWarmest wishes, Pat", 3000),+ ("p0411/sig_many_thanks_in_advance", "Please refund it.\nMany thanks in advance!", 3000),+ ("p0411/sig_thank_you_so_much", "Please refund it.\nThank you so much, Priya Sharma", 3000),+ ("p0411/sig_three_name_tokens", "Please refund it.\nThanks, Anna Maria Lopez", 3000),+ ("p0411/sig_four_name_tokens_is_prose", "Please refund it.\nThanks, Anna Maria Lopez Garcia", 3000),+ ("p0411/sig_thanks_for_is_prose", "Please refund it.\nThanks for the quick reply", 3000),+ ("p0411/sig_thanks_digits", "Please refund it.\nThanks, Anna 2", 3000),+ ("p0411/sig_apostrophe_hyphen_name", "Please refund it.\nRegards, D'Arcy-Smith", 3000),+ ("p0411/sig_lowercase_name_is_prose", "Please refund it.\nThanks, anna", 3000),+ ("p0411/sig_caseless_name", "Please refund it.\nRegards, 山田", 3000),+ ("p0411/sig_cyrillic_name", "Please refund it.\nSincerely, Дмитрий", 3000),+ ("p0411/sig_name_with_semicolon_is_prose", "Please refund it.\nThanks; Anna", 3000),+ ("p0411/sig_cheers_bang", "Please refund it.\nCheers!!", 3000),+ ("p0411/sig_too_long_is_not_cut", "Please refund it.\nBest regards, " + "Averyveryverylongnamethatgoes", 3000),+ ("p0411/sig_pt_atenciosamente", "Preciso de ajuda.\nAtenciosamente,\nMaria", 3000),+ ("p0411/sig_pt_att", "Preciso de ajuda.\nAtt.\nMaria", 3000),+ ("p0411/sig_pt_abraco", "Preciso de ajuda.\nAbraços!\nMaria", 3000),+ ("p0411/sig_pt_um_abraco", "Preciso de ajuda.\nUm abraço\nMaria", 3000),+ ("p0411/sig_pt_obrigado_desde_ja", "Preciso de ajuda.\nObrigado desde já!\nMaria", 3000),+ ("p0411/sig_pt_muito_obrigada_atencao", "Preciso de ajuda.\nMuito obrigada pela atenção.\nMaria", 3000),+ ("p0411/sig_pt_obrigado_request_is_prose", "Preciso de ajuda.\nObrigado pelo retorno, mas ainda preciso do boleto.", 3000),+ ("p0411/sig_pt_cumprimentos", "Preciso de ajuda.\nCom os melhores cumprimentos,\nMaria", 3000),+ ("p0411/sig_es_saludos_cordiales", "Necesito ayuda.\nSaludos cordiales,\nJuan", 3000),+ ("p0411/sig_es_un_saludo", "Necesito ayuda.\nUn saludo\nJuan", 3000),+ ("p0411/sig_es_gracias_de_antemano", "Necesito ayuda.\nMuchas gracias de antemano.\nJuan", 3000),+ ("p0411/sig_es_atentamente", "Necesito ayuda.\nAtentamente,\nJuan", 3000),+ ("p0411/sig_fr_cordialement", "Je demande de l'aide.\nCordialement,\nMarie", 3000),+ ("p0411/sig_fr_bien_cordialement", "Je demande de l'aide.\nBien cordialement\nMarie", 3000),+ ("p0411/sig_fr_salutations_distinguees", "Je demande de l'aide.\nSalutations distinguées,\nMarie", 3000),+ ("p0411/sig_fr_bien_a_vous", "Je demande de l'aide.\nBien à vous\nMarie", 3000),+ ("p0411/sig_fr_merci_d_avance", "Je demande de l'aide.\nMerci d'avance !\nMarie", 3000),+ ("p0411/sig_fr_bonne_journee", "Je demande de l'aide.\nBonne journée.\nMarie", 3000),+ ("p0411/sig_fr_merci_request_is_prose", "Je demande de l'aide.\nMerci pour votre aide, mais il reste un problème.", 3000),+ ("p0411/sig_scan_starts_late",+ "Cheers,\nJohn\n" + "\n".join("Body line %d." % i for i in range(12)), 3000),+ ("p0411/sig_scan_window_ten_lines",+ "\n".join("Body line %d." % i for i in range(5)) + "\nThanks,\n" + "\n".join("More %d." % i for i in range(4)), 3000),+ ("p0411/sig_in_short_body_first_line_never_cut", "Thanks,\nPlease refund it.", 3000),+ ("p0411/sig_longer_than_forty_is_not_cut",+ "Line one.\nLine two.\nLine three.\nLine four.\nLine five.\nRegards, Someone With A Very Long Name Indeed Yes", 3000),+ # device footers+ ("p0411/device_sent_from_iphone", "Please refund it.\nSent from my iPhone", 3000),+ ("p0411/device_sent_from_galaxy", "Please refund it.\nSent from my Samsung Galaxy S21 Ultra 5G.", 3000),+ ("p0411/device_sent_from_using", "Please refund it.\nSent from Outlook using mail-client_1.2", 3000),+ ("p0411/device_samsung_pt", "Preciso de ajuda.\nEnviado do meu smartphone Samsung Galaxy.", 3000),+ ("p0411/device_pt_celular_request", "Preciso de ajuda.\nEnviado do meu celular o comprovante ontem.", 3000),+ ("p0411/device_get_outlook_ios", "Please refund it.\nGet Outlook for iOS", 3000),+ ("p0411/device_obter_outlook_android", "Preciso de ajuda.\nObter o Outlook para Android", 3000),+ ("p0411/device_fr_iphone", "Je demande de l'aide.\nEnvoyé depuis mon iPhone", 3000),+ ("p0411/device_fr_de_ipad", "Je demande de l'aide.\nEnvoyé de mon iPad.", 3000),+ ("p0411/device_fr_mentioned_in_prose", "Bonjour,\nEnvoyé depuis mon iPhone par erreur.\nMerci de rembourser la facture.", 3000),+ ("p0411/device_es_movil", "Necesito ayuda.\nEnviado desde mi móvil", 3000),+ ("p0411/device_pt_mi", "Preciso de ajuda.\nEnviado via mi Android", 3000),+ ("p0411/device_longer_than_sixty", "Please refund it.\nSent from my iPhone " + "phone " * 12, 3000),+ # disclaimers+ ("p0411/disclaimer_en_standard", "Please refund it.\n\n" + _DISCLAIMER_TEXT, 3000),+ ("p0411/disclaimer_en_wrapped", "Please refund it.\n\nThis email and its contents are\nconfidential and intended solely for the addressee.", 3000),+ ("p0411/disclaimer_en_privileged", "Please refund it.\n\nThis information is confidential and may be privileged.", 3000),+ ("p0411/disclaimer_en_received_in_error", "Please refund it.\n\nIf you have received this email in error please delete it.", 3000),+ ("p0411/disclaimer_en_question_is_body", "Is this confidential?", 3000),+ ("p0411/disclaimer_en_fused_lines", "My account is locked\nThis email is confidential and intended solely for the addressee.", 3000),+ ("p0411/disclaimer_en_inline", "My account is locked. This email is confidential and intended solely for the addressee. Please help me.", 3000),+ ("p0411/disclaimer_pt", "Preciso de ajuda.\n\nEsta mensagem é confidencial e destinada exclusivamente ao destinatário.", 3000),+ ("p0411/disclaimer_pt_request_confidencial", "Preciso do contrato confidencial.", 3000),+ ("p0411/disclaimer_pt_print", "Preciso de ajuda.\n\nAntes de imprimir, pense no meio ambiente.", 3000),+ ("p0411/disclaimer_pt_print_request", "Antes de imprimir o boleto, confira o valor.", 3000),+ ("p0411/disclaimer_pt_ambiente_first", "Preciso de ajuda.\n\nPense no meio ambiente antes de imprimir.", 3000),+ ("p0411/disclaimer_pt_recebeu_engano", "Preciso de ajuda.\n\nSe você recebeu esta mensagem por engano, apague-a.", 3000),+ ("p0411/disclaimer_es", "Necesito ayuda.\n\nEste mensaje es confidencial y de uso exclusivo del destinatario.", 3000),+ ("p0411/disclaimer_es_recibido_error", "Necesito ayuda.\n\nSi ha recibido este mensaje por error, bórrelo.", 3000),+ ("p0411/disclaimer_fr", "Je demande de l'aide.\n\nCe message est confidentiel et réservé au destinataire.", 3000),+ ("p0411/disclaimer_fr_recu_erreur", "Je demande de l'aide.\n\nSi vous avez reçu ce message par erreur, supprimez-le.", 3000),+ ("p0411/disclaimer_fr_request_confidentiel", "Je veux le contrat confidentiel.", 3000),+ ("p0411/disclaimer_fr_usage_exclusif", "Je demande de l'aide.\n\nUsage exclusif du destinataire.", 3000),+ ("p0411/disclaimer_mixed_paragraph", "Please help me. The email is confidential and intended solely for you. Thanks!", 3000),+ ("p0411/disclaimer_uppercase_split", "Locked out\nThis email is confidential and intended solely for you.\nMore text.", 3000),+ ("p0411/disclaimer_caseless_wrapped", "退款请求\n\n这封邮件是机密的 This email is\nconfidential and intended solely for you.", 3000),+ ("p0411/disclaimer_sentence_split_ws", "Hello there.\u2003\u2003This email is confidential and intended solely for you. Bye!", 3000),+ ("p0411/whitespace_collapse", "Please refund\t\tit.\n\n\n\nThanks a lot", 3000),+ ("p0411/empty_body", "", 3000),+ ("p0411/only_quoted", "> a\n> b", 3000),+ ("p0411/only_whitespace", " \n\t\n ", 3000),+ ("p0411/unit_separator_blank_line", "First\n\x1f\nSecond", 3000),+ ("p0411/unicode_whitespace_line", "First\n\u00a0\nSecond\n\u2003\n\nThird", 3000),]EMAIL_STATE_CASES = [@@ -462,6 +884,21 @@ EMAIL_STATE_CASES = [("extra_none_values_dropped", "Ticket", "Body text.", None, True, {"nullable": None, "kept": "value"}),("empty_subject_and_body", "", "", None, True, {}),("hindi_subject_and_body", "सहायता चाहिए", "मुझसे दो बार शुल्क लिया गया, कृपया रिफंड करें।", None, True, {}),+ # ---- Python 0.4.11 behaviours neither SDK's upstream corpus pinned ----+ ("p0411/max_chars_extra_small", "Locked out", "My account is locked and I need help right now.", None, True, {"max_chars": 10}),+ ("p0411/max_chars_extra_zero", "Locked out", "My account is locked.", None, True, {"max_chars": 0}),+ ("p0411/max_chars_extra_negative", "Locked out", "My account is locked and I need help right now.", None, True, {"max_chars": -5}),+ ("p0411/max_chars_extra_large", "Locked out", "My account is locked. " * 400, None, True, {"max_chars": 100000}),+ ("p0411/max_chars_default_cut", "Locked out", "My account is locked. " * 400, None, True, {}),+ ("p0411/max_chars_ignored_when_not_clean", "Locked out", "My account is locked and I need help right now.", None, False, {"max_chars": 5}),+ ("p0411/max_chars_with_other_extra", "Locked out", "My account is locked and I need help.", "[email protected]", True, {"max_chars": 7, "priority": "high"}),+ ("p0411/sender_empty_dropped", "Locked out", "My account is locked.", "", True, {}),+ ("p0411/extra_overrides_from", "Locked out", "My account is locked.", "[email protected]", True, {"from": "[email protected]"}),+ ("p0411/extra_non_string_values", "Locked out", "My account is locked.", None, True, {"n": 1, "f": 1.5, "b": False, "l": [1, "x"], "d": {"k": "v"}}),+ ("p0411/subject_none_like_empty", "", "My account is locked.", None, True, {}),+ ("p0411/subject_unicode_whitespace", "\u00a0 Locked out \u2003", "My account is locked.", None, True, {}),+ ("p0411/state_quote_cleaned", "Locked out", "Please unlock it.\nOn Mon, Jan 1, 2024 Jane wrote:\nOld text.", None, True, {}),+ ("p0411/state_unclean_keeps_quote", "Locked out", "Please unlock it.\nOn Mon, Jan 1, 2024 Jane wrote:\nOld text.", None, False, {}),]