Copy as Markdown[View as Markdown](/docs/sdk/functions/getUbiquitousLanguageFromDomain.md)

***

# Function: getUbiquitousLanguageFromDomain()

> **getUbiquitousLanguageFromDomain**(`directory`): (`id`, `version`?) => `Promise`<{ `markdown`: `any`; }>

Defined in: domains.ts:303

Returns the ubiquitous language dictionary from a domain.

Optionally specify a version to get the ubiquitous language dictionary from a specific version of the domain.

## Parameters[​](#parameters "Direct link to Parameters")

| Parameter   | Type     |
| ----------- | -------- |
| `directory` | `string` |

## Returns[​](#returns "Direct link to Returns")

`Function`

### Parameters[​](#parameters-1 "Direct link to Parameters")

| Parameter  | Type     |
| ---------- | -------- |
| `id`       | `string` |
| `version`? | `string` |

### Returns[​](#returns-1 "Direct link to Returns")

`Promise`<{ `markdown`: `any`; }>

## Example[​](#example "Direct link to Example")

```
import utils from '@eventcatalog/utils';

const { getUbiquitousLanguageFromDomain } = utils('/path/to/eventcatalog');

const ubiquitousLanguage = await getUbiquitousLanguageFromDomain('Payment');

// Returns the ubiquitous language dictionary from a specific version of the domain
const ubiquitousLanguage = await getUbiquitousLanguageFromDomain('Payment', '0.0.1');
```
