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: 5 months 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 (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-30T19:12:58.000Z (over 1 year ago)
- Last Synced: 2025-03-25T07:38:23.189Z (over 1 year 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: 1
-
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
- XML
Hardcoded packages/modules/classes for programming languages:
- Go package
- TypeScript module
- Rust module
- Python class
The 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.