Skip to main content

words-for-humans

Finds code comments and documentation that carry no information.

// This function is responsible for calculating the total price of all the items
// that are present in the cart. It's worth noting that we will iterate over each
// of the items in order to accumulate the sum of their individual prices.
export function calculateCartTotal(items: CartItem[]): number {
  return items.reduce((sum, item) => sum + item.price, 0);
}
  1:  error [V-4] "This function is responsible for" restates the declaration below.
  2:  error [V-2] "It's worth noting that" adds nothing to the sentence.
  3:  error [V-5] "in order to" is padding.

It leaves alone the comments that say something the code cannot.

Install

uv tool install words-for-humans

Use

words-for-humans                             # the whole repository
words-for-humans --staged                    # what you are about to commit
words-for-humans --diff origin/main...HEAD   # what a pull request changes
words-for-humans --write-baseline            # adopt it in an existing codebase

Rules

Three families, 83 rules, 38 decided without a model.

Family Question
1.1-9.4, GR- Is the sentence built the way ASD-STE100 requires?
V- Does the text say anything the code does not?
A- Does the text have the shape a language model produces?

Run words-for-humans --list-rules for the catalogue.

Full documentation: https://github.com/mitchelljphayes/words-for-humans

Not affiliated with or endorsed by ASD. ASD-STE100 and Simplified Technical English are ASD's.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

words_for_humans-0.2.2.tar.gz (92.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

words_for_humans-0.2.2-py3-none-any.whl (98.9 kB view details)

Uploaded Python 3

File details

Details for the file words_for_humans-0.2.2.tar.gz.

File metadata

  • Download URL: words_for_humans-0.2.2.tar.gz
  • Upload date:
  • Size: 92.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for words_for_humans-0.2.2.tar.gz
Algorithm Hash digest
SHA256 2eaceda585b42fdca3a6fc6ca1679bc4634a9454b1b06e05b39485d8d6c00de5
MD5 d51b421d8fc9989d382f8a7fe751b2c9
BLAKE2b-256 f850476144628ec74ec01b9a4dd4cb2e62eef32303d4fbc377806045238f8fd3

See more details on using hashes here.

Provenance

The following attestation bundles were made for words_for_humans-0.2.2.tar.gz:

Publisher: release.yml on mitchelljphayes/words-for-humans

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file words_for_humans-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for words_for_humans-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dc17a9579a76c3a9bcd0c553f49862120d3f24306f5010cb1f3c779644eaf35b
MD5 d5383167902e9fcf1834294d45de02a3
BLAKE2b-256 85ecad47d70a65c482f0e7b2ac97e5f61173fdf3d37d6b96c67a4b012df47f37

See more details on using hashes here.

Provenance

The following attestation bundles were made for words_for_humans-0.2.2-py3-none-any.whl:

Publisher: release.yml on mitchelljphayes/words-for-humans

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page