Giter Site home page Giter Site logo

stscoundrel / old-norwegian-dictionary-rs Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 18.76 MB

Old Norwegian/Norse Dictionary for Rust. From "Dictionary of the Old Norwegian Language"

Home Page: https://docs.rs/old_norwegian_dictionary

License: MIT License

Rust 100.00%
old-norwegian old-norse old-icelandic dictionary rust medieval-languages medieval-norwegian medieval-studies

old-norwegian-dictionary-rs's Introduction

Old Norwegian Dictionary

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".

Install

Add this to your Cargo.toml:

[dependencies]
old_norwegian_dictionary = "2.0.0"

Usage

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)

About "Dictionary of the Old Norwegian Language"

"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.

old-norwegian-dictionary-rs's People

Contributors

dependabot[bot] avatar stscoundrel avatar

Watchers

 avatar  avatar

old-norwegian-dictionary-rs's Issues

Change to hardcoded static data source

Preliminary bench mark on reading json file to structs vs building them into hardcoded structs with static lifetimes suggests, that the latter approach is roughly 1000 times faster. Use old-norwegian-dictionary-builder to output Rust module that contains the whole dictionary.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.