A library and tool for estimating scrabble letter distributions from corpora
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file elbbarcs-0.0.2.tar.gz.
File metadata
- Download URL: elbbarcs-0.0.2.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a1f13e324e755e9b5c2bf52fb140233a4c18adf6c64d9dcf77e521bdfd2a561
|
|
| MD5 |
f7a225da333021dff944a3a3bc57e70e
|
|
| BLAKE2b-256 |
eb50e7e5b8435b39a5781339ece0de86cce2e7d44dfd2cf7e87b088638a595f8
|
File details
Details for the file elbbarcs-0.0.2-py3-none-any.whl.
File metadata
- Download URL: elbbarcs-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bd5e58d302030588a6260c5b36ab2669d0149b37a27dce70d00e84b53c1227f
|
|
| MD5 |
717303ba199c7d27be4d333165412650
|
|
| BLAKE2b-256 |
22b3198605ed091f4bfdb62f6c755515fce6a4463c53fd57c491bb15c72b16c5
|