Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stscoundrel/old-swedish-dictionary-rs
Old Swedish Dictionary for Rust. From K.F. Söderwall's Medieval Swedish Dictionary
https://github.com/stscoundrel/old-swedish-dictionary-rs
cargo medieval-languages medieval-studies medieval-swedish old-swedish rust rust-library swedish-language
Last synced: 18 days ago
JSON representation
Old Swedish Dictionary for Rust. From K.F. Söderwall's Medieval Swedish Dictionary
- Host: GitHub
- URL: https://github.com/stscoundrel/old-swedish-dictionary-rs
- Owner: stscoundrel
- License: mit
- Created: 2022-11-05T11:58:24.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-04T17:06:28.000Z (about 1 year ago)
- Last Synced: 2024-10-12T20:11:01.640Z (about 1 month ago)
- Topics: cargo, medieval-languages, medieval-studies, medieval-swedish, old-swedish, rust, rust-library, swedish-language
- Language: Rust
- Homepage: https://docs.rs/old_swedish_dictionary
- Size: 16.1 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Old Swedish Dictionary
Old Swedish Dictionary for Rust. The dictionary consists of 40 000+ Old Swedish words with Swedish translations.
Based on K.F. Söderwall's Medieval Swedish Dictionary
### Install
`cargo add old_swedish_dictionary`
Or add this to your `Cargo.toml`:
```toml
[dependencies]
old_swedish_dictionary = "1.0.0"
```### Usage
```rust
// Ships getter for dictionary, plus DictionaryEntry.
use old_swedish_dictionary::{get_dictionary, DictionaryEntry};let dictionary = get_dictionary();
// Both methods return Result, which should always be safe to unwrap.
// Up to you if you wish to just unwrap, or use other error handling method.
let dictionary_content: Vec = dictionary.unwrap();println!("A word from dictionary: {}. First definition for it is: {}", &dictionary_content[0].headword, &dictionary_content[0].definitions[0])
```### 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)](https://creativecommons.org/licenses/by/4.0/), made available by University of Gothenburg. The source code for this library is under MIT licence.
- https://spraakbanken.gu.se/en/resources/soederwall
- https://spraakbanken.gu.se/en/resources/soederwall-supp