Rogaton Claude commited on
Commit
a3c80bb
·
1 Parent(s): 29d3269

Add comprehensive Bohairic dialect examples

Browse files

Rescue Bohairic examples from the gutters of oblivion:

**Bohairic Simple Sentences** (5 examples):
- ⲟⲩⲟϩ ⲁϥⲙⲟⲩϯ ⲉⲣⲟϥ - and he called him
- ⲁⲛⲟⲕ ⲡⲉ ⲫϯ ⲛⲧⲉ ⲡⲉⲕⲓⲱⲧ - I am the God of your father
- ⲙⲡⲉⲣⲉⲣϩⲟϯ - Do not be afraid
- ⲡϭⲟⲓⲥ ⲡⲉ ⲡⲁⲛⲟⲩϯ - The Lord is my God
- ⲁϥϣⲉⲛⲁϥ ⲉⲡϣⲱⲓ ⲉⲡⲓⲉⲣⲫⲉⲓ - he went up to the temple

**Bohairic Complex Sentences** (2 examples):
- ⲟⲩⲟϩ ⲉⲧⲁϥⲛⲁⲩ ⲉⲡⲓⲙⲏϣ ⲁϥϣⲉⲛϩⲏⲧ ϧⲁⲣⲱⲟⲩ - when he saw the crowd
- ⲡϭⲟⲓⲥ ⲡⲉⲧⲁⲙⲟⲛⲓ - The Lord is my shepherd (Psalm 23:1)

**Bohairic Full Text** (1 example):
- Healing at the pool narrative (Bohairic version)

**UI Organization**:
- Sahidic section (Literary Standard) with all examples
- Bohairic section (Northern/Liturgical) with dialectal variants
- Clear labeling showing dialectal differences
- Examples properly tagged with correct dialect for translation

Notable Bohairic features demonstrated:
- ⲟⲩⲟϩ vs ⲁⲩⲱ (and)
- ⲫϯ vs ⲡⲛⲟⲩⲧⲉ (God)
- ⲡϭⲟⲓⲥ vs ⲡϫⲟⲉⲓⲥ (Lord)
- ⲙⲡⲉⲣ- vs ⲙⲡⲣ- (negative imperative)
- ϧⲉⲛ vs ϩⲙ (in/within)

Users can now test both major Coptic dialects!

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +56 -8
app.py CHANGED
@@ -164,6 +164,7 @@ def load_test_corpus():
164
  return None
165
 
166
  # Example texts organized by category
 
167
  COPTIC_EXAMPLES_SIMPLE = [
168
  ["ⲁⲩⲱ ⲁϥⲙⲟⲩⲧⲉ ⲉⲣⲟϥ", "Sahidic"], # and he called him
169
  ["ⲁⲛⲟⲕ ⲡⲉ ⲡⲛⲟⲩⲧⲉ ⲙⲡⲉⲕⲉⲓⲱⲧ", "Sahidic"], # I am the God of your father
@@ -183,6 +184,24 @@ COPTIC_EXAMPLES_TEXTS = [
183
  ["ⲉⲓⲥ ⲡⲉⲧϫⲟ ⲁϥⲉⲓ ⲉⲃⲟⲗ ⲉϫⲟ· ⲁⲩⲱ ⲛⲧⲉⲣⲉϥϫⲟ ϩⲟⲓⲛⲉ ⲙⲉⲛ ⲁⲩϩⲉ ϩⲁⲧⲏ ⲧⲉϩⲓⲏ·", "Sahidic"], # The Sower parable
184
  ]
185
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
186
  ENGLISH_EXAMPLES = [
187
  ["The Lord is good", "Sahidic"],
188
  ["I am a teacher", "Sahidic"],
@@ -258,11 +277,7 @@ with gr.Blocks(title="Coptic Translation Interface", theme=gr.themes.Soft()) as
258
  )
259
 
260
  with gr.Accordion("📖 Example Texts", open=True):
261
- example_category = gr.Radio(
262
- choices=["Simple Sentences", "Complex Sentences", "Full Texts"],
263
- value="Simple Sentences",
264
- label="Example Category"
265
- )
266
 
267
  gr.Markdown("**Simple Sentences**: Basic grammatical structures")
268
  gr.Examples(
@@ -271,7 +286,7 @@ with gr.Blocks(title="Coptic Translation Interface", theme=gr.themes.Soft()) as
271
  outputs=cop_output,
272
  fn=translate_coptic_to_english,
273
  cache_examples=False,
274
- label="Simple"
275
  )
276
 
277
  gr.Markdown("**Complex Sentences**: Multi-clause with subordination")
@@ -281,7 +296,7 @@ with gr.Blocks(title="Coptic Translation Interface", theme=gr.themes.Soft()) as
281
  outputs=cop_output,
282
  fn=translate_coptic_to_english,
283
  cache_examples=False,
284
- label="Complex"
285
  )
286
 
287
  gr.Markdown("**Full Texts**: Connected discourse (paragraphs)")
@@ -291,7 +306,40 @@ with gr.Blocks(title="Coptic Translation Interface", theme=gr.themes.Soft()) as
291
  outputs=cop_output,
292
  fn=translate_coptic_to_english,
293
  cache_examples=False,
294
- label="Texts"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
295
  )
296
 
297
  cop_translate_btn.click(
 
164
  return None
165
 
166
  # Example texts organized by category
167
+ # SAHIDIC EXAMPLES
168
  COPTIC_EXAMPLES_SIMPLE = [
169
  ["ⲁⲩⲱ ⲁϥⲙⲟⲩⲧⲉ ⲉⲣⲟϥ", "Sahidic"], # and he called him
170
  ["ⲁⲛⲟⲕ ⲡⲉ ⲡⲛⲟⲩⲧⲉ ⲙⲡⲉⲕⲉⲓⲱⲧ", "Sahidic"], # I am the God of your father
 
184
  ["ⲉⲓⲥ ⲡⲉⲧϫⲟ ⲁϥⲉⲓ ⲉⲃⲟⲗ ⲉϫⲟ· ⲁⲩⲱ ⲛⲧⲉⲣⲉϥϫⲟ ϩⲟⲓⲛⲉ ⲙⲉⲛ ⲁⲩϩⲉ ϩⲁⲧⲏ ⲧⲉϩⲓⲏ·", "Sahidic"], # The Sower parable
185
  ]
186
 
187
+ # BOHAIRIC EXAMPLES
188
+ BOHAIRIC_EXAMPLES_SIMPLE = [
189
+ ["ⲟⲩⲟϩ ⲁϥⲙⲟⲩϯ ⲉⲣⲟϥ", "Bohairic"], # and he called him
190
+ ["ⲁⲛⲟⲕ ⲡⲉ ⲫϯ ⲛⲧⲉ ⲡⲉⲕⲓⲱⲧ", "Bohairic"], # I am the God of your father
191
+ ["ⲙⲡⲉⲣⲉⲣϩⲟϯ", "Bohairic"], # Do not be afraid
192
+ ["ⲡϭⲟⲓⲥ ⲡⲉ ⲡⲁⲛⲟⲩϯ", "Bohairic"], # The Lord is my God
193
+ ["ⲁϥϣⲉⲛⲁϥ ⲉⲡϣⲱⲓ ⲉⲡⲓⲉⲣⲫⲉⲓ", "Bohairic"], # he went up to the temple
194
+ ]
195
+
196
+ BOHAIRIC_EXAMPLES_COMPLEX = [
197
+ ["ⲟⲩⲟϩ ⲉⲧⲁϥⲛⲁⲩ ⲉⲡⲓⲙⲏϣ ⲁϥϣⲉⲛϩⲏⲧ ϧⲁⲣⲱⲟⲩ", "Bohairic"], # when he saw the crowd
198
+ ["ⲡϭⲟⲓⲥ ⲡⲉⲧⲁⲙⲟⲛⲓ", "Bohairic"], # The Lord is my shepherd (Psalm 23:1)
199
+ ]
200
+
201
+ BOHAIRIC_EXAMPLES_TEXTS = [
202
+ ["ⲛⲉ ⲟⲩⲟⲛ ⲟⲩⲙⲏϣ ⲛϣⲱⲛⲓ ⲉⲩⲉⲛⲕⲟⲧ ϧⲉⲛ ⲡⲓⲙⲁ ⲉⲧⲉⲙⲙⲁⲩ· ϩⲁⲛⲃⲉⲗⲗⲉⲩ ⲛⲉⲙ ϩⲁⲛϭⲁⲗⲉⲩ ⲛⲉⲙ ϩⲁⲛϣⲁⲩⲟⲩⲱⲟⲩ·", "Bohairic"], # Healing at the pool (Bohairic)
203
+ ]
204
+
205
  ENGLISH_EXAMPLES = [
206
  ["The Lord is good", "Sahidic"],
207
  ["I am a teacher", "Sahidic"],
 
277
  )
278
 
279
  with gr.Accordion("📖 Example Texts", open=True):
280
+ gr.Markdown("### Sahidic Dialect (Literary Standard)")
 
 
 
 
281
 
282
  gr.Markdown("**Simple Sentences**: Basic grammatical structures")
283
  gr.Examples(
 
286
  outputs=cop_output,
287
  fn=translate_coptic_to_english,
288
  cache_examples=False,
289
+ label="Sahidic Simple"
290
  )
291
 
292
  gr.Markdown("**Complex Sentences**: Multi-clause with subordination")
 
296
  outputs=cop_output,
297
  fn=translate_coptic_to_english,
298
  cache_examples=False,
299
+ label="Sahidic Complex"
300
  )
301
 
302
  gr.Markdown("**Full Texts**: Connected discourse (paragraphs)")
 
306
  outputs=cop_output,
307
  fn=translate_coptic_to_english,
308
  cache_examples=False,
309
+ label="Sahidic Texts"
310
+ )
311
+
312
+ gr.Divider()
313
+ gr.Markdown("### Bohairic Dialect (Northern/Liturgical)")
314
+
315
+ gr.Markdown("**Simple Sentences**: Basic grammatical structures")
316
+ gr.Examples(
317
+ examples=BOHAIRIC_EXAMPLES_SIMPLE,
318
+ inputs=[cop_input, cop_dialect],
319
+ outputs=cop_output,
320
+ fn=translate_coptic_to_english,
321
+ cache_examples=False,
322
+ label="Bohairic Simple"
323
+ )
324
+
325
+ gr.Markdown("**Complex Sentences**: Multi-clause constructions")
326
+ gr.Examples(
327
+ examples=BOHAIRIC_EXAMPLES_COMPLEX,
328
+ inputs=[cop_input, cop_dialect],
329
+ outputs=cop_output,
330
+ fn=translate_coptic_to_english,
331
+ cache_examples=False,
332
+ label="Bohairic Complex"
333
+ )
334
+
335
+ gr.Markdown("**Full Texts**: Connected discourse")
336
+ gr.Examples(
337
+ examples=BOHAIRIC_EXAMPLES_TEXTS,
338
+ inputs=[cop_input, cop_dialect],
339
+ outputs=cop_output,
340
+ fn=translate_coptic_to_english,
341
+ cache_examples=False,
342
+ label="Bohairic Texts"
343
  )
344
 
345
  cop_translate_btn.click(