---
title: "init(language:)"
framework: Natural Language
role: symbol
role_heading: Initializer
platforms: [iOS 17.0+, iPadOS 17.0+, Mac Catalyst 17.0+, macOS 14.0+, tvOS 17.0+, visionOS 1.0+, watchOS 10.0+]
path: "naturallanguage/nlcontextualembedding/init(language:)"
---

# init(language:)

Creates a contextual embedding from a language.

## Declaration

```swift
init?(language: NLLanguage)
```

## Parameters

- `language`: The language the framework uses to find the most recent embedding suitable for the value you specify.

## Discussion

Discussion The language the framework uses to find the most recent embedding suitable for the value you specify.

## See Also

### Creating a contextual embedding

- [init(modelIdentifier:)](naturallanguage/nlcontextualembedding/init(modelidentifier:).md)
- [init(script:)](naturallanguage/nlcontextualembedding/init(script:).md)
