<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NaturalLanguage",
  "identifier" : "/documentation/NaturalLanguage/NLEmbedding/wordEmbedding(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Natural Language"
    ],
    "preciseIdentifier" : "c:objc(cs)NLEmbedding(cm)wordEmbeddingForLanguage:"
  },
  "title" : "wordEmbedding(for:)"
}
-->

# wordEmbedding(for:)

Retrieves a word embedding for a given language.

```
class func wordEmbedding(for language: NLLanguage) -> NLEmbedding?
```

## Parameters

`language`

The language of the word embedding, such as [`french`](/documentation/NaturalLanguage/NLLanguage/french).

## Return Value

An [`NLEmbedding`](/documentation/NaturalLanguage/NLEmbedding) if available, otherwise `nil`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)