npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

old-danish-dictionary

v0.1.0

Published

Old Danish Dictionary for Node.js. From Otto Kalkar's Dictionary of elder Danish language.

Downloads

14

Readme

Old Danish Dictionary

Old Danish Dictionary for Node.js. From Otto Kalkar's Dictionary of elder Danish language.

Install

yarn add old-danish-dictionary

Usage

The project provides a getter for the whole compressed dataset. You can use it in your script to populate your own database or otherwise use the data.

Should you want to use the data without this Node.js library, you might want to check Old Danish Dictionary Builder.

import { getDictionary } from 'old-danish-dictionary'

/**
 * Whole dictionary as array
 * contains over 45 000 entries.
 */
const dictionary = getDictionary()


// Filter words starting with letter T
const tWords = dictionary.filter((entry) => entry.word.charAt(0) === 't')

console.log(tWords)

Individual words are returned in format of:

{
    headword: string,
    definitions: string[],
}

As in the printed book, some definitions are heavily abbreviated. You can map them back to their full meanings.

Find abbreviations used in the definitions.

import { findAbbreviations }  from 'cleasby-vigfusson-abbreviations'

// Example: definition of 'Abild'
const content = 'no. (isl. apaldr.) æbletræ; then frucht, som paa then abildhæ staar.'; // etc etc.

// Returns map of abbreviations to meanings.
const result = findAbbreviations(content);

console.log(result);
// "isl." => "islandsk.",
// "n." => "norsk.",
// "no." => "navneord (substantivum).",
// "æ." => "ældre.",

About "Dictionary of the Old Danish Language"

"Ordbog til det ældre danske Sprog" dictionary was published in late 1800s by Otto Kalkar. Old Danish is an ancestor language of Danish, which developed from Old East Norse, the eastern dialect of Old Norse, at the end of the Viking Age. The dictionary itself is called "the dictionary of elder Danish speech" and it covers time period of 1300 - 1700.

Despite its name, Kalkars dictionary is not exactly a dictionary of "Old Danish" (=olddansk, often included in umbrella of "Old Norse"), as it covers period from Middle Danish (=gammeldansk) to early Modern Danish (=ældre nydansk). Due to the large timespan of the dictionary, the oldest vocabulary would be close to the language spoken by Late Viking Age danes, whilst newest entries would not differ much from Danish of the 1800's.