NexusMaker
Simply Generate Nexus Files
from nexusmaker import NexusMaker, Record
data = [
Record(Language="A", Parameter="eye", Item="", Cognacy="1"),
Record(Language="A", Parameter="leg", Item="", Cognacy="1"),
Record(Language="A", Parameter="arm", Item="", Cognacy="1"),
Record(Language="B", Parameter="eye", Item="", Cognacy="1"),
Record(Language="B", Parameter="leg", Item="", Cognacy="2"),
Record(Language="B", Parameter="arm", Item="", Cognacy="2"),
Record(Language="C", Parameter="eye", Item="", Cognacy="1"),
# No ReCord for C 'leg'
Record(Language="C", Parameter="arm", Item="", Cognacy="3"),
Record(Language="D", Parameter="eye", Item="", Cognacy="1", loan=True),
Record(Language="D", Parameter="leg", Item="", Cognacy="1"),
Record(Language="D", Parameter="leg", Item="", Cognacy="2"),
Record(Language="D", Parameter="arm", Item="", Cognacy="2,3"),
]
maker = NexusMaker(data)
maker = NexusMakerAscertained(data) # adds Ascertainment bias character
maker = NexusMakerAscertainedWords(data) # adds Ascertainment character per word
# generate
nex = maker.make()
maker.write(nex, filename="output.nex")
# remove combining cognates:
# If a language has multiple cognates for a parameter, then this will filter
# the cognates to a maximum of `keep`, i.e. if a language has cognate sets
# "a, b, c" for the word `hand`, then `keep=2` will leave the top 2 cognates
# (="a, b"), while `keep=1` will leave the top cognate set (="a").
maker = remove_combining_cognates(NexusMaker(data), keep=2)
nex = maker.make()
Version History:
- 2.0.6: allow different ID columns in
load_cldf - 2.0.4: add
unique_idsparameter - 2.0.3: handle CLDF datasets
- 2.0.2: add tool to filter combining cognates
- 2.0.1: minor bugfixes.
- 2.0: major refactor of testing and other components.
- 1.5: do more validation of cognate sets to detect possibly broken combined cognate sets.
- 1.4: normalise order of cognates (i.e. so 1,54 == 54,1).
- 1.3: handle cognates of form '1a'.
- 1.2: initial release.
Metadata
Release files for nexusmaker 2.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nexusmaker-2.0.7.tar.gz | 21.7 kB | Without provenance | Details for nexusmaker-2.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nexusmaker-2.0.7-py3-none-any.whl | Python 3 | none | any | Details for nexusmaker-2.0.7-py3-none-any.whl |
Total release size: 51.8 kB
Release files / nexusmaker-2.0.7.tar.gz
| Download URL | nexusmaker-2.0.7.tar.gz |
|---|---|
| Size | 21.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
197dd5489ba606919da0aecf02b4807eea79c9b1eb307b33c494f44326842e9b
|
|
BLAKE2b-256 checksum How to use checksums |
0505a669ffcbffb6dc89e9053e728c283be3c5733d5b4b21e03da400990c4edc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.28.1
|
Release files / nexusmaker-2.0.7-py3-none-any.whl
| Download URL | nexusmaker-2.0.7-py3-none-any.whl |
|---|---|
| Size | 30.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8f1cb04a4f42b58e8b7d6fe3102ebd2a7d50c495d72632184e9e1b0da2b90a0
|
|
BLAKE2b-256 checksum How to use checksums |
0d3f5cb3f6cfa7c17eb9175043c4c213148be0f61696655929fb729c1db3902c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.28.1
|
Security for nexusmaker 2.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.