Old Swedish Dictionary for Python. From K.F. Söderwall's Medieval Swedish
Project description
Old Swedish Dictionary
Old Swedish Dictionary for Python. 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: list[str]
grammatical_aspect: str
information: 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file old-swedish-dictionary-1.0.0.tar.gz
.
File metadata
- Download URL: old-swedish-dictionary-1.0.0.tar.gz
- Upload date:
- Size: 7.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20f97ca704093b1f1eaeba7cc7d248c132d82f1d34f6a5a8371c3b0f0f50a935 |
|
MD5 | 7ad9ca08c22b36cd5c640083f25c43b7 |
|
BLAKE2b-256 | 9f827c361d803b5be2337237f48dcc01908f19c308fb6daa0ae679567bd48857 |
File details
Details for the file old_swedish_dictionary-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: old_swedish_dictionary-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e2a5159b5c794d7381aa014cb873b1ee4b915eed6aef8666c8f51fb326fe6c0 |
|
MD5 | db9bcc99260ef5fa045da6e9aabac2de |
|
BLAKE2b-256 | 9cc0ebd94a33f9eeea469587d78884fb7140f676727e9ff38bc8265631c788b7 |