Skip to main content
The glossary lets you define how specific terms should be treated when the AI enhances or translates your data. This ensures brand names, technical terms, and industry jargon are handled consistently.

Term types

TypeBehavior
do_not_translateKeep the term exactly as-is in all languages. Ideal for brand names.
specific_translationUse your provided translations instead of AI-generated ones.
context_dependentLet the AI decide based on context.

Example: brand terms

Prevent “Lasso AI” from being translated:
await client.glossary.create({
  term: "Lasso AI",
  type: "do_not_translate",
  case_sensitive: true,
  category: "brand",
});

Example: specific translations

Provide exact translations for technical terms:
await client.glossary.create({
  term: "data extraction",
  type: "specific_translation",
  translations: {
    de: "Datenextraktion",
    fr: "extraction de données",
    es: "extracción de datos",
  },
});

Using the glossary

To apply your glossary during enhancement, set use_glossary: true:
await client.enhance.cells("tbl_abc123", {
  row_ids: ["row_1", "row_2"],
  column_key: "description_de",
  prompt: "Translate the description to German.",
  target_language: "de",
  use_glossary: true,
});

Managing terms

Glossary terms can be listed, updated, and deleted through the Glossary API. Updating translations replaces all existing translations for that term.