Repository navigation
[doc] Update Vale vocabulary, remove suppressions, and add Vale rules for Ray Data docs - #66412
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the Vale spelling vocabulary and improves documentation by renaming "ABS" tabs to "Azure Blob Storage" and removing unnecessary Vale ignore comments. Feedback on the vocabulary updates suggests using case-insensitive patterns for torchtext and torchvision to prevent false positives in different contexts.
This was referenced Sep 23, 2026
dstrodtman
force-pushed
the
doc-1524-data-prose-softwrap
branch
from
September 23, 2026 13:42
eb049dc to
7a291e0
Compare
dstrodtman
force-pushed
the
doc-1524-data-vale-cleanup
branch
from
September 23, 2026 13:42
8aabfd0 to
ef53b5f
Compare
dstrodtman
force-pushed
the
doc-1524-data-prose-softwrap
branch
from
September 23, 2026 17:10
7a291e0 to
590c4ba
Compare
dstrodtman
force-pushed
the
doc-1524-data-vale-cleanup
branch
from
September 23, 2026 17:10
ef53b5f to
53d79ba
Compare
dstrodtman
force-pushed
the
doc-1524-data-prose-softwrap
branch
from
September 23, 2026 19:47
590c4ba to
b2240b2
Compare
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
Add four rules to the shared Ray Vale style and extend Filler, for patterns that recurred across the Ray Data style pass: - Ray.SuchAs flags "like" only after a plural noun that introduces examples, such as "formats like". It's an existence rule rather than a substitution, because "like" is also a comparison and a verb and a swap would corrupt that prose. - Ray.Brands swaps "HuggingFace" for "Hugging Face", case-sensitively. - Ray.Capitalization flags "Ray Tasks" and "Ray Actors" in prose. - Ray.LeadIns flags "For example:" and "Here's an example" fragments. - Ray.Filler adds "under the hood" and "seamlessly". The Ray style stays registered for RLlib only. Nothing changes what Vale runs in CI. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
Add objects, workers, nodes, and placement groups to Ray.Capitalization, add datasets and APIs to Ray.SuchAs, and add "for instance:" to Ray.LeadIns. Set vocab: false on Ray.SuchAs, because the APIs accept-list entry shadowed the rule. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
dstrodtman
force-pushed
the
doc-1524-data-vale-cleanup
branch
from
September 23, 2026 20:03
654c012 to
c53a10b
Compare
bveeramani
approved these changes
Sep 23, 2026
dstrodtman
enabled auto-merge (squash)
September 23, 2026 20:34
richardliaw
pushed a commit
that referenced
this pull request
Sep 24, 2026
## Description Style and grammar pass on Ray Data docs against Ray's [writing-style guide](https://docs.ray.io/en/master/ray-contribute/writing-style.html). Prose only: no code, `literalinclude` blocks, URLs, anchors, or role targets changed. Stacked on #66412, which is stacked on #66381, #66375, and #66352. Review and merge those first. This branch targets `doc-1524-data-vale-cleanup`. It combines this PR's original comparisons-page pass with the custom datasource pass first opened as #66416. ### `comparisons.md` - Renames the legacy "Datasets" product name to "Ray Data". The page already used "Ray Data" for the same subject in the same lists. Third-party "Torch datasets" and "TensorFlow datasets" are unchanged. - Fixes `SageMaker` and `BentoML` casing, which #66412 left as intentional alerts for this pass. - Uses contractions, active voice, second person, and "such as" for examples. - Removes "our blog post", "3rd", "e.g.", mid-sentence colons, and semicolons. - Fixes the grammar of the BentoML-and-Spark sentence and subject-verb agreement for "TensorFlow datasets". - Sentence-cases the dropdown titles and makes them parallel. - Adds a lead-in sentence to each comparison list and uses the `**Term**: explanation` definition-list form from the style guide. - Collapses runs of blank lines between dropdowns to one. ### `custom-datasource-example.md` This is the page whose `<!-- vale off -->` blocks #66412 removed so the future-tense prose they hid could be fixed. - Replaces the three "you'll" future-tense sentences with present tense. - Names Ray Data as the actor in "file types that aren't natively supported" and "Images are already supported". - Replaces "functionality" with "behavior", "Once you've implemented" with "After you implement", and the "(for example, `"png"`)" parenthetical with "such as". - Cuts the time-relative "in the future" from the write-interface note but keeps "is under active development and might change", which is the stability warning. - Corrects the block types. The page said blocks can be dictionaries of NumPy arrays, but `Block` in `block.py` is only a PyArrow table or a pandas DataFrame, including at the commit the page links to. NumPy dictionaries are a batch format. This is a factual correction. - Sentence-cases the title: "Advanced: Read and write custom file types". - Updates the one link in `loading-data.md` whose text quotes the old title. ## Why this isn't a duplicate No other open PR edits `comparisons.md`, `custom-datasource-example.md`, or `doc_code/custom_datasource_example.py`. #55038 adds an experimental SQL API and SQL docs but doesn't edit these pages. See the related question below. I also checked the open Data PRs that mention datasources, including #65760, #57239, and #55467. ## Questions for reviewers Apart from the block-types correction, this pass kept the scope of every claim. These existing claims might be stale, and a Ray Data maintainer is better placed to judge them: - **Third-party feature claims on `comparisons.md`:** Petastorm supports only Parquet, NVTabular supports only Parquet, CSV, and Avro, TensorFlow datasets support only file interleaving across worker shards, and Torch datasets have no I/O layer. - **SQL interface:** "Ray Data doesn't have a SQL interface" would go stale if #55038 lands. - **Comparisons with no measure:** "a streaming paradigm that's better suited to GPU workloads" and "can't effectively handle large datasets". The style guide's "Keep comparisons precise" section applies, but no source for a measure is on the page. - **Repeated comparison points:** the training-ingest dropdowns repeat three points almost word for word. A single comparison table might read better. That moves content, so it isn't in this PR. - **Duplicate headings:** `custom-datasource-example.md` has two H3s named "Implement the constructor", one under reading and one under writing. "Implement the datasource constructor" and "Implement the datasink constructor" would make the right-side TOC clearer. I left them as they are. ## Verification - `vale` with Vale 3.12, run from the repo root: 0 alerts on `comparisons.md`, down from 24, and 0 on `custom-datasource-example.md`, down from 6. `loading-data.md` has no alerts on the edited line. - `codespell`: no hits. - The pre-commit hooks passed on each commit. - A structural check against each pre-edit file confirmed the code-fence count, role targets, anchors, and URLs are unchanged. - For the reworded title, a grep for inbound links found the `{ref}` in `loading-data.md`, updated here, and a toctree entry in `user-guide.md`, which doesn't depend on the title. No links use the heading's implicit slug. - I didn't run a local Sphinx build. The Read the Docs preview covers rendering. ## AI assistance I made these edits with AI assistance (Claude Code) and reviewed the full diff by hand. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
nadongjun
pushed a commit
to nadongjun/ray
that referenced
this pull request
Oct 6, 2026
… for Ray Data docs (ray-project#66412) ## Why This PR collects the Vale configuration changes for the Ray Data docs into one review: - It prepares the Ray Data docs for a style and grammar pass. Vale can then flag real problems, such as future tense, without noise from valid terms it doesn't know. - It adds Vale rules to the shared `Ray` style for patterns that the Ray Data style pass fixed by hand, over and over, across the style-pass PRs stacked above this one. The rules were written after the style pass, so they sit lower in the stack than the work that motivated them. They touch the same Vale configuration for the same reason, so they're reviewed and landed together here. The rule changes were previously in ray-project#66424, now closed. Stacked on ray-project#66381, which is stacked on ray-project#66375 and ray-project#66352. Review and merge those first. This branch targets `doc-1524-data-prose-softwrap`. ## What ### Vocabulary and suppressions - Removes the two `<!-- vale off -->` / `<!-- vale on -->` blocks from `custom-datasource-example.md`. This was the only Ray Data page that disabled Vale. Both blocks suppressed the future-tense check, and the style pass should fix that prose rather than hide it. - Updates `.vale/styles/config/vocabularies/Data/accept.txt`: - Adds `BentoML`, `CIFAR`, `[Dd]ownscal(e|es|ed|ing)`, `JPEG`, `Kinetica`, `NVTabular`, `Petastorm`, `Psycopg`, `PyArrow`, `Tekken`, `torchtext`, and `torchvision`. - Changes `Datasinks?` to `[Dd]atasinks?` so lowercase "datasink" is accepted, matching `[Dd]atasource(s)?`. - Removes entries that duplicate other vocabularies: `docstrings`, `NLP`, `PIL`, and `TPU(s)?` are in General, and `XGBoost` is in Train. - Removes entries that don't appear in the prose of any `.md` or `.rst` page under `doc/source/`: `assess_quality`, `process_file`, `[Mm]ultiget(s)?`, `PDFs`, `Predibase('s)?`, `[Rr]eformat(s)?`, and `[Pp]ostprocessor(s)?`. - Renames the `ABS` tab to `Azure Blob Storage` in `loading-data.md` and `saving-data.md`, because the acronym isn't widely known. The remaining spelling and terms alerts are intentional. They point at text the style pass fixes: `Bento ML`, `Sagemaker`, `Numpy`, `pyarrow`, `underly`, `undersaturated`, and the unformatted `map_batches` and `smart_resize` identifiers. ### New rules These are rule files only. The `Ray` style is still registered for RLlib pages only, in `.vale.ini`, and nothing changes what Vale runs in CI. Vale on the Ray Data docs is disabled on purpose for now. | Rule | Type | Catches | Why this type | |---|---|---|---| | `Ray.SuchAs` | existence, warning | "like" after a plural noun that introduces examples, such as "formats like", "methods like", and "APIs like" | "like" is also a comparison ("works like a queue") and a verb ("if you'd like"), so a substitution would corrupt that prose. The rule only flags, and only after these nouns. | | `Ray.Brands` | substitution, case-sensitive | `HuggingFace` becomes `Hugging Face` | The literal has no other sense. The match is case-sensitive so lowercase identifiers such as `huggingface_hub` never match, and inline code is skipped anyway. | | `Ray.Capitalization` | existence, case-sensitive | `Ray Tasks`, `Ray Actors`, `Ray Objects`, `Ray Workers`, `Ray Nodes`, `Ray Placement Groups` | The style guide lowercases generic nouns that name a Ray concept. Flag only, because link text that quotes a page title can keep the title's capitals. | | `Ray.LeadIns` | existence, warning | `For example:`, `For instance:`, and `Here's an example` fragments used as lead-ins | The guide wants complete-sentence lead-ins. The right rewrite depends on the example, so the rule only flags. | | `Ray.Filler` additions | existence | "under the hood", "seamlessly" | Both came up repeatedly in the pass. | Each rule links to the matching section of `writing-style.md`. Left out on purpose: - **Slashes between words:** `I/O`, `TCP/IP`, and `and/or` are legitimate, and a pattern can't tell them apart. - **Gerund task headings:** some gerund H1s, such as "Loading data", are kept on purpose to match the nav titles. - **"Ray Cluster" in `Ray.Capitalization`:** it appears mostly in page and section titles ("Ray Clusters Overview") and in the "Ray Cluster Launcher" component name. - **"Pandas" to "pandas":** a case-sensitive swap misfires at the start of a sentence. ## Verification Vocabulary: `vale doc/source/data` with Vale 3.12: `Vale.Spelling` drops from 26 to 10 alerts, `Google.Acronyms` from 4 to 0, and the remaining `Vale.Spelling` and `Vale.Terms` alerts are all in the list above. `custom-datasource-example.md` now reports its three `Google.Will` alerts. Rules: - A test file with positive and negative cases, run with the real vocabularies loaded, so accept-list shadowing would show up. That check caught the `APIs` accept-list entry shadowing `Ray.SuchAs`, so the rule sets `vocab: false`. Every positive case fires. None of these fire: - "works like a queue" and "if you'd like" - `huggingface_hub` in inline code - "Ray Tasks" as `{ref}` link text - lowercase "Ray tasks" - The full `Ray` style, run by hand against all 25 top-level `doc/source/data/*.md` pages at the head of the style-pass stack, reports five warnings and none from the new rules: - "For now" in `mixing-data.md` and "Currently" in `performance-tips.md` are temporary-limitation signals that the stack keeps on purpose. - "seamlessly" in `comparisons.md` and "very" twice in `shuffling-data.md` were filler that the pass missed. They're now fixed in ray-project#66413 and ray-project#66420, the style PRs for those pages. - That run was at the head of the style-pass stack, not at this branch. Running the `Ray` style by hand against the Data pages here might report matches that the stack above fixes. That doesn't affect CI, since the `Ray` style isn't registered for Data pages. The Vale pre-commit hook is still commented out, so this doesn't change CI. ## AI assistance I made these changes with AI assistance (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
nadongjun
pushed a commit
to nadongjun/ray
that referenced
this pull request
Oct 6, 2026
## Description Style and grammar pass on Ray Data docs against Ray's [writing-style guide](https://docs.ray.io/en/master/ray-contribute/writing-style.html). Prose only: no code, `literalinclude` blocks, URLs, anchors, or role targets changed. Stacked on ray-project#66412, which is stacked on ray-project#66381, ray-project#66375, and ray-project#66352. Review and merge those first. This branch targets `doc-1524-data-vale-cleanup`. It combines this PR's original comparisons-page pass with the custom datasource pass first opened as ray-project#66416. ### `comparisons.md` - Renames the legacy "Datasets" product name to "Ray Data". The page already used "Ray Data" for the same subject in the same lists. Third-party "Torch datasets" and "TensorFlow datasets" are unchanged. - Fixes `SageMaker` and `BentoML` casing, which ray-project#66412 left as intentional alerts for this pass. - Uses contractions, active voice, second person, and "such as" for examples. - Removes "our blog post", "3rd", "e.g.", mid-sentence colons, and semicolons. - Fixes the grammar of the BentoML-and-Spark sentence and subject-verb agreement for "TensorFlow datasets". - Sentence-cases the dropdown titles and makes them parallel. - Adds a lead-in sentence to each comparison list and uses the `**Term**: explanation` definition-list form from the style guide. - Collapses runs of blank lines between dropdowns to one. ### `custom-datasource-example.md` This is the page whose `<!-- vale off -->` blocks ray-project#66412 removed so the future-tense prose they hid could be fixed. - Replaces the three "you'll" future-tense sentences with present tense. - Names Ray Data as the actor in "file types that aren't natively supported" and "Images are already supported". - Replaces "functionality" with "behavior", "Once you've implemented" with "After you implement", and the "(for example, `"png"`)" parenthetical with "such as". - Cuts the time-relative "in the future" from the write-interface note but keeps "is under active development and might change", which is the stability warning. - Corrects the block types. The page said blocks can be dictionaries of NumPy arrays, but `Block` in `block.py` is only a PyArrow table or a pandas DataFrame, including at the commit the page links to. NumPy dictionaries are a batch format. This is a factual correction. - Sentence-cases the title: "Advanced: Read and write custom file types". - Updates the one link in `loading-data.md` whose text quotes the old title. ## Why this isn't a duplicate No other open PR edits `comparisons.md`, `custom-datasource-example.md`, or `doc_code/custom_datasource_example.py`. ray-project#55038 adds an experimental SQL API and SQL docs but doesn't edit these pages. See the related question below. I also checked the open Data PRs that mention datasources, including ray-project#65760, ray-project#57239, and ray-project#55467. ## Questions for reviewers Apart from the block-types correction, this pass kept the scope of every claim. These existing claims might be stale, and a Ray Data maintainer is better placed to judge them: - **Third-party feature claims on `comparisons.md`:** Petastorm supports only Parquet, NVTabular supports only Parquet, CSV, and Avro, TensorFlow datasets support only file interleaving across worker shards, and Torch datasets have no I/O layer. - **SQL interface:** "Ray Data doesn't have a SQL interface" would go stale if ray-project#55038 lands. - **Comparisons with no measure:** "a streaming paradigm that's better suited to GPU workloads" and "can't effectively handle large datasets". The style guide's "Keep comparisons precise" section applies, but no source for a measure is on the page. - **Repeated comparison points:** the training-ingest dropdowns repeat three points almost word for word. A single comparison table might read better. That moves content, so it isn't in this PR. - **Duplicate headings:** `custom-datasource-example.md` has two H3s named "Implement the constructor", one under reading and one under writing. "Implement the datasource constructor" and "Implement the datasink constructor" would make the right-side TOC clearer. I left them as they are. ## Verification - `vale` with Vale 3.12, run from the repo root: 0 alerts on `comparisons.md`, down from 24, and 0 on `custom-datasource-example.md`, down from 6. `loading-data.md` has no alerts on the edited line. - `codespell`: no hits. - The pre-commit hooks passed on each commit. - A structural check against each pre-edit file confirmed the code-fence count, role targets, anchors, and URLs are unchanged. - For the reworded title, a grep for inbound links found the `{ref}` in `loading-data.md`, updated here, and a toctree entry in `user-guide.md`, which doesn't depend on the title. No links use the heading's implicit slug. - I didn't run a local Sphinx build. The Read the Docs preview covers rendering. ## AI assistance I made these edits with AI assistance (Claude Code) and reviewed the full diff by hand. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
This PR collects the Vale configuration changes for the Ray Data docs into one review:
Raystyle for patterns that the Ray Data style pass fixed by hand, over and over, across the style-pass PRs stacked above this one.The rules were written after the style pass, so they sit lower in the stack than the work that motivated them. They touch the same Vale configuration for the same reason, so they're reviewed and landed together here. The rule changes were previously in #66424, now closed.
Stacked on #66381, which is stacked on #66375 and #66352. Review and merge those first. This branch targets
doc-1524-data-prose-softwrap.What
Vocabulary and suppressions
<!-- vale off -->/<!-- vale on -->blocks fromcustom-datasource-example.md. This was the only Ray Data page that disabled Vale. Both blocks suppressed the future-tense check, and the style pass should fix that prose rather than hide it..vale/styles/config/vocabularies/Data/accept.txt:BentoML,CIFAR,[Dd]ownscal(e|es|ed|ing),JPEG,Kinetica,NVTabular,Petastorm,Psycopg,PyArrow,Tekken,torchtext, andtorchvision.Datasinks?to[Dd]atasinks?so lowercase "datasink" is accepted, matching[Dd]atasource(s)?.docstrings,NLP,PIL, andTPU(s)?are in General, andXGBoostis in Train..mdor.rstpage underdoc/source/:assess_quality,process_file,[Mm]ultiget(s)?,PDFs,Predibase('s)?,[Rr]eformat(s)?, and[Pp]ostprocessor(s)?.ABStab toAzure Blob Storageinloading-data.mdandsaving-data.md, because the acronym isn't widely known.The remaining spelling and terms alerts are intentional. They point at text the style pass fixes:
Bento ML,Sagemaker,Numpy,pyarrow,underly,undersaturated, and the unformattedmap_batchesandsmart_resizeidentifiers.New rules
These are rule files only. The
Raystyle is still registered for RLlib pages only, in.vale.ini, and nothing changes what Vale runs in CI. Vale on the Ray Data docs is disabled on purpose for now.Ray.SuchAsRay.BrandsHuggingFacebecomesHugging Facehuggingface_hubnever match, and inline code is skipped anyway.Ray.CapitalizationRay Tasks,Ray Actors,Ray Objects,Ray Workers,Ray Nodes,Ray Placement GroupsRay.LeadInsFor example:,For instance:, andHere's an examplefragments used as lead-insRay.FilleradditionsEach rule links to the matching section of
writing-style.md.Left out on purpose:
I/O,TCP/IP, andand/orare legitimate, and a pattern can't tell them apart.Ray.Capitalization: it appears mostly in page and section titles ("Ray Clusters Overview") and in the "Ray Cluster Launcher" component name.Verification
Vocabulary:
vale doc/source/datawith Vale 3.12:Vale.Spellingdrops from 26 to 10 alerts,Google.Acronymsfrom 4 to 0, and the remainingVale.SpellingandVale.Termsalerts are all in the list above.custom-datasource-example.mdnow reports its threeGoogle.Willalerts.Rules:
APIsaccept-list entry shadowingRay.SuchAs, so the rule setsvocab: false. Every positive case fires. None of these fire:huggingface_hubin inline code{ref}link textRaystyle, run by hand against all 25 top-leveldoc/source/data/*.mdpages at the head of the style-pass stack, reports five warnings and none from the new rules:mixing-data.mdand "Currently" inperformance-tips.mdare temporary-limitation signals that the stack keeps on purpose.comparisons.mdand "very" twice inshuffling-data.mdwere filler that the pass missed. They're now fixed in [doc] Style and grammar pass on Ray Data docs #66413 and [doc] Style pass on Ray Data operation guides #66420, the style PRs for those pages.Raystyle by hand against the Data pages here might report matches that the stack above fixes. That doesn't affect CI, since theRaystyle isn't registered for Data pages.The Vale pre-commit hook is still commented out, so this doesn't change CI.
AI assistance
I made these changes with AI assistance (Claude Code).
🤖 Generated with Claude Code