Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stscoundrel/old-icelandic-zoega
Old Icelandic dictionary for Node.js. From "A Concise Dictionary of Old Icelandic" by Geir Zoëga
https://github.com/stscoundrel/old-icelandic-zoega
dictionary icelandic-language javascript medieval-languages nodejs old-icelandic old-norse zoega
Last synced: 11 days ago
JSON representation
Old Icelandic dictionary for Node.js. From "A Concise Dictionary of Old Icelandic" by Geir Zoëga
- Host: GitHub
- URL: https://github.com/stscoundrel/old-icelandic-zoega
- Owner: stscoundrel
- License: mit
- Created: 2020-09-17T18:00:41.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-22T20:23:45.000Z (9 months ago)
- Last Synced: 2024-02-23T09:21:54.636Z (9 months ago)
- Topics: dictionary, icelandic-language, javascript, medieval-languages, nodejs, old-icelandic, old-norse, zoega
- Language: TypeScript
- Homepage:
- Size: 4.55 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Old Icelandic Zoega
Old Icelandic dictionary for Node.js. From *"A Concise Dictionary of Old Icelandic"* by Geir Zoëga.
The dictionary consists of 29 000+ Old Icelandic words with English translations.
Related projects:
- [Old Icelandic Dictionary Website (in Next.js)](https://github.com/stscoundrel/old-icelandic-zoega-next).
- [Old Icelandic Dictionary Abbreviations](https://github.com/stscoundrel/old-icelandic-zoega-abbreviations).### Install
`yarn add old-icelandic-zoega`
Or just copy json source file from `/json` folder in source.
### Use JSON files programmatically
The project provides a getter for the data. You can use it in your script to populate your own database or otherwise use the data.
##### Default dictionary with HTML formatting.
```javascript
const { getDictionary } = require('old-icelandic-zoega')/**
* Whole dictionary as array.
* Contains and HTML tags
* to match the layout of the printed book.
*/
const dictionary = getDictionary()// Get words starting with letter A
const aWords = dictionary.filter((entry) => entry.word.charAt(0) === 'a')console.log(aWords)
```
##### Version without any markup.
```javascript
const { getNoMarkupDictionary } = require('old-icelandic-zoega')// Same array, but no formatting with HTML tags.
const dictionary = getNoMarkupDictionary()// Get words starting with letter B
const bWords = dictionary.filter((entry) => entry.word.charAt(0) === 'b')console.log(bWords)
```
Individual words are returned in format of:
```javascript
{
word: String
definitions: [String]
}
```### About "A Concise Dictionary of Old Icelandic"
"A Concise Dictionary of Old Icelandic" dictionary was published in 1910 by Geir Zoëga, which leads to there being many public domain versions of the book available. Zoëgas attempt was to made easier-to-approach version of the more full [Cleasby - Vigfusson dictionary](https://github.com/stscoundrel/cleasby-vigfusson-dictionary), specifically for beginners and those interested in Old Icelandic prose writing.