Coder Social home page Coder Social logo

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

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

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

License: MIT License

Kotlin 100.00%
dictionary java jvm kotlin maven medieval-languages medieval-studies norse norwegian-language old-norse

old-norwegian-dictionary-kt's Introduction

Old Norwegian Dictionary

Old Norwegian/Norse Dictionary for Kotlin / Java. The dictionary consists of 40 000+ Old Norse words with Norwegian translations.

Based on "Dictionary of the Old Norwegian Language".

Install

As Maven dependency.

<dependency>
  <groupId>io.github.stscoundrel</groupId>
  <artifactId>oldnorwegian</artifactId>
  <version>0.2.0</version> <!-- Note! Check latest release number -->
</dependency>

For alternative install methods, see the Maven Central Repo

Usage

In Kotlin:

import io.github.stscoundrel.oldnorwegian.OldNorwegianDictionary
import io.github.stscoundrel.oldnorwegian.DictionaryEntry

// Whole dictionary of +42 000 entries
val dictionary = OldNorwegianDictionary()
val entries = dictionary.getEntries()

// Dictionaries return entries that consist of headword, part of speech and definition.
println(entries[25000].headword)       // náðuliga
println(entries[25000].partOfSpeech)   // adv
println(entries[25000].definition)     // náðuliga, adv.  1)  i 

In Java:

// Imports are the same
import io.github.stscoundrel.oldnorwegian.OldNorwegianDictionary
import io.github.stscoundrel.oldnorwegian.DictionaryEntry

// Fetching dictionary dataset is the similar
OldNorwegianDictionary dictionary = new OldNorwegianDictionary();
List<DictionaryEntry> entries = dictionary.getEntries();

// Entry handling is different: Kotlin code uses data classes for entries.
// Therefore, the members of the classes are private in Java.
// Kotlin automatically generates getters for the members that you can use instead.
println(entries[25000].getHeadword())       // náðuliga
println(entries[25000].getPartOfSpeech())   // adv
println(entries[25000].getDefinition())     // náðuliga, adv.  1)  i 

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-kt's People

Contributors

dependabot[bot] avatar stscoundrel avatar

Watchers

 avatar  avatar

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.