Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Old Norse Dictionary for Node.js. From "Viking Language" study book

License

Notifications You must be signed in to change notification settings

stscoundrel/viking-language-dictionary

Repository files navigation

Viking Language Dictionary

Old Norse Dictionary for Node.js. Over 2800 Old Norse words with English translations.

Based on "Viking Language" book by Jesse L. Byock

Install

yarn add viking-language-dictionary

Usage
import { getDictionary } from 'viking-language-dictionary'

// Get an array of all dictionary entries.
const dictionary = getDictionary()

// Manipulate data as you wish -> perhaps get all words staring with 'o'
const oWords = dictionary.filter((entry) => entry.headword.charAt(0) === 'o')

// Or output a single word:
console.log(dictionary[8])
// {
//     "headword": "afbragð",
//     "definition": "n outstanding example; afbragð þeira manna allra the most outstanding of all those men",
//     "isCommon": false
// }

Individual words are returned in format of:

{
    headword: string;
    definition: string;
    isCommon: boolean; // tells if word is among the 260 most common Old Norse words.
}

About "Viking Language"

"Viking Language" is a book series by Jesse L. Byock, which teaches basics of Old Norse language. The books are accompanied by a small dictionary at the end, providing learners a place to look for translations of the books passages.

This library is sourced from a blog post by the books publisher, Jules William Press.