---
title: SFCustomLanguageModelData.DataInsertableBuilder
framework: speech
role: symbol
role_heading: Structure
path: speech/sfcustomlanguagemodeldata/datainsertablebuilder
---

# SFCustomLanguageModelData.DataInsertableBuilder

A custom parameter attribute that constructs custom language model data from closures.

## Declaration

```swift
@resultBuilder struct DataInsertableBuilder
```

## Overview

Overview The SFCustomLanguageModelData class provides two methods for accumulating data: manually constructing PhraseCount and CustomPronunciation objects and providing them using the insert methods defined below, or by using the result builder DSL upon initialization. This type supports the latter.

## Topics

### Result builder methods

- [buildArray(_:)](speech/sfcustomlanguagemodeldata/datainsertablebuilder/buildarray(_:).md)
- [buildBlock(_:)](speech/sfcustomlanguagemodeldata/datainsertablebuilder/buildblock(_:).md)
- [buildEither(first:)](speech/sfcustomlanguagemodeldata/datainsertablebuilder/buildeither(first:).md)
- [buildEither(second:)](speech/sfcustomlanguagemodeldata/datainsertablebuilder/buildeither(second:).md)
- [buildOptional(_:)](speech/sfcustomlanguagemodeldata/datainsertablebuilder/buildoptional(_:).md)

## See Also

### Creating a model data container

- [init(locale:identifier:version:builder:)](speech/sfcustomlanguagemodeldata/init(locale:identifier:version:builder:).md)
- [init(locale:identifier:version:)](speech/sfcustomlanguagemodeldata/init(locale:identifier:version:).md)
