Crates.io | old_norwegian_dictionary |
lib.rs | old_norwegian_dictionary |
version | 2.0.0 |
source | src |
created_at | 2022-01-22 14:40:00.656061 |
updated_at | 2022-04-18 06:27:20.296473 |
description | Old Norwegian/Norse Dictionary for Rust. The dictionary consists of 40 000+ Old Norse words with Norwegian translations. |
homepage | |
repository | https://github.com/stscoundrel/old-norwegian-dictionary-rs |
max_upload_size | |
id | 519170 |
size | 17,810,598 |
Old Norwegian/Norse Dictionary for Rust. The dictionary consists of 40 000+ Old Norse words with Norwegian translations.
Based on "Dictionary of the Old Norwegian Language".
Add this to your Cargo.toml
:
[dependencies]
old_norwegian_dictionary = "2.0.0"
use old_norwegian_dictionary::{get_dictionary, DictionaryEntry};
// Whole dictionary as an array of DictionaryEntries.
let dictionary = get_dictionary();
let dictionary_content: [DictionaryEntry; 42021] = get_dictionary();
println!("A word from dictionary: {}. Its definition is: {}. Its type if {}", &dictionary_content[0].word, &dictionary_content[0].definition, &dictionary_content[0].part_of_speech)
"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.