Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stscoundrel/old-icelandic-dictionary-go
Old Icelandic dictionary for Go. From "A Concise Dictionary of Old Icelandic" by Geir Zoëga
https://github.com/stscoundrel/old-icelandic-dictionary-go
dictionary go go-library golang golang-library icelandic-language medieval-icelandic medieval-languages medieval-studies old-icelandic old-norse zoega
Last synced: 9 days ago
JSON representation
Old Icelandic dictionary for Go. From "A Concise Dictionary of Old Icelandic" by Geir Zoëga
- Host: GitHub
- URL: https://github.com/stscoundrel/old-icelandic-dictionary-go
- Owner: stscoundrel
- License: mit
- Created: 2022-11-07T18:33:44.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-06T08:18:25.000Z (12 months ago)
- Last Synced: 2024-06-21T13:10:09.193Z (6 months ago)
- Topics: dictionary, go, go-library, golang, golang-library, icelandic-language, medieval-icelandic, medieval-languages, medieval-studies, old-icelandic, old-norse, zoega
- Language: Go
- Homepage: https://pkg.go.dev/github.com/stscoundrel/old-icelandic-dictionary-go
- Size: 1.34 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Old Icelandic Dictionary
Old Icelandic dictionary for Golang. From "A Concise Dictionary of Old Icelandic" by Geir Zoëga
The dictionary consists of 29 000+ Old Icelandic words with English translations.
### Install
`go get github.com/stscoundrel/old-icelandic-dictionary-go`
### Usage
The dictionary comes in two variants:
- Default dictionary has html markup `` and `` to match look of the original book.
- No-markup version has the same content without any additional formatting tags.```go
package mainimport (
"fmt"dictionary "github.com/stscoundrel/old-icelandic-dictionary-go"
)func main() {
defaultDictionary, defaltErr := dictionary.GetDictionary()
noMarkupDictionary, noMarkupErr := dictionary.GetNoMarkupDictionary()
// Error handling as you please.
if defaltErr != nil {
fmt.Println(err)
}
// Contains 29 000+ DictionaryEntries.
for _, entry := range defaultDictionary {
fmt.Println(entry.Headword)
}
// Headwords wont differ in dictionaries.
fmt.Println(defaultDictionary[14].Headword) // afbindi
fmt.Println(noMarkupDictionary[14].Headword) // afbindi
// But definitions markup will differ
fmt.Println(defaultDictionary[14].Definitions[0]) // n. constipation.
fmt.Println(noMarkupDictionary[14].Definitions[0]) // n. constipation.
}
```The entries are structs of:
```go
type DictionaryEntry struct {
Headword 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, specifically for beginners and those interested in Old Icelandic prose writing.