Git Product home page Git Product logo

old-icelandic-dictionary-java's Introduction

Old Icelandic Dictionary

Old Icelandic dictionary for Java. From "A Concise Dictionary of Old Icelandic" by Geir Zoëga

The dictionary consists of 29 000+ Old Icelandic words with English translations.

Install

As Maven dependency.

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

For alternative install methods, see the Maven Central Repo

Usage

The dictionary comes in two variants:

  • Markup version of dictionary has html markup <i> and <b> to match look of the original book.
  • No-markup version has the same content without any additional formatting tags.
import io.github.stscoundrel.oldicelandic.Dictionary;
import io.github.stscoundrel.oldicelandic.DictionaryEntry;

Dictionary dictionary = new Dictionary();

// Both dictionaries return entries that consist of headword and definitions list.
DictionaryEntry[] noMarkupResult = dictionary.getDictionary(); // has alias "getNoMarkupDictionary"
DictionaryEntry[] markupResult = dictionary.getMarkupDictionary();

// Headwords wont differ between dictionaries.
System.out.println(noMarkupResult[14].headword);  // afbindi
System.out.println(markupResult[14].headword);    // afbindi

// But definition markup does differ.
System.out.println(noMarkupResult[14].definitions[0]);   // n. constipation.
System.out.println(markupResult[14].definitions[0]);     // n. <i>constipation</i>.

Individual words are returned in format of:

{
    String headword;
    String[] definitions;
}

About "A Concise Dictionary of Old Icelandic"

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

old-icelandic-dictionary-java's People

Contributors

dependabot[bot] avatar stscoundrel avatar

Watchers

 avatar  avatar

old-icelandic-dictionary-java's Issues

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.