Crates.io | old_icelandic_zoega |
lib.rs | old_icelandic_zoega |
version | 1.1.0 |
source | src |
created_at | 2021-09-28 17:33:43.181816 |
updated_at | 2022-11-05 14:12:15.672526 |
description | Old Icelandic dictionary for Rust. From "A Concise Dictionary of Old Icelandic" by Geir Zoëga |
homepage | |
repository | https://github.com/stscoundrel/old-icelandic-zoega-rs |
max_upload_size | |
id | 457636 |
size | 9,035,634 |
Old Icelandic dictionary for Rust. From "A Concise Dictionary of Old Icelandic" by Geir Zoëga.
The dictionary consists of 29 000+ Old Icelandic words with English translations. Also available for Node.js
cargo add old_icelandic_zoega
Or add this to your Cargo.toml
:
[dependencies]
old_icelandic_zoega = "1.1.0"
Dictionary comes in two variants: one with html markup, and one without.
// Ships two variants, plus DictionaryEntry.
use old_icelandic_zoega::{get_dictionary, get_no_markup_dictionary, DictionaryEntry};
// Standard dictionary. Contains "strong" and "i" tags to match the printed book.
let dictionary = get_dictionary();
// No-markup version. Contains no tags or additional markup.
let no_markup_dictionary = get_no_markup_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<DictionaryEntry> = dictionary.unwrap();
let no_markup_dictionary_content: Vec<DictionaryEntry> = no_markup_dictionary.unwrap();
println!("A word from dictionary: {}. First definition for it is: {}", &dictionary_content[0].word, &dictionary_content[0].definitions[0])
"A Concise Dictionary of Old Icelandic" dictionary was published in 1910 by Geir Zoëga, which leads to there being many public domain versions of the book available. Zoëgas attempt was to made easier-to-approach version of the more full Cleasby - Vigfusson dictionary, specifically for beginners and those interested in Old Icelandic prose writing.