Spaces:
Runtime error
Runtime error
fix bug, add notes to lang desc.
Browse files
app.py
CHANGED
@@ -27,8 +27,19 @@ def get_lang_description_from_mapping_name(string_to_check, add_iso_url=False):
|
|
27 |
|
28 |
|
29 |
description = ", ".join(items)
|
30 |
-
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
return description
|
33 |
|
34 |
|
|
|
27 |
|
28 |
|
29 |
description = ", ".join(items)
|
30 |
+
|
31 |
+
notes = {
|
32 |
+
"-red": " (reduced)",
|
33 |
+
"-suf": " (Based on data with suffixes attached)",
|
34 |
+
"-nosuf": "Based on data with suffixes removed",
|
35 |
+
"-np": " (process naively, assuming a phonemic orthography)",
|
36 |
+
|
37 |
+
}
|
38 |
+
for key, note in notes.items():
|
39 |
+
if key in string_to_check:
|
40 |
+
description = description + note
|
41 |
+
|
42 |
+
|
43 |
return description
|
44 |
|
45 |
|