Git Product home page Git Product logo

stscoundrel / old-norwegian-dictionary Goto Github PK

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

Old Norwegian/Norse Dictionary for Node.js. From "Dictionary of the Old Norwegian Language"

Home Page: https://www.npmjs.com/package/old-norwegian-dictionary

License: MIT License

JavaScript 0.01% TypeScript 100.00%
old-norwegian old-norse old-icelandic dictionary javascript typescript nodejs translation norwegian-language medieval-languages

old-norwegian-dictionary's Introduction

Old Norwegian Dictionary

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

Based on "Dictionary of the Old Norwegian Language".

Related projects:

Ports in other languages:

Install

yarn add old-norwegian-dictionary

Usage

The project provides a getter for the whole 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 Norwegian Dictionary Builder

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

/**
 * Whole dictionary as array
 * contains over 40 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:

{
    word:         String   // eg. griðabeiðandi
    partOfSpeech: String   // eg. m
    definition:   String   // eg. riðabeiðandi, m. Person som begjærer grið 3. Grág. 30716.
}

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

Contributors

dependabot[bot] avatar stscoundrel avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

old-norwegian-dictionary's Issues

JSON source data

Hello!

Do you think it might be possible to split the data out of index.ts into a purely JSON file, so that other applications can read it in an easier way?

Thanks for any thoughts on this, and thank you for all your work on these dictionaries!
Greetings, Peter

Check SWC as alternative to TypeScript default build

SWC seems to support almost everything nowadays. Check it out as alternative build step to:

  • Maybe get easy minify, compress, and mangled release.
  • Support Rust based alternatives

In case of larger hardcoded sets of TS objects the minification would probably be notable benefit.

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.