Skip to main content

=?utf-8?q?Old_Swedish_Dictionary_for_Python=2E_From_K=2EF=2E_S=C3=B6derwall=27s_Medieval_Swedish?=

Project description

Old Swedish Dictionary

Old Swedish Dictionary forPython. The dictionary consists of 40 000+ Old Swedish words with Swedish translations.

Based on K.F. Söderwall's Medieval Swedish Dictionary

Install

pip install old-swedish-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 Swedish Dictionary Builder

from old_swedish_dictionary.dictionary import get_dictionary

# Whole dictionary of +41 000 entries
dictionary = get_dictionary()

# Dictionaries return entries that consist of headword, part of speech and definition.
print(dictionary[100].headword)           # af bränna
print(dictionary[100].part_of_speech)     # vb
print(dictionary[100].grammatical_aspect) # v.
print(dictionary[100].definitions)        # ["afbränna, genom eld förstöra. hans trähws the af brendhe  [...and more]]

Individual words are returned in named tuple format of:

# For type hint usage
from old_swedish_dictionary.dictionary import DictionaryEntry

{
    headword: str
    part_of_speech: str
    grammatical_aspect: str
    definitions: list[str]
    alternative_forms: list[str]
}

About "Dictionary of Old Swedish"

"Ordbok Öfver svenska medeltids-språket" dictionary was published in late 1884—1918 by K.F. Söderwall. Additional supplement to it was published in 1953—1973.

Old Swedish developed from Old East Norse, the eastern dialect of Old Norse, at the end of the Viking Age. Early Old Swedish was spoken from about 1225 until about 1375, and Late Old Swedish was spoken from about 1375 until about 1526.

The original material is licenced under Creative Commons International (CC BY 4.0), made available by University of Gothenburg. The source code for this library is under MIT licence.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

old-swedish-dictionary-0.1.0.tar.gz (7.2 MB view hashes)

Uploaded Source

Built Distribution

old_swedish_dictionary-0.1.0-py3-none-any.whl (7.3 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page