Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stscoundrel/old-norwegian-dictionary-builder
Build "Dictionary of the Old Norwegian Language" into easier-to-use data formats
https://github.com/stscoundrel/old-norwegian-dictionary-builder
builder dictionary dsl golang json medieval-languages medieval-norwegian norwegian-language old-icelandic old-norse old-norwegian translation xml
Last synced: 18 days ago
JSON representation
Build "Dictionary of the Old Norwegian Language" into easier-to-use data formats
- Host: GitHub
- URL: https://github.com/stscoundrel/old-norwegian-dictionary-builder
- Owner: stscoundrel
- License: mit
- Created: 2022-01-10T09:15:44.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-06T08:17:31.000Z (10 months ago)
- Last Synced: 2024-06-19T20:56:50.642Z (5 months ago)
- Topics: builder, dictionary, dsl, golang, json, medieval-languages, medieval-norwegian, norwegian-language, old-icelandic, old-norse, old-norwegian, translation, xml
- Language: Go
- Homepage:
- Size: 6.67 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Old Norwegian Dictionary Builder
Build "Dictionary of the Old Norwegian Language" into easier-to-use data formats.
Available formats:
- JSON
- DSL
- XMLHardcoded packages/modules/classes for programming languages:
- Go package
- TypeScript module
- Rust module
- Python classThe hardcoded language packages exist to benchmark hardcoded entries against reading them from JSON/similar. The results vary based on language. For example, Rust and Go are much faster hardcoded. In case of Rust it is hundreds of ms vs hundreds of µs.
TypeScript is slightly faster hardcoded, but Python on the other hand is much slower if hardcoded.
### Usage
Main package exposes `ToJson`, `ToDsl`, `ToXml`, `ToGoPackage`, `ToRustModule` and `ToTypeScriptModule` functions, which respecticely generate output files in /build/ directory. Running `main` function generates all outputs.
### 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.