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
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 words_for_humans-0.2.3.tar.gz.
File metadata
- Download URL: words_for_humans-0.2.3.tar.gz
- Upload date:
- Size: 93.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b883222b525a47398060c7db773dda284971edb4dd4347306282db0a1bc989a
|
|
| MD5 |
43fe6679124ea61debc845293d75fcb2
|
|
| BLAKE2b-256 |
d1577b63b7d3b70572ea7bc179364ebeefe7e87ecaa1d1ec5d60ac89686f6cd2
|
Provenance
The following attestation bundles were made for words_for_humans-0.2.3.tar.gz:
Publisher:
release.yml on mitchelljphayes/words-for-humans
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
words_for_humans-0.2.3.tar.gz -
Subject digest:
3b883222b525a47398060c7db773dda284971edb4dd4347306282db0a1bc989a - Sigstore transparency entry: 2473382248
- Sigstore integration time:
-
Permalink:
mitchelljphayes/words-for-humans@2c316f302fc2dc0951eba6c2ef357432dab4f43c -
Branch / Tag:
refs/tags/v0.2.3 - Owner: https://github.com/mitchelljphayes
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2c316f302fc2dc0951eba6c2ef357432dab4f43c -
Trigger Event:
push
-
Statement type:
File details
Details for the file words_for_humans-0.2.3-py3-none-any.whl.
File metadata
- Download URL: words_for_humans-0.2.3-py3-none-any.whl
- Upload date:
- Size: 99.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06f64db53c5f6337ff7c4ba5d54a29f350da75cc29fc110f08a698021a9cf3e0
|
|
| MD5 |
68d4966638df4adf640f705a6298cfce
|
|
| BLAKE2b-256 |
e8919f217e12cdc80f3b207e9ea0e712feebc738699eede15cd3c2159434ba4b
|
Provenance
The following attestation bundles were made for words_for_humans-0.2.3-py3-none-any.whl:
Publisher:
release.yml on mitchelljphayes/words-for-humans
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
words_for_humans-0.2.3-py3-none-any.whl -
Subject digest:
06f64db53c5f6337ff7c4ba5d54a29f350da75cc29fc110f08a698021a9cf3e0 - Sigstore transparency entry: 2473382255
- Sigstore integration time:
-
Permalink:
mitchelljphayes/words-for-humans@2c316f302fc2dc0951eba6c2ef357432dab4f43c -
Branch / Tag:
refs/tags/v0.2.3 - Owner: https://github.com/mitchelljphayes
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2c316f302fc2dc0951eba6c2ef357432dab4f43c -
Trigger Event:
push
-
Statement type: