Coder Social home page Coder Social logo

stscoundrel / old-swedish-dictionary Goto Github PK

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

Old Swedish Dictionary for Node.js. From K.F. Söderwall's Medieval Swedish Dictionary

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

License: MIT License

JavaScript 17.36% TypeScript 82.64%
dictionary javascript node norse old-norse old-swedish swedish-language typescript medieval-studies medieval-swedish

old-swedish-dictionary's Introduction

Old Swedish Dictionary

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

Based on K.F. Söderwall's Medieval Swedish Dictionary

Related projects:

Install

yarn add old-swedish-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 Swedish Dictionary Builder

import { getDictionary } from 'old-swedish-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:

{
    headword: string,
    partOfSpeech: string[],
    grammaticalAspect: string,
    information: string,
    definitions: string[],
    alternativeForms: string[]
}

About "Dictionary of Old Swedish"

"Ordbok Öfver svenska medeltids-språket" dictionary was published in late 1884—1918 by K.F. Söderwall. Additional supplement to it was published in 1953—1973.

Old Swedish developed from Old East Norse, the eastern dialect of Old Norse, at the end of the Viking Age. Early Old Swedish was spoken from about 1225 until about 1375, and Late Old Swedish was spoken from about 1375 until about 1526.

The original material is licenced under Creative Commons International (CC BY 4.0), made available by University of Gothenburg. The source code for this library is under MIT licence.

old-swedish-dictionary's People

Contributors

dependabot[bot] avatar stscoundrel avatar

Watchers

 avatar  avatar

old-swedish-dictionary's Issues

Use minimal keys for JSON & map them to humanreadable in parsing

Current structure uses keys like "headword" and "alternativeForms". Repeat those over 40 000 times in json and the file is simply much larger than it could be.

  • Use variant of json src that has short keys like a, b, c ,d etc.
  • Keep mapping of those fields to "proper" ones in src. Eg. 'a': 'headword'
  • When using json.parse, use custom formatter to swap keys to "proper" ones

Might cause minor overhead in parsing, but might literally save megabytes in file size of the library.

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.