cdleong commited on
Commit
8f05d7c
1 Parent(s): dbbbbd3

fix bug, add notes to lang desc.

Browse files
Files changed (1) hide show
  1. app.py +13 -2
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
- if substrings[-1] == "red":
31
- description = description + " (reduced)"
 
 
 
 
 
 
 
 
 
 
 
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