mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 20:44:00 +00:00
`CONTRIBUTING.md` and the Vale rules link to `lancedb/docs`, which is private, so outside contributors get a 404. Fixes #5070. This copies the style guide to `docs/STYLE.md` and points the links at it. The text is the same apart from the intro, which now describes the scope from this repository's side, and the internal-names bullet, which no longer lists the names. The other three links in `CONTRIBUTING.md` went to the docs repository's README. The draft-section example is now inline. The combined preview and saved-edition corrections need the private repositories, so the guide says to ask a maintainer in the pull request instead. Replaces #5091.
33 lines
1.2 KiB
YAML
33 lines
1.2 KiB
YAML
extends: substitution
|
|
message: "Consider '%s' instead of '%s'."
|
|
link: https://github.com/lancedb/lancedb/blob/main/docs/STYLE.md#say-it-directly
|
|
level: suggestion
|
|
ignorecase: true
|
|
# Keep this list small. Technical nouns such as GPU utilization stay intact.
|
|
swap:
|
|
utilize: use
|
|
utilizes: uses
|
|
utilized: used
|
|
utilizing: using
|
|
in order to: to
|
|
tests:
|
|
- name: suggests familiar verbs
|
|
input: Utilize the index. The query utilizes it. We utilized it. Try utilizing it.
|
|
want: |
|
|
1:1:LanceDB.PlainLanguage:Consider 'use' instead of 'Utilize'.
|
|
1:30:LanceDB.PlainLanguage:Consider 'uses' instead of 'utilizes'.
|
|
1:46:LanceDB.PlainLanguage:Consider 'used' instead of 'utilized'.
|
|
1:63:LanceDB.PlainLanguage:Consider 'using' instead of 'utilizing'.
|
|
- name: shortens an unnecessary phrase
|
|
input: Create an index in order to search faster.
|
|
want: |
|
|
1:17:LanceDB.PlainLanguage:Consider 'to' instead of 'in order to'.
|
|
- name: preserves technical terms and identifiers
|
|
input: |
|
|
Measure GPU utilization and resource underutilization. Keep the rows in order. Call `utilize()` and `in order to` only as literal examples.
|
|
|
|
```python
|
|
utilized = "in order to"
|
|
```
|
|
want: ''
|