stscoundrel / old-norwegian-dictionary-py

Old Norwegian/Norse Dictionary for Python. From "Dictionary of the Old Norwegian Language"

Home Page:https://pypi.org/project/old-norwegian-dictionary/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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:

{
    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.

About

Old Norwegian/Norse Dictionary for Python. From "Dictionary of the Old Norwegian Language"

https://pypi.org/project/old-norwegian-dictionary/

License:MIT License


Languages

Language:Python 100.0%