elbbarcs
Find Scrabble™ letter distributions for a corpus.
Usage
Library
from elbbarcs import Estimator
e = Estimator() # Create a new Estimator object
s = e.estimate('english.txt') # Estimate the scores for the corpus
e.table(s) # Print out a table
from elbbarcs import Estimator
e = Estimator(digraphs="ch c'h zh") # Create a new Estimator object
s = e.estimate('brezhoneg.txt') # Estimate the scores for the corpus
e.table(s) # Print out a table
The constructor takes the following arguments:
digraphs: A string containing the space-separated digraphs in the languagetiles: The number of tilesbuckets: The number of buckets
Command line program
The library functionality is also exposed via the elbbarcs command-line utility.
$ elbbarcs brezhoneg.txt --digraph "ch zh c'h"
×1 ×2 ×3 ×4 ×5 ×6 ×7 ×12 ×14
0 [blank]
1 I T N O R A E
2 G S D L U
3 H B K M P V Z
4 C'H W ZH Ñ Ù
5 F
6 C CH J
7 Y
9 É
This table indicates that for Breton, there should be 2 tiles for K, which will have a score of 3.
History
This library was developed by Daniel Swanson at the request of Francis Tyers for calculating the number of scrabble letters needed and their distribution for a given language. The objective was to make a scrabble set for San Mateo Huave from combinations of other scrabble sets.
In the end it required one set of each of English, Spanish and German to create the set for Huave.
Metadata
Release files for elbbarcs 0.0.2
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 |
|---|---|---|---|---|
| elbbarcs-0.0.2.tar.gz | 4.7 kB | Without provenance | Details for elbbarcs-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| elbbarcs-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for elbbarcs-0.0.2-py3-none-any.whl |
Total release size: 7.7 kB
Release files / elbbarcs-0.0.2.tar.gz
| Download URL | elbbarcs-0.0.2.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a1f13e324e755e9b5c2bf52fb140233a4c18adf6c64d9dcf77e521bdfd2a561
|
|
BLAKE2b-256 checksum How to use checksums |
eb50e7e5b8435b39a5781339ece0de86cce2e7d44dfd2cf7e87b088638a595f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / elbbarcs-0.0.2-py3-none-any.whl
| Download URL | elbbarcs-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9bd5e58d302030588a6260c5b36ab2669d0149b37a27dce70d00e84b53c1227f
|
|
BLAKE2b-256 checksum How to use checksums |
22b3198605ed091f4bfdb62f6c755515fce6a4463c53fd57c491bb15c72b16c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for elbbarcs 0.0.2
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.