Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stscoundrel/old-norwegian-dictionary-kt
Old Norwegian/Norse Dictionary for Kotlin / Java. From "Dictionary of the Old Norwegian Language"
https://github.com/stscoundrel/old-norwegian-dictionary-kt
dictionary java jvm kotlin maven medieval-languages medieval-norwegian medieval-studies norse norwegian-language old-norse old-norwegian
Last synced: 12 days ago
JSON representation
Old Norwegian/Norse Dictionary for Kotlin / Java. From "Dictionary of the Old Norwegian Language"
- Host: GitHub
- URL: https://github.com/stscoundrel/old-norwegian-dictionary-kt
- Owner: stscoundrel
- License: mit
- Created: 2022-12-11T08:47:01.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-07T07:17:13.000Z (2 months ago)
- Last Synced: 2024-09-07T08:32:46.204Z (2 months ago)
- Topics: dictionary, java, jvm, kotlin, maven, medieval-languages, medieval-norwegian, medieval-studies, norse, norwegian-language, old-norse, old-norwegian
- Language: Kotlin
- Homepage:
- Size: 5.93 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
Old Norwegian/Norse Dictionary for Kotlin / Java. The dictionary consists of 40 000+ Old Norse words with Norwegian translations.
Based on "Dictionary of the Old Norwegian Language".
## Install
As Maven dependency.
```xml
io.github.stscoundrel
oldnorwegian
0.2.0```
For alternative install methods, see the [Maven Central Repo](https://search.maven.org/artifact/io.github.stscoundrel/oldnorwegian)
### Usage
In Kotlin:
```kotlin
import io.github.stscoundrel.oldnorwegian.OldNorwegianDictionary
import io.github.stscoundrel.oldnorwegian.DictionaryEntry// Whole dictionary of +42 000 entries
val dictionary = OldNorwegianDictionary()
val entries = dictionary.getEntries()// Dictionaries return entries that consist of headword, part of speech and definition.
println(entries[25000].headword) // náðuliga
println(entries[25000].partOfSpeech) // adv
println(entries[25000].definition) // náðuliga, adv. 1) i```
In Java:
```kotlin
// Imports are the same
import io.github.stscoundrel.oldnorwegian.OldNorwegianDictionary
import io.github.stscoundrel.oldnorwegian.DictionaryEntry// Fetching dictionary dataset is the similar
OldNorwegianDictionary dictionary = new OldNorwegianDictionary();
List entries = dictionary.getEntries();// Entry handling is different: Kotlin code uses data classes for entries.
// Therefore, the members of the classes are private in Java.
// Kotlin automatically generates getters for the members that you can use instead.
println(entries[25000].getHeadword()) // náðuliga
println(entries[25000].getPartOfSpeech()) // adv
println(entries[25000].getDefinition()) // náðuliga, adv. 1) i```
### 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.