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

Old Norse dictionary for Node.js. Scraped from online dictonary.

License

Notifications You must be signed in to change notification settings

stscoundrel/old-norse-ordbok

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Old Norse Orðbók

Old Norse dictionary for Node.js. Scraped from an online dictonary.

Literal meaning: orð = word, bók = book.

Examples

Install

yarn add old-norse-ordbok

Usage

Orðbók scrapes the dictionary data using Puppeteer. The dictionary comes in two forms: either Old Norse -> English, or English -> Old Norse. The versions are not identical nor do they contain the same amount of words. This is a feature in the source material.

Old Norse -> English: 4589 words. English -> Old Norse: 7712 words.

Words are returned in array of:

{
    word: String,
    definition: String,
    type: String,
    gender: String,
    branch: String,
}

Get dictionary data:

const { oldNorseToEnglish, englishToOldNorse } = require('old-norse-ordbok')

const oldNorse = await oldNorseToEnglish()
const english = await englishToOldNorse()

console.log(oldNorse)
console.log(english)

Sources

Scraped from word list compiled by Vikings of Bjornstad. The sources for the compiled list come from: