Files
lancedb/.github/vale/styles/LanceDB/ProductNames.yml
T
Brendan Clement cfa94f0077 docs: add the documentation style guide to this repository (#5132)
`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.
2026-11-20 09:47:14 -08:00

43 lines
2.1 KiB
YAML

extends: substitution
message: "Use '%s' instead of '%s'."
link: https://github.com/lancedb/lancedb/blob/main/docs/STYLE.md#names
level: warning
ignorecase: false
# Case-sensitive. A lowercase package, repository or domain name, such as
# lancedb or github.com, is left alone; write identifiers in code font.
swap:
'(?:Lancedb|LanceDb|lanceDB|LANCEDB|Lance DB)': LanceDB
'LanceDB (?:cloud|CLOUD)': LanceDB Cloud
'LanceDB (?:enterprise|ENTERPRISE)': LanceDB Enterprise
'LanceDB\s+Distributed': LanceDB Enterprise
'(?:Hugging Face|Hugging face|Huggingface)': HuggingFace
Langchain: LangChain
Typescript: TypeScript
VoyageAI: Voyage AI
tests:
- name: corrects the product name
input: Install Lancedb and connect to LanceDB cloud or LanceDB enterprise.
want: |
1:9:LanceDB.ProductNames:Use 'LanceDB' instead of 'Lancedb'.
1:32:LanceDB.ProductNames:Use 'LanceDB Cloud' instead of 'LanceDB cloud'.
1:49:LanceDB.ProductNames:Use 'LanceDB Enterprise' instead of 'LanceDB enterprise'.
- name: corrects names seen misspelled in the current pages
input: Load a Hugging Face model, build a Langchain retriever in Typescript and call VoyageAI.
want: |
1:8:LanceDB.ProductNames:Use 'HuggingFace' instead of 'Hugging Face'.
1:37:LanceDB.ProductNames:Use 'LangChain' instead of 'Langchain'.
1:60:LanceDB.ProductNames:Use 'TypeScript' instead of 'Typescript'.
1:80:LanceDB.ProductNames:Use 'Voyage AI' instead of 'VoyageAI'.
- name: leaves package names, identifiers and code alone
input: |
The lancedb package exposes `HuggingFaceEmbeddings` and LanceDBConnection; see `Typescript` in code.
want: ''
- name: uses Enterprise for the product and its execution model
input: Connect to LanceDB Distributed.
want: |
1:12:LanceDB.ProductNames:Use 'LanceDB Enterprise' instead of 'LanceDB Distributed'.
- name: keeps technical descriptions and API identifiers
input: |
LanceDB Enterprise supports distributed search. Compare Embedded and Enterprise. Distributed training uses workers. `LanceDB Distributed` and `RemoteTable` are literal code.
want: ''