Memory shorthands in base2 get recursively corrected to long names in base10
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 67/100
Research direction
The issue describes a recursive correction from tebibytes to terabytes in Harper. Start by locating the ExpandMemoryShorthands and SpellCheck rules and the tests covering their suggestions. Add or update a regression case so expanding TiB does not lead to terabytes; run the relevant tests and confirm the incorrect second suggestion is gone.
Written by the indexing model from the issue text.
Description
What got flagged?
By using a bunch of tiny drives I can extend it to 2.5 TiB while also making sure that the entire cluster doesn't go KAPUT if up to two of them have a bad day.
Gets the warning: Did you mean tebibytes? [ExpandMemoryShorthands]
which is a fair critique.
But then the corrected sentence: By using a bunch of tiny drives I can extend it to 2.5 tebibytes while also making sure that the entire cluster doesn't go KAPUT if up to two of them have a bad day.
Gets a SpellCheck error that says Did you mean terabytes? [SpellCheck]
Why is this incorrect?
Tebibytes should never be corrected to Terabytes as they're completely different units of measurement.
Example of correct usage
Wikipedia : While the difference between the decimal and binary interpretations is relatively small for the kilobyte (about 2% smaller than the kibibyte), the systems deviate increasingly as units grow larger (the relative deviation grows by 2.4% for each three orders of magnitude). For example, a power-of-10-based terabyte is about 9% smaller than power-of-2-based tebibyte.
- Dominant language
- Rust
- Stars
- 18.1k
- Forks
- 870
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 148
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Automattic/harper
-
bug obsidian-plugin
Difficulty 1/5 Under an hour Newbie friendliness 95/100
Automattic/harper#5124 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement harper-core linting
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Automattic/harper#5095 · 1 comment ·
Maintainers usually reply within 1 day
-
Invalid "to" suggestion for infinitive verbPossibly taken @orshih6 claimed this 2 days ago. Openbug false-positive harper-core linting
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
Automattic/harper#5092 · 1 reaction ·
Maintainers usually reply within 1 day
-
bug false-negative grammar harper-core linting
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Automattic/harper#5048 ·
Maintainers usually reply within 1 day
-
enhancement harper-core linting
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Automattic/harper#4995 ·
Maintainers usually reply within 1 day
All issues in Automattic/harper
Similar issues
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
area: engine bug needs milestone
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Mudcrab-Team/mudcrab#1197 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
zeabur-oss/builder#304 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
prometheion/ares#159 ·
Maintainers usually reply within 1 day
-
Multi-select question chips show no picked state; on touch the last tap looks like the only pickOpen
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
eliasstravik/herdr-projects#1710 · 1 comment ·