Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stscoundrel/old-norwegian-dictionary-py
Old Norwegian/Norse Dictionary for Python. From "Dictionary of the Old Norwegian Language"
https://github.com/stscoundrel/old-norwegian-dictionary-py
dictionary medieval-languages medieval-norwegian medieval-studies norwegian-translation old-icelandic old-norse old-norwegian python translation
Last synced: 18 days ago
JSON representation
Old Norwegian/Norse Dictionary for Python. From "Dictionary of the Old Norwegian Language"
- Host: GitHub
- URL: https://github.com/stscoundrel/old-norwegian-dictionary-py
- Owner: stscoundrel
- License: mit
- Created: 2022-01-13T11:35:08.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-04T19:54:07.000Z (about 1 month ago)
- Last Synced: 2024-10-07T11:38:19.487Z (about 1 month ago)
- Topics: dictionary, medieval-languages, medieval-norwegian, medieval-studies, norwegian-translation, old-icelandic, old-norse, old-norwegian, python, translation
- Language: Python
- Homepage: https://pypi.org/project/old-norwegian-dictionary/
- Size: 6.12 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Old Norwegian Dictionary
Old Norwegian/Norse Dictionary for Python. The dictionary consists of 40 000+ Old Norse words with Norwegian translations.
Based on "Dictionary of the Old Norwegian Language".
### Install
`pip install old-norwegian-dictionary`
### Usage
The project provides a getter for the whole dataset. You can use it in your script to populate your own database or otherwise use the data.
Should you want to use the data without this Python library, you might want to check [Old Norwegian Dictionary Builder](https://github.com/stscoundrel/old-norwegian-dictionary-builder)
```python
from old_norwegian_dictionary import get_dictionary
# Whole dictionary of +42 000 entries
dictionary = get_dictionary()# Dictionaries return entries that consist of headword, part of speech and definition.
print(dictionary[25000].word) # náðuliga
print(dictionary[25000].part_of_speech) # adv
print(dictionary[25000].definition) # náðuliga, adv. 1) i Stilhed, ubemærket; hann bauð at hafa [...and more]```
Individual words are returned in format of:
```python
{
word: str
part_of_speech: str
definition: str
}
```### About "Dictionary of the Old Norwegian Language"
_"Ordbog over det gamle norske Sprog"_ dictionary was published in late 1800s by Johan Fritzner. Its is the largest Old Norse to Norwegian dictionary, containing over 40 000 word definitions. While the original dictionary is called dictionary of "old norwegian", it is practically a dictionary of western Old Norse. Technically "Old Norwegian" would be a later stage in the language.