Add more German vocabularies (#128)
Browse files- german.yaml +3 -1
- tests/test_vocabulary_parser.py +10 -0
german.yaml
CHANGED
@@ -6026,7 +6026,9 @@ vocabulary:
|
|
6026 |
- [dative, Auge, Augen ]
|
6027 |
- [accusative, Auge, Augen ]
|
6028 |
- term: mal
|
6029 |
-
definition:
|
|
|
|
|
6030 |
audio: https://upload.wikimedia.org/wikipedia/commons/9/91/De-mal.ogg
|
6031 |
- term: sicher
|
6032 |
definition:
|
|
|
6026 |
- [dative, Auge, Augen ]
|
6027 |
- [accusative, Auge, Augen ]
|
6028 |
- term: mal
|
6029 |
+
definition:
|
6030 |
+
- (math) times
|
6031 |
+
- alternative form of einmal
|
6032 |
audio: https://upload.wikimedia.org/wikipedia/commons/9/91/De-mal.ogg
|
6033 |
- term: sicher
|
6034 |
definition:
|
tests/test_vocabulary_parser.py
CHANGED
@@ -309,6 +309,16 @@ class TestVocabularyParser(unittest.TestCase):
|
|
309 |
'target_label': 'liefern'
|
310 |
}
|
311 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
312 |
}
|
313 |
]
|
314 |
|
|
|
309 |
'target_label': 'liefern'
|
310 |
}
|
311 |
]
|
312 |
+
},
|
313 |
+
{
|
314 |
+
"words": ["mal", "einmal"],
|
315 |
+
"expected": [
|
316 |
+
{
|
317 |
+
'attributes': {'label': 'term related'},
|
318 |
+
'source_label': 'einmal',
|
319 |
+
'target_label': 'mal'
|
320 |
+
}
|
321 |
+
]
|
322 |
}
|
323 |
]
|
324 |
|