// Generated by scripts/build_web_data.py from src/arabic_ner_validator/data/codes.json. Do not edit. export const CODES = { "E001": { "severity": "error", "title_en": "Offset out of range", "title_ar": "موضع خارج النص", "messages": { "start": { "en": "The start offset ({start}) is outside the text, which has {limit} {unit} units.", "ar": "موضع البداية ({start}) خارج النص، وطول النص {limit} من وحدات {unit}." }, "end": { "en": "The end offset ({end}) is outside the text, which has {limit} {unit} units.", "ar": "موضع النهاية ({end}) خارج النص، وطول النص {limit} من وحدات {unit}." }, "both": { "en": "Both offsets ({start}, {end}) are outside the text, which has {limit} {unit} units.", "ar": "الموضعان ({start}، {end}) خارج النص، وطول النص {limit} من وحدات {unit}." } } }, "E002": { "severity": "error", "title_en": "Empty, zero-length or reversed span", "title_ar": "امتداد فارغ أو بطول صفر أو معكوس", "messages": { "zero_length": { "en": "The span has zero length (start equals end).", "ar": "طول الامتداد صفر (البداية تساوي النهاية)." }, "reversed": { "en": "The span is reversed: the start offset is after the end offset.", "ar": "الامتداد معكوس: موضع البداية بعد موضع النهاية." }, "no_content": { "en": "The span contains no letter or digit.", "ar": "لا يحتوي الامتداد على أي حرف أو رقم." } } }, "E003": { "severity": "error", "title_en": "Span text differs from the text at the offsets", "title_ar": "نص الامتداد يخالف النص عند المواضع", "messages": { "default": { "en": "The span text does not match the text between the offsets.", "ar": "نص الامتداد لا يطابق النص الواقع بين الموضعين." } } }, "E004": { "severity": "error", "title_en": "Span edge inside a grapheme cluster", "title_ar": "حد الامتداد داخل عنقود كتابي", "messages": { "start": { "en": "The span starts inside a grapheme cluster, for example between a letter and its haraka, shadda or combining hamza.", "ar": "يبدأ الامتداد داخل عنقود كتابي، كأن يقع بين الحرف وحركته أو شدّته أو همزته المركّبة." }, "end": { "en": "The span ends inside a grapheme cluster, for example between a letter and its haraka, shadda or combining hamza.", "ar": "ينتهي الامتداد داخل عنقود كتابي، كأن يقع بين الحرف وحركته أو شدّته أو همزته المركّبة." }, "both": { "en": "Both span edges fall inside grapheme clusters.", "ar": "حدّا الامتداد كلاهما داخل عنقودين كتابيين." } } }, "E005": { "severity": "error", "title_en": "Overlapping spans", "title_ar": "امتدادات متداخلة", "messages": { "crossing": { "en": "Span {span} crosses span {other}: they overlap but neither contains the other.", "ar": "الامتداد {span} يتقاطع مع الامتداد {other}: يتداخلان دون أن يحتوي أحدهما الآخر." }, "duplicate": { "en": "Span {span} repeats span {other} with the same offsets and label.", "ar": "الامتداد {span} يكرر الامتداد {other} بالمواضع والوسم نفسيهما." } } }, "E006": { "severity": "error", "title_en": "Nested span while nesting is forbidden", "title_ar": "امتداد متداخل مع أن التداخل ممنوع", "messages": { "nested": { "en": "Span {span} lies inside span {other}, and nested_policy is forbid.", "ar": "الامتداد {span} يقع داخل الامتداد {other}، وسياسة التداخل nested_policy هي forbid." }, "same_extent": { "en": "Span {span} has the same offsets as span {other} with another label, and nested_policy is forbid.", "ar": "للامتداد {span} مواضع الامتداد {other} نفسها بوسم آخر، وسياسة التداخل nested_policy هي forbid." } } }, "E007": { "severity": "error", "title_en": "Span edge inside a word or token", "title_ar": "حد الامتداد داخل كلمة أو وحدة", "messages": { "start": { "en": "The span starts inside a word.", "ar": "يبدأ الامتداد داخل كلمة." }, "end": { "en": "The span ends inside a word.", "ar": "ينتهي الامتداد داخل كلمة." }, "both": { "en": "Both span edges fall inside words.", "ar": "حدّا الامتداد كلاهما داخل كلمات." }, "start_token": { "en": "The span starts inside a token.", "ar": "يبدأ الامتداد داخل وحدة (token)." }, "end_token": { "en": "The span ends inside a token.", "ar": "ينتهي الامتداد داخل وحدة (token)." }, "both_token": { "en": "Both span edges fall inside tokens.", "ar": "حدّا الامتداد كلاهما داخل وحدات (tokens)." } } }, "E008": { "severity": "error", "title_en": "Clitic policy violation", "title_ar": "مخالفة سياسة السوابق المتصلة", "messages": { "clitic_excluded": { "en": "clitic_policy is include, but the span leaves out the proclitic attached to the start of the word.", "ar": "سياسة السوابق clitic_policy هي include، لكن الامتداد يستثني السابقة المتصلة بأول الكلمة." }, "clitic_included": { "en": "clitic_policy is exclude, but the span starts with a conjunction or preposition attached to the name.", "ar": "سياسة السوابق clitic_policy هي exclude، لكن الامتداد يبدأ بحرف عطف أو جر متصل بالاسم." }, "article_excluded": { "en": "clitic_policy is exclude, which keeps the definite article with the name, but the span also leaves out the article.", "ar": "سياسة السوابق clitic_policy هي exclude، وهي تُبقي أداة التعريف مع الاسم، لكن الامتداد يستثني أداة التعريف أيضًا." }, "article_split": { "en": "The span starts inside the definite article, between its alef and its lam.", "ar": "يبدأ الامتداد داخل أداة التعريف، بين ألفها ولامها." } } }, "E009": { "severity": "error", "title_en": "Invalid tag or tag transition", "title_ar": "وسم أو انتقال وسوم غير صالح", "messages": { "malformed": { "en": "Token {token}: the tag {tag} cannot be read as O or PREFIX-LABEL.", "ar": "الوحدة {token}: لا يمكن قراءة الوسم {tag} بصيغة O أو PREFIX-LABEL." }, "bad_prefix": { "en": "Token {token}: the tag {tag} uses a prefix that {scheme} does not have.", "ar": "الوحدة {token}: الوسم {tag} يستعمل بادئة لا يعرفها مخطط {scheme}." }, "transition": { "en": "Token {token}: the tag {tag} cannot follow {prev} in {scheme}.", "ar": "الوحدة {token}: لا يجوز أن يلي الوسمُ {tag} الوسمَ {prev} في مخطط {scheme}." }, "unfinished": { "en": "Token {token}: the entity opened by {prev} is not closed before {tag} in {scheme}.", "ar": "الوحدة {token}: الكيان الذي بدأ بالوسم {prev} لم يُغلق قبل {tag} في مخطط {scheme}." } } }, "E010": { "severity": "error", "title_en": "Label not in the label set", "title_ar": "وسم خارج قائمة الوسوم", "messages": { "default": { "en": "The label {label} is not in label_set.", "ar": "الوسم {label} ليس في قائمة الوسوم label_set." } } }, "E011": { "severity": "error", "title_en": "Normalisation drift", "title_ar": "انزياح بسبب التطبيع", "messages": { "offsets_on_normalized": { "en": "The offsets fit the text after {policy}, not the text as given.", "ar": "تطابق المواضع النص بعد {policy}، لا النص كما هو." }, "span_text_form": { "en": "The offsets fit, but the span text differs from the text in its normalisation ({policy}).", "ar": "المواضع صحيحة، لكن نص الامتداد يختلف عن النص في التطبيع ({policy})." }, "relocated": { "en": "The span text matches the text only after {policy}, and at other offsets.", "ar": "لا يطابق نص الامتداد النص إلا بعد {policy}، وعند مواضع أخرى." }, "declared_form": { "en": "normalization_declared is {policy}, but the text is not in {policy}.", "ar": "قيمة normalization_declared هي {policy}، لكن النص ليس بصيغة {policy}." }, "ambiguous": { "en": "Several readings fit this span ({policy}); it is left as an error with no suggestion.", "ar": "تتطابق مع هذا الامتداد عدة قراءات ({policy})؛ يبقى خطأً بلا اقتراح." } } }, "E012": { "severity": "error", "title_en": "Bidi or zero-width control at a span edge", "title_ar": "محرف تحكم اتجاهي أو صفري العرض عند حد الامتداد", "messages": { "start": { "en": "The span starts with an invisible control character ({char}).", "ar": "يبدأ الامتداد بمحرف تحكم غير مرئي ({char})." }, "end": { "en": "The span ends with an invisible control character ({char}).", "ar": "ينتهي الامتداد بمحرف تحكم غير مرئي ({char})." }, "both": { "en": "Both span edges carry invisible control characters ({char}).", "ar": "عند حدّي الامتداد محارف تحكم غير مرئية ({char})." }, "span_text": { "en": "The span text carries an invisible control character ({char}) at an edge that the offsets leave out.", "ar": "يحمل نص الامتداد محرف تحكم غير مرئي ({char}) عند أحد حدّيه لا تشمله المواضع." } } }, "E013": { "severity": "error", "title_en": "Line-break shift (CRLF vs LF)", "title_ar": "انزياح بسبب فواصل الأسطر (CRLF وLF)", "messages": { "offsets_lf": { "en": "The offsets fit if each CRLF line break is counted as one character.", "ar": "تتطابق المواضع إذا عُدّ كل فاصل أسطر CRLF محرفًا واحدًا." }, "offsets_crlf": { "en": "The offsets fit if each LF line break is counted as two characters (CRLF).", "ar": "تتطابق المواضع إذا عُدّ كل فاصل أسطر LF محرفين (CRLF)." }, "span_text_form": { "en": "The offsets fit, but the span text and the text use different line breaks.", "ar": "المواضع صحيحة، لكن نص الامتداد والنص يستعملان فواصل أسطر مختلفة." }, "ambiguous": { "en": "Several readings fit this span ({policy}); it is left as an error with no suggestion.", "ar": "تتطابق مع هذا الامتداد عدة قراءات ({policy})؛ يبقى خطأً بلا اقتراح." } } }, "E014": { "severity": "error", "title_en": "Offset unit mismatch", "title_ar": "عدم تطابق وحدة المواضع", "messages": { "default": { "en": "The offsets fit if they are read as {unit_found} instead of {unit} (the declared unit).", "ar": "تتطابق المواضع إذا قُرئت بوحدة {unit_found} بدلًا من {unit} (الوحدة المعلنة)." }, "ambiguous": { "en": "Several readings fit this span ({unit_found}); it is left as an error with no suggestion.", "ar": "تتطابق مع هذا الامتداد عدة قراءات ({unit_found})؛ يبقى خطأً بلا اقتراح." } } }, "E015": { "severity": "error", "title_en": "Offset not on a character boundary", "title_ar": "موضع لا يقع على حد محرف", "messages": { "start": { "en": "The start offset falls inside one character in {unit} units (inside a UTF-8 byte sequence or a UTF-16 surrogate pair).", "ar": "يقع موضع البداية داخل محرف واحد بوحدات {unit} (داخل تسلسل بايتات UTF-8 أو زوج بديل في UTF-16)." }, "end": { "en": "The end offset falls inside one character in {unit} units (inside a UTF-8 byte sequence or a UTF-16 surrogate pair).", "ar": "يقع موضع النهاية داخل محرف واحد بوحدات {unit} (داخل تسلسل بايتات UTF-8 أو زوج بديل في UTF-16)." }, "both": { "en": "Both offsets fall inside characters in {unit} units.", "ar": "يقع الموضعان كلاهما داخل محارف بوحدات {unit}." } } }, "E016": { "severity": "error", "title_en": "Span edge between joined Arabic and Latin letters", "title_ar": "حد الامتداد بين حروف عربية ولاتينية متصلة", "messages": { "start": { "en": "The span starts where Arabic and Latin letters are joined in one word with no space.", "ar": "يبدأ الامتداد حيث تتصل حروف عربية ولاتينية في كلمة واحدة بلا مسافة." }, "end": { "en": "The span ends where Arabic and Latin letters are joined in one word with no space.", "ar": "ينتهي الامتداد حيث تتصل حروف عربية ولاتينية في كلمة واحدة بلا مسافة." }, "both": { "en": "Both span edges fall where Arabic and Latin letters are joined.", "ar": "حدّا الامتداد كلاهما حيث تتصل حروف عربية ولاتينية." } } }, "E017": { "severity": "error", "title_en": "Input is not valid UTF-8", "title_ar": "المدخلات ليست UTF-8 صالحًا", "messages": { "default": { "en": "The input is not valid UTF-8; the first invalid byte is at byte {byte}.", "ar": "المدخلات ليست UTF-8 صالحًا؛ أول بايت غير صالح عند البايت {byte}." } } }, "E018": { "severity": "error", "title_en": "Byte order mark", "title_ar": "علامة ترتيب البايتات (BOM)", "messages": { "file": { "en": "The file starts with a UTF-8 byte order mark (EF BB BF).", "ar": "يبدأ الملف بعلامة ترتيب البايتات UTF-8 (EF BB BF)." }, "text": { "en": "The text starts with U+FEFF (a byte order mark kept as a character).", "ar": "يبدأ النص بالمحرف U+FEFF (علامة ترتيب بايتات بقيت محرفًا)." }, "offsets_without_bom": { "en": "The offsets fit if the U+FEFF at the start of the text is not counted.", "ar": "تتطابق المواضع إذا لم يُعدّ المحرف U+FEFF في أول النص." }, "offsets_with_bom": { "en": "The offsets fit if a byte order mark before the text is counted.", "ar": "تتطابق المواضع إذا عُدّت علامة ترتيب بايتات قبل النص." }, "ambiguous": { "en": "Several readings fit this span ({policy}); it is left as an error with no suggestion.", "ar": "تتطابق مع هذا الامتداد عدة قراءات ({policy})؛ يبقى خطأً بلا اقتراح." } } }, "E019": { "severity": "error", "title_en": "Offset unit not declared", "title_ar": "وحدة المواضع غير معلنة", "messages": { "default": { "en": "offset_unit is not declared, so the record was not checked. {hint}", "ar": "لم تُعلن وحدة المواضع offset_unit، فلم يُفحص السجل. {hint}" } } }, "E020": { "severity": "error", "title_en": "Input does not follow the input contract", "title_ar": "المدخلات لا تتبع عقد الإدخال", "messages": { "default": { "en": "The record does not follow the input contract at {path}: {problem}.", "ar": "السجل لا يتبع عقد الإدخال عند {path}: {problem}." } } }, "W101": { "severity": "warning", "title_en": "Whitespace at a span edge", "title_ar": "مسافة عند حد الامتداد", "messages": { "start": { "en": "The span starts with whitespace.", "ar": "يبدأ الامتداد بمسافة." }, "end": { "en": "The span ends with whitespace.", "ar": "ينتهي الامتداد بمسافة." }, "both": { "en": "Both span edges carry whitespace.", "ar": "عند حدّي الامتداد مسافات." }, "span_text": { "en": "The span text carries whitespace at an edge that the offsets leave out.", "ar": "يحمل نص الامتداد مسافة عند أحد حدّيه لا تشملها المواضع." } } }, "W102": { "severity": "warning", "title_en": "Punctuation at a span edge", "title_ar": "علامة ترقيم عند حد الامتداد", "messages": { "start": { "en": "The span starts with punctuation ({char}).", "ar": "يبدأ الامتداد بعلامة ترقيم ({char})." }, "end": { "en": "The span ends with punctuation ({char}).", "ar": "ينتهي الامتداد بعلامة ترقيم ({char})." }, "both": { "en": "Both span edges carry punctuation ({char}).", "ar": "عند حدّي الامتداد علامات ترقيم ({char})." }, "span_text": { "en": "The span text carries punctuation ({char}) at an edge that the offsets leave out.", "ar": "يحمل نص الامتداد علامة ترقيم ({char}) عند أحد حدّيه لا تشملها المواضع." } } }, "I201": { "severity": "info", "title_en": "Characters outside the Basic Multilingual Plane", "title_ar": "محارف خارج المستوى المتعدد اللغات الأساسي", "messages": { "default": { "en": "Characters outside the BMP (emoji, for example) in the text: {n}. After them, UTF-16 and code point offsets differ.", "ar": "عدد المحارف خارج المستوى الأساسي (كالرموز التعبيرية) في النص: {n}. بعدها تختلف مواضع UTF-16 عن مواضع نقاط الترميز." } } }, "I202": { "severity": "info", "title_en": "Text changes length under normalisation", "title_ar": "يتغير طول النص بالتطبيع", "messages": { "default": { "en": "The text changes length under {forms}; a tool that normalises it counts characters differently.", "ar": "يتغير طول النص بتطبيق {forms}؛ والأداة التي تطبّعه تعدّ المحارف بطريقة مختلفة." } } }, "I203": { "severity": "info", "title_en": "Offset unit hint", "title_ar": "تلميح عن وحدة المواضع", "messages": { "default": { "en": "{hint}", "ar": "{hint_ar}" } } }, "I204": { "severity": "info", "title_en": "Clitic boundary with no declared policy", "title_ar": "حد سابقة متصلة دون سياسة معلنة", "messages": { "default": { "en": "The span starts after a proclitic or the article inside the word; set clitic_policy to include or exclude to check this.", "ar": "يبدأ الامتداد بعد سابقة أو أداة تعريف داخل الكلمة؛ اضبط clitic_policy على include أو exclude لفحص ذلك." } } }, "I205": { "severity": "info", "title_en": "Tagging scheme not declared", "title_ar": "مخطط الوسوم غير معلن", "messages": { "default": { "en": "No scheme was declared; the tags were read as {scheme} from the prefixes they use.", "ar": "لم يُعلن مخطط الوسوم؛ فقُرئت الوسوم على أنها {scheme} بحسب البادئات المستعملة." } } } };