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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
// 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} بحسب البادئات المستعملة."
   }
  }
 }
};