Skip to main content

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 language
  • tiles: The number of tiles
  • buckets: 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.

Scrabble for San Mateo 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)

Source distribution for elbbarcs 0.0.2
File Size Uploaded
elbbarcs-0.0.2.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for elbbarcs 0.0.2
File Interpreter ABI Platform
elbbarcs-0.0.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page