islenska-data 5.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,49 @@
1
+ """
2
+
3
+ islenska-data
4
+
5
+ The vocabulary data of the islenska package (BinPackage): the Database
6
+ of Icelandic Morphology (BÍN) in the compressed form that islenska
7
+ reads, plus the word graphs (DAWGs) of its compound word algorithm.
8
+
9
+ Copyright © 2026 Miðeind ehf.
10
+
11
+ The BÍN data are © The Árni Magnússon Institute for Icelandic Studies
12
+ and are used under the CC BY-SA 4.0 license; see README.md. The code
13
+ of this package is under the MIT license.
14
+
15
+ This package has no functionality of its own; install islenska and it
16
+ finds the data here. The files are built in the BinPackage repository
17
+ by tools/binpack.py and tools/dawgbuilder.py and staged into this
18
+ package by tools/data_package.py.
19
+
20
+ """
21
+
22
+ from pathlib import Path
23
+
24
+ try:
25
+ from importlib.metadata import version as _version
26
+
27
+ __version__ = _version("islenska-data")
28
+ except Exception: # Not installed, e.g. imported from a source tree
29
+ __version__ = "0.0.0"
30
+
31
+ # The data format of compressed.bin (its 16-byte signature); islenska
32
+ # uses this package only if the format is the one it reads
33
+ FORMAT = "Greynir 05.00.00"
34
+
35
+ # The data files in this package
36
+ FILES = (
37
+ "compressed.bin",
38
+ "ordalisti-all.dawg.bin",
39
+ "ordalisti-prefixes.dawg.bin",
40
+ "ordalisti-suffixes.dawg.bin",
41
+ )
42
+
43
+
44
+ def data_dir() -> Path:
45
+ """Return the directory that holds the data files"""
46
+ return Path(__file__).parent.resolve()
47
+
48
+
49
+ __all__ = ["FORMAT", "FILES", "data_dir", "__version__"]
@@ -0,0 +1,4 @@
1
+ [diffend] Oversized file quarantined before diffing.
2
+ name: islenska_data/compressed.bin
3
+ size: 55405044 bytes
4
+ sha256: 4b45cb1a616095e9a060f139aeb754c6a6957837690630544c82b07653b86c09
Binary file
islenska_data/py.typed ADDED
File without changes
@@ -0,0 +1,81 @@
1
+ Metadata-Version: 2.4
2
+ Name: islenska-data
3
+ Version: 5.0.0
4
+ Summary: The vocabulary data of the islenska package: the Database of Icelandic Morphology (BÍN), compressed
5
+ Author-email: "Miðeind ehf." <mideind@mideind.is>
6
+ Maintainer-email: "Miðeind ehf." <mideind@mideind.is>
7
+ License: CC BY-SA 4.0 (the BÍN data); MIT (the package code)
8
+ Project-URL: Repository, https://github.com/mideind/BinPackage
9
+ Keywords: nlp,icelandic,language,vocabulary,dictionary,data
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: Natural Language :: Icelandic
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Topic :: Text Processing :: Linguistic
17
+ Requires-Python: >=3.10
18
+ Description-Content-Type: text/markdown
19
+
20
+ # islenska-data
21
+
22
+ The vocabulary data of the [islenska](https://pypi.org/project/islenska/)
23
+ package ([BinPackage](https://github.com/mideind/BinPackage)): the
24
+ **[Database of Icelandic Morphology](https://bin.arnastofnun.is/DMII/)**
25
+ (**[Beygingarlýsing íslensks nútímamáls](https://bin.arnastofnun.is/)**,
26
+ *BÍN*) in the compressed form that islenska reads, together with the word
27
+ graphs (DAWGs) of its compound word algorithm.
28
+
29
+ This package has no functionality of its own. Install `islenska`, and it
30
+ finds its data here:
31
+
32
+ ```python
33
+ >>> from islenska import Bin
34
+ >>> Bin().lookup("hestur")
35
+ ```
36
+
37
+ The data are kept in a package of their own because they change only when
38
+ BÍN is updated, while the code changes more often: a release of islenska
39
+ then ships small wheels for each platform and Python implementation, and the
40
+ data are downloaded once.
41
+
42
+ ## Versions
43
+
44
+ The major and minor version follow the data format of `compressed.bin`
45
+ (`Greynir 05.00.00` is 5.0); the patch number goes up with each release of
46
+ new BÍN data. A version of islenska works with any islenska-data release of
47
+ the data format it reads, and checks the format when it starts.
48
+
49
+ ## Contents
50
+
51
+ | File | |
52
+ |---|---|
53
+ | `compressed.bin` | BÍN (KRISTINsnid), with Miðeind's additions for the Greynir parser, compressed. Compounds that the compound word algorithm regenerates exactly are left out and restored on lookup. |
54
+ | `ordalisti-all.dawg.bin`, `ordalisti-prefixes.dawg.bin`, `ordalisti-suffixes.dawg.bin` | The word graphs of the compound word algorithm. |
55
+
56
+ The files are built in the BinPackage repository by `tools/binpack.py` and
57
+ `tools/dawgbuilder.py`.
58
+
59
+ ## Copyright and licensing
60
+
61
+ The copyright holder for BÍN is *The Árni Magnússon Institute*
62
+ *for Icelandic Studies*. The BÍN data used herein are publicly available
63
+ for use under the terms of the
64
+ [CC BY-SA 4.0 license](https://creativecommons.org/licenses/by-sa/4.0/legalcode),
65
+ as further detailed
66
+ [here in English](https://bin.arnastofnun.is/DMII/LTdata/conditions/) and
67
+ [here in Icelandic](https://bin.arnastofnun.is/gogn/mimisbrunnur/).
68
+
69
+ In accordance with the BÍN license terms, credit is hereby given as follows:
70
+
71
+ *Beygingarlýsing íslensks nútímamáls. Stofnun Árna Magnússonar í íslenskum fræðum.*
72
+ *Höfundur og ritstjóri Kristín Bjarnadóttir.*
73
+
74
+ **Miðeind ehf., the publisher of this package, claims no endorsement,**
75
+ **sponsorship, or official status granted to it by the BÍN copyright holder.**
76
+
77
+ The data files are an adaptation of BÍN (compressed, and with additions made
78
+ by Miðeind ehf. for its Greynir parser), distributed under the same CC BY-SA
79
+ 4.0 license as BÍN itself. The Python code of this package is
80
+ Copyright © 2026 [Miðeind ehf.](https://mideind.is) and licensed under the
81
+ MIT License.
@@ -0,0 +1,10 @@
1
+ islenska_data/__init__.py,sha256=EETMV3ZpzG2uQWy0kuzLLZa93Qrus8QTtB1Xu7BZwSo,1478
2
+ islenska_data/compressed.bin,sha256=S0XLGmFglemgYPE5rrdUxqaVeDdpBjBUTIKwdlO4bAk,55405044
3
+ islenska_data/ordalisti-all.dawg.bin,sha256=d0pcTibcX2ojTOwiXekD47TKho-G6UPhf5eJPoHlcRE,3154087
4
+ islenska_data/ordalisti-prefixes.dawg.bin,sha256=zey8-rDlaZVKCqgjYVCBq6ngCrcsPpqsRpZtdbNG1Bk,2085331
5
+ islenska_data/ordalisti-suffixes.dawg.bin,sha256=u6LEImeL_Rk6I7g8XAdrvsIVqW-hp-um4XIGpaLEkwc,2771638
6
+ islenska_data/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ islenska_data-5.0.0.dist-info/METADATA,sha256=vOVEaNQumChPzrCOceculAjGxPlYfilE4EwnI9DstqM,3625
8
+ islenska_data-5.0.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
9
+ islenska_data-5.0.0.dist-info/top_level.txt,sha256=WvmzW6CtVY6t3uW0CStvh9FMWfyOG05Y40ialn6frQ8,14
10
+ islenska_data-5.0.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ islenska_data