Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stscoundrel/old-norwegian-dictionary-cs
Old Norwegian/Norse Dictionary for C#. From "Dictionary of the Old Norwegian Language"
https://github.com/stscoundrel/old-norwegian-dictionary-cs
csharp dictionary dotnet medieval-languages medieval-norwegian medieval-studies old-icelandic old-norse old-norwegian
Last synced: 9 days ago
JSON representation
Old Norwegian/Norse Dictionary for C#. From "Dictionary of the Old Norwegian Language"
- Host: GitHub
- URL: https://github.com/stscoundrel/old-norwegian-dictionary-cs
- Owner: stscoundrel
- License: mit
- Created: 2022-04-18T15:17:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-07T07:16:17.000Z (4 months ago)
- Last Synced: 2024-09-07T08:32:29.040Z (4 months ago)
- Topics: csharp, dictionary, dotnet, medieval-languages, medieval-norwegian, medieval-studies, old-icelandic, old-norse, old-norwegian
- Language: C#
- Homepage: https://www.nuget.org/packages/OldNorwegianDictionary/
- Size: 6.08 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 C#. The dictionary consists of 40 000+ Old Norse words with Norwegian translations.
Based on "Dictionary of the Old Norwegian Language".
### Install
```
dotnet add package OldNorwegianDictionary
```### Usage
```csharp
using OldNorwegianDictionary;// Get all dictionary entries.
var dictionary = new Dictionary();
var result = dictionary.GetEntries();
Console.WriteLine(result.Count); // 42 021 entries.// Individual entry contains headword, definition and part of speech.
DictionaryEntry entry = result[42000];
Console.WriteLine(entry.Headword); // þyrnir
Console.WriteLine(entry.PartOfSpeech); // m
Console.WriteLine(entry.Definition); // þyrnir, m. Tjørn, Tornebusk. [...] etc.// Entries contain couple of helper methods.
DictionaryEntry entry2 = result[0];// Part of speech does not exist in all entries.
Console.WriteLine(entry2.HasPartOfSpeech()); // false// ToString is overwritten for generic presentation.
Console.WriteLine(entry2.ToString()); // [HEADWORD] - [DEFINITION]```
### 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.