---
title: "supportedSentenceEmbeddingRevisions(for:)"
framework: naturallanguage
role: symbol
role_heading: Type Method
path: "naturallanguage/nlembedding/supportedsentenceembeddingrevisions(for:)"
---

# supportedSentenceEmbeddingRevisions(for:)

Retrieves all version numbers of a sentence embedding for the given language.

## Declaration

```swift
class func supportedSentenceEmbeddingRevisions(for language: NLLanguage) -> IndexSet
```

## Parameters

- `language`: A language supported by the Natural Language framework. For possible values, see doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLLanguage.

## Return Value

Return Value An index set representing all of the supported version numbers of the sentence embedding.

## See Also

### Checking for Natural Language support

- [currentRevision(for:)](naturallanguage/nlembedding/currentrevision(for:).md)
- [supportedRevisions(for:)](naturallanguage/nlembedding/supportedrevisions(for:).md)
- [currentSentenceEmbeddingRevision(for:)](naturallanguage/nlembedding/currentsentenceembeddingrevision(for:).md)
