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

# currentRevision(for:)

Retrieves the current version of a word embedding for the given language.

## Declaration

```swift
class func currentRevision(for language: NLLanguage) -> Int
```

## Parameters

- `language`: A language supported by the Natural Language framework.

## Return Value

Return Value An integer.

## See Also

### Checking for Natural Language support

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